** cloos@jhcloos.com, May 11: A redisplay bug in 22.0.99
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e9c8d984
CY
12007-05-12 Chong Yidong <cyd@stupidchicken.com>
2
96587f7e
CY
3 * image.c (pbm_load): Correctly check image size for greyscale pbm.
4
e9c8d984
CY
5 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
6
c10b2810
SM
72007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
8
9 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object mixup (YAILOM)
10
205f01b4
RS
112007-05-06 Richard Stallman <rms@gnu.org>
12
13 * process.c: Undo May 3 change.
14
9913756b 152007-05-03 Per Cederqvist <ceder@lysator.liu.se> (tiny change)
39f3dff9
RS
16
17 * process.c (Faccept_process_output): Revert 2006-03-22 change so
18 that the third argument once again is in microseconds (not
19 milliseconds). This makes it compatible with Emacs 21 and
205f01b4 20 earlier. Problem found by Henrik Rindl\e,Av\e(Bw.
39f3dff9 21
0f6da68b
YM
222007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23
24 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26
76181e0a
RS
272007-04-29 Richard Stallman <rms@gnu.org>
28
29 * insdel.c (replace_range): For undo, record insertion first.
30
769da2c1
YM
312007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32
33 * xdisp.c (try_window_reusing_current_matrix): Fix number of
34 disabled lines.
35
f56cff88
JD
362007-04-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
37
38 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
39
40 * gtkutil.c (xg_update_menubar, create_menus): Create empty
41 submenu for menu bar items.
42
53105662
CY
432007-04-24 Chong Yidong <cyd@stupidchicken.com>
44
45 * xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
46 values of the actual window.
47
bdfeaf61
RS
482007-04-23 Richard Stallman <rms@gnu.org>
49
50 * process.c (Fstart_process): Doc fix.
51
c9c3704c
EZ
522007-04-23 Eli Zaretskii <eliz@gnu.org>
53
54 * process.c (Fstart_process): Doc fix.
55
5fe751c9
RS
562007-04-22 Richard Stallman <rms@gnu.org>
57
58 * abbrev.c (Fdefine_abbrev): Doc fix.
59
60 * keymap.c (Fdefine_key): Minor doc fix.
61
b1e6882f
GM
622007-04-21 Glenn Morris <rgm@gnu.org>
63
64 * keymap.c (Fdefine_key): Fix info ref in doc string.
65
8ea8a516
CY
662007-04-20 Glenn Morris <rgm@gnu.org>
67
68 * sysdep.c (init_system_name): Don't accept localhost.localdomain.
69
6cc62df0
JB
702007-04-19 Juanma Barranquero <lekktu@gmail.com>
71
72 * minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties)
73 (Fminibuffer_completion_contents, Fdelete_minibuffer_contents):
74 Doc fixes.
75
837751ae
CY
762007-04-16 Chong Yidong <cyd@stupidchicken.com>
77
c10b2810
SM
78 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
79 Set garbaged flag in presence of window margins.
30603ba1
CY
80 (showing_window_margins_p): New function.
81
837751ae
CY
82 * xdisp.c (cursor_row_p): Only end row on newline if it's a
83 display string. Suggested by Lennart Borgman.
84
add3c3ea
YM
852007-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
86
87 * alloc.c (mem_insert): Set min_heap_address and max_heap_address
88 if they are not yet initialized.
89
bc4aed8f
CY
902007-04-15 Chong Yidong <cyd@stupidchicken.com>
91
92 * xdisp.c (redisplay_window): When deciding whether or not to
93 recenter, don't use the reset values of BEG_UNCHANGED and
94 END_UNCHANGED.
95
42587578
KS
962007-04-13 Kim F. Storm <storm@cua.dk>
97
98 * buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes
99 and check that buffer is still alive upon return.
100
19ee09cc
YM
1012007-04-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
102
103 * macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h.
104 (mac_screen_config_changed): New variable.
105 (mac_handle_dm_notification, init_dm_notification_handler)
106 (mac_get_screen_info): New functions.
107 [MAC_OS8] (main): Call init_dm_notification_handler.
108 (mac_initialize) [MAC_OSX]: Likewise.
109 (XTread_socket): Call mac_get_screen_info if screen config changed.
110 (mac_initialized): Make static.
111 (mac_initialize_display_info): Remove function.
42587578 112 (mac_term_init): Call mac_get_screen_info. Add partial contents of
19ee09cc
YM
113 mac_initialize_display_info.
114
2a953eae
YM
1152007-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
116
117 * mac.c (xrm_get_preference_database, Fmac_get_preference)
118 [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
119
120 * macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
121 Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
122 (mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
123 (mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
124 dpyinfo->width are those of whole screen.
125
63a4fc68
CY
1262007-04-10 Chong Yidong <cyd@stupidchicken.com>
127
128 * xdisp.c (note_mode_line_or_margin_highlight): Don't decrement
129 glyph pointer before start of glyph row.
130
82608dd9
YM
1312007-04-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
132
133 * s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
134 (C_SWITCH_SYSTEM): Remove `-I../mac/src'.
135
4c669c09
RS
1362007-04-09 Martin Rudalics <rudalics@gmx.at>
137
138 * indent.c (Fmove_to_column): Set next_boundary with correct start pt.
139
aa9c7852
RS
1402007-04-08 Richard Stallman <rms@gnu.org>
141
142 * xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
143
b1e553b4
CY
1442007-04-07 Chong Yidong <cyd@stupidchicken.com>
145
146 * editfns.c (Ftranspose_regions): Validate interval before setting
147 text properties.
148
06efaba2
EZ
1492007-04-03 Eli Zaretskii <eliz@gnu.org>
150
151 * emacs.c (main): Fix instructions for building Emacs for profiling.
152
0a194c92
JD
1532007-04-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
154
155 * gtkutil.c (xg_update_menubar): Call g_list_next after moving
156 menu bar item.
157
1a7de17e
JB
1582007-04-02 Juanma Barranquero <lekktu@gmail.com>
159
160 * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
161
50fcc399
CY
1622007-04-01 Chong Yidong <cyd@stupidchicken.com>
163
f8c9f4b1
CY
164 * keymap.c (Fcommand_remapping): New optional argument.
165 (where_is_internal): Use new keymaps argument.
166 (Fkey_binding): Caller changed.
167
168 * keyboard.c (command_loop_1): Caller changed.
50fcc399 169
89a4f43f
EZ
1702007-03-31 Eli Zaretskii <eliz@gnu.org>
171
172 * window.c (Fget_lru_window): Doc fix.
173
6cf1226a
CY
1742007-03-30 Chong Yidong <cyd@stupidchicken.com>
175
176 * undo.c (Fprimitive_undo): Give clearer error message when trying
177 to change text properties outside accessible part of buffer.
178
1acc2cac
KS
1792007-03-29 Kim F. Storm <storm@cua.dk>
180
181 * process.c (wait_reading_process_output) [HAVE_PTYS]:
182 When EIO happens, clear channel from descriptor masks before raising
183 SIGCHLD signal to avoid busy loop between read and sigchld_handler.
184 (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
185
cbf23adb
JB
1862007-03-29 Juanma Barranquero <lekktu@gmail.com>
187
ea4fddd8
JB
188 * buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.
189
cbf23adb
JB
190 * process.c (Fformat_network_address): Return nil when the
191 argument vector contains invalid values.
192
a0dd810b
YM
1932007-03-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
194
195 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
196 [USE_PTHREAD]: Include pthread.h.
197 (malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
198 (malloc_initialize_1): New function created from __malloc_initialize.
199 (__malloc_initialize): Use it.
200 (LOCK, UNLOCK): New macros to make malloc etc. thread safe.
201 (_malloc_internal, _free_internal, _realloc_internal): Use them.
202
203 * lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.
204
84e78f61
JB
2052007-03-27 Juanma Barranquero <lekktu@gmail.com>
206
207 * process.c (Fformat_network_address): Make args array big enough
208 to format IPv6 addresses.
209
6afdff63
GM
2102007-03-27 Glenn Morris <rgm@gnu.org>
211
212 * m/hp800.h: Restore HP-UX support (removed 2007-01-29).
213
b51065cf
YM
2142007-03-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
215
84e78f61
JB
216 * macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
217 screen size in pixels by millimeters per pixel of main display.
b51065cf 218
84e78f61
JB
219 * macselect.c (get_scrap_target_type_list, x_own_selection):
220 Move assignments outside predicate macros.
b51065cf
YM
221 (Vselection_converter_alist): Doc fix.
222
223 * macterm.c (create_text_encoding_info_alist): Move assignments
224 outside predicate macros.
225 (mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
226 dpyinfo->width are those of whole screen.
227
8f0e1e44
SS
2282007-03-26 Sam Steingold <sds@gnu.org>
229
230 * process.c (sigchld_handler): Delay by 1ms instead of 1s to
231 alleviate sluggishness (the original problem is still fixed).
232
aa95cbb5
KS
2332007-03-25 Kim F. Storm <storm@cua.dk>
234
235 * intervals.c (merge_properties): Use explicit loop instead of
236 Fplist_member to avoid QUIT. Don't use Fcdr.
237 (intervals_equal): Likewise. Rewrite loop to perform length check
238 on the fly rather than calling Flength. Don't use Fcar.
239
61880ffe
EZ
2402007-03-24 Eli Zaretskii <eliz@gnu.org>
241
242 * editfns.c (Fgoto_char): Doc fix.
243
244 * indent.c (Findent_to): Doc fix.
245
159f7bef
CY
2462007-03-24 Chong Yidong <cyd@stupidchicken.com>
247
248 * editfns.c (Ftranspose_regions): Use set_text_properties_1
249 instead of Fset_text_properties to avoid GC. Signal after change.
250
87c891c7
EZ
2512007-03-24 Eli Zaretskii <eliz@gnu.org>
252
253 * xfns.c (Fx_show_tip): Doc fix.
254
255 * macfns.c (Fx_show_tip): Doc fix.
256
257 * w32fns.c (Fx_show_tip): Doc fix.
258
be5ef8f0
KS
2592007-03-23 Kim F. Storm <storm@cua.dk>
260
261 * intervals.c (merge_properties, intervals_equal):
262 Use Fplist_member instead of Fmemq to find properties.
263
6afdff63
GM
2642007-03-23 Glenn Morris <rgm@gnu.org>
265
266 * unexhp9k800.c: Restore file with clarified legal status.
267 * m/sr2k.h: Restore since dependency unexhp9k800.c is restored.
268
96356799
CY
2692007-03-22 Chong Yidong <cyd@stupidchicken.com>
270
271 * widget.c (EmacsFrameSetCharSize): Catch X errors.
272
3ff2c161
KH
2732007-03-22 Kenichi Handa <handa@m17n.org>
274
275 * fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
276 non-encoded file name.
277 (Frename_file): Likewise.
278 (Fadd_name_to_file): Likewise.
279 (Fmake_symbolic_link): Likewise.
280
87f4728f
YM
2812007-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
282
283 * Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
284 (dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
285 (dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
286 systime.h.
287 (term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
288 systime.h.
289 (macfns.o): Remove duplicate dependency on systime.h.
290
291 * dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
292 (Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
293
294 * fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
295 (Fdo_auto_save): Add BLOCK_INPUT around fwrite.
296
297 * keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
298 (Fopen_dribble_file): Add BLOCK_INPUT around fclose.
299
300 * lread.c: Include blockinput.h.
301 (readchar, Fget_file_char): Add BLOCK_INPUT around getc.
302 (unreadchar): Add BLOCK_INPUT around ungetc.
303 (load_unwind): Add BLOCK_INPUT around fclose.
304
305 * print.c: Include blockinput.h.
306 (Fredirect_debugging_output): Add BLOCK_INPUT around fclose.
307
523fc433
JB
308 * process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
309 Clear immediate_quit before calling freeaddrinfo.
310 Add BLOCK_INPUT around freeaddrinfo.
87f4728f
YM
311
312 * term.c: Include blockinput.h.
313 (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
314
705959fc
RS
3152007-03-19 Richard Stallman <rms@gnu.org>
316
317 * keyboard.c (NUM_RECENT_KEYS): Bump up to 300.
318
319 * buffer.c (syms_of_buffer): Doc fix.
320
b55252e0
CY
3212007-03-18 Chong Yidong <cyd@stupidchicken.com>
322
323 * image.c (pbm_load): Signal error for invalid image size.
324
c601a8ed
YM
3252007-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
326
327 * macterm.c (note_mouse_movement): Don't return immediately for
328 LeaveNotify case.
329
330 * macmenu.c (popup_activated_flag): New variable.
331 (x_activate_menubar, mac_menu_show): Set it during menu tracking.
332 (popup_activated): New function.
333
84e78f61
JB
334 * xdisp.c (redisplay_internal, note_mouse_highlight):
335 Check popup_activated for MAC_OS.
c601a8ed 336
adbb3b05 3372007-03-17 Juanma Barranquero <lekktu@gmail.com>
e3a1ed3b 338
adbb3b05
JB
339 * buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
340 Reported by Nikolaj Schumacher <n_schumacher@web.de>.
e338790f 341
b7f51ebb
JB
3422007-03-17 Richard Stallman <rms@gnu.org>
343
705959fc 344 * dired.c (file_name_completion): gcpro NAME.
b7f51ebb 345
1c8f28b0
KS
3462007-03-17 Chong Yidong <cyd@stupidchicken.com>
347
348 * xdisp.c (try_window_id): Increment matrix positions if the
349 buffer's byte count has increased, but not the character count.
350
8b60f44c
CY
3512007-03-12 Andreas Schwab <schwab@suse.de>
352
353 * lisp.h: Declare check_obarray.
354
355 * process.c (Fdelete_process): Properly handle deletion of first
356 element of deleted_pid_list.
357 (create_process): Declare pid as pid_t.
358
46adc7a5
CY
3592007-03-12 Kim F. Storm <storm@cua.dk>
360
361 * process.c (sigchld_handler): Change type of pid to pid_t.
362 Scan deleted_pid_list explicitly to avoid using Fmember which don't
363 know about mark bits and make_fixnum_or_float which may malloc.
364 Reported by Andreas Schwab.
365
366 * keyboard.c (read_key_sequence): Store original event into keybuf
367 when replaying sequence with local keymap(s) from string.
368
7ad42042
GM
3692007-03-12 Glenn Morris <rgm@gnu.org>
370
371 * editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
372 savings" to "daylight saving").
373
ece29e38
SS
3742007-03-11 Sam Steingold <sds@gnu.org>
375
376 * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
377
c13ba385
YM
3782007-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
379
380 * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
381
5bc21f35
YM
3822007-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
383
adbb3b05
JB
384 * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
385 Ignore mouse wheel movement on title bar or tool bar.
5bc21f35 386
7469c0f9
CY
3872007-03-10 Chong Yidong <cyd@stupidchicken.com>
388
389 * keyboard.c (help_form_saved_window_configs): New var.
390 (read_char_help_form_unwind): New function.
391 (read_char): Don't restore window configuration if a mouse click
392 arrives while the help form is being displayed.
393
eebe9a29
KS
3942007-03-10 Kim F. Storm <storm@cua.dk>
395
396 * xdisp.c (redisplay_window): Don't automatically select a new window
397 start for a contination line during mouse-click.
398
a3a44a5a
JD
3992007-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
400
401 * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
402
49d92e9d
JB
4032007-03-09 Juanma Barranquero <lekktu@gmail.com>
404
405 * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
406
7d8d0914
RS
4072007-03-08 Richard Stallman <rms@gnu.org>
408
409 * keyboard.c (syms_of_keyboard): Doc fix.
410
b033f7a7
CY
4112007-03-08 Chong Yidong <cyd@stupidchicken.com>
412
413 * minibuf.c (Ftry_completion): Don't short circuit if
414 completion-ignore-case is non-nil.
415
7a844a76
YM
4162007-03-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
417
418 * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
419 Undo 2006-03-06 changes.
420
421 * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
422 bar if its width is smaller than that of Aqua small scroll bar.
423
d9d7b298
SM
4242007-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
425
426 * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
427 to handle correctly prompts with read-only property.
428
a28de257
JD
4292007-03-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
430
431 * sound.c (wav_play): Check header->data_length to see how much we
432 shall read.
433 (alsa_period_size): Convert ALSA period size in frames to bytes.
434 (alsa_write): Return if frames is zero.
435
15c2ffb2
KH
4362007-03-06 Kenichi Handa <handa@m17n.org>
437
438 * xselect.c (Vselection_coding_system): Documentation improved.
439
2d21c780
YM
4402007-03-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
441
442 * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
443 USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
444 (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if
445 internal border width has changed.
446
447 * macterm.h (struct mac_output): New member `internal_border_width'.
448
d89abe75
RS
4492007-03-04 Richard Stallman <rms@gnu.org>
450
451 * window.c (Fdisplay_buffer): Doc fix.
452
046c4413
CY
4532007-03-03 Glenn Morris <rgm@gnu.org>
454
455 * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
456 not include -lX11 on Solaris.
457
49d92e9d 4582007-03-02 Stuart D. Herring <herring@lanl.gov>
b9b26387 459
d9d7b298 460 * keymap.c (Fkey_binding): Don't consider one-element lists as events.
b9b26387 461
faa6ce91
KH
4622007-03-01 Kenichi Handa <handa@m17n.org>
463
464 * process.c (send_process_object): Check the process status and
465 signal an error if something is wrong.
466
f79b31db
CY
4672007-02-28 Chong Yidong <cyd@stupidchicken.com>
468
469 * insdel.c (Fcombine_after_change_execute): Return nil if
470 combine_after_change_buffer has been invalidated.
471
5f5a9e29
DN
4722007-02-25 Dan Nicolaescu <dann@ics.uci.edu>
473
474 * m/xtensa.h: New file.
475
d3332249
NR
4762007-02-24 Nick Roberts <nickrob@snap.net.nz>
477
478 * .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
479 as strings and not character arrays.
480
cd2e3962
YM
4812007-02-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
482
483 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
484 (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
485 scroll bar handle size in order to avoid `scroll backward' problem.
486 (x_scroll_bar_create, XTset_vertical_scroll_bar)
487 [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
488
d9d7b298
SM
489 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
490 New member `min_handle'.
cd2e3962 491
948f7516
KS
4922007-02-23 Kim F. Storm <storm@cua.dk>
493
494 * print.c (print): Reset print_number_index if Vprint_number_table
495 is nil.
496
617a6756
EZ
4972007-02-23 Eli Zaretskii <eliz@gnu.org>
498
499 * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
500 instead of strpbrk.
501
0efdda24
YM
5022007-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
503
504 * macmenu.c (mac_menu_show): Call unbind_to early. Use variable
505 `menu_item_selection' as in W32 version.
506 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
507 braces to avoid ambiguous `else'.
508
509 * macterm.c (mac_display_info_for_display): Remove function.
510 (mac_flush_display_optional) [USE_CG_DRAWING]: New function.
511 (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
512 flush_display_optional.
d9d7b298
SM
513 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
514 New argument MOUSE_POS. All uses changed. Set bar->dragging to
0efdda24 515 negative integer if scroll bar handle is pressed.
d9d7b298
SM
516 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
517 Negative bar->dragging means scroll bar handle is not dragged.
0efdda24
YM
518 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
519 offset of scroll bar handle from negative bar->dragging.
520 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
521 bar click is compared against mapped one. Set down/up_modifier
522 for scroll bar click event with control key.
523
524 * macterm.h (x_display_info_for_display): Remove extern.
525 (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
526 value to be unpacked to 32-bit on LP64 model.
527
8d4e7254
KH
5282007-02-23 Kenichi Handa <handa@m17n.org>
529
530 * process.c (send_process_object_unwind): New function.
531 (send_process_object): New function.
532 (Fprocess_send_region): Call send_process_object.
533 (Fprocess_send_string): Likewise.
534
904700a0
JR
5352007-02-22 Jason Rumney <jasonr@gnu.org>
536
2f028a74
JR
537 * w32menu.c (w32_menu_show): Mark the frame's menu as inactive
538 when popup menu finishes.
539
58e55497 540 * w32fns.c (menubar_in_use): New flag.
72a3a66a
JR
541 (w32_wnd_proc) [WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND]:
542 Use it.
543
a67b5c3d
JR
544 * w32menu.c (Fx_popup_menu): Don't free menu strings here.
545 (w32_menu_show): Do it here instead.
546
ca21600d
JB
547 * w32fns.c (w32_wnd_proc) [WM_INITMENU]: Set menubar_active frame
548 parameter.
90816b86 549
904700a0
JR
550 * w32menu.c (current_popup_menu): Make available globally.
551 (menubar_selection_callback): Free menu strings before pushing the
d9d7b298 552 menu event into the keyboard buffer. Remove menu_command_in_progress.
904700a0
JR
553
554 * w32fns.c (current_popup_menu): Use from w32menu.c.
90816b86
JR
555 (w32_wnd_proc) [WM_EXITMENULOOP, WM_TIMER]: Use menubar_active
556 and current_popup_menu to determine whether a menubar menu has
557 been cancelled.
904700a0
JR
558
559 * w32term.h (w32_output): Remove menu_command_in_progress.
560
d1eeefeb
KS
5612007-02-22 Kim F. Storm <storm@cua.dk>
562
563 * dispnew.c (update_frame, update_single_window): Set force_p here if
564 redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
565 (update_window, update_frame_1): ... instead of here.
e973477d 566 (update_text_area): Clear mouse face on header lines.
d1eeefeb 567
dfb1e36c
KS
5682007-02-21 Kim F. Storm <storm@cua.dk>
569
570 * minibuf.c (Fassoc_string): Doc fix. Allow symbol for KEY too.
571
d8506697
YM
5722007-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
573
574 * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
575 [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
576 `mapped_modifiers'.
577 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
578 Layout Services routines to get current Unicode keyboard layout.
579
864a4ae7
CY
5802007-02-20 Chong Yidong <cyd@stupidchicken.com>
581
ca21600d
JB
582 * frame.c (x_set_screen_gamma): Apply gamma value to the frame's
583 bgcolor.
864a4ae7 584
86dcc2c3
KS
5852007-02-19 Kim F. Storm <storm@cua.dk>
586
669b454d
KS
587 * minibuf.c (Fassoc_string): Allow symbols as keys.
588
86dcc2c3
KS
589 * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
590 handle while dragging, except when we get close to eob.
591 Fix position and size calculations so we don't scroll backwards
592 just by clicking on the handle.
593
bc23733a
YM
5942007-02-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
595
596 * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
597 [HAVE_CARBON]: Remove target.
598 (macosx-app) [HAVE_CARBON]: Don't depend on it.
599
ebf24b59
JB
6002007-02-17 Juanma Barranquero <lekktu@gmail.com>
601
602 * callproc.c (syms_of_callproc) <doc-directory>:
603 <configure-info-directory>:
604 (Fgetenv_internal): Fix typos in docstrings.
605
606 * doc.c (Fsubstitute_command_keys): Fix typo in docstring.
607
52b2c096
AS
6082007-02-16 Andreas Schwab <schwab@suse.de>
609
3b58be21
AS
610 * frame.c (Fmodify_frame_parameters): Return a value.
611
52b2c096
AS
612 * editfns.c (Fformat): Add support for '+' flag.
613 * doprnt.c (doprnt1): Likewise. Fix overflow checking.
614
44713939
CY
6152007-02-14 Chong Yidong <cyd@stupidchicken.com>
616
617 * s/umips.h: Unused file removed.
618
424f6998
JB
6192007-02-14 Juanma Barranquero <lekktu@gmail.com>
620
621 * xfaces.c (Fcolor_distance): Don't continue checking a color for
622 errors after it has been correctly parsed as an RGB list.
623
6dac214c
JD
6242007-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
625
626 * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
627
409d2613
YM
6282007-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
629
630 * macfns.c (Fx_focus_frame): Move current process to foreground if
631 it is not.
632 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
633 #ifdef MAC_OSX.
634 (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
635 Fmac_set_font_panel_visibility. All uses changed. Rename argument
636 VISIBLE to FLAG.
637
638 * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
639 (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
640 MakeMeTheFrontProcess.
641
09efb30a
CY
6422007-02-12 Chong Yidong <cyd@stupidchicken.com>
643
644 * frame.c (x_set_screen_gamma): Clear face cache.
645
550934c8
JB
6462007-02-11 Juanma Barranquero <lekktu@gmail.com>
647
648 * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
649 Reflow docstrings.
650
3570640e
EZ
6512007-02-10 Eli Zaretskii <eliz@gnu.org>
652
653 * window.c (Fwindow_height, Fwindow_hscroll)
654 (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
655 (Fwindow_end, Fwindow_display_table, Fwindow_text_height):
656 Document the effect of WINDOW arg being nil.
657
2b7ef867
KS
6582007-02-08 Kim F. Storm <storm@cua.dk>
659
660 * minibuf.c (read_minibuf): Fix 2007-01-30 change.
550934c8 661 Use Qlambda as interim value of Vminibuffer_completing_file_name.
ac6ee452 662 (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
2b7ef867
KS
663 (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
664
8b57a7fd
JB
6652007-02-07 Juanma Barranquero <lekktu@gmail.com>
666
667 * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
668 of $(ALL_DEPS).
669
f3d5bd22
EZ
6702007-02-07 Eli Zaretskii <eliz@gnu.org>
671
672 * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
673 put into $(BLD).
674
c9008e63
CY
6752007-02-06 Chong Yidong <cyd@stupidchicken.com>
676
677 * frame.c (Fmodify_frame_parameters): Don't bind
678 Qinhibit_default_face_x_resources, which has no effect.
679 (Qinhibit_default_face_x_resources): Symbol deleted.
680
77083ca3
EZ
6812007-02-03 Eli Zaretskii <eliz@gnu.org>
682
683 * indent.c (Fmove_to_column): Document that the argument COLUMN is
684 taken from prefix numeric argument.
685
191c4353
JB
6862007-02-03 Juanma Barranquero <lekktu@gmail.com>
687
688 * lread.c (syms_of_lread) <load-history>: Doc fix.
689
5e1a6e32
JB
6902007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
691
692 * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
693 Use the foreground color of the scroll-bar face when drawing
694 the scroll-bar's border.
1024f9c0 695
849bb789
JD
6962007-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
697
698 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
699 calling wm_supports.
700
099de390
JB
7012007-02-01 Juanma Barranquero <lekktu@gmail.com>
702
703 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
704 Wording by Eli Zaretskii.
705
0cba6386
JD
7062007-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
707
708 * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
709
25752d87
RS
7102007-01-30 Richard Stallman <rms@gnu.org>
711
712 * minibuf.c (read_minibuf):
713 Save and clear Vminibuffer_completing_file_name.
714 (read_minibuf_unwind): Restore it.
715 (Vminibuffer_completion_table, Qminibuffer_completion_table)
716 (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
717 (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
718 (Vminibuffer_completing_file_name): Definitions moved up.
719
956d1928
CY
7202007-01-29 Chong Yidong <cyd@stupidchicken.com>
721
722 * m/hp800.h: Restore, removing HP-UX support.
723
4abaeb50
JD
7242007-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
725
726 * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
727
d9380425
RS
7282007-01-28 Richard Stallman <rms@gnu.org>
729
730 * minibuf.c (Ftry_completion, Fall_completions)
731 (Fcompleting_read, Ftest_completion):
732 Rename arg ALIST or TABLE to COLLECTION.
733
b99e3557
CY
7342007-01-27 Chong Yidong <cyd@stupidchicken.com>
735
736 * unexhp9k800.c: Remove due to lack of legal papers.
737
738 * m/sr2k.h, m/hp800.h: Remove due to dependence on above.
739
4fda07c1
EZ
7402007-01-27 Eli Zaretskii <eliz@gnu.org>
741
65849ada
EZ
742 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
743
4fda07c1
EZ
744 * minibuf.c (Fcompleting_read): Doc fix.
745
aa4ff486
JD
7462007-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
747
cddb7844
JD
748 * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
749
aa4ff486
JD
750 * Makefile.in: Use XFT_LIBS if defined.
751
3fb8b536
YM
7522007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
753
ca21600d
JB
754 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
755 BLOCK_INPUT/UNBLOCK_INPUT.
3fb8b536
YM
756
757 * blockinput.h (interrupt_input_blocked): Declare volatile.
758
759 * keyboard.c (interrupt_input_blocked): Declare volatile.
760
761 * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
762
ff40b263
KS
7632007-01-24 Kim F. Storm <storm@cua.dk>
764
765 * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
766
9671c13a
JB
7672007-01-23 Juanma Barranquero <lekktu@gmail.com>
768
769 * editfns.c (Finsert_char): Doc fix.
770 (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
771
447466a5
YM
7722007-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
773
523fc433
JB
774 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
775 Don't pass keyboard modifiers to mac_store_drag_event, but put
776 them as kEventParamKeyModifiers Apple event parameter.
447466a5 777
64401adc
CY
7782007-01-21 Chong Yidong <cyd@stupidchicken.com>
779
780 * xdisp.c (try_window): Revert previous change.
781
782 * dispnew.c (update_text_area): Revert 2006-09-17 change.
783 Always redraw non-mode-line rows with mouse-face.
784
7d100727
CY
7852007-01-20 Chong Yidong <cyd@stupidchicken.com>
786
787 * xdisp.c (try_window): Clear mouse-face highlights first.
788
789 * window.c (set_window_buffer): Revert 2006-11-22 change.
790
4e251bd1
EZ
7912007-01-20 Eli Zaretskii <eliz@gnu.org>
792
793 * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
794 (xbuffer, xcons, xcar, xcdr): Fix doc strings.
795
25170427
CY
7962007-01-20 Chong Yidong <cyd@stupidchicken.com>
797
798 * keyboard.c (read_key_sequence): Extract local map only if the
799 given position is in an accessible buffer region.
800
acb38529
NR
8012007-01-19 Nick Roberts <nickrob@snap.net.nz>
802
803 * .gdbinit: Reformat documentation so that first sentence
804 displays properly with "help user-defined" (like apropos).
805
9671c13a 8062007-01-18 Bruno Haible <bruno@clisp.org> (tiny change)
4a75434a
CY
807
808 * epaths.in: Move PATH_DOC from local/info to local/share/info.
809
a35c8b70
YM
8102007-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
811
4e251bd1 812 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
a35c8b70 813 Create movable modal window instead of movable alert window.
4e251bd1
EZ
814 (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
815 of DisableControl.
a35c8b70
YM
816
817 * macselect.c (Fmac_resume_apple_event): Set error number when
818 descriptor type of reply is non-null.
819
28c96b4d
YM
8202007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
821
d9d7b298
SM
822 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
823 Use DisableControl for disabled items. Set default button to first
28c96b4d
YM
824 enabled one. Use icon of application in execution.
825
9bd1cd35
EZ
8262007-01-13 Eli Zaretskii <eliz@gnu.org>
827
9671c13a
JB
828 * process.c (Fdelete_process, Fprocess_id, sigchld_handler):
829 Copy PID into EMACS_INT to avoid GCC warnings.
d30fe779 830
9bd1cd35
EZ
831 * fns.c (maybe_resize_hash_table): Copy new size of hash table
832 into EMACS_INT to avoid GCC warnings.
833
834 * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
835 geteuid and getuid into EMACS_INT to avoid GCC warnings.
836
837 * dired.c (Ffile_attributes): Fix last change.
838
b55445d6
EZ
8392007-01-12 Eli Zaretskii <eliz@gnu.org>
840
841 * dired.c (Ffile_attributes): Copy some members of `struct stat'
842 into int's to avoid GCC warnings about limited range of short in
843 arguments to FIXNUM_OVERFLOW_P.
844
37370cea
YM
8452007-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
846
847 * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
848 (mac_handle_dialog_event, install_dialog_event_handler)
849 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
850 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
851 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
852 (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
853 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
854 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
855 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
856 (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
857 (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
858 (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
859
523fc433
JB
860 * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
861 Call mac_prepare_for_quickdraw.
37370cea
YM
862 (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
863 outside #ifdef MAC_OSX.
864 (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
865 outside #ifdef MAC_OSX.
866 (mac_check_bundle) [MAC_OSX]: Remove unused function.
867
868 * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
869 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
870
959dc601
JD
8712007-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
872
873 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
874 block/unblock SIGIO.
875
8b9ae6b0
SM
8762007-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
877
c5c6b2cc
SM
878 * editfns.c (Fformat): Allow integer-format to work with floats of size
879 larger than most-positive-fixnum (but still smaller than MAXINT).
880
8b9ae6b0
SM
881 * dired.c (Ffile_attributes): Use floats for large uids/gids.
882
c7ed3276
EZ
8832007-01-09 Eli Zaretskii <eliz@gnu.org>
884
885 * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
886
5d348d3f
YM
8872007-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
888
889 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
890 around mkstemp.
891
892 * image.c (XDrawLine) [MAC_OS]: Remove macro.
893 (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
894 (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
895 XCreateGC_pixmap.
896
897 * macgui.h (Display): Typedef to opaque type.
898
899 * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
900 (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
901 Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
8b9ae6b0
SM
902 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
903 Use mac_quit_char_key_p.
5d348d3f
YM
904
905 * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
906 (XCreateGC): Change type of 2nd argument to void *.
907 (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
908 Fix last change.
909 (mac_to_emacs_modifiers): Change return type to int.
910 [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
911 (mac_mapped_modifiers): New function.
912 (XTread_socket): Use it.
913 [USE_TSM] (mac_handle_text_input_event): Likewise.
914 (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
8b9ae6b0
SM
915 (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
916 Remove variables.
5d348d3f
YM
917 (mac_determine_quit_char_modifiers, init_quit_char_handler)
918 [MAC_OSX]: Remove functions.
919 (make_ctrl_char) [MAC_OSX]: Add extern.
920 (mac_quit_char_key_p) [MAC_OSX]: New function.
921 (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
922
923 * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
924 (XCreateGC): Change type in extern.
925 (XDrawLine): Rename from mac_draw_line_to_pixmap.
926 (mac_quit_char_key_p) [MAC_OSX]: Add extern.
927
287110f5
JD
9282007-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
929
4c180390
JD
930 * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
931 interrupt_input_pending.
932
287110f5
JD
933 * xterm.h (x_display_info): New: net_supported_atoms,
934 nr_net_supported_atoms and net_supported_window.
935
9671c13a 936 * xterm.c (last_user_time): New variable.
287110f5
JD
937 (handle_one_xevent): Set last_user_time from events that have Time.
938 Set net_supported_window to 0 when reparented.
939 (wm_supports): New function.
940 (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
941 (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
942 and net_supported_window.
943
5be70981
KS
9442007-01-05 Kim F. Storm <storm@cua.dk>
945
946 * indent.c (Fvertical_motion): Fix it overshoot check for overlay
947 strings without embedded newlines immediately followed by newline.
948
1675bac7
YM
9492007-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
950
951 * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
952 (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
953 gmtime/localtime/emacs_memftimeu/mktime.
954
955 * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
956 instead of 'EMAx'.
957 [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
958
959 * macgui.h (struct _XGC) [USE_CG_DRAWING
960 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
961 and cg_back_color.
962
963 * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
964 (restore_show_help_function, menu_target_item_handler)
965 [TARGET_API_MAC_CARBON]: New functions.
966 (install_menu_target_item_handler): New function.
967 (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
968 item property.
969
970 * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
971 (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
972 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
973 (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
974 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
975 (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
976 (mac_cg_color_black) [USE_CG_DRAWING
977 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
978 (init_cg_color) [USE_CG_DRAWING]: New function.
979 (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
980 CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
981 (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
982 (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
983 Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
984 CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
985 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
986 (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
5e1a6e32 987 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
1675bac7
YM
988 gc->cg_back_color.
989 (install_drag_handler, remove_drag_handler): Make extern.
990 (install_menu_target_item_handler): Add extern.
991 (install_window_handler): Call install_menu_target_item_handler.
992 [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
5be70981 993 (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
1675bac7
YM
994
995 * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
996
4c9564e8
JB
9972007-01-04 Juanma Barranquero <lekktu@gmail.com>
998
999 * window.c (Fwindow_end): Fix use of >= operator.
1000
c3295e7b
RS
10012007-01-03 Richard Stallman <rms@gnu.org>
1002
1003 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
1004
0c5e9b06
JD
10052007-01-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1006
1007 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
1008 unhighlight_id.
1009
1010 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
1011 parent of the menu item. Get menu item widget from event.
1012 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
1013 unhighlight_id has been removed.
1014 (create_menus): Connect enter/leave-notify-event to the menu instead
1015 of individual items.
1016
1e0fe298
JD
10172006-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1018
1019 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
1020 xg_tool_bar_menu_proxy.
1021 (xg_tool_bar_menu_proxy): New function.
1022 (xg_tool_bar_proxy_callback): New function.
1023
6e1440e6
JD
10242006-12-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1025
1026 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
1027 (xg_tool_bar_callback): Remove check for button.
1028 (update_frame_tool_bar): Put an event box in the tool bar and a button
1029 in the event box. Attach enter/leave-notify-event to the event box.
1030
dced1a73
RS
10312006-12-30 Richard Stallman <rms@gnu.org>
1032
1033 * keymap.c (Fdefine_key): Doc fix.
1034
05a699b6
KS
10352006-12-29 Kim F. Storm <storm@cua.dk>
1036
1037 * frame.h (struct frame): New member minimize_tool_bar_window_p.
1038
1039 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
1040 (Vauto_resize_tool_bars): ... this.
1041 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
1042 to describe new value `grow-only', and use of C-l.
1043 (display_tool_bar_line): Only use default face for border below
1044 toolbar if not grow-only (to get acceptable visual appearence).
1045 Explicitly set visible_height for empty toolbar lines.
1046 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
1047 minimize_tool_bar_window_p flag.
1048
1049 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
1050 when called without arg to redraw with minimum toolbar height.
1051 Update doc string.
1052
e37b3faf
JR
10532006-12-29 Jason Rumney <jasonr@gnu.org>
1054
1055 * s/ms-w32.h (tzname): Do not define in msvc8.
40c41924 1056 (utime): Do not define in msvc8.
e37b3faf
JR
1057
1058 * regex.c (regerror): Change parameter name err_code.
1059
dbb8dfc7
RS
10602006-12-26 Richard Stallman <rms@gnu.org>
1061
e817cc9b
RS
1062 * search.c (Fsearch_forward): Doc fix.
1063
dbb8dfc7
RS
1064 * callint.c (Finteractive): Doc fix.
1065
42f82ce7
KS
10662006-12-25 Kim F. Storm <storm@cua.dk>
1067
1068 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
1069
fa1f0a88
EZ
10702006-12-23 Eli Zaretskii <eliz@gnu.org>
1071
1072 * keyboard.c (some_mouse_moved): Fix last change.
1073
453027ac
EZ
10742006-12-22 Eli Zaretskii <eliz@gnu.org>
1075
1076 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
1077
b9542c10
EZ
10782006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
1079
1080 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
1081 * m/sh3el.h: New file.
1082
5e059fc1
EZ
10832006-12-22 Eli Zaretskii <eliz@gnu.org>
1084
ca21600d
JB
1085 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
1086 $(BLD).
5e059fc1
EZ
1087 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
1088 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
6808dce1 1089 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
f278d4a6 1090 (clean): Delete stamp_BLD.
5e059fc1 1091
2f0fd19a
YM
10922006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1093
8b9ae6b0
SM
1094 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
1095 Call mac_update_proxy_icon also when buffer modification flag changed.
2f0fd19a
YM
1096 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
1097 but compare FSRef/FSSpec of resolved alias.
1098
274fa194
KS
10992006-12-21 Kim F. Storm <storm@cua.dk>
1100
1101 * w32.c (_sys_wait_accept): Fix handle leak.
1102
7fb24298
JD
11032006-12-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1104
ca21600d
JB
1105 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
1106 defined.
7fb24298 1107
15d6777e
KS
11082006-12-20 Kim F. Storm <storm@cua.dk>
1109
1110 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
1111
209ceeef
JB
11122006-12-19 Juanma Barranquero <lekktu@gmail.com>
1113
1114 * keyboard.c (syms_of_keyboard) <double-click-time>:
1115 * mac.c (Fmac_code_convert_string):
1116 * search.c (Fsearch_forward): Doc fixes.
1117
36ff6d6f
KS
11182006-12-19 Kim F. Storm <storm@cua.dk>
1119
1120 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
1121 a sigusr1 event instead of [signal usr1] sequence, and signal events
1122 are now supposed to be handled via special-event-map.
1123
1124 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
1125 (make_lispy_event): Don't generate Qsignal prefix for code 0.
1126 Abort if signal code is unknown.
1127 (store_user_signal_events): Don't make Qsignal prefix (code 0).
1128 (Qsignal): Move declaration back to process.c.
1129 (syms_of_keyboard): Don't intern or staticpro it here.
1130
1131 * process.c (Qsignal): Declare here.
1132 (syms_of_process): Intern or staticpro it.
1133
1134 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
1135
1136 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
1137
6a28a84c
JB
11382006-12-19 Juanma Barranquero <lekktu@gmail.com>
1139
ebf24b59 1140 * buffer.c (syms_of_buffer) <buffer-display-table>:
6a28a84c
JB
1141 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
1142
294f1c39
RS
11432006-12-17 Richard Stallman <rms@gnu.org>
1144
1145 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
1146 to Ffile_name_completion.
1147
1148 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
6a28a84c 1149 (Ffile_name_completion): New arg PREDICATE.
294f1c39 1150
f6e22881
JB
11512006-12-17 Juanma Barranquero <lekktu@gmail.com>
1152
1153 * buffer.c (Fkill_buffer): Doc fix.
1154 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
1155
f03c1894
JB
11562006-12-16 Juanma Barranquero <lekktu@gmail.com>
1157
1158 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
1159
04afd01e
EZ
11602006-12-16 Eli Zaretskii <eliz@gnu.org>
1161
b58d0378
EZ
1162 * w32fns.c (w32-window-exists-p): New function.
1163 (syms_of_w32fns): Defsubr it.
1164
04afd01e
EZ
1165 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
1166
33202706
JB
11672006-12-16 Juanma Barranquero <lekktu@gmail.com>
1168
1169 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
1170
75036d1c
EZ
11712006-12-15 Eli Zaretskii <eliz@gnu.org>
1172
1173 * emacs.c (USAGE3): Clarify documentation of --color.
1174
e71b26ec
YM
11752006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1176
33202706
JB
1177 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
1178 New variable.
e71b26ec
YM
1179 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
1180 [!MAC_OSX] (select): Use them.
1181 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
1182 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
1183
1184 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
1185 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
1186 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
1187
8b9ae6b0
SM
1188 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
1189 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
e71b26ec
YM
1190
1191 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
1192 ATSUGetGlyphBounds if not necessary.
33202706 1193 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
e71b26ec
YM
1194 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
1195 (fm_get_style_from_font, atsu_find_font_from_family_name)
1196 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
1197 [USE_ATSUI]: New functions.
1198 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
1199 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
1200 Don't get metrics for Latin-1 right half characters.
1201 (mac_load_query_font): Don't load font if space width is not positive.
8b9ae6b0
SM
1202 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
1203 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
e71b26ec
YM
1204 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
1205
1206 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
1207
cbaa9c44
KS
12082006-12-15 Kim F. Storm <storm@cua.dk>
1209
1210 * keyboard.c (ignore_mouse_drag_p): New global var.
1211 (some_mouse_moved): Return 0 if it is non-zero.
1212 (make_lispy_event): Generate click event on mouse up if
1213 ignore_mouse_drag_p is non-zero, even if mouse moved.
1214 Clear ignore_mouse_drag_p on mouse down/up.
1215
1216 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
1217 is resized to avoid generating a mouse drag event.
1218
8a4c4c7f
JB
12192006-12-14 Juanma Barranquero <lekktu@gmail.com>
1220
1221 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
1222 minimum tracking size. Remove non-working old hack to do the same.
1223
b1c6aa6e
YM
12242006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1225
1226 * emacs.c (handle_user_signal): Move function to keyboard.c.
1227 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
1228
1229 * keyboard.c (make_lispy_event): Use find_user_signal_name.
1230 (read_avail_input): Store pending user signal events.
1231 (struct user_signal_info): New struct.
1232 (user_signals): New variable.
e71b26ec
YM
1233 (add_user_signal, store_user_signal_events)
1234 (find_user_signal_name): New functions.
b1c6aa6e
YM
1235 (handle_user_signal): Move function from emacs.c. Don't store
1236 USER_SIGNAL_EVENT here, but increment number of pending signals.
1237
1238 * keyboard.h (add_user_signals): Add extern.
1239
fc961256
JB
12402006-12-11 Juanma Barranquero <lekktu@gmail.com>
1241
1242 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
1243 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
1244 <line-spacing, left-margin>: Doc fixes.
1245
53d45a17
JB
1246 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
1247
df20dc2b
KS
12482006-12-10 Kim F. Storm <storm@cua.dk>
1249
1250 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
1251
28e86dc4
JB
12522006-12-10 Juanma Barranquero <lekktu@gmail.com>
1253
1254 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
1255 * buffer.c (syms_of_buffer) <default-major-mode>:
1256 * keymap.c (Flookup_key):
1257 * lread.c (Feval_buffer, Feval_region):
1258 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
1259 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
1260 * marker.c (Fmarker_insertion_type):
1261 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
1262 * msdos.c (syms_of_msdos) <delete-exited-processes>:
1263 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
1264 <x-underline-at-descent-line>:
1265 * xdisp.c (format-mode-line):
1266 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
1267 <x-underline-at-descent-line>: Doc fixes.
1268
64d962c1
AS
12692006-12-10 Andreas Schwab <schwab@suse.de>
1270
1271 * systime.h (EMACS_GET_TIME): Remove check for
1272 HAVE_STRUCT_TIMEZONE which is never defined.
1273
43726c05
AM
12742006-12-10 Alan Mackenzie <acm@muc.de>
1275
1276 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
1277 result is now neither the last elt nor optional for OLDSTATE.
1278
cbf9640e
EZ
12792006-12-09 Eli Zaretskii <eliz@gnu.org>
1280
1281 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
1282 extract the process ID from a Lisp float.
1283
3ca241e1
CY
12842006-12-09 Chong Yidong <cyd@stupidchicken.com>
1285
28e86dc4 1286 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
3ca241e1 1287
9e67e94f
EZ
12882006-12-08 Eli Zaretskii <eliz@gnu.org>
1289
1290 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
1291 platforms where long is 64-bit.
1292
1293 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
1294
28e86dc4 12952006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
a15fc3c3
CY
1296
1297 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
1298
65fa9a64
KH
12992006-12-08 Kenichi Handa <handa@m17n.org>
1300
1301 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
1302
b4963755
JB
13032006-12-08 Juanma Barranquero <lekktu@gmail.com>
1304
1305 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1306
f7a706cf
KS
13072006-12-07 Kim F. Storm <storm@cua.dk>
1308
1309 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
1310 (Fsignal_process): Don't use strncasecmp.
1311
da9109f7
GM
13122006-12-05 Glenn Morris <rgm@gnu.org>
1313
1314 * abbrev.c (Qforce): New Lisp_Object.
1315 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
1316 abbrevs, unless 'force is applied.
1317 (syms_of_abbrev): Add Qforce.
1318
5c35ec32
KS
13192006-12-04 Kim F. Storm <storm@cua.dk>
1320
55ba687b
KS
1321 * process.c (parse_signal): Rename macro from handle_signal.
1322 (Fsignal_process): Also accept lower-case variants of signal
1323 names (to align with signal names generated by Emacs itself).
1324
5c35ec32
KS
1325 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
1326 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
1327 first with code == 0 [signal] and one with code == sig number.
1328 (main): Use it as handler for SIGUR1 and SIGUSR2.
1329
1330 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
1331 if first event in [signal xxx] sequence.
1332 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
1333 (syms_of_keyboard): Don't intern and staticpro them.
9d8b24a2
KS
1334 (Qsignal): Declare here.
1335 (syms_of_keyboard): Intern and staticpro it.
1336 (make_lispy_event): Use it. Intern symbols on the fly for other
1337 USER_SIGNAL_EVENTs events.
5c35ec32
KS
1338
1339 * process.c (Qsignal): Declare extern.
9d8b24a2 1340 (syms_of_process): Don't intern/staticpro it here.
5c35ec32
KS
1341
1342 * process.c (read_process_output): Abort if carryover < 0.
1343
ee77eef5
YM
13442006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1345
1346 * config.in: Regenerate.
1347
1348 * fileio.c [__NetBSD__]: Don't define `unix'.
1349 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
1350 `#ifdef unix'.
1351
4a3363c5
GM
13522006-12-04 Glenn Morris <rgm@gnu.org>
1353
1354 * Makefile.in (version): New variable, set by configure.
1355 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
1356
a3893a90
JD
13572006-12-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1358
1359 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
1360 without an image.
1361
107fae8b
EZ
13622006-12-01 Eli Zaretskii <eliz@gnu.org>
1363
1364 * w32fns.c (Fw32_shell_execute): Doc fix.
1365
b88548b1
CY
13662006-11-30 Chong Yidong <cyd@stupidchicken.com>
1367
1368 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
1369 lines ending in tab.
1370
65dc67a9
JD
13712006-11-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1372
1373 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
1374 property ...
1375 (XTframe_raise_lower): ... to here.
1376
3aaab9a0
KH
13772006-11-30 Kenichi Handa <handa@m17n.org>
1378
1379 * regex.c (regex_compile): Fix previous change.
1380
c6605d63
JB
13812006-11-29 Juanma Barranquero <lekktu@gmail.com>
1382
1383 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
1384
1a52930b
CY
13852006-11-28 Chong Yidong <cyd@stupidchicken.com>
1386
1387 * config.in: Regenerate.
1388
6358f8b2
KH
13892006-11-28 Kenichi Handa <handa@m17n.org>
1390
1391 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
1392 multibyte character.
1393
55107ae5
CY
13942006-11-27 Chong Yidong <cyd@stupidchicken.com>
1395
2b8d8474 1396 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
55107ae5 1397
89692b9a
KS
13982006-11-27 Kim F. Storm <storm@cua.dk>
1399
1400 * window.c (set_window_buffer): Refactor recent changes.
1401
7e993c06
JR
14022006-11-27 Jason Rumney <jasonr@gnu.org>
1403
1404 * w32term.c (w32_msg_worker): Declare correctly.
1405 (w32_initialize): Don't cast w32_msg_worker.
1406
1407 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
1408
fb873e6b
CY
14092006-11-26 Chong Yidong <cyd@stupidchicken.com>
1410
1411 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
1412 directory exists.
1413
69a6e74d
EZ
14142006-11-25 Eli Zaretskii <eliz@gnu.org>
1415
1416 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
1417 as per the calling sequence change on 2006-07-11.
1418
d496cfc0
CY
14192006-11-25 Chong Yidong <cyd@stupidchicken.com>
1420
1421 * window.c (set_window_buffer): Use BLOCK_INPUT.
1422
5ee699a7
JB
14232006-11-24 Juanma Barranquero <lekktu@gmail.com>
1424
1425 * fns.c (substring_both): Add missing address operator.
1426
7edbb0da
SM
14272006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1428
1429 * fns.c: Use AREF/ASIZE macros.
1430 (concat): Provide the full ANSI prototype.
1431
96215ace
JB
14322006-11-24 Juanma Barranquero <lekktu@gmail.com>
1433
1434 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
1435
09566666
NR
14362006-11-23 William Smith <William.Smith@global360.com> (tiny change)
1437
609b291d 1438 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
09566666 1439
550934c8 14402006-11-22 Alfred M. Szmidt <ams@gnu.org> (tiny change)
6a022bd9
CY
1441
1442 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
1443 /usr/pkg/lib from the library search path.
1444 (LD_SWITCH_X_DEFAULT): New macro.
1445
63cb1543
CY
14462006-11-22 Chong Yidong <cyd@stupidchicken.com>
1447
1448 * window.c (set_window_buffer): Clear mouse highlight if it is in
1449 this window.
1450
ca612449
CY
14512006-11-21 Chong Yidong <cyd@stupidchicken.com>
1452
1453 * xfaces.c (realize_default_face): Check if the default font name
1454 exists on this display before trying to use it.
1455
a98d0b8e
RS
14562006-11-21 Richard Stallman <rms@gnu.org>
1457
1458 * fileio.c: Break line before &&, not after.
1459
1ce0a32d
EZ
14602006-11-20 Eli Zaretskii <eliz@gnu.org>
1461
1462 * fns.c (concat) [!__GNUC__]: Add prototype.
1463
565f08cd
KH
14642006-11-20 Kenichi Handa <handa@m17n.org>
1465
1466 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
1467 check the tailing slash of a filename.
1468
e15a0495
KH
14692006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
1470
1471 * indent.c (Fvertical_motion): Include composition in the case of
1472 overshoot expected.
1473
221439a0
AS
14742006-11-19 Andreas Schwab <schwab@gnu.org>
1475
7edbb0da 1476 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
221439a0
AS
1477
1478 * xmenu.c (Fx_popup_menu): Initialize selection.
1479
bcd7101a
AS
14802006-11-18 Andreas Schwab <schwab@suse.de>
1481
7edbb0da 1482 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
bcd7101a 1483
118ddbdd
JD
14842006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1485
1486 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
1487 to avoid gcc 2.96 error.
1488
347d9bbe
KH
14892006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
1490
1491 * search.c (simple_search): In the loop of backward searching,
1492 check also the byte position against the limit.
1493
d089c7a8
RF
14942006-11-14 Romain Francoise <romain@orebokech.com>
1495
1496 * minibuf.c (Fcompleting_read): Fix typo in docstring.
1497
1364f420
KH
14982006-11-14 Kenichi Handa <handa@m17n.org>
1499
7edbb0da 1500 * coding.c (code_convert_region): Initialize coding->heading_ascii.
1364f420
KH
1501 (decode_coding_string, code_convert_region): Likewise.
1502
9b150aa2
YM
15032006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1504
1505 * config.in: Regenerate.
1506
1507 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
1508 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1509 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1510 CGDisplayScreenSize is available.
1511
1512 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
1513 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
1514 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
1515 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1516 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1517 CancelMenuTracking is available.
1518
1519 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
1520 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1521 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1522 CGContextShowGlyphsWithAdvances is available.
1523
52dcc2d0
JR
15242006-11-13 Jason Rumney <jasonr@gnu.org>
1525
1526 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
1527
55a314a5
YM
15282006-11-13 Nozomu Ando <nand@mac.com>
1529
1530 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
1531 Fix address calculations for case END < START.
1532 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
1533
4cb8645c
JB
15342006-11-12 Juanma Barranquero <lekktu@gmail.com>
1535
1536 * coding.c (Fencode_sjis_char, Fencode_big5_char):
1537 Improve argument/docstring consistency.
1538
1539 * editfns.c (Fmessage): Doc fixes.
1540
1541 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
1542
b071677f
CY
15432006-11-12 Chong Yidong <cyd@stupidchicken.com>
1544
1545 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
1546
0924e3f6
RF
15472006-11-12 Romain Francoise <romain@orebokech.com>
1548
1549 * xselect.c (selection-coding-system): Fix docstring.
1550
947129a2
JB
15512006-11-12 Juanma Barranquero <lekktu@gmail.com>
1552
1553 * category.c (Fchar_category_set): Improve arg/docstring consistency.
1554
1555 * data.c (Flogxor):
1556 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
1557 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
1558 (Fstring_make_unibyte): Fix typos in docstrings.
1559
b8e7655f
JD
15602006-11-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1561
1562 * xterm.h (struct x_display_info): Fix indentation.
1563
1564 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
1565 (x_check_fullscreen): Call do_ewmh_fullscreen.
1566 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
1567
1568 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
1569
1570 * term.c: Define fullscreen_hook.
1571 (syms_of_term): Initialize fullscreen_hook to NULL.
1572
1573 * termhooks.h: Add fullscreen_hook.
1574
eed1152f
JB
15752006-11-08 Juanma Barranquero <lekktu@gmail.com>
1576
1577 * bytecode.c (Fbyte_code):
1578 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
1579
3dd428fa
JB
15802006-11-06 Juanma Barranquero <lekktu@gmail.com>
1581
1582 * lread.c (syms_of_lread):
1583 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
1584
e8407323
CY
15852006-11-06 Martin Rudalics <rudalics@gmx.at>
1586
1587 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1588
1589 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1590 Return nil if building without menus.
1591
1592 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1593 Return nil if building without menus.
1594
faefde36
RS
15952006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
1596
7edbb0da 1597 * s/netbsd.h (POSIX_SIGNALS): Define.
faefde36 1598
107709d4
EZ
15992006-11-05 Martin Rudalics <rudalics@gmx.at>
1600
1601 * macmenu.c (Fmenu_or_popup_active_p): New function.
1602 (syms_of_macmenu): Defsubr it.
1603
1604 * w32menu.c (Fmenu_or_popup_active_p): New function.
1605 (syms_of_w32menu): Defsubr it.
1606 (popup_activated_flag, popup_activated): Remove.
1607
1608 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
1609 check popup_activated.
1610
1611 * xmenu.c (Fmenu_or_popup_active_p): New function.
1612 (syms_of_xmenu): Defsubr it.
1613
c57038f8
YM
16142006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1615
1616 * unexmacosx.c (malloc_cookie): Remove unused variable.
1617 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
1618 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
1619 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
1620 (num_unexec_regions, unexec_regions): Make variables static.
1621 (print_regions, find_emacs_zone_regions): Make static.
1622 (unexec_region_info): New typedef.
1623 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
1624 All uses changed.
1625 (unexec_regions_recorder): Subtract size of trailing null pages from
1626 filesize. Show filesize.
1627 (unexec_regions_merge): Don't merge if null pages of preceding region
1628 is not too small. Use long format in printf.
1629 (copy_segment, copy_data_segment): Show filesize.
7edbb0da
SM
1630 (copy_data_segment): Write filesize bytes of region data.
1631 Adjust filesize in segment command accordingly.
c57038f8
YM
1632 (dump_it): Use long format in printf.
1633
60a294e2
JB
16342006-11-05 Juanma Barranquero <lekktu@gmail.com>
1635
1636 * dosfns.c (Finsert_startup_screen):
1637 * fns.c (Ffeaturep, syms_of_fns):
1638 * frame.c (syms_of_frame): Fix typos in docstrings.
1639
1640 * unexcw.c (unexec): Fix typo in output message.
1641
b20d6154
EZ
16422006-11-04 Ralf Angeli <angeli@caeruleus.net>
1643
1644 * w32fns.c (w32_createwindow): Remove code for handling -geometry
1645 command line option and `initial-frame-alist' which is superfluous
1646 after the last change to `w32_createwindow'.
1647
ccc54d96 16482006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
3ac04ed0 1649
ccc54d96
JB
1650 * w32proc.c (sys_wait): Only wait for processes with fd<0.
1651 Others should be handled by sys_select instead. Fixes problems
1652 with (progn (start-process "" nil "ls") (call-process "ls")).
3ac04ed0 1653
ccc54d96 16542006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
8630721e
CY
1655
1656 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
1657 avoid gcc 2.95 error.
1658
b20d6154 16592006-11-04 Chong Yidong <cyd@stupidchicken.com>
ffbdf67b
CY
1660
1661 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
1662 wicon is null, insert an empty button.
1663
45a26c42
JD
16642006-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1665
ca21600d
JB
1666 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
1667 window.
45a26c42 1668
b224de9b
JB
16692006-11-02 Juanma Barranquero <lekktu@gmail.com>
1670
1671 * emacs.c (Fkill_emacs): Fix typo in docstring.
1672
73da71f9
YM
16732006-11-02 Nozomu Ando <nand@mac.com>
1674
1675 * unexmacosx.c (mach_header, segment_command, vm_region, section)
1676 [_LP64]: New defines.
1677 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
1678 (MH_MAGIC) [_LP64]: Redefine.
1679 (delta): Remove variable.
1680 (curr_file_offset, pagesize): New variables.
1681 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
1682 (data_segment_old_fileoff): Initialize explicitly.
1683 (print_region, unexec_regions_recorder, print_load_command_name)
1684 (copy_segment, copy_data_segment): Use long format in printf.
1685 (MAX_UNEXEC_REGIONS): Increase to 400.
1686 (unexec_regions_recorder): Don't warn too many regions here.
1687 (find_emacs_zone_regions): Warn too many regions here.
1688 (print_load_command_name) [_LP64]: Show correct load command name.
1689 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
1690 Show starting virtual memory address. Don't show ending file offset.
1691 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
1692 (dump_it): Use new local variable `linkedit_delta' and pass to them.
1693 Error if trying to handle multiple DATA segments.
1694 (unexec): Initialize variable `pagesize'.
1695
ebc20ca0
JB
16962006-11-01 Juanma Barranquero <lekktu@gmail.com>
1697
1698 * eval.c (Fcatch): Doc fix.
1699
6ceb8058
YM
17002006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1701
1702 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
5e1a6e32 1703 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
6ceb8058
YM
1704 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
1705 (xpm_load_image): Add const qualifier to arguments.
1706 [MAC_OS] (xpm_color_key_strings): Make static const.
1707
1708 * mac.c (create_apple_event_from_event_ref)
1709 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
1710 (parse_include_file, parse_binding, parse_component)
1711 (parse_resource_name, parse_value, parse_resource_line)
1712 (xrm_merge_string_database, xrm_get_resource)
1713 (xrm_get_preference_database): Add const qualifier to arguments.
1714 [MAC_OSX] (sys_select): Make variable `context' static const.
1715
1716 * macfns.c (mac_color_map): Make static const.
1717 (mac_color_map_lookup): Add const qualifier to arguments.
1718
1719 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
1720 static const.
1721 (name_is_separator): Add const qualifier to arguments.
1722
ca21600d
JB
1723 * macselect.c (init_service_handler): Make variable `specs' static
1724 const.
6ceb8058
YM
1725
1726 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
1727 `swap_nibbles' static const.
1728 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
1729 `tags', `sizes', `values' static const.
7edbb0da
SM
1730 (mac_draw_string_common): Make variables `context' static.
1731 Make variables `tags', `sizes', and `values' static const.
6ceb8058
YM
1732 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
1733 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
1734 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
1735 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
1736 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
1737 qualifier to arguments.
1738 (xlfd_scalable_fields, keycode_to_xkeysym_table)
1739 (fn_keycode_to_keycode_table): Make static const.
1740 (mac_load_query_font): Make variables `tags', `sizes', `values',
1741 `types', and `selectors' static const.
7edbb0da
SM
1742 (mac_handle_command_event, mac_handle_window_event):
1743 Make variables `names' and `types' static const.
6ceb8058
YM
1744 (init_command_handler, install_window_handler): Make variables
1745 `specs*' static const.
1746 (mac_handle_font_event, mac_handle_text_input_event)
1747 (mac_store_service_event): Make variables `names' and `types'
1748 const. Make variables `names_*' and `types_*' static const.
1749
1750 * macterm.h (create_apple_event_from_event_ref)
1751 (create_apple_event_from_drag_ref, xrm_merge_string_database)
1752 (xrm_get_resource, xrm_get_preference_database): Add const
1753 qualifier to arguments in externs.
1754
7147863a
KH
17552006-10-31 Kenichi Handa <handa@m17n.org>
1756
1757 * xfns.c (xic_create_xfontset): Fix previous change.
1758
78667db7
CY
17592006-10-30 Chong Yidong <cyd@stupidchicken.com>
1760
1761 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
1762 /usr/pkg/lib to library search path.
1763
ebc20ca0 17642006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
8d31e373
CY
1765
1766 * ralloc.c (relinquish): Use a long for excess space counter to
1767 handle 64-bit case correctly.
1768
1dbfd8e3
CY
17692006-10-29 Jeramey Crawford <jeramey@jeramey.com>
1770
1771 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
1772
856bb2b0
JB
17732006-10-29 Juanma Barranquero <lekktu@gmail.com>
1774
1775 * window.c (Fdisplay_buffer): Fix typo in docstring.
1776
4975e695
JB
17772006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
1778
1779 * w32term.c (x_draw_glyph_string_foreground): Set background mode
1780 to TRANSPARENT before using overstrike to simulate bold faces.
1781
1782 * xfaces.c (best_matching_font): Fix logic to decide whether to
1783 use overstriking to simulate bold-face (it was reversed).
1784
cbfe778a
KS
17852006-10-23 Kim F. Storm <storm@cua.dk>
1786
ca21600d
JB
1787 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
1788 initialized.
a4614668 1789
cbfe778a
KS
1790 * keyboard.c (read_char): Make an element (t . EVENT) in
1791 unread-command-events add EVENT to the current command's key sequence.
1792 (syms_of_keyboard) <unread-command-events>: Update doc.
1793
627fb581
RS
17942006-10-21 Richard Stallman <rms@gnu.org>
1795
1796 * minibuf.c (Vread_expression_map): Define here.
1797 (Qread_expression_history): New variable.
1798 (syms_of_minibuf): Initialize them.
1799 (Feval_minibuffer): Use Vread_expression_map and
1800 Qread_expression_history.
1801
cd987aaa
KH
18022006-10-21 Kenichi Handa <handa@m17n.org>
1803
1804 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
1805 card, change it to "*".
1806 (xic_create_xfontset): Call XCreateFontSet for each single
1807 fontname in fontsetname.
1808
55b41ef5
CY
18092006-10-19 Chong Yidong <cyd@stupidchicken.com>
1810
1811 * callint.c (callint_message): Convert to a Lisp string.
1812 (syms_of_callint): Initialize it.
1813 (callint_message_size): Var deleted.
1814 (Fcall_interactively): Use Fformat instead of doprnt to construct
1815 prompt string.
1816
cc7aa8dc
KS
18172006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1818
1819 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
1820
045b1908
YM
18212006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1822
1823 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
1824 New variable.
1825 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
1826
866f8518
JD
18272006-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1828
1829 * xselect.c (x_handle_selection_request): If the converted_selection
14a56a1b 1830 is nil or XCDR (converted_selection) is nil, decline the request.
866f8518 1831
b43da352
JD
18322006-10-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1833
1834 * gtkutil.c (get_utf8_string): Remove warnings with casts.
7edbb0da 1835 (xg_tool_bar_button_cb): Ditto.
b43da352
JD
1836 (xg_tool_bar_callback): Ditto.
1837
7c682cf1
YM
18382006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1839
1840 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
1841 variable ch_dim.
1842 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
1843 menu bar window matrices on non-X systems.
1844
1845 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
1846
1847 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
1848 adjustment is needed.
1849 (mac_load_query_font): Check if width and height are positive.
1850
563964ae
RS
18512006-10-14 Richard Stallman <rms@gnu.org>
1852
1853 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
1854
98721beb
CY
18552006-10-13 Chong Yidong <cyd@stupidchicken.com>
1856
ca21600d
JB
1857 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
1858 title.
98721beb 1859
eae637ec
CY
18602006-10-12 Chong Yidong <cyd@stupidchicken.com>
1861
1862 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
1863 XCAR and XINT.
1864
431feaf6
RF
18652006-10-12 Romain Francoise <romain@orebokech.com>
1866
1867 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
1868
de9855d5
SM
18692006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
1870
b70e1a2b
SM
1871 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
1872
1873 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
1874
1875 * xterm.c (x_check_expected_move): Remove unused var `count'.
1876
de9855d5
SM
1877 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
1878 Fdefalias is not declared in any *.h file.
1879
394ccd7d
CY
18802006-10-09 Chong Yidong <cyd@stupidchicken.com>
1881
2bcac766
CY
1882 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
1883
1884 * keyboard.c (command_loop_1): Handle non-number values of
1885 `minibuffer-message-timeout'.
1886 (Fexecute_extended_command): Fix typo.
1887
394ccd7d
CY
1888 * minibuf.c (temp_echo_area_glyphs): Sit for
1889 `minibuffer-message-timeout' seconds.
1890
bb420759
YM
18912006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1892
de9855d5
SM
1893 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
1894 Add argument OVERSTRIKE_P.
bb420759
YM
1895 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
1896 Support overstrike.
1897 (mac_draw_string, mac_draw_string_16): Remove functions.
1898 (x_draw_glyph_string_foreground): Use overstrike when needed.
de9855d5
SM
1899 (x_draw_composite_glyph_string_foreground): Likewise.
1900 Use mac_draw_image_string_16 instead of mac_draw_string_16.
4975e695
JB
1901 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
1902 F instead of DPY. All uses changed. Don't save/restore font.
bb420759 1903
2770d589
JR
19042006-10-07 Ralf Angeli <angeli@caeruleus.net>
1905
1906 * w32fns.c (w32_createwindow): Honour left and top positions if
1907 supplied explicitly.
1908
ee37d135
KS
19092006-10-06 Kim F. Storm <storm@cua.dk>
1910
1911 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
1912
26c34ec2
CY
19132006-10-05 Chong Yidong <cyd@stupidchicken.com>
1914
1915 * frame.c (Qinhibit_face_set_after_frame_default): New var.
1916 (syms_of_frame): Initialize it.
1917 (x_set_frame_parameters): Avoid resetting :font attributes to the
1918 new-frame defaults.
1919
54dd3310
SM
19202006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
1921
1922 * lisp.h (clear_regexp_cache): Declare.
1923
1924 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
1925 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
1926 (clear_regexp_cache): Only flush those regexps which depend on
1927 a syntax-table.
1928
1929 * regex.c (regex_compile): Set the new `used_syntax' bit.
1930
1931 * regex.h: Remove file local variables.
1932 (struct re_pattern_buffer): New field `used_syntax'.
1933
73812be6
KS
19342006-10-03 Kim F. Storm <storm@cua.dk>
1935
1936 * process.c (list_processes_1): Run sentinels before removing dead
1937 processes. Also remove `closed' network connections.
1938
2201c41c
SM
19392006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1940
1941 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
1942
79e01e93
EZ
19432006-09-30 Eli Zaretskii <eliz@gnu.org>
1944
4975e695 1945 * config.in: Regenerated.
79e01e93 1946
f9df5f68
JL
19472006-09-29 Juri Linkov <juri@jurta.org>
1948
1949 * buffer.c (syms_of_buffer): Reorder coding systems in the
1950 docstring of %z to the real order displayed in the modeline.
1951
7ae8428d
SM
19522006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1953
1954 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
1955
14a7cabf
CY
19562006-09-26 Chong Yidong <cyd@stupidchicken.com>
1957
1958 * indent.c (Fvertical_motion): Do move back if the Lisp string
1959 being displayed contains newlines.
1960
444a42fd
YM
19612006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1962
1963 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
1964 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
1965
4ccaff67
KH
19662006-09-26 Kenichi Handa <handa@m17n.org>
1967
1968 * keymap.c (Fsingle_key_description): For an invalid char, return
1969 "Invalid char code NNNNN".
1970
2a95a27c
CY
19712006-09-25 Chong Yidong <cyd@stupidchicken.com>
1972
1973 * callint.c (Fcall_interactively): Doc fix.
1974
cf2c6835
YM
19752006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1976
1977 * macterm.c (x_underline_at_descent_line): New variable.
1978 (syms_of_macterm): DEFVAR_BOOL it.
1979 (x_draw_glyph_string): Use it.
1980 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
1981
173517c6
KH
19822006-09-25 Kenichi Handa <handa@m17n.org>
1983
1984 * keymap.c (Fsingle_key_description): Return unique names for
1985 generic characters.
1986
45c912f2
RS
19872006-09-24 Richard Stallman <rms@gnu.org>
1988
1989 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
1990
1133f8e7
EZ
19912006-09-24 Eli Zaretskii <eliz@gnu.org>
1992
de9855d5
SM
1993 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
1994 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
8f59d602
EZ
1995
1996 * w32proc.c (nl_langinfo): New function.
1997
1133f8e7
EZ
1998 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
1999 (w32-pass-lwindow-to-system, w32-enable-num-lock)
2000 (w32-enable-caps-lock, w32-scroll-lock-modifier)
2001 (w32-lwindow-modifier, w32-rwindow-modifier)
2002 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
2003
ba5524f4
JB
20042006-09-23 Juanma Barranquero <lekktu@gmail.com>
2005
2006 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
2007 (Fdisplay_completion_list): Fix typos in docstrings.
2008
47a0ee40
RF
20092006-09-23 Romain Francoise <romain@orebokech.com>
2010
2011 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
2012
5dfe789c
KH
20132006-09-23 Kenichi Handa <handa@m17n.org>
2014
ba5524f4 2015 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
5dfe789c 2016
4560a582
SM
20172006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
2018
2019 * regex.c (analyse_first): For eight-bit-control chars, mark both the
2020 char's value and its leading byte in the fastmap.
2021 (re_search_2): When fast-scanning without translation, be careful to
2022 check that we only match the leading byte of a multibyte char.
2023
2024 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
2025 byte sequence.
2026 (AT_CHAR_BOUNDARY): New macro.
2027
2e77924d
KH
20282006-09-22 Kenichi Handa <handa@m17n.org>
2029
2030 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
2031 whose default value is non-nil.
2032
66687b7c
JD
20332006-09-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2034
db4fd914 2035 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
782447bd
JD
2036 Gtk+ versions < 2.10.
2037
66687b7c
JD
2038 * xfns.c (syms_of_xfns): Fix typo in help text for
2039 x-gtk-file-dialog-help-text.
2040
b521ddce
KS
20412006-09-21 Kim F. Storm <storm@cua.dk>
2042
2043 * fns.c (Fmemq): Refill doc string.
2044 (Fmemql): New defun, like memq but using eql.
2045 (syms_of_fns): Defsubr it.
2046
d0e0bd5f
KS
20472006-09-20 Kim F. Storm <storm@cua.dk>
2048
2049 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
2050 last visible glyph in window.
2051
a4df1f8b 2052 * window.c (Fset_window_hscroll, Fwindow_line_height):
d0e0bd5f
KS
2053 Doc fix. Use "off-window" instead of "off-screen".
2054 (Fpos_visible_in_window_p): Likewise.
2055 If POS is t, return info for last visible glyph in window.
2056
b69e3c18
CY
20572006-09-19 Chong Yidong <cyd@stupidchicken.com>
2058
2059 * search.c (struct regexp_cache): New entry syntax_table.
2060 (compile_pattern_1): Set it.
2061 (syms_of_search): Initialize it.
2062 (compile_pattern): Require the syntax_table entry of the cache
2063 element to match the current syntax table entry.
2064
31790df3
SM
20652006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
2066
2067 * window.c (Fwindow_end): Fix recent change.
2068
06e6b4be
KS
20692006-09-19 Kim F. Storm <storm@cua.dk>
2070
2071 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
2072 Doc fix. Use "off-screen" instead of "invisible".
2073 (Fwindow_line_height): Make line numbers 0-based. Make line arg
2074 optional; if nil, use current cursor row. Handle text terminals
2075 properly. Return nil if non-interactive or pseudo-window.
2076
08e26e8b
SM
20772006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
2078
2079 * keymap.c: Include alloca.h if available.
2080 (Fkey_binding): Only use AREF after checking it's a vector.
2081 Remove unused var `window'.
2082
61973eb6
YM
20832006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2084
ca21600d
JB
2085 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
2086 inhibit_sentinels.
61973eb6
YM
2087
2088 * mac.c [!MAC_OSX] (select): Fix argument name.
2089
2090 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
2091 menu ID for Apple menu.
2092 (menubar_selection_callback): Remove function.
2093 (find_and_call_menu_selection): New function from xmenu.c.
2094 (x_activate_menubar): Use it.
2095 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
2096
2097 * macterm.c (menubar_selection_callback): Remove extern.
2098 (M_APPLE): Change to 234.
2099 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
2100 (do_menu_choice): Remove function.
2101
2102 * macterm.h (struct mac_output): Remove member menubar_active.
2103 (do_menu_choice): Remove extern.
2104 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
2105
1dd3c9b6
JD
21062006-09-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2107
1a2b3a9f
JD
2108 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
2109 x_gtk_file_dialog_help_text.
2110
1dd3c9b6
JD
2111 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
2112 to x-gtk-use-old-file-dialog.
1a2b3a9f
JD
2113 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
2114 x_gtk_file_dialog_help_text.
1dd3c9b6
JD
2115
2116 * xfns.c (syms_of_xfns): Ditto.
2117
661bdc06
KS
21182006-09-18 Kim F. Storm <storm@cua.dk>
2119
2120 * window.c (Fwindow_line_visibility): Remove.
2121 (Fwindow_line_height): New defun replacing it.
2122 (syms_of_window): Defsubr it.
2123
37228c38
YM
21242006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2125
2126 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
2127 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
2128
a688d8b5
JB
21292006-09-17 Jay Belanger <belanger@truman.edu>
2130
2131 * gmalloc.c:
2132 * md5.c:
2133 * md5.h:
2134 * strftime.c: Replace "GNU Library General Public License" by "GNU
2135 General Public License" throughout.
2136
059fd1a1
KS
21372006-09-17 Kim F. Storm <storm@cua.dk>
2138
2139 * dispnew.c (update_text_area): Undo 2000-07-18 change.
2140 Always redrawing whole row if line has mouse-face in it causes
2141 excessive flickering of the mode line.
2142
e5b94d44
CY
21432006-09-17 Chong Yidong <cyd@stupidchicken.com>
2144
2145 * search.c (clear_regexp_cache): New function.
2146
2147 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
2148
241ad3ca
JD
21492006-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2150
31790df3
SM
2151 * gtkutil.c (xg_get_file_with_chooser):
2152 Check x-gtk-show-chooser-help-text before adding the help text.
fbce5860
JD
2153
2154 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
2155
241ad3ca
JD
2156 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
2157 will simply crash if we fail.
2158
6875fe9a
RS
21592006-09-16 Richard Stallman <rms@gnu.org>
2160
2161 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
2162
0c9337fb
KS
21632006-09-15 Kim F. Storm <storm@cua.dk>
2164
2165 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
2166 (syms_of_window): Defsubr it.
2167 (Fwindow_end): Use window's buffer rather than current buffer.
2168
45a2056c
JB
21692006-09-15 Jay Belanger <belanger@truman.edu>
2170
2171 * COPYING: Replace "Library Public License" by "Lesser Public
2172 License" throughout.
2173
b74e16a3
DK
21742006-09-15 David Kastrup <dak@gnu.org>
2175
de9855d5 2176 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
b74e16a3
DK
2177
2178 * keymap.c: include "window.h".
2179 (Fcommand_remapping): New optional POSITION argument.
2180 (Fkey_binding): New optional POSITION argument. Completely rework
2181 handling of mouse clicks to get the same order of keymaps as
2182 `read-key-sequence' and heed POSITION. Also temporarily switch
2183 buffers to location of mouse click and back.
2184
2185 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
2186 for additional argument.
ca21600d
JB
2187 (parse_menu_item): Adjust call of `Fkey_binding' for additional
2188 argument.
b74e16a3
DK
2189 (read_key_sequence): If there are both `local-map' and `keymap'
2190 text properties at some buffer position, heed both.
2191
2192 * keymap.h: Declare additional optional arguments of
2193 `Fcommand_remapping' and `Fkey_binding'.
2194
6cb66a31
JB
21952006-09-15 Juanma Barranquero <lekktu@gmail.com>
2196
2197 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
2198
cd3587c1
AS
21992006-09-14 Andreas Schwab <schwab@suse.de>
2200
2201 * print.c: Whitespace fixup.
2202
84be646f
KS
22032006-09-14 Kim F. Storm <storm@cua.dk>
2204
2205 * xdisp.c (produce_image_glyph): Automatically crop wide images at
2206 right window edge so we can draw the cursor on the same row to
2207 avoid confusing redisplay by placing the cursor outside the visible
2208 window area.
2209
856bb2b0 22102006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
98a20c65
CY
2211
2212 * xterm.c (x_initialize): Don't install Xt event timer here.
2213 (x_timeout_atimer_activated_flag): New var.
2214 (x_activate_timeout_atimer): New function to install Xt timer.
2215 (x_send_scroll_bar_event, x_process_timeouts): Use it.
2216
2217 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
2218 (create_and_show_popup_menu, create_and_show_dialog): Use it.
2219
2371cbe9 2220 * xterm.h (x_activate_timeout_atimer): Add prototype.
98a20c65 2221
efb15f96
RS
22222006-09-13 Richard Stallman <rms@gnu.org>
2223
2224 * print.c (print_string): When printcharfun is t,
2225 copy string contents and call strout on the copy.
2226
2227 * keyboard.c (read_char): If end_time specified, don't put the
2228 event into this_command_keys.
2229 (read_key_sequence): If Voverriding_terminal_local_map is specified,
2230 don't check Voverriding_local_map at all.
2231
1baa749c 22322006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
52c0f270
CY
2233
2234 * textprop.c (Fnext_property_change, Fnext_single_property_change)
2235 (Fprevious_property_change, Fprevious_single_property_change):
2236 Avoid changing limit, so we can correctly catch the case where the
2237 property is constant up to limit.
2238
eee81f5d
YM
22392006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2240
2241 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2242 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2243 Undo 2006-09-08 change.
2244
91197db4
CY
22452006-09-11 Chong Yidong <cyd@stupidchicken.com>
2246
2247 * keymap.c (Fkey_binding): Use string position for string objects.
2248
83279b3e
KS
22492006-09-11 Kim F. Storm <storm@cua.dk>
2250
9a71d7de
KS
2251 * keymap.c (Fkey_binding): Fix last change.
2252
83279b3e
KS
2253 * editfns.c (Fmessage): Recommend using (message "%s" ...).
2254
b067ddb6
CY
22552006-09-10 Chong Yidong <cyd@stupidchicken.com>
2256
ca21600d
JB
2257 * keymap.c (Fkey_binding): Check for local keymap for mouse click
2258 events.
b067ddb6 2259
322dd254
KS
22602006-09-10 Kim F. Storm <storm@cua.dk>
2261
606fd469
KS
2262 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
2263 and Vunread_post_input_method_events.
2264
322dd254
KS
2265 * dispnew.c (Fredisplay): Document return value.
2266
437b2a15
JD
22672006-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2268
2269 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
2270
2271 * gtkutil.c (xg_display_close): Always change default display if needed,
2272 check for < Gtk+ version 2.10 before calling gdk_display_close.
2273
6eeee4d6
YM
22742006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2275
eee81f5d
YM
2276 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
2277 Make variable `ofds' static. Remove variable `maxfd'.
6eeee4d6 2278
6cb66a31
JB
2279 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
2280 Call check_mac.
6eeee4d6 2281
eee81f5d 2282 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
6cb66a31
JB
2283 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
2284 Apply 2006-09-08 change for xmenu.c.
6eeee4d6 2285
d7b1ea44 2286 * xfns.c (Fx_file_dialog): Call check_x.
6eeee4d6 2287
f90660aa
KS
22882006-09-10 Kim F. Storm <storm@cua.dk>
2289
2290 * xdisp.c (get_window_cursor_type): Use hollow cursor on
2291 non-transparent images.
2292
c048d606
EZ
22932006-09-09 Eli Zaretskii <eliz@gnu.org>
2294
2295 * editfns.c (Fsystem_name): Mention "host" in the doc string.
2296 (syms_of_editfns) <system-name>: Likewise.
2297
f4cfdbbe 22982006-09-08 Martin Rudalics <rudalics@gmx.at>
92b23323 2299
4560a582 2300 * xdisp.c (mouse_autoselect_window): Remove.
92b23323
CY
2301 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
2302
2303 * dispextern.h (mouse_autoselect_window): Remove extern.
2304 (Vmouse_autoselect_window): Add extern.
2305
2306 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
2307 instead of mouse_autoselect_window.
2308
2309 * msdos.c (dos_rawgetc): Likewise.
2310
2311 * w32term.c (w32_read_socket): Likewise.
2312
2313 * xterm.c (handle_one_xevent): Likewise.
2314
d799329b
RS
23152006-09-08 Richard Stallman <rms@gnu.org>
2316
af09dd78
RS
2317 * xdisp.c (Vmenu_updating_frame): Define here.
2318 (syms_of_xdisp): DEFVAR it here.
2319 (update_menu_bar): Always return hooks_run.
2320 Set Vmenu_updating_frame.
c989bc87 2321
af09dd78
RS
2322 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
2323 before calculating SELECTED_FRAME.
2324
2325 * xmenu.c (Vmenu_updating_frame): Don't define here.
2326 (syms_of_xmenu): Don't DEFVAR it here.
2327
2328 * xterm.c (x_error_quitter): For BadName error, just return.
2329
d799329b
RS
2330 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
2331
2332 * casetab.c (init_casetab_once): Call set_case_table.
2333
2334 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
2335
2336 * process.c (inhibit_sentinels): New variable.
2337 (exec_sentinel): Test inhibit_sentinels.
2338 (init_process): Initialize it.
2339
2340 * process.h (inhibit_sentinels): Add decl.
2341
2342 * search.c (looking_at_1, string_match_1, search_command):
2343 Make syntax table's canon table point to eqv table.
2344
bcdbfd36
AS
23452006-09-08 Andreas Schwab <schwab@suse.de>
2346
2347 * print.c (strout): Fix whitespace.
2348
70c6267a
KS
23492006-09-08 Kim F. Storm <storm@cua.dk>
2350
2351 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
2352
9deaefb7
YM
23532006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2354
2355 * mac.c [!MAC_OSX]: Don't include keyboard.h.
2356 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
2357 in the same BLOCK_INPUT block, in case that some input has already
2358 been read asynchronously. Pretend to be interrupted by a signal
2359 if some input is available.
2360 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
2361 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
2362 Now used for ReceiveNextEvent timeout instead of select timeout.
2363 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
2364 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
2365 support. Quit event loop.
2366 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
2367 connect support. Reuse previously allocated CFRunLoopSource.
2368 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
2369 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2370
2371 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2372 Specify kWindowAsyncDragAttribute.
2373
2374 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
2375 (mac_get_ideal_size): New functions.
2376 (x_set_offset, x_set_window_size, x_make_frame_visible)
2377 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
2378 (install_window_handler, mac_handle_window_event)
2379 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
2380 kEventWindowBoundsChanged.
ca21600d
JB
2381 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
2382 DragWindow.
70c6267a 2383
d7695a63
AS
23842006-09-07 Andreas Schwab <schwab@suse.de>
2385
2386 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
2387 use lib64 instead of lib.
2388
be9b5a60
SM
23892006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
2390
2391 * Makefile.in: Avoid double quotes when possible.
2392
04e28558
KH
23932006-09-06 Kenichi Handa <handa@m17n.org>
2394
2395 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
2396 a Lisp string from the result of emacs_memftimeu call.
2397
902f06ed
KS
23982006-09-06 Kim F. Storm <storm@cua.dk>
2399
2400 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
f90660aa
KS
2401 so calculate heights even when pos-visible-in-window-p is called
2402 with partially = t. Don't overshoot last_visible_y in move_it_to.
2403 Return row height and row number in new rowh and vpos args.
2404 (cursor_row_fully_visible_p): First line is always "fully visible".
902f06ed
KS
2405 (try_window): Don't clear matrix if vscrolled.
2406
2407 * lisp.h (pos_visible_p): Update prototype.
2408
2409 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
2410 Return row height and row number for partially visible rows.
647b07d1
AS
2411 Modify return value to a 2 element list for fully visible rows and
2412 6 for partially visible row.
902f06ed 2413 (window_scroll_pixel_based): Use pos_visible_p directly instead of
647b07d1
AS
2414 Fpos_visible_in_window_p. Fix auto vscrolling for partially
2415 visible lines. Only vscroll backwards if already vscrolled
2416 forwards. Unconditionally vscroll forwards if PT is first (and
2417 only) line. Set new window start instead of scrolling at
2418 start/end of tall line.
902f06ed 2419
750a6cf4
YM
24202006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2421
2422 * macterm.c (install_window_handler, mac_handle_window_event)
2423 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
2424 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
2425 ASCII keystroke event.
2426
ae6c1c19
JD
24272006-09-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2428
2429 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
2430 the file chooser message. Only call gtk_file_chooser_set_current_name
2431 when action is SAVE.
2432
5aa17bb2
AS
24332006-09-04 Andreas Schwab <schwab@suse.de>
2434
2435 * Makefile.in: Double all single and back quotes in C-style
2436 comments to help fontifier.
2437
934db434
JR
24382006-09-03 Jason Rumney <jasonr@gnu.org>
2439
2440 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
2441 (globals_of_w32): Register it as a signal handler.
2442
6a8c7cfe
JL
24432006-09-02 Juri Linkov <juri@jurta.org>
2444
2445 * marker.c (Fmarker_position): Doc fix.
2446
5c4aaa79
EZ
24472006-09-03 Eli Zaretskii <eliz@gnu.org>
2448
2449 * window.c (syms_of_window) <split-height-threshold>:
2450 <window-min-height, window-min-width>: Doc fix.
2451
655ea21c
JD
24522006-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2453
4f3097d8
JD
2454 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
2455 for writing files. Call gtk_file_chooser_set_current_name to keep
2456 default filename.
2457
655ea21c
JD
2458 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
2459
79f6ba1f
EZ
24602006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
2461
ca21600d
JB
2462 * fns.c (concat) [__GNUC__]: Declare with
2463 `__attribute__((noinline))'.
79f6ba1f
EZ
2464
2465 * eval.c (apply1, call2) [__GNUC__]: Declare with
2466 `__attribute__((noinline))'.
2467
ebc80ddf
EZ
24682006-09-02 Stuart D. Herring <herring@lanl.gov>
2469
2470 * minibuf.c (Finternal_complete_buffer): New function.
2471 (syms_of_minibuf): Defsubr it.
2472 (Fread_buffer): Use it, instead of Vbuffer_alist.
2473
5deb7a51 24742006-09-01 Martin Rudalics <rudalics@gmx.at>
3e145152 2475
5deb7a51
RF
2476 * buffer.h (struct buffer_text): New field chars_modiff.
2477 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
2478 * buffer.c (Fbuffer_chars_modified_tick): New function returning
2479 value of BUF_CHARS_MODIFF.
2480 (syms_of_buffer): Defsubr it.
2481 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
2482 * insdel.c (modify_region): New argument preserve_chars_modiff.
2483 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
2484 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
2485 (adjust_after_replace, adjust_after_replace_noundo)
2486 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
2487 * lisp.h (modify_region): Add fourth argument in extern.
2488 * casefiddle.c (casify_region): Call modify_region with fourth
2489 argument zero to assert that CHARS_MODIFF is updated.
2490 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
2491 (Ftranspose_regions): Likewise.
2492 * textprop.c (Fadd_text_properties, Fset_text_properties)
2493 (Fremove_text_properties, Fremove_list_of_text_properties):
2494 Call modify_region with fourth argument 1 to avoid that
2495 CHARS_MODIFF is updated.
3e145152 2496
80e0572b
RS
24972006-08-31 Richard Stallman <rms@gnu.org>
2498
2499 * editfns.c (Fformat): Don't sign-extend for %o or %x.
2500
41d24b39
CY
25012006-08-29 Chong Yidong <cyd@stupidchicken.com>
2502
2503 * indent.c (Fvertical_motion): Don't move back if we were
2504 displaying a Lisp string, either.
2505
62d108d4
KS
25062006-08-28 Kim F. Storm <storm@cua.dk>
2507
2508 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
2509 Don't attempt to replace cursor on image glyphs.
2510
c6f8bb3a
KH
25112006-08-28 Kenichi Handa <handa@m17n.org>
2512
523fc433
JB
2513 * coding.c (Fdetect_coding_region, Fdetect_coding_string):
2514 Fix docstring about ISO-2022 control characters.
c6f8bb3a 2515
7b9c9125
KS
25162006-08-28 Kim F. Storm <storm@cua.dk>
2517
2518 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
2519 with a hollow box cursor if image is larger than 32x32 (or the default
2520 frame font if that is bigger). Replace any other cursor on images
2521 with hollow box cursor, as redisplay doesn't support bar and hbar
2522 cursors on images.
2523
eb411049
YM
25242006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2525
2526 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
2527 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
2528
2529 * dired.c (directory_files_internal_unwind, directory_files_internal)
2530 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
2531
2532 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
2533 of OSErr.
2534
2535 * keyboard.c (in_sighandler): Remove variable.
2536 (Fcurrent_idle_time): Add missing `doc:'.
2537 (input_available_signal, init_keyboard): Undo previous change.
2538
2539 * keyboard.h (in_sighandler): Remove extern.
2540
2541 * mac.c (create_apple_event_from_event_ref, select)
2542 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
2543 (Fmac_set_file_type, cfstring_create_normalized)
6cb66a31
JB
2544 (mac_get_system_locale, select_and_poll_event, sys_select):
2545 Use OSStatus instead of OSErr.
eb411049 2546
6cb66a31
JB
2547 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
2548 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
eb411049
YM
2549 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
2550
2551 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
2552 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
2553 (get_scrap_private_timestamp, get_scrap_target_type_list)
2554 (x_own_selection, x_get_foreign_selection)
2555 (Fx_disown_selection_internal, Fx_selection_owner_p)
2556 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
2557
2558 * macterm.c (mac_draw_string_common, mac_query_char_extents)
2559 (x_iconify_frame, XLoadQueryFont, install_window_handler)
2560 (mac_handle_command_event, init_command_handler, init_menu_bar):
2561 Use OSStatus instead of OSErr.
ca21600d
JB
2562 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
2563 FRAME_FILE_NAME.
eb411049
YM
2564 (x_query_font): Apply 2006-08-04 change for xterm.c.
2565 (Qhi_command): Rename from Qhicommand. All uses changed.
2566
ca21600d
JB
2567 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
2568 file_name.
eb411049
YM
2569 (FRAME_FILE_NAME): Remove macro.
2570 (install_window_handler, create_apple_event_from_event_ref):
2571 Return OSStatus instead of OSErr.
2572
d489b9c5
KS
25732006-08-26 Kim F. Storm <storm@cua.dk>
2574
2575 * buffer.c (Fset_buffer_multibyte):
2576 * editfns.c (Fcurrent_time, Fget_internal_run_time):
2577 * macfns.c (Fxw_color_values):
2578 * w32fns.c (Fxw_color_values):
2579 * xfns.c (Fxw_color_values): Simplify; use list3.
2580
2581 * fileio.c (Fmake_directory_internal, Fdelete_directory)
2582 (Fdelete_file): Simplify; use list1.
2583 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
2584 Simplify; remove NO_ARG_ARRAY stuff, use list2.
2585
24d8984e
RS
25862006-08-25 Richard Stallman <rms@gnu.org>
2587
2588 * buffer.c (Fswitch_to_buffer): Fix previous change.
2589
16fb6ded
KS
25902006-08-25 Kim F. Storm <storm@cua.dk>
2591
2592 * keyboard.c (Fcurrent_idle_time): Simplify.
2593
3e04a8fc
RS
25942006-08-25 Richard Stallman <rms@gnu.org>
2595
2596 * fns.c (sxhash_string): Rotate properly; don't lose bits.
2597
8d8dafeb
KS
25982006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
2599
2600 * xdisp.c (overline_margin): New variable.
2601 (x_produce_glyphs): Use it.
2602 (syms_of_xdisp): DEFVAR_INT it.
2603
2604 * xterm.c (x_underline_at_descent_line): New variable.
2605 (syms_of_xterm): DEFVAR_BOOL it.
2606 (x_draw_glyph_string): Use it.
2607 Draw underline and overline up to the end of line if the face
2608 extends to the end of line.
2609
2610 * macterm.c: Likewise.
2611
2612 * w32term.c: Likewise.
2613
26142006-08-24 Nick Roberts <nickrob@snap.net.nz>
6410aac9
NR
2615
2616 * buffer.c (Fswitch_to_buffer): Move buffer to front of
2617 buffer-alist if necessary.
2618
6b4d8762
KS
26192006-08-22 Kim F. Storm <storm@cua.dk>
2620
2621 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
2622 number of items changes.
2623
7e1de68d
KS
26242006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
2625
2626 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
2627
f73858ce
JD
26282006-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2629
2630 * keyboard.c: Clarify difference between in_sighandler and
2631 handling_signal.
2632
c58790e6
KS
26332006-08-21 Kim F. Storm <storm@cua.dk>
2634
2635 * macterm.c (x_draw_stretch_glyph_string):
2636 * w32term.c (x_draw_stretch_glyph_string):
2637 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
5e1a6e32 2638 stretch glyph in left marginal areas on header and mode lines.
c58790e6 2639
748726f4
KH
26402006-08-21 Kenichi Handa <handa@m17n.org>
2641
2642 * keyboard.c (syms_of_keyboard): Docstring of
ca21600d
JB
2643 Vunread_post_input_method_events and Vunread_input_method_events
2644 fixed.
748726f4 2645
c5b76d6c
CY
26462006-08-20 Chong Yidong <cyd@stupidchicken.com>
2647
2648 * keyboard.c (show_help_echo): Preserve mouse movement flag if
2649 tracking mouse.
2650
ce629713
RS
26512006-08-20 Richard Stallman <rms@gnu.org>
2652
2653 * xfaces.c (load_pixmap): Add quotes in error message.
2654
2655 * keyboard.c (Fcurrent_idle_time): New function.
2656 (syms_of_keyboard): defsubr it.
2657
454e31b3
NR
26582006-08-18 Nick Roberts <nickrob@snap.net.nz>
2659
2660 * window.c (Fset_window_fringes): Do nothing on a tty.
2661 (Fwindow_fringes): Put ? operator after the line break.
2662
dae581bf
AS
26632006-08-16 Andreas Schwab <schwab@suse.de>
2664
2665 * print.c (debug_output_compilation_hack): Fix return type.
2666
3cb74cd1
RS
26672006-08-16 Richard Stallman <rms@gnu.org>
2668
2669 * print.c (debug_output_compilation_hack): New function.
2670
29cbc482
KH
26712006-08-16 Kenichi Handa <handa@m17n.org>
2672
2673 * fileio.c (choose_write_coding_system): Use LF for end-of-line
2674 in auto-saving.
2675
3236e6b8
CY
26762006-08-15 Chong Yidong <cyd@stupidchicken.com>
2677
2678 * keyboard.c (read_char): Don't change idle timer state at all if
2679 end_time is supplied.
2680
8db1f9fa
KH
26812006-08-15 Kenichi Handa <handa@m17n.org>
2682
2683 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
2684 is exhausted, return with RET.
2685 (detect_coding_emacs_mule, detect_coding_iso2022)
2686 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
ca21600d
JB
2687 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
2688 change.
8db1f9fa 2689
70282fce
CY
26902006-08-14 Chong Yidong <cyd@stupidchicken.com>
2691
2692 * keyboard.c (read_char): Don't reset idle timers if a time limit
2693 is supplied.
2694
9bdc2a5d
KS
26952006-08-14 Kim F. Storm <storm@cua.dk>
2696
2697 * .gdbinit (pitx): Print iterator position.
2698 Limit stack dump in case iterator is not initialized.
2699
e6b8d662
EZ
27002006-08-12 Eli Zaretskii <eliz@gnu.org>
2701
2702 * frame.c (Fmouse_position, Fmouse_pixel_position)
2703 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
2704
0c584069
JD
27052006-08-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2706
2707 * xselect.c (Fx_register_dnd_atom): New function.
2708 (syms_of_xselect): Defsubr it.
9bdc2a5d 2709 (x_handle_dnd_message): Check that message_type is in
0c584069
JD
2710 dpyinfo->x_dnd_atoms before generating lisp event.
2711
2712 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
2713 of drag and drop Atoms.
2714
2715 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
2716
abef1dd7
JD
27172006-08-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2718
2719 * keyboard.c: Define in_sighandler.
2720 (input_available_signal): Set in_sighandler.
2721 (init_keyboard): Initialize in_sighandler.
2722
2723 * keyboard.h: Declare in_sighandler.
2724
2725 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
2726 to check if mutex should be locked or not.
2727
c2028ac6
RS
27282006-08-09 Richard Stallman <rms@gnu.org>
2729
2730 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
2731 (read_key_sequence): Always start fkey.start and fkey.end at 0,
2732 and likewise for keytran.
2733
bb0825cb
KH
27342006-08-09 Kenichi Handa <handa@m17n.org>
2735
2736 * coding.c (syms_of_coding): Improve the docstring
1a7de17e 2737 of file-coding-system-alist.
bb0825cb 2738
61486999
AS
27392006-08-07 Andreas Schwab <schwab@suse.de>
2740
2741 * puresize.h (BASE_PURESIZE): Increase to 1120000.
2742
43ed3b8d
CY
27432006-08-06 Chong Yidong <cyd@stupidchicken.com>
2744
2745 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
2746 (Fkill_all_local_variables): Use it.
2747 (syms_of_buffer): Defvar it.
2748
6b657e42
EZ
27492006-08-05 Eli Zaretskii <eliz@gnu.org>
2750
0a3297f7
EZ
2751 * w32.c (w32_valid_pointer_p): New function.
2752
2753 * w32.h: Add prototype for w32_valid_pointer_p.
2754
2755 * alloc.c: Include w32.h.
2756 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
2757 the job.
2758
6b657e42
EZ
2759 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
2760 is exactly equal to end_time, not only when it is past that.
2761
092869b9
CY
27622006-08-04 Chong Yidong <cyd@stupidchicken.com>
2763
2764 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
2765
2766 * process.c: Reapply 2006-08-01 change.
2767
3046c3f9
EZ
27682006-08-04 Eli Zaretskii <eliz@gnu.org>
2769
2770 * w32fns.c (w32_query_font): Fix last change: use stricmp.
2771
0f2e2a3b
SM
27722006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2773
2774 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
2775 the before-change-functions since they may have altered the buffer.
2776
316a275a
EZ
27772006-08-04 Ralf Angeli <angeli@caeruleus.net>
2778
2779 * w32fns.c (w32_createwindow): Handle -geometry command line option
2780 and the geometry settings in the Registry.
2781
ef8f7cdd
KH
27822006-08-04 Kenichi Handa <handa@m17n.org>
2783
6f64cebf
KH
2784 * w32fns.c (w32_query_font): Compare names by ignoring case.
2785
ef8f7cdd
KH
2786 * xterm.c (x_query_font): Compare names by ignoring case.
2787
f3e0a6de
JR
27882006-08-03 Jason Rumney <jasonr@gnu.org>
2789
2790 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
2791 when no option selected.
2792
d634a670
CY
27932006-08-03 Chong Yidong <cyd@stupidchicken.com>
2794
2795 * process.c: Revert last change.
2796
0885202f
KS
27972006-08-01 Kim F. Storm <storm@cua.dk>
2798
2799 * process.c (wait_reading_process_output_unwind): New function.
2800 Restores waiting_for_user_input_p to saved value.
2801 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
2802 instead of save/restore old value on stack.
2803
0f42ea76
TTN
28042006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
2805
2806 * editfns.c: Undo 2006-06-27 change.
2807
69666f77
EZ
28082006-07-29 Eli Zaretskii <eliz@gnu.org>
2809
cfb37af8
EZ
2810 * coding.c (Ffind_operation_coding_system): Revert the change from
2811 2006-05-29.
2812
69666f77
EZ
2813 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
2814
0de8dcc9
RS
28152006-07-28 Richard Stallman <rms@gnu.org>
2816
0f42ea76 2817 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
0de8dcc9
RS
2818 Add conditional aborts for clarity.
2819
2820 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
2821 Used to avoid running the hooks over and over for each frame.
2822 (prepare_menu_bars): Pass value from update_menu_bar
2823 as HOOKS_RUN of next call.
2824
2825 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
2826
4dbdb9eb
KS
28272006-07-28 Kim F. Storm <storm@cua.dk>
2828
2829 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
2830 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
2831
2f1950bf
CY
28322006-07-26 Chong Yidong <cyd@stupidchicken.com>
2833
2834 * keyboard.c (read_char): New arg END_TIME specifying timeout.
2835 All callers changed. Turn off echoing if END_TIME is non-NULL.
2836 (kbd_buffer_get_event): New arg END_TIME.
2837
2838 * lread.c (read_filtered_event): New arg SECONDS to wait until.
2839 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
2840
2841 * lisp.h: Update read-char, read-event, and read_filtered_event
2842 prototypes.
2843
2844 * keyboard.h: Include systime.h. Update read_char prototype.
2845
55a90501
YM
28462006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2847
2848 * alloc.c (find_string_data_in_pure): New function.
2849 (make_pure_string): Use it to reuse existing string data if possible.
2850
2851 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
2852
2db8f173
SM
28532006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
2854
2855 * keymap.c (Fdefine_key): If the key binding definition looks like an
2856 XEmacs-style key sequence, convert it to Emacs's format.
2857
272f22eb
EZ
28582006-07-22 Ralf Angeli <angeli@caeruleus.net>
2859
ca21600d
JB
2860 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
2861 parameters are bound to some values, use that instead of
2862 CW_USEDEFAULT.
272f22eb 2863
69b72317
EZ
28642006-07-21 Eli Zaretskii <eliz@gnu.org>
2865
2866 * w32.c (convert_time): Use explicit long double constants to
2867 ensure long double arithmetics is used throughout.
2868
14eee502
YM
28692006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2870
5e1a6e32 2871 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
14eee502
YM
2872 (init_alloc_once): Initialize them.
2873 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
2874 without alignment.
2875
2876 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
2877
eeeda6f1
KS
28782006-07-18 Francis Litterio <franl@world.std.com>
2879
2880 * w32term.c (x_calc_absolute_position): Fix frame positioning
2881 with negative X/Y coordinates.
2882
2381d38d
DN
28832006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
2884
2885 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
2886
2887 * textprop.c (text_read_only): Likewise.
2888
2889 * lread.c (end_of_file_error): Likewise.
2890
2891 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
2892 Likewise.
2893
2894 * eval.c (unwind_to_catch): Likewise.
2895
2896 * buffer.h (buffer_slot_type_mismatch): Likewise.
2897
5b5fca28
KS
28982006-07-18 Kim F. Storm <storm@cua.dk>
2899
2900 Cleanup Fsignal calls that never returns; now only use it for Qquit.
2901
2902 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
2903 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
2904 (signal_error): New no-return function (from xfaces.c).
2905 (Fthrow): Use xsignal2 instead of Fsignal + abort.
2906 (error): Use xsignal1 instead of Fsignal + abort.
2907 (FletX, Flet, grow_specpdl): Use signal_error.
2908 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
2909
6cb66a31 2910 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
5b5fca28
KS
2911 (list1): New function.
2912
2913 * lisp.h (list1): Add EXFUN.
2914 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
2915 Add prototypes. Mark them as no-return.
2916
2917 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
2918 Use xsignal1.
2919
2920 * callint.c (check_mark): Use xsignal0.
2921
2922 * casefiddle.c (casify_object): wrong_type_argument is no-return.
2923
2924 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
2925
2926 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
2927 (Fdefine_coding_system_internal): Use xsignal1.
2928
2929 * data.c (circular_list_error): Use xsignal.
2930 (wrong_type_argument): Use xsignal2. Don't care about return value.
2931 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
2932 Remove loop around Fsignal.
2933 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
2934 (indirect_function, Findirect_function, Fstring_to_number)
2935 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
2936 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
2937 Use xsignal0.
2938
2939 * doc.c (Fdocumentation): Use xsignal1.
2940
2941 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
2942
2943 * fileio.c (report_file_error): Use xsignal.
2944 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
2945 (Finsert_file_contents): Use xsignal2.
2946 (syms_of_fileio): Use list2, list3.
2947
2948 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
2949 (range_error2, domain_error2): Use xsignal3.
2950 (rounding_driver, fmod_float): Use xsignal0.
2951 (float_error): Use xsignal1.
2952 (matherr): Use xsignal.
2953
2954 * fns.c (Flength): wrong_type_argument is no-return.
2955 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
2956 (Fmd5): Use xsignal1.
2957
2958 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
2959
2960 * keyboard.c (recursive_edit_1): Use xsignal1.
2961
2962 * keymap.c (Fmap_keymap): Use xsignal1.
2963
2964 * lread.c (Fload): Use xsignal2, signal_error.
2965 (end_of_file_error): Use xsignal0, xsignal1.
2966 (read0): Use xsignal1.
2967 (invalid_syntax): New error function marked no-return.
2968 (read_integer, read1, read_list): Use it.
2969
2970 * macselect.c (x_get_local_selection): Use signal_error.
2971
2972 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
2973
2974 * search.c (compile_pattern_1): Use xsignal1.
2975 (signal_failure): Remove (was only called once).
2976 (search_command): Use xsignal1 instead of signal_failure.
2977
2978 * syntax.c (scan_lists): Use xsignal3.
2979
2980 * textprop.c (text_read_only): Use xsignal0, xsignal1.
2981
2982 * unexsol.c (unexec): Use xsignal.
2983
2984 * window.c (window_scroll_pixel_based, window_scroll_line_based):
2985 Use xsignal0.
2986
2987 * xfaces.c (signal_error): Move to eval.c.
2988 (resolve_face_name): Use xsignal1.
2989
2990 * xfns.c (x_decode_color): Use signal_error.
2991
2992 * xselect.c (x_get_local_selection, copy_multiple_data)
2993 (x_get_window_property_as_lisp_data)
2994 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
2995 (Fx_get_cut_buffer_internal): Use signal_error.
2996
d3f31bc5
YM
29972006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2998
2999 * macterm.c (XTread_socket): Undo previous change.
3000
1e53bd0e
YM
30012006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3002
3003 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
3004 directly lookup keycode_to_xkeysym_table.
3005 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
3006 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
3007 (XTread_socket): Use character codes to construct keypad key events.
3008 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
3009 (x_delete_display): Apply 2006-07-04 change for xterm.c.
3010
0de8dcc9
RS
30112006-07-17 Richard Stallman <rms@gnu.org>
3012
3013 * keyboard.c (Vcommand_error_function): New variable.
3014 (syms_of_keyboard): Defvar it.
3015 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
3016
3017 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
3018
55dc982c
KS
30192006-07-17 Kim F. Storm <storm@cua.dk>
3020
3021 * xdisp.c (handle_single_display_spec): Ensure the right value of
3022 it->position is saved by push_it.
3023 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
3024 (reseat_1): Don't setup it->object twice.
3025 (set_iterator_to_next): No need to set it->object after pop_it.
3026 (move_it_to): Explicitly check to see if last move reached to_charpos.
3027
ce7d5efe
TTN
30282006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
3029
3030 * xdisp.c (display_mode_line): Preserve match data.
3031
d753d9b7
KS
30322006-07-14 Kim F. Storm <storm@cua.dk>
3033
3034 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
3035 (init_winsock): Load them. Use ws2_32.dll.
3036 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
3037 (sys_accept): Undo last change. Instead, set child status to
3038 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
3039 sys_select will wakeup the reader thread.
3040 (_sys_wait_accept): New function used by reader thread to wait for
3041 an incoming connection on a server socket.
3042
3043 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
3044
3045 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
3046 server socket (FILE_LISTEN flag).
3047
dcc88121
JD
30482006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3049
3050 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
3051
8a8476f9
KS
30522006-07-14 Kim F. Storm <storm@cua.dk>
3053
3054 * w32.c: Fix high cpu load for server sockets.
3055 (pfn_WSAEventSelect): New function ptr.
3056 (init_winsock): Load it.
3057 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
3058 char_avail event object to FD_ACCEPT.
3059 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
3060 socket's char_avail event object to FD_READ|FD_CLOSE.
3061
3062 * w32.h (FILE_LISTEN): New filedesc flag value.
3063
f3500bbe
KS
30642006-07-13 Kim F. Storm <storm@cua.dk>
3065
3066 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
3067 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
3068 Simplify loops and use CAR for Bnth and Belt.
3069
3070 * data.c (Findirect_function): Optimize for no indirection.
3071
3072 * eval.c (Fthrow): Remove loop around Fsignal.
3073 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
3074 Use original function name in all signaled errors.
3075 Simplify Fsignal calls (no return).
3076 (funcall_lambda): Simplify Fsignal calls (no return).
3077
60c86a83
AS
30782006-07-13 Andreas Schwab <schwab@suse.de>
3079
3080 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
3081 out_charpos.
3082
d40ec4a0
KH
30832006-07-13 Kenichi Handa <handa@m17n.org>
3084
3085 * editfns.c (Fformat): Fix calculation of text property positions
3086 of format string.
3087
b8a6aaa7
KS
30882006-07-12 Kim F. Storm <storm@cua.dk>
3089
3090 * lisp.h (CHECK_TYPE): New macro for generic type checking.
3091 (CAR_SAFE, CDR_SAFE): New macros.
3092 (ARRAYP, CHECK_ARRAY): New macros.
3093 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
3094 (CHECK_WINDOW_CONFIGURATION): New macro.
3095 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
3096 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
3097 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
3098 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
3099 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
3100 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
3101 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
3102 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
3103
3104 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
3105 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
3106
3107 * callint.c (Fcall_interactively):
3108 * casefiddle.c (casify_object):
3109 * editfns.c (general_insert_function):
3110 * fns.c (Flength, Felt, Ffillarray):
3111 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
3112
3113 * data.c (wrong_type_argument): Remove loop around Fsignal.
3114 (Farrayp, Fsequencep): Use ARRAYP.
3115 (Fcar): Use CAR.
3116 (Fcar_safe): Use CAR_SAFE.
3117 (Fcdr): Use CDR.
3118 (Fcdr_safe): Use CDR_SAFE.
3119 (Fsetcar, Fsetcdr): Use CHECK_CONS.
3120 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
3121 (Faset): Use CHECK_ARRAY.
3122
3123 * fns.c (Felt): Use CHECK_ARRAY.
3124 (concat): Use CHECK_NUMBER.
3125 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
3126 (Fmemq): Use CHECK_LIST.
3127 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
3128 (assq_no_quit): Use CAR_SAFE.
3129 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
3130 Use CHECK_LIST_CONS.
3131 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
3132
3133 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
3134
3135 * casetab.c (check_case_table):
3136 * category.c (check_category_table):
3137 * marker.c (Fcopy_marker):
3138 * syntax.c (check_syntax_table):
3139 * xfaces.c (load_pixmap): Use CHECK_TYPE.
3140
3141 * fns.c (Fcopy_sequence, concat):
3142 * fringe.c (Fdefine_fringe_bitmap):
3143 * lread.c (check_obarray): Cleanup wrong_type_argument use.
3144
e55deb0b
KS
3145 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
3146
b8a6aaa7
KS
3147 * keymap.c (Fdefine_key, Flookup_key):
3148 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
3149
3150 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
3151
3152 * search.c (Fset_match_data): Use CHECK_LIST.
3153
3154 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
3155
3156 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
3157 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
3158
099d4201
YM
31592006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3160
3161 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
3162
3163 * dired.c: Include blockinput.h.
3164 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
3165
3166 * editfns.c: Include blockinput.h.
3167 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
3168 getpwuid/getpwnam.
3169
3170 * fileio.c: Include blockinput.h.
3171 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
3172 around getpwnam.
3173 (search_embedded_absfilename): Remove spurious xfree.
3174
2e42ee7b
KS
31752006-07-11 Kim F. Storm <storm@cua.dk>
3176
3177 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
3178 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
3179 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
8e09f23f 3180 Signal error if TIMEOUT is not a number.
2e42ee7b
KS
3181 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
3182 The rework of sit_for args also fixes several incorrect Qt args
3183 which should have been 1.
3184 (Fredisplay): Pass 1 instead of Qt to swallow_events and
3185 detect_input_pending_run_timers.
3186
3187 * lisp.h (sit_for): Update prototype.
3188 (Fredisplay): Add EXFUN.
3189
3190 * dispextern.h (sit_for): Remove prototype.
3191
3192 * callint.c (Fcall_interactively):
3193 * minibuf.c (temp_echo_area_glyphs):
3194 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
3195 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
3196
a0aa7fcf
SM
31972006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
3198
3199 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
3200
ff97f952
KS
32012006-07-11 Kim F. Storm <storm@cua.dk>
3202
68ade564 3203 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
ff97f952
KS
3204 input is available. Fix test for redisplay_dont_pause non-nil.
3205 Specbind redisplay-dont-pause to t if FORCE non-nil.
3206
7ba07a1a
CY
32072006-07-10 Chong Yidong <cyd@stupidchicken.com>
3208
3209 * puresize.h (BASE_PURESIZE): Increment to 1211000.
3210
3211 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
3212 (Fsit_for): Function deleted.
3213
a0aa7fcf
SM
3214 * keyboard.c (command_loop_1, Fexecute_extended_command):
3215 Call sit_for instead of Fsit_for.
7ba07a1a
CY
3216
3217 * minibuf.c (temp_echo_area_glyphs): Likewise.
3218
2312c580
SM
32192006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
3220
3221 * syntax.c (Fforward_comment): Revert the reversion.
932e6895 3222 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
2312c580 3223
bf88ca63
JPW
32242006-07-09 John Paul Wallington <jpw@pobox.com>
3225
3226 * syntax.c (Fforward_comment): Revert previous change.
3227
08b17d37
KS
32282006-07-09 Kim F. Storm <storm@cua.dk>
3229
3230 * window.c (Fforce_window_update): Doc fix.
3231
26816cbf
SG
32322006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
3233
3234 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
3235 directory unreadable for better user privacy.
3236
4332cf50
SM
32372006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
3238
dd9f0dcd
SM
3239 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
3240
4332cf50
SM
3241 * lread.c (read_filtered_event): Remove `register' qualifier because it
3242 causes compilation problem with gcc-4.0.2-20051125 on amd64.
91fe9496
SM
3243 (readevalloop): Remove unused var `bpos'.
3244 Yet another int/Lisp_Object mixup (YAILOM).
4332cf50 3245
dfb4bff5
EZ
32462006-07-07 Eli Zaretskii <eliz@gnu.org>
3247
3248 * keyboard.c (Fexecute_extended_command): Mention the argument
3249 PREFIXARG in the doc string.
3250
efaed3b0
KS
32512006-07-07 Kim F. Storm <storm@cua.dk>
3252
3253 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
3254
e2e6e4d2
CY
32552006-07-05 Chong Yidong <cyd@stupidchicken.com>
3256
234fb773
CY
3257 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
3258 clash detection using the base buffer.
3259
e2e6e4d2
CY
3260 * puresize.h (BASE_PURESIZE): Increment to 1210500.
3261
e128be55
KS
32622006-07-04 Kim F. Storm <storm@cua.dk>
3263
3264 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
3265
2462bc66
KH
32662006-07-04 Kenichi Handa <handa@m17n.org>
3267
3268 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
3269 to update Voverriding_fontspec_alist.
3270
9ca24617
RS
32712006-07-03 Richard Stallman <rms@gnu.org>
3272
3273 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
3274
3275 * xfaces.c (Fface_attribute_relative_p): Doc fix.
3276
3277 * textprop.c (Fget_char_property_and_overlay): Doc fix.
3278
3279 * eval.c (Fdefvaralias): Doc fix.
3280
d8ab3c6d
KS
32812006-07-03 Kim F. Storm <storm@cua.dk>
3282
3283 * dispnew.c (sit_for): Fix preempt condition.
3284
ca77ee45
SM
32852006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
3286
3287 * lread.c (read_filtered_event): Treat select-window just like
3288 switch-frame.
3289
8cb72de5
KS
32902006-07-02 Kim F. Storm <storm@cua.dk>
3291
3292 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
3293 to ever fit the tool-bar,
3294 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
3295 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
3296 (redisplay_tool_bar): Only clear desired matrix if we actually
3297 change the tool-bar window height. Only try to make the tool-bar
3298 window bigger if there is actually room for it.
3299
6407e67c
EZ
33002006-06-30 Ralf Angeli <angeli@caeruleus.net>
3301
3302 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
3303 SPI_GETWORKAREA to find the dimensions of the screen work area,
3304 and adjust vertical position of the frame in order to avoid being
3305 covered by the task bar.
3306
3307 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
3308 f->left_pos and SH_SHOW instead of f->top_pos in the call to
3309 CreateWindow. Record the actual position in f->left_pos and
3310 f->top_pos.
3311
639804b3
JPW
33122006-06-30 John Paul Wallington <jpw@pobox.com>
3313
3314 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
3315 Doc fix - default value has changed.
3316
3ff05183
YM
33172006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3318
3319 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
3320
3321 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
3322
3323 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
3324
3325 * macterm.c (Qeql): Add extern.
3326 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
3327 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
3328 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
3329 Change keys of Vmac_atsu_font_table from strings to numbers.
3330 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
3331 (init_font_name_table) [USE_ATSUI]: Use it.
3332 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
3333 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
3334 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
3335 only when saved_ts_script_language_on_focus coincides with
3336 Vmac_ts_script_language_on_focus.
3337 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
3338 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
3339 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
3340 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
3341
df8ffa05
CY
33422006-06-27 Chong Yidong <cyd@stupidchicken.com>
3343
3344 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
3345 (Ffield_string_no_properties, Ffield_end): Mention
3346 args-out-of-range error condition in docstring.
3347
04405ad9
KS
33482006-06-27 Kim F. Storm <storm@cua.dk>
3349
3350 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
3351
f8e83735
KS
33522006-06-25 Kim F. Storm <storm@cua.dk>
3353
3354 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
3355 version 2.4 and later.
3356
86b2ba0d
CY
33572006-06-24 Chong Yidong <cyd@stupidchicken.com>
3358
3359 * xfns.c (Fx_create_frame): Set font parameter directly instead of
3360 using x_default_parameter, since x_get_args clears the parm alist.
3361
eff6bfea
EZ
33622006-06-24 Eli Zaretskii <eliz@gnu.org>
3363
3364 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
3365 case-insensitively.
3366
d9034473
EZ
33672006-06-24 Aidan Kehoe <kehoea@parhasard.net>
3368
3369 * lread.c (read_escape): When an unknown Unicode code point is
3370 encountered as a string or character escape, signal an error.
3371
8800bd5c
KS
33722006-06-23 Kim F. Storm <storm@cua.dk>
3373
31005921
KS
3374 * .gdbinit (pitx): Dump iterator stack.
3375
8800bd5c
KS
3376 * xdisp.c (handle_composition_prop): Push iterator on stack.
3377 (set_iterator_to_next): Pop iterator at end of composition.
3378
28fa06ea
EZ
33792006-06-23 Martin Rudalics <rudalics@gmx.at>
3380
3381 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
3382 itself on DOS_NT platforms, if the old and new names are identical
3383 but for the letter-case.
3384
43a37241
KS
33852006-06-21 Kim F. Storm <storm@cua.dk>
3386
3387 * dispextern.h (struct it): Add `position' member to iterator stack.
3388 Rename `pos' member to `current'. Rearrange and add comments.
3389
3390 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
3391 if we get any overlays.
3392 (set_cursor_from_row): Don't clobber `end' if we rescan from
3393 start_string.
3394 (push_it, pop_it): Save it->position.
3395
a5bd14d3
RS
33962006-06-19 Richard Stallman <rms@gnu.org>
3397
3398 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
3399 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
3400 for the case of a top-level window and the following minibuffer.
3401 Don't exit because of no `next' when there is a parent.
3402 Use the FIRST_ONLY feature when resizing following windows.
eb85ecac 3403
a5bd14d3
RS
3404 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
3405
a3efc408
KS
34062006-06-17 Kim F. Storm <storm@cua.dk>
3407
3408 * dispnew.c (update_frame): Check for input pending on entry.
3409 (update_window, update_frame_1): Break loop if input is detected.
3410
d692a3d5
JD
34112006-06-16 Francis Litterio <flitterio@gmail.com>
3412
3413 * xterm.c (x_check_expected_move, handle_one_xevent)
3414 (x_set_offset, x_check_fullscreen): Extensive changes to make
3415 frame positioning deterministic under X.
3416
b70e1a2b 3417 * xterm.h (x_output): Add members left_before_move and
d692a3d5
JD
3418 top_before_move. Removed members expected_left and expected_top.
3419
df05d913
KS
34202006-06-16 Kim F. Storm <storm@cua.dk>
3421
626c7c71
KS
3422 * dispextern.h (struct it): Add union to iterator stack to save
3423 image, composition, and stretch specific paramters.
3424
3425 * xdisp.c (next_overlay_string): Fix assert.
3426 (push_it, pop_it): Handle composition and stretch specific values.
3427 Only handle it->slice in image (for now).
3428 (back_to_previous_visible_line_start): Continue search if newline is
3429 part of a compisition. Simplify.
3430 (reseat_1): Set it->object to buffer.
3431 (set_iterator_to_next): Set it->object to string or buffer, when
3432 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
3433 (next_element_from_composition): Set it->object to buffer if not
3434 from string.
3435 (set_cursor_from_row): Only save start of string if not already
3436 done to handle multiple strings in a row.
3437
df05d913
KS
3438 * .gdbinit (pitx): Show composition parameters.
3439 (pgx, pg): New commands to print a glyph structure.
3440 (pgi, pgn): New commands to print specific/next glyph.
3441 (pgrowx, pgrow): New commands to print all glyphs in a row.
3442
aa2f234a
YM
34432006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3444
3445 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
3446 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
3447
3448 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
3449 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
3450 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
3451 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
3452 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
3453 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
3454 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
3455 Services functions to get size of main display in pixels.
3456
633e63ca
CY
34572006-06-14 Chong Yidong <cyd@stupidchicken.com>
3458
d0f891a7
SM
3459 * xdisp.c (back_to_previous_visible_line_start):
3460 Reset it->continuation_lines_width.
633e63ca 3461
cac9d766
RS
34622006-06-14 Richard Stallman <rms@gnu.org>
3463
3464 * eval.c (Fdefconst): Mark variable as risky.
3465
3466 * callproc.c (Fcall_process): Doc fix.
3467
3468 * window.c (adjust_window_trailing_edge): Don't break out of the loop
3469 because there's no next window, if there are parallel windows.
3470 Do break out when WINDOW is nil.
df05d913 3471
bae1ed29
KS
34722006-06-14 Kim F. Storm <storm@cua.dk>
3473
1bb32610
KS
3474 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
3475 iterator stack (instead of hardcoded number). Increase from 2 to
3476 4 to make room for propertized overlay strings before and after a
3477 display string, image or composition.
3478 (struct it): Add image_id and method members to iterator stack.
3479
3480 * xdisp.c (init_from_display_pos): Don't set it->method and
3481 overlay_string_index after pop_it. Add asserts.
3482 (handle_stop): Look for overlay strings around a display string,
3483 image, or composition. Handle properties on those strings.
3484 (next_overlay_string): Don't set string, pos or method after pop_it.
3485 (get_overlay_strings_1): Split from get_overlay_strings; don't
3486 modify it if no overlay strings are found.
3487 (get_overlay_strings): Use get_overlay_strings_1. Always set
3488 it->string and it->method.
3489 (push_it): Push it->image_id and it->method. Push it->object
3490 instead of it->string if method is GET_FROM_IMAGE.
3491 (pop_it): Pop it->image_id and it->method. Ppo it->object
3492 instead of it->string if method is GET_FROM_IMAGE.
3493 Reset it->current.string_pos if popped it->string is nil.
3494 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
3495 whether a given change was correct; but the change is correct.
3496 Clear it->string_from_display_prop_p.
3497 (set_iterator_to_next): Rely on it->method and it->image_id from
3498 iterator stack, instead of setting them explicitly after pop_it.
3499
bae1ed29
KS
3500 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
3501 negative time forces redisplay even when input is available.
3502 (Fsit_for): Doc fix.
3503
8eb2b87f
KS
35042006-06-13 Kim F. Storm <storm@cua.dk>
3505
3506 * dispnew.c: Modify preemptive redisplay to be based on periodic
3507 checks for input.
3508 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
3509 (Vredisplay_preemption_period): New variable.
3510 (syms_of_display): DEFVAR_LISP and initialize it.
3511 (preemption_period, preemption_next_check): New variables.
3512 (update_frame, update_single_window): Initialize them based on
3513 Vredisplay_preemption_period if !force_p.
3514 (update_window, update_frame_1): Use them to determine when to
3515 check for input.
3516
7cb93181
EZ
35172006-06-03 Aidan Kehoe <kehoea@parhasard.net>
3518
3519 * lread.c (read_escape): Provide a Unicode character escape
3520 syntax; \u followed by exactly four or \U followed by exactly
3521 eight hex digits in a comment or string is read as a Unicode
3522 character with that code point.
3523
cf402f3f
EZ
35242006-06-09 Eli Zaretskii <eliz@gnu.org>
3525
3526 * window.c (window_scroll_pixel_based): Signal "Beginning of
3527 buffer" when scroll-down at the beginning of an empty buffer.
3528
67b5f809
YM
35292006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3530
d0f891a7
SM
3531 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
3532 Exclude 0x7f from ASCII range.
67b5f809 3533
94856834
JR
35342006-06-05 Jason Rumney <jasonr@gnu.org>
3535
3536 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
3537 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
3538 (x_scroll_bar_report_motion): Remove workarounds for
3539 versions of Windows NT < 3.51.
3540 [!SIF_ALL]: Remove.
3541 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
3542 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
3543
d495ccfc
DK
35442006-06-04 David Kastrup <dak@gnu.org>
3545
ca21600d
JB
3546 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
3547 `sit-for'.
d495ccfc 3548
fabcf455
YM
35492006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3550
3551 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
3552
3553 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
3554
3555 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
3556 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
3557 [USE_MAC_TSM]: Likewise.
3558 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
3559 (Qbefore_string) [USE_MAC_TSM]: Add extern.
ca21600d
JB
3560 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
3561 ActivateTSMDocument/DeactivateTSMDocument.
fabcf455 3562 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
ca21600d
JB
3563 (mac_handle_window_event) [USE_MAC_TSM]: Handle
3564 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
fabcf455
YM
3565 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
3566 (install_window_handler) [USE_MAC_TSM]: Install it. Register
3567 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
3568 (keycode_to_xkeysym_table): Add entry for f16.
3569 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
3570 before/after passing keystroke event to toolbox dispatcher.
3571 (init_tsm) [USE_MAC_TSM]: New function.
3572 (mac_initialize) [USE_MAC_TSM]: Call it.
3573 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
3574
3575 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
3576
4985dde2
JPW
35772006-06-02 John Paul Wallington <jpw@gnu.org>
3578
3579 * xfns.c (x_set_name_internal): Set icon to `text', derived from
3580 name, when frame's icon_name isn't a string rather than only when
3581 it is nil.
3582
3f65d6f5
EZ
35832006-06-03 Eli Zaretskii <eliz@gnu.org>
3584
3585 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
3586 and not nil.
3587
56f41f98
CY
35882006-06-02 Chong Yidong <cyd@stupidchicken.com>
3589
ca21600d
JB
3590 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
3591 string.
56f41f98 3592
70a4cae4
YM
35932006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3594
3595 * xdisp.c (next_element_from_composition): Set it->object to
3596 it->string if composition is coming from string.
3597 (set_cursor_from_row): Don't return 0 unless row displays a
3598 continued line.
3599 (dump_glyph): Dump composite glyph.
06c7827a 3600
8b2b00f5
JD
36012006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3602
3603 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
3604
963128f3
RS
36052006-06-01 Richard Stallman <rms@gnu.org>
3606
3607 * window.c (Fsplit_window): Doc fix.
3608
24a71bb1
KS
36092006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
3610
3611 * process.c (deleted_pid_list): New variable to store the pids
3612 of deleted processes. Declare it only if SIGCHLD is defined.
3613 (init_process): Initialize it.
3614 (syms_of_process): Staticpro it.
3615 (Fdelete_process): Add pid of the deleted process to it. Check after
3616 the addition and before the kill if the process is already stopped,
3617 in which case it is deleted from the list and not killed.
3618 (sigchld_handler): Define it only if SIGCHLD is. Search the process
3619 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
3620 Original idea by Stefan Monnier.
3621
a71a7704
KS
36222006-06-01 Kim F. Storm <storm@cua.dk>
3623
3624 * dispnew.c (sit_for): Perform redisplay even if input is pending
3625 when redisplay-dont-pause is non-nil.
3626
36f0107c
YM
36272006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3628
3629 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
3630 (XTread_socket): Remove obsolete comment.
3631
2e92a7cb
JD
36322006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3633
3634 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
3635 menu-bar-open.
3636
c9467aaa
JD
36372006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3638
3639 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
3640 menu-bar-open.
3641
3642 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
3643
82db8fa7
JL
36442006-05-31 Juri Linkov <juri@jurta.org>
3645
3646 * minibuf.c (Vhistory_add_new_input): New variable.
3647 (read_minibuf): Use it.
3648 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
3649 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
3650
360fecca
KS
36512006-05-31 Kim F. Storm <storm@cua.dk>
3652
3653 * process.c (select_wrapper): Add wrapper around select to work around
3654 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
3655 select called from wait_reading_process_output.
3656
303e108c
AS
36572006-05-30 Andreas Schwab <schwab@suse.de>
3658
3659 * xmenu.c (Fmenu_bar_start): Return a value.
3660
d9e8091d
RS
36612006-05-30 Richard Stallman <rms@gnu.org>
3662
3663 * coding.c (Ffind_operation_coding_system): Doc fix.
3664
7c42b3e0
EZ
36652006-05-30 Eli Zaretskii <eliz@gnu.org>
3666
3667 * w32term.c (x_draw_hollow_cursor): Fix last change.
3668
73af0716
KS
36692006-05-29 Kim F. Storm <storm@cua.dk>
3670
3671 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
3672
36732006-05-29 Eli Zaretskii <eliz@gnu.org>
a952cebe
EZ
3674
3675 * coding.c (Ffind_operation_coding_system): Doc fix.
3676
ffd71266
YM
36772006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3678
3679 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
3680 Call mac_set_font_info_for_selection if font panel is made visible.
3681
3682 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
3683 (mac_font_panel_visible_p, mac_show_hide_font_panel)
3684 [USE_MAC_FONT_PANEL]: New functions.
523fc433
JB
3685 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection):
3686 Return immediately if font panel is not visible.
ffd71266
YM
3687
3688 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
3689 Add externs.
3690
01d09305
DN
36912006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
3692
3693 * search.c (matcher_overflow): Mark as NO_RETURN.
3694
3695 * xterm.c (x_connection_closed): Likewise.
3696
3697 * sysdep.c (croak): Likewise.
3698
3699 * sound.c (sound_perror, alsa_sound_perror): Likewise.
3700
3701 * lisp.h (die, nsberror): Likewise.
3702
c1c032a3
JD
37032006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3704
523fc433
JB
3705 * sound.c (alsa_open, alsa_configure, alsa_write):
3706 Move assignment to err out of if-statement.
3fc7a865 3707
c1c032a3 3708 * gtkutil.c (menu_nav_ended): New function.
ca21600d
JB
3709 (create_menus): Connect menu_nav_ended to "selection-done" to fix
3710 grabs.
c1c032a3
JD
3711
3712 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
3713
345b3483
DN
37142006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
3715
3716 * charset.h (invalid_character): Mark as NO_RETURN.
3717
7311509e
KH
37182006-05-29 Kenichi Handa <handa@m17n.org>
3719
3720 * coding.c (Ffind_operation_coding_system): Call a function by
3721 safe_call1 instead of call1.
3722
6ad0381c
SM
37232006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3724
3725 * window.c (struct saved_window): Add `dedicated'.
3726 (Fset_window_configuration, save_window_save): Save/restore the
3727 `dedicated' flag.
3728
794033ae
KS
37292006-05-28 Kim F. Storm <storm@cua.dk>
3730
3731 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
3732 don't update w->cursor and return 0. Return 1 on success.
3733 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
3734 until it succeeds.
3735
3736 * dispextern.h (set_cursor_from_row): Update prototype.
3737
26837cd3
KS
37382006-05-28 Kim F. Storm <storm@cua.dk>
3739
3740 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
3741 parameters. Adjust x and width in case cursor in on a partially
3742 visible stretch glyph on the left edge.
3743 (erase_phys_cursor): Don't erase into left fringe/margin in case
3744 previous cursor glyph is a partially visible stretch glyph on left.
3745
3746 * dispextern.h (get_phys_cursor_geometry): Update prototype.
3747
3748 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
3749 cursor and erasing cursor on partially visible stretch glyph on left.
3750 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
3751
3752 * macterm.c: Likewise.
3753
3754 * w32term.c: Likewise.
3755
412f3f18
YM
37562006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3757
6ad0381c
SM
3758 * macselect.c (mac_handle_apple_event):
3759 Return errAEEventNotHandled if key binding is not found.
412f3f18 3760
0f7078f0
EZ
37612006-05-26 Eli Zaretskii <eliz@gnu.org>
3762
3763 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
3764 [__MINGW32__]: MinGW-specific declaration of `etext'.
3765
3766 * w32heap.c (etext, edata): Remove unused definitions.
3767
795c20df
CY
37682006-05-26 Chong Yidong <cyd@stupidchicken.com>
3769
6ad0381c
SM
3770 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
3771 Incorporate the exclusive file-opening functionality into the behavior
3772 when OK-IF-ALREADY-EXISTS is nil.
795c20df
CY
3773 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
3774
07a7837c
JD
37752006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3776
3777 * sound.c (alsa_configure): Move get period/buffer_size after
3778 setting hwparams.
3779
f1c582b4
KH
37802006-05-26 Kenichi Handa <handa@m17n.org>
3781
3782 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
3783 . BUFFER) in TARGET.
3784
3165e450
CY
37852006-05-25 Chong Yidong <cyd@stupidchicken.com>
3786
3787 * image.c (png_load): Don't call fclose on NULL.
3788
d579f53b
LT
37892006-05-25 Luc Teirlinck <teirllm@auburn.edu>
3790
3791 * fns.c (Fyes_or_no_p):
3792 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
3793 only seven args.
3794
abeb5483
JL
37952006-05-25 Juri Linkov <juri@jurta.org>
3796
3797 * lisp.h (Fread_from_minibuffer): Decrement number of args.
3798
3799 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
3800 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
3801
3802 * buffer.c (mode-line-format): Fix docstring.
3803
403a7bca
RS
38042006-05-25 Richard Stallman <rms@gnu.org>
3805
3806 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
3807
24b0232f
LT
38082006-05-24 Luc Teirlinck <teirllm@auburn.edu>
3809
3810 * puresize.h (BASE_PURESIZE): Increase to 1210000.
3811
ac9f37df
AM
38122006-05-24 Alan Mackenzie <acm@muc.de>
3813
3814 * lread.c (Vload_history): Enhance doc-string to say that the file
3815 is the absolute truename of the loaded file.
3816
3817 * lread.c (Vafter_load_alist): doc-string: state that an element
3818 now has a regexp to match file names, not a file name as such.
3819
3820 * lread.c (readevalloop): Call file-truename on the name for
3821 load-history, except at preloading time.
3822
3823 * lread.c (Fload): At preloading time, preserve the extension of
6ad0381c 3824 the filename which goes into load-history. New var hist_file_name.
ac9f37df
AM
3825
3826 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
3827 function do-after-load-evaluation.
3828
e4dff88d
YM
38292006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3830
3831 * mac.c (ae_attr_table): New variable.
3832 (syms_of_mac): Intern and staticpro its elements.
3833 (mac_aelist_to_lisp): Also convert Apple event attributes.
3834 (mac_ae_put_lisp): New function.
3835 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
3836
3837 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
3838
3839 * macselect.c (Qemacs_suspension_id): New variable.
3840 (syms_of_macselect): Intern and staticpro it.
3841 (struct suspended_ae_info): New struct.
3842 (deferred_apple_events, defer_apple_events)
3843 (Fmac_process_deferred_apple_events): Use it.
3844 (suspended_apple_events): New variable.
3845 (mac_handle_apple_event_1): New function.
3846 (mac_handle_apple_event): Use it. Don't process previously
3847 suspended events.
412f3f18 3848 (cleanup_suspended_apple_events, get_suspension_id)
e4dff88d
YM
3849 (cleanup_all_suspended_apple_events): New functions.
3850 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
3851 at exit.
3852 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
3853 (Fmac_resume_apple_event): New defuns.
3854 (syms_of_macselect): Defsubr them.
3855
3856 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
3857 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
3858
3859 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
3860 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
3861 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
3862 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
3863 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
3864 Likewise.
3865 (typeUTF8Text, kEventParamWindowMouseLocation)
3866 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
3867 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
3868
b8c6940e
YM
38692006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3870
3871 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
3872 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
3873 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
3874 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
3875 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
3876 resource to backtranslate key with modifiers.
3877 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
3878
0277e36c
JD
38792006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3880
3881 * xterm.c: Remove declarations already in xterm.h
3882
3883 * xterm.h: Add extern declarations for x_clear_errors,
26837cd3 3884 x_fully_uncatch_errors, x_catching_errors and
0277e36c
JD
3885 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
3886
63af6055
RS
38872006-05-21 Richard Stallman <rms@gnu.org>
3888
55815819
RS
3889 * xfaces.c (best_matching_font): Abort for best == NULL
3890 before we start to use it.
3891
63af6055
RS
3892 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
3893
5748161e
KS
38942006-05-20 Kim F. Storm <storm@cua.dk>
3895
3896 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
3897
431225c6
YM
38982006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3899
3900 * macterm.c (convert_fn_keycode): Fix last change.
3901
e00b99c8
EZ
39022006-05-19 Eli Zaretskii <eliz@gnu.org>
3903
3904 * w32.c (init_environment): Perform the processing of environment
3905 variables on a copy of default variables and their values, not on
75e3b957
EZ
3906 the original. Simplify code that calls ExpandEnvironmentStrings
3907 and make buf1[] and buf2[] more visible for easier debugging.
e00b99c8 3908
689840b9
YM
39092006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3910
3911 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
3912
3913 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
3914
3915 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
3916
3917 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
3918 Forward keyUp events to toolbox_dispatcher.
3919
3920 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
3921
a940e2c6
JD
39222006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3923
3924 * config.in: Regenerated (HAVE_ALSA).
3925
3926 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
3927 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
3928 (snd_error_quiet, alsa_init): New functions.
3929 (vox_init): Return 0 if unable to open device.
3930 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
3931 a fallback.
3932 (struct sound_device): Add period_size.
3933 (wav_play, au_play): Use period_size if set.
3934
14a56a1b
JB
3935 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
3936 (ALL_CFLAGS): Add CFLAGS_SOUND.
a940e2c6 3937
8acb7dad
KH
39382006-05-18 Kenichi Handa <handa@m17n.org>
3939
3940 * callproc.c (Fcall_process): Reject encoding arguments by
3941 ascii-incompatible coding systems (e.g. utf-16).
3942
3943 * coding.c (Qascii_incompatible): New variable.
3944 (syms_of_coding): Setup Qascii_incompatible.
3945 (setup_coding_system): Be sure to initialize coding->common_flags.
3946 Check `ascii-incompatible' property of the coding system.
3947
3948 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
3949
f5ecbcee
KS
39502006-05-18 Kim F. Storm <storm@cua.dk>
3951
647b07d1
AS
3952 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
3953 geometry when backtracking in case last image doesn't fit on line.
f5ecbcee 3954
856bb2b0 39552006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
f5ecbcee 3956
647b07d1
AS
3957 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
3958 more than height of one frame default line.
f5ecbcee 3959
5748161e
KS
39602006-05-17 Richard Stallman <rms@gnu.org>
3961
3962 * xfaces.c (better_font_p): Any font beats no font.
3963 (best_matching_font): Simplify based on above change.
26837cd3 3964
6f5c4cc9 3965 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
5748161e 3966
b3abe3a5
KS
39672006-05-16 Kim F. Storm <storm@cua.dk>
3968
3969 * xterm.c (handle_one_xevent): Check that f is not NULL before
3970 calling x_kill_gs_process.
3971
46a2df8e
RS
39722006-05-14 Richard Stallman <rms@gnu.org>
3973
3974 * textprop.c (Fnext_single_char_property_change)
3975 (Fprevious_single_char_property_change): Don't allow returning
3976 value beyond LIMIT in any cases.
3977 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
b3abe3a5 3978
46a2df8e
RS
3979 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
3980
79fb0ab7
JD
39812006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3982
3983 * xterm.c (handle_one_xevent): Check that f is not NULL before
3984 calling _XEditResCheckMessages.
3985
0f479f06
KS
39862006-05-14 Kim F. Storm <storm@cua.dk>
3987
3988 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
3989
642c61f3
EZ
39902006-05-13 Eli Zaretskii <eliz@gnu.org>
3991
dac85f4b
EZ
3992 * frame.c (x_set_border_width): Fix error message to say "frame",
3993 not "window".
3994
642c61f3
EZ
3995 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
3996
4e8f005c
CY
39972006-05-12 Chong Yidong <cyd@stupidchicken.com>
3998
3999 * intervals.c (set_point_both): Fix mixup before before and after
4000 in variable names.
4001
4002 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
4003 while setting point temporarily.
4004
1ed7b9ae
RS
40052006-05-11 Richard Stallman <rms@gnu.org>
4006
4007 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
4008
f46f3e21
KS
40092006-05-11 Kim F. Storm <storm@cua.dk>
4010
4011 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
4012
17ad716a
KH
40132006-05-11 Kenichi Handa <handa@m17n.org>
4014
4015 * fileio.c (Finsert_file_contents): Fix for the case of IO error
4016 while handling replace operation.
4017
4da9c136
KH
40182006-05-10 Kenichi Handa <handa@m17n.org>
4019
4020 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
4021 chosen for the default face was different from the frame font,
4022 adjust the frame font.
4023
dec94049
YM
40242006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4025
4026 * image.c (Qduration) [MAC_OS]: Undo previous change.
4027 (syms_of_image) [MAC_OS]: Likewise.
4028 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
4029
4030 * macfns.c (x_to_mac_color): Fix shift amount change.
b8c6940e 4031 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
dec94049
YM
4032 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
4033
4034 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
4035 Vmac_services_selection. All uses changed.
4036 (mac_store_service_event): Rename from mac_store_services_event in
4037 extern and calls.
4038
ca21600d
JB
4039 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
4040 changed.
dec94049
YM
4041 [MAC_OSX] (mac_store_service_event): Rename from
4042 mac_store_services_event. All callers changed.
4043 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
4044 FACE_ID and C. All callers changed.
ca21600d
JB
4045 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
4046 mac_set_font_info_for_selection when focus frame is destroyed.
dec94049
YM
4047 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
4048
4049 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
4050 args in extern.
4051
d3ee989e
CY
40522006-05-09 Chong Yidong <cyd@stupidchicken.com>
4053
4054 * keymap.c (describe_map): Avoid generating duplicate entries if
4055 the shadowed binding has the same definition.
4056
5f2c7b2a
KH
40572006-05-09 Kenichi Handa <handa@m17n.org>
4058
4059 * keymap.c (push_key_description): Handle invalid character key.
4060
76a25e79
KH
40612006-05-08 Kenichi Handa <handa@m17n.org>
4062
4063 * callproc.c (Fcall_process): Use system_eol_type for encoding
4064 arguments if eol_type is not yet decided.
4065
4066 * coding.h (system_eol_type): Extern it.
4067
4068 * coding.c (setup_coding_system): For invalid coding-system, set
4069 coding->eol_type to CODING_EOL_UNDECIDED.
4070 (encode_coding): Cancel previous change.
4071 (shrink_encoding_region): Likewise.
4072 (code_convert_region1): Likewise.
4073 (code_convert_string1): Likewise.
4074 (code_convert_string_norecord): Likewise.
4075
4076 * fileio.c (choose_write_coding_system): Use system_eol_type for
4077 encoding if eol_type is not yet decided.
4078
4079 * process.c (setup_process_coding_systems): Use system_eol_type
4080 for encoding if eol_type is not yet decided.
4081 (read_process_output): Likewise.
4082 (send_process): Likewise.
4083
f4b46bb9
JB
40842006-05-07 Juanma Barranquero <lekktu@gmail.com>
4085
4086 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
4087
cc9945f2
YM
40882006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4089
4090 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
4091 (syms_of_mac): Likewise for defsubr.
4092
4093 * macfns.c (mac_set_font): New function.
4094 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
4095 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
4096 kWindowToolbarButtonAttribute when creating window.
4097 (Fmac_clear_font_name_table): Move from macfns.c.
4098 (syms_of_macfns): Likewise for defsubr.
4099 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
4100 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
4101
4102 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
4103 and build is done on Mac OS X 10.2 and later.
4104
4105 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
4106 (mac_store_services_event): Change return type in extern.
4107
dec94049
YM
4108 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
4109 FMFontFamily value.
cc9945f2
YM
4110 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
4111 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
4112 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
4113 (QWindow) [MAC_OSX]: Likewise.
4114 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
4115 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
4116 (syms_of_macterm) [USE_ATSUI]: Defvar it.
4117 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
4118 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
4119 (syms_of_macterm): Intern and staticpro them.
dec94049 4120 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
523fc433
JB
4121 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
4122 New function.
cc9945f2
YM
4123 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
4124 [MAC_OSX] (mac_store_services_event): Likewise.
4125 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
4126 kEventWindowToolbarSwitchMode event.
4127 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
4128 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
4129 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
4130 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
4131 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
4132
4133 * macterm.h (mac_set_font_info_for_selection): Add extern.
4134
41f7a85e
YM
41352006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4136
4137 * image.c (Qduration) [MAC_OS]: New variable.
4138 (syms_of_image) [MAC_OS]: Intern and staticpro it.
4139 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
4140 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
4141 instead of cfstring_create_with_string.
4142
a1dfdf24
KS
41432006-05-06 Kim F. Storm <storm@cua.dk>
4144
4145 * .gdbinit (xframe): Print frame name.
4146 (xlist): New command to print a list (max 10 elements).
4147 (xpr): Print lisp object of any type.
4148 (pitx): Print it->pixel_width.
4149
37e21325
KH
41502006-05-05 Kenichi Handa <handa@m17n.org>
4151
4152 * xdisp.c (handle_composition_prop): Fix for the case of empty
4153 composition component.
4154
ef0154b5
YM
41552006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4156
4157 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
4158 from event->arg.
4159
4160 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
4161 MAC_APPLE_EVENT.
4162
4163 * macterm.h (mac_make_lispy_event_code): Remove extern.
4164 (mac_post_mouse_moved_event): Add extern.
4165 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
4166 `const AEDesc *' in externs.
4167 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
4168
4169 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
4170 `const AEDesc *'.
4171 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
4172 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
4173 Use xrealloc instead of repeated xmalloc/xfree.
523fc433
JB
4174 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref):
4175 New function.
ef0154b5
YM
4176
4177 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
4178
4179 * macselect.c: Update copyright year.
4180 (mac_store_apple_event): Change return type to void in extern.
4181 (mac_handle_apple_event): Don't get return value from
4182 mac_store_apple_event.
4183 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
4184 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
4185 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
4186 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
4187 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
4188 implementation using create_apple_event_from_drag_ref.
4189 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
4190 (mac_do_receive_dragUPP): Move variables from macterm.c.
4191 (install_drag_handler, remove_drag_handler): New functions.
4192
4193 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
4194 path select also for proxy icon click.
4195 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
4196 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
4197 (xlfdpat_create): Remove unused label `error' and trailing sentences.
4198 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
4199 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
4200 macselect.c.
4201 (install_drag_handler, remove_drag_handler): Add extern.
4202 (mac_store_apple_event): Change return type to void. All uses changed.
4203 Create Lisp object from Apple event and store it into input event.
4204 (mac_make_lispy_event_code): Remove function.
4205 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
4206 (install_window_handler): Call install_drag_handler.
4207 (remove_window_handler): Call remove_drag_handler.
4208
8b0ba111
RS
42092006-05-03 Richard Stallman <rms@gnu.org>
4210
e4a9a1cf
RS
4211 * sound.c (Fplay_sound_internal): Dynamically allocate
4212 current_sound_device and current_sound.
4213 (sound_cleanup): Free them.
4214
8b0ba111
RS
4215 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
4216 when inside a keyboard macro.
4217
64ec8b2f
AS
42182006-05-02 Andreas Schwab <schwab@suse.de>
4219
4220 * xmenu.c (restore_menu_items): Return a value.
4221
fcdd4585
SM
42222006-05-01 Martin Rudalics <rudalics@gmx.at>
4223
4224 * syntax.c (Fforward_comment): Detect generic comment at beginning of
4225 buffer when moving backwards.
4226
c1eb34c2
YM
42272006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4228
4229 * dispnew.c (update_window): Don't set changed_p when mode/header
4230 line is updated.
4231
4232 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
fcdd4585
SM
4233 (get_glyph_face_and_encoding, get_char_face_and_encoding):
4234 Don't distinguish known faces from others.
c1eb34c2
YM
4235
4236 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
4237 through typeFileURL failed.
4238
4239 * macfns.c (mac_update_title_bar): New function.
4240 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
fcdd4585
SM
4241 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
4242 Call mac_prepare_for_quickdraw.
c1eb34c2
YM
4243
4244 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
4245 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
4246 (enum pcm_status): New enum.
4247 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
4248 (XCharStructRow): Remove. Now validity is represented by
4249 non-negativeness of sum of ascent and descent.
4250 (struct MacFontStruct): Change type of member `rows'.
4251 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
4252
fcdd4585
SM
4253 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
4254 Adjust endpoints of strictly horizontal/vertical lines.
c1eb34c2
YM
4255 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
4256 (pcm_init, pcm_get_status): New functions.
4257 (x_per_char_metric, XLoadQueryFont): Use them instead of
4258 XCharStructRow and related macros.
4259 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
4260 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
4261 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
4262 and window path pop-up menu on title bar.
4263 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
4264
4265 * macterm.h (mac_update_title_bar): Add extern.
4266 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
4267 (FRAME_FILE_NAME): New macro.
4268
4269 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
4270
9abc5f45
RS
42712006-04-30 Richard Stallman <rms@gnu.org>
4272
4273 * keymap.c (Fdefine_key): Improve error message
4274 when KEY begins with a non-prefix key.
4275
5fed8c15 42762006-04-30 Martin Rudalics <rudalics@gmx.at>
39c41ad4
SM
4277
4278 * syntax.c (Fforward_comment): Don't forget to break out of the loop
4279 when we skipped backward over a generic comment.
4280
4a113e3f
NR
42812006-04-27 Nick Roberts <nickrob@snap.net.nz>
4282
4283 * .gdbinit (pp1, pv1): Only print value as expression is now
4284 printed out by gud-print.
4285 (pv1): Correct doc string.
4286
e89e07cc
SM
42872006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
4288
4289 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
4290 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
4291 keymap.c:895: error: address of register variable `def' requested.
4292
7d6f8c68
JR
42932006-04-26 Jason Rumney <jasonr@gnu.org>
4294
8b03732e
JR
4295 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
4296
7d6f8c68
JR
4297 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
4298 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
4299 where we preempt mouse_button_timer.
4300
51d793da
MB
43012006-04-25 Miles Bader <miles@gnu.org>
4302
4303 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
4304
a9ec7317
SM
43052006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
4306
4307 * process.h: Include headers for pid_t.
4308
e9346494
KS
43092006-04-24 Kim F. Storm <storm@cua.dk>
4310
1ada896b
KS
4311 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
4312 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
6fcd305c 4313 (produce_stretch_glyph): Assume that face box height and width is
5e1a6e32 4314 already included in stretch glyph size so caller doesn't have to
6fcd305c 4315 consider the extra space otherwise added (fixes problem in ses.el).
1ada896b 4316
e9346494
KS
4317 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
4318 matrices to force recalculation of tool-bar height after font change.
4319
4320 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
14922abe
KS
4321 Clear it when done, so we don't accidentally draw a second copy of
4322 the tool-bar after resetting f->n_tool_bar_rows.
e9346494
KS
4323 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
4324 we recalculate f->n_tool_bar_rows.
4325
4f261b99
RF
43262006-04-23 Lars Hansen <larsh@soem.dk>
4327
59062dce
LH
4328 * editfns.c (find_field): Fix comment.
4329 (Ffield_beginning): Fix bug when POS is at field beginning.
4330
3705332d
EZ
43312006-04-22 Eli Zaretskii <eliz@gnu.org>
4332
4333 * puresize.h (BASE_PURESIZE): Increase to 1205000.
4334
cdd2341c
KS
43352006-04-21 Kim F. Storm <storm@cua.dk>
4336
95797ede
KS
4337 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
4338 window start is at BEGV.
4339
cdd2341c
KS
4340 * dispextern.h (struct image): New member `corners'.
4341 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
4342
4343 * image.c (four_corners_best): New arg CORNERS specifies what pixels
4344 to look at in case image has margin.
4345 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
4346 (image_background, image_background_transparent)
4347 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
4348 (gif_load): Set img->corners according to image's margin spec.
4349 Use img->corners values directly where applicable.
4350 Save image extension data in img->data.lisp_val.
4351 (gif_clear_image): New function to free img->data.lisp_val.
4352 (gif_type): Use it instead of generic x_clear_image.
4353 (Fimage_extension_data): New defun.
4354 (syms_of_image): Defsubr it.
4355
72ffd9d0
EZ
43562006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
4357
4358 * window.c (Fdisplay_buffer): Doc fix.
4359
0d95f6b2
EZ
43602006-04-21 Eli Zaretskii <eliz@gnu.org>
4361
4362 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
4363
a0c62ca2
YM
43642006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4365
4366 * image.c [MAC_OS] (xpm_load_image): Fill in background field
4367 while we have ximg handy.
4368
4369 * macmenu.c (restore_menu_items, save_menu_items): New functions
4370 from xmenu.c.
4371 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
4372 changes for xmenu.c.
4373
4374 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
4375 (add_mac_font_name): New function.
4376 (init_font_name_table): Use it. Adopt the first found font from
4377 those having the same family name.
4378
bf49275d
NR
43792006-04-21 Nick Roberts <nickrob@snap.net.nz>
4380
4381 * xdisp.c (note_mouse_highlight): Use build_string.
4382
570fab6c
LH
43832006-04-20 Lars Hansen <larsh@soem.dk>
4384
a9ec7317
SM
4385 * textprop.c (Fremove_list_of_text_properties):
4386 Ensure modify_region is called only when buffer is modified and that
570fab6c
LH
4387 signal_after_change is allways called in that case.
4388
4389 * print.c (PRINTFINISH): Call signal_after_change.
4390
7f32b80b
KS
43912006-04-20 Kim F. Storm <storm@cua.dk>
4392
bdb60d06
KS
4393 * xdisp.c (redisplay_window): Fix last change.
4394
5e1a6e32 4395 * xdisp.c (redisplay_window): If current window start is not at the
7f32b80b
KS
4396 beginning of a line, select a new window start if buffer is modified
4397 and window start is in the modified region, but the first change is
4398 before window start.
4399
290e4aae
RS
44002006-04-18 Richard Stallman <rms@gnu.org>
4401
4402 * xmenu.c (restore_menu_items, save_menu_items): New fns.
4403 (set_frame_menubar): Use save_menu_items. Save updated vector in
a9ec7317
SM
4404 the frame before unwinding it. Don't use unuse_menu_items.
4405 Don't use discard_menu_items.
290e4aae
RS
4406 (digest_single_submenu): Abort if an item is not in a pane.
4407 (init_menu_items): Put the error check at the top.
4408
4409 * keymap.c (describe_map): Make "shadowed" warning more verbose.
4410
4411 * window.c (adjust_window_trailing_edge): Correctly distinguish
4412 series vs parallel cases, even when window has no parent.
4413
4414 * abbrev.c (record_symbol): New function.
4415 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
4416
b96fe6ea
YM
44172006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4418
4419 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
4420 value of xmalloc.
4421
4422 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
4423 (create_apple_event_from_event_ref, xrm_get_preference_database)
4424 (cfstring_create_normalized): Don't check return value of xmalloc.
4425
4426 * macselect.c (get_scrap_target_type_list, defer_apple_events)
4427 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
4428 return value of xmalloc/xrealloc.
4429
4430 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
4431 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
a0c62ca2
YM
4432 (XLoadQueryFont, mac_store_apple_event): Don't check return value
4433 of xmalloc.
b96fe6ea 4434
6c7809b3
NR
44352006-04-17 Kim F. Storm <storm@cua.dk>
4436
4437 * window.c (coordinates_in_window): On the vertical border,
4438 calculate the row number measured from the top of the window, not
4439 the top of the frame.
39d78835
KS
4440 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
4441 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
6c7809b3 4442
4bba3064
EZ
44432006-04-16 Eli Zaretskii <eliz@gnu.org>
4444
4445 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
4446
8d95636b
RF
44472006-04-16 Romain Francoise <romain@orebokech.com>
4448
4449 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
4450
6a258a33
AS
44512006-04-16 Andreas Schwab <schwab@suse.de>
4452
4453 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
4454
f70a96b0
RF
44552006-04-15 Romain Francoise <romain@orebokech.com>
4456
4457 * puresize.h (BASE_PURESIZE): Increment to 1210000.
4458
28b257dc 44592006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
cda4c00b
EZ
4460
4461 * print.c (Fprin1_to_string): Mention in the `doc' that the
4462 behavior is modified by `print-level' and `print-length'.
4463
6e9715ae
KH
44642006-04-13 Kenichi Handa <handa@m17n.org>
4465
4466 * coding.c (setup_coding_system): If eol-type is not yet decided
4467 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
4468 If coding_system is nil, return 0.
4469 (code_convert_region1): Even if coding_system is nil, don't skip
4470 conversion if system_eol_type is not LF.
4471 (code_convert_string1): Likewise.
4472 (code_convert_string_norecord): Likewise.
4473
2b89a53f
KH
44742006-04-13 Kenichi Handa <handa@m17n.org>
4475
4476 * coding.c (setup_coding_system): Fix previous change.
a9ec7317 4477 (encode_coding): If eol_type is not yet decided, use system_eol_type.
73ec0f89
KH
4478 (shrink_encoding_region): If eol_type is not yet decided and
4479 system_eol_type is not LF, don't shrink.
2b89a53f 4480
5c24517a
NR
44812006-04-13 Nick Roberts <nickrob@snap.net.nz>
4482
ca21600d
JB
4483 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
4484 line.
5c24517a 4485
9d1a8e5d
RS
44862006-04-12 Richard Stallman <rms@gnu.org>
4487
a53fe666
RS
4488 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
4489
9d1a8e5d
RS
4490 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
4491 (Fprocess_send_eof): Abort if fail to open null device.
4492
190998d8
YM
44932006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4494
4495 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
4496
4497 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
4498 assignment used as truth value. Add explicit braces to avoid
4499 ambiguous `else'.
4500 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
4501
4502 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
4503 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
4504 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
4505 Put externs in #ifdef HAVE_X_WINDOWS.
4506 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
4507 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
4508 (init_mac_osx_environment) [MAC_OSX]: Add extern.
4509
4510 * mac.c (init_process): Remove undef.
4511 (select) [MAC_OSX]: Undefine before including sysselect.h.
4512 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
4513 Remove functions and prototypes.
4514 (parse_value): Add parentheses around + inside shift.
4515 (path_from_vol_dir_name): Make static.
4516 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
4517 [!MAC_OSX] (get_path_to_system_folder): Likewise.
4518 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
4519 variable `cCode'.
4520 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
4521 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
4522
4523 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
4524 (x_set_mouse_color): Remove unused variable `dpy'.
4525 (Fx_create_frame): Remove unused variable `x_frame_count'.
4526 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
4527 (x_sync): Move from macterm.c.
4528 (Fx_file_dialog): Remove unused variable `default_filter_index'.
4529
4530 * macmenu.c (min_menu_id): Make element type explicit.
4531
4532 * macselect.c (get_flavor_type_from_symbol): Remove unused
4533 variable `val'.
4534 (get_scrap_private_timestamp, x_get_foreign_selection)
4535 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
4536 (Fmac_process_deferred_apple_events): Remove unused variables
4537 `keyword', `reply', `apple_event', `count', and `err'.
4538
4539 * macterm.c: Don't include gnu.h.
4540 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
4541 (x_sync): Move to macfns.c.
4542 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
4543 variable `mask_bits'.
4544 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
4545 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
4546 (x_mac_to_emacs_modifiers): Remove function.
4547 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
4548 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
4549 Add explicit braces to avoid ambiguous `else'.
4550 (x_make_frame_visible): Remove unused variables `type',
4551 `original_top', and `original_left'.
4552 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
4553 (x_load_font): Remove unused variables `full_name', and `value'.
4554 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
4555 Remove functions.
4556 (do_zoom_window): Reorganize variables with respect to conditionals.
4557 (init_command_handler): Remove unused variable `err'.
4558 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
4559
4560 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
4561 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
4562 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
4563 (do_menu_choice, have_menus_p, x_real_positions)
4564 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
4565 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
4566 (free_frame_menubar): Add externs.
4567
4568 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
4569 (malloc, realloc, free): Add undefs.
4570 (read_load_commands): Remove unused variable `n' and `j'.
4571 (copy_data_segment): Remove unused variable `r'.
4572
4573 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
4574 within ||. Add explicit braces to avoid ambiguous `else'.
4575 (dump_glyph_row): Remove label for `inverse_p' from legend.
4576
a9ec7317
SM
4577 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
4578 Add explicit braces to avoid ambiguous `else'.
190998d8 4579
28b257dc 45802006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
00d70d57
JD
4581
4582 * dispnew.c (init_display): Don't init X display if the user asked
4583 for a non-X display.
7e37cb69 4584
957b3c5f
KH
45852006-04-12 Kenichi Handa <handa@m17n.org>
4586
4587 * coding.c (setup_coding_system): Use system_eol_type for default
4588 coding->eol_type.
4589
db926d80
DN
45902006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4591
4592 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
4593
4594 * data.c (wrong_type_argument): Try to avoid compiler warnings due
4595 to the fact the function is now marked as NO_RETURN.
4596
978781a5
EZ
45972006-04-10 Eli Zaretskii <eliz@gnu.org>
4598
4599 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
4600
8fd0f424
RF
46012006-04-10 Romain Francoise <romain@orebokech.com>
4602
4603 * xrdb.c (gethomedir): Use xstrdup.
4604
f8f10777
AS
46052006-04-10 Andreas Schwab <schwab@suse.de>
4606
4607 * xrdb.c (gethomedir): Make sure to always return a pointer that
4608 can be passed to free.
4609
2a8da555
RS
46102006-04-09 Richard Stallman <rms@gnu.org>
4611
4612 * lisp.h (Fkill_emacs): Undo previous change.
4613
46142006-04-08 Richard Stallman <rms@gnu.org>
4615
4616 * search.c (boyer_moore): Test ch >= 0400, not >.
4617
404be028
DN
46182006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
4619
4620 * puresize.h (pure_write_error): Mark as NO_RETURN.
4621
4ca412ec 4622 * lisp.h (args_out_of_range, args_out_of_range_3)
404be028 4623
f93bd8e4
EZ
46242006-04-08 Eli Zaretskii <eliz@gnu.org>
4625
4626 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
4627 if a menu is active on this frame.
4628
31a4f621
DN
46292006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
4630
4631 * lisp.h (report_file_error): Mark as NO_RETURN.
4632
7e773529
EZ
46332006-04-08 Eli Zaretskii <eliz@gnu.org>
4634
4f27350a
EZ
4635 * alloc.c [STDC_HEADERS]: Include stddef.h.
4636
7e773529
EZ
4637 * lisp.h (PSEUDOVECSIZE): Fix last change.
4638
6bfd98e7
SM
46392006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
4640
4641 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
4642 `raw_status_high', and `raw_status_low' with plain integers, and move
4643 them to the end of the structure.
4644
4645 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
4646 pseudovector's size field so only the Lisp_Object fields get GC'd.
4647
4648 * process.c (update_status, make_process, Fdelete_process)
4649 (Fprocess_status, list_processes_1, start_process_unwind)
4650 (create_process, Fmake_network_process, server_accept_connection)
4651 (wait_reading_process_output, send_process, Fprocess_running_child_p)
4652 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
4653 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
4654 `pid' and `raw_status'.
4655 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
4656 representing PIDs that are larger than most-positive-fixnum.
4657
4658 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
4659
4660 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
4661
1d79e521
EZ
46622006-04-08 Eli Zaretskii <eliz@gnu.org>
4663
4664 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
4665
d65b4235
PE
46662006-04-03 Paul Eggert <eggert@cs.ucla.edu>
4667
4668 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
4669 ../lib-src/b2m.c and ../lib-src/editfns.c.
4670 (Fcurrent_time_string): Use it.
4671 Document that the year might not consume 4 columns if it's outside
4672 the range 1000-9999.
4673 Check for asctime failure.
4674 Don't assume that the output string length is always exactly 24.
4675
fc9f8d15
YM
46762006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4677
4678 * macterm.c (XTread_socket): Initialize variable `f' before its use.
4679
022af124
KH
46802006-04-03 Kenichi Handa <handa@m17n.org>
4681
4682 * image.c: Include "charset.h" and "coding.h".
4683 (x_find_image_file): Return an encoded file name.
4684
61be4a8a
EZ
46852006-04-01 Eli Zaretskii <eliz@gnu.org>
4686
4687 * configure: Regenerated.
4688
a869edd4
KH
46892006-03-31 Kenichi Handa <handa@m17n.org>
4690
4691 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
4692
29444a2f
DN
46932006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4694
4695 * xdisp.c (syms_of_xdisp): Fix variable name.
4696
3c5f9492
KH
46972006-03-30 Kenichi Handa <handa@m17n.org>
4698
4699 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
4700
267ee78f
JB
47012006-03-29 Juanma Barranquero <lekktu@gmail.com>
4702
4703 * keyboard.c (process_tool_bar_item): Reorder dummy args.
4704
293bd733
SM
47052006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
4706
4707 * keyboard.c (tool_bar_items): Use map_keymap.
4708 (process_tool_bar_item): Add dummy args to fit the required interface.
4709
4fccedb5
EZ
47102006-03-25 Eli Zaretskii <eliz@gnu.org>
4711
4712 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
4713 to zero before calling debug_print or safe_debug_print.
4714
4715 * print.c (print_output_debug_flag): New global variable.
4716 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
4717 OutputDebugString if print_output_debug_flag is zero.
4718
aac18aa4
PE
47192006-03-24 Paul Eggert <eggert@cs.ucla.edu>
4720
71c3f28f 4721 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
aac18aa4 4722 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
71c3f28f
EZ
4723 (Fdecode_time): Cast tm_year to EMACS_INT.
4724 (Fcurrent_time_string): Report an invalid time specification if
293bd733 4725 the argument is invalid. Also, check for out-of-range time stamps.
aac18aa4 4726
0ef4f79b
KS
47272006-03-24 Kim F. Storm <storm@cua.dk>
4728
95d8aa28
KS
4729 * xterm.c (handle_one_xevent):
4730 * w32term.c (w32_read_socket):
95d8aa28
KS
4731 * macterm.c (XTread_socket): Don't let key-press clear mouse face
4732 on in toolbar window if mouse-highlight is an integer.
4733
0ef4f79b
KS
4734 * fns.c (sxhash_list): Include last non-nil CDR in hash.
4735
e2e206ae
YM
47362006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4737
4738 * macmenu.c (enum mac_menu_kind): New enum.
4739 (min_menu_id): New variable.
4740 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
4741 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
4742 min_menu_id and enumerators in enum mac_menu_kind.
4743 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
4744 All uses changed. Add range check for menu ID.
4745 (fill_menubar): Add range check for menu ID.
4746 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
4747 GetEventParameter.
4748 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
4749 for each menu kind.
4750
5a32a2f2
KS
47512006-03-22 Kim F. Storm <storm@cua.dk>
4752
ea049c5e
KS
4753 * xdisp.c: Undo 2006-03-21 change.
4754
4755 * term.c: Define aliases for append_glyph and produce_stretch_glyph
4756 when `static' is defined to avoid name clash with those in xdisp.c.
4757
647b07d1
AS
4758 * process.c (Faccept_process_output): Fix to comply with lisp
4759 reference. Change arg "timeout" to "seconds" and allow both
4760 integer and float value. Change arg "timeout-msec" to "millisec"
4761 and interpret" as milliseconds rather than microseconds. Fix doc
4762 string accordingly.
5a32a2f2 4763
d63cd766
KR
47642006-03-21 Ken Raeburn <raeburn@raeburn.org>
4765
293bd733
SM
4766 * xdisp.c (store_next_glyph): Rename from append_glyph.
4767 (generate_stretch_glyph): Rename from produce_stretch_glyph.
d63cd766
KR
4768 All callers changed accordingly.
4769
11e887e2
JD
47702006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4771
4772 * xterm.c: x_session_initialized new variable.
4773 (x_term_init): Use x_session_initialized to check if
4774 x_session_initialize should be called.
4775 (x_initialize): Initialize x_session_initialized.
4776
52bd2f43
KS
47772006-03-21 Kim F. Storm <storm@cua.dk>
4778
4779 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
4780 bitmap here, but ...
4781 (update_window_fringes): ... here, so we can test if it has changed.
4782
c1fc674b
AS
47832006-03-20 Andreas Schwab <schwab@suse.de>
4784
4785 * dispnew.c (init_display): Check DISPLAY here.
4786
4787 * emacs.c (main): Don't check here.
4788
4789 * xterm.c (x_display_ok): Don't use DISPLAY env var.
4790
7d619454
SM
47912006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4792
4793 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
4794 mixup (YAILOM).
4795
e2916251
EZ
47962006-03-20 Eli Zaretskii <eliz@gnu.org>
4797
4798 * emacs.c (main): Fix last change.
4799
95c1c901
KH
48002006-03-20 Kenichi Handa <handa@m17n.org>
4801
7d619454 4802 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
95c1c901
KH
4803
4804 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
4805
4806 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
4807
4808 * xterm.c (x_term_init): Remove unnecessary GCPRO.
4809
45c1c789
KS
48102006-03-19 Kim F. Storm <storm@cua.dk>
4811
5e1a6e32 4812 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
45c1c789
KS
4813 so it doesn't associate overlay string with following glyph by default.
4814 Allow integer property value to specify explicit number of buffer
4815 positions associate with overlay string.
4816
11aaf447
CY
48172006-03-18 Chong Yidong <cyd@stupidchicken.com>
4818
4819 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
4820
e4d181dc
EZ
48212006-03-18 Nozomu Ando <nand@mac.com>
4822
4823 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
4824 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
4825 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
4826 Don't redefine.
4827
4828 * m/mips.h: Don't use unexmips on NetBSD.
4829 (LIBS_MACHINE): Move definition lower, so it doesn't use
4830 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
4831 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
4832
4833 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
4834 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
4835 option is broken (e.g., MIPS/NetBSD).
4836
50f9edc2
EZ
48372006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
4838
4839 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
7b833ed1 4840 Remove the HAVE_X_WINDOWS conditional.
50f9edc2 4841
7e37c7c0
EZ
48422006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
4843
4844 * emacs.c (main): If user asks for a display that is unavailable,
4845 simulate -nw.
4846
4847 * xterm.c (x_display_ok): New function.
4848
4849 * xterm.h: Add prototype for x_display_ok.
4850
c85eab3a
EZ
48512006-03-18 Eli Zaretskii <eliz@gnu.org>
4852
4853 * w32fns.c (Fw32_select_font): Doc fix.
4854
e09ce637
YM
48552006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4856
4857 * image.c [MAC_OS] (XPutPixel, XGetPixel)
4858 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
4859 version when depth is 32.
7d619454
SM
4860 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
4861 New function.
e09ce637
YM
4862 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
4863 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
4864
4865 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
4866 Create GWorld in ARGB pixel format.
7d619454
SM
4867 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
4868 Remove functions.
e09ce637
YM
4869 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
4870 instead of mac_copy_area/mac_copy_area_with_mask.
4871
b0896280
KS
48722006-03-15 Kim F. Storm <storm@cua.dk>
4873
4874 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
4875 empty row. Fixes memory corruption revealed by 2006-03-02 change.
4876 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
4877 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
4878 width is exactly the same as the window width. Don't count a final
4879 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
4880
713cb18d
JB
48812006-03-15 Juanma Barranquero <lekktu@gmail.com>
4882
364d0cf8 4883 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
713cb18d
JB
4884 conditional on HAVE_NTGUI, not WINDOWS_NT.
4885
ad21830e
YM
48862006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4887
4888 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
4889
4890 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
4891
4892 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
4893 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
4894 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
4895 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
4896 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
4897 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
4898 instead of mac_draw_bitmap.
4899 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
4900 define_fringe_bitmap and destroy_fringe_bitmap.
4901
8a34117e
CY
49022006-03-14 Chong Yidong <cyd@stupidchicken.com>
4903
4904 * xterm.c (x_uncatch_errors): Block input for entire function.
4905
ab68b375
JR
49062006-03-12 Jason Rumney <jasonr@gnu.org>
4907
92cc46af 4908 * w32fns.c (Fx_create_frame): Remove call to
364d0cf8 4909 Qface_set_after_frame_default (from xfns.c 2003-05-26).
92cc46af 4910
335be36b
JR
4911 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
4912 finished with the menu.
4913
ab68b375
JR
4914 * w32term.c: Sync 2005-10-24 xterm.c changes.
4915 (last_mouse_glyph_frame): New var.
4916 (note_mouse_movement): Say mouse moved if current frame differs
4917 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4918 (w32_mouse_position): Set last_mouse_glyph_frame.
875e613d 4919 Remove OLD_REDISPLAY_CODE block.
ab68b375 4920
204b78de
YM
49212006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4922
4923 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
4924
4925 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
4926 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
4927
4928 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4929
4930 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
4931
4932 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
4933 (x_draw_composite_glyph_string_foreground)
4934 (x_draw_image_foreground): Undo previous changes.
4935 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
4936 argument of mac_draw_rectangle.
4937 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
4938 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
4939 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
4940 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
4941 [USE_CG_DRAWING]: New functions.
4942 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
4943 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
4944 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
4945 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
4946 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
4947 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
4948 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4949
a9d54793
KL
49502006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4951
4952 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
4953
b452fd7a
JR
49542006-03-11 Jason Rumney <jasonr@gnu.org>
4955
4956 * w32fns.c (signal_user_input): New function.
4957 (post_character_message): Use it for keyboard input.
4958 (w32_msg_pump): Use it for mouse input.
4959
f372bd5b
LT
49602006-03-11 Luc Teirlinck <teirllm@auburn.edu>
4961
4962 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
4963 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
4964
2c1bd367
EZ
49652006-03-11 Eli Zaretskii <eliz@gnu.org>
4966
4967 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
4968 if a menu is already active (the menubar_active flag is on).
4969
f161146b
EZ
49702006-03-11 David Ponce <david@dponce.com>
4971
7d619454 4972 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
f161146b 4973
9257b627
EZ
49742006-03-11 Eli Zaretskii <eliz@gnu.org>
4975
db3c0e9c
EZ
4976 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
4977 the list of unused display error handling functions.
4978
8887e8ec
EZ
4979 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
4980 HAVE_X_WINDOWS.
4981 (internal_condition_case, internal_condition_case_1)
4982 (internal_condition_case_2): Call x_catching_errors only if
4983 HAVE_X_WINDOWS.
4984
9257b627
EZ
4985 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
4986 Don't include sys/resource.h unless defined.
4987
395d3972
RS
49882006-03-11 Richard Stallman <rms@gnu.org>
4989
5a893bff
RS
4990 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
4991
395d3972 4992 * vm-limit.c (get_lim_data, lim_data, data_space_start):
7d619454 4993 Move from mem-limits.h.
395d3972
RS
4994 (enum warnlevel): New data type.
4995 (check_memory_limits): Rewrite the logic about warnings.
4996 Use standard `struct rlimit'. Check return values for nonsense.
4997 (memory_warnings): Always clear lim_data.
4998
4999 * mem-limits.h (get_lim_data, lim_data, data_space_start):
7d619454 5000 Move to vm-limit.c.
395d3972
RS
5001
5002 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
5003
5004 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
f372bd5b 5005 (internal_condition_case_1, internal_condition_case_2):
395d3972
RS
5006 Abort if within unclosed x_catch_errors.
5007
635a3496
RF
50082006-03-11 Romain Francoise <romain@orebokech.com>
5009
5010 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
5011
306cea3a
EZ
50122006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5013
5014 * lisp.h: Remove duplicate prototypes. Make the prototype of
5015 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
5016
97b5ae78
EZ
50172006-03-11 Eli Zaretskii <eliz@gnu.org>
5018
7325e714
EZ
5019 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
5020 argument of XDrawRectangle.
5021
97b5ae78
EZ
5022 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
5023
5024 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
5025 (x_draw_glyph_string_foreground)
5026 (x_draw_composite_glyph_string_foreground)
5027 (x_draw_image_foreground): Don't subtract 1 from width and height
5028 arguments to mac_draw_rectangle.
5029 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
5030
68f632a8
KS
50312006-03-10 Kim F. Storm <storm@cua.dk>
5032
5033 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
5034
349a4500
SM
50352006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
5036
5037 * alloc.c (USE_POSIX_MEMALIGN): New macro.
5038 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
5039
53a5eba9
KH
50402006-03-09 Kenichi Handa <handa@m17n.org>
5041
5042 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
5043 ASCII component of a composition.
5044
629f023d
LT
50452006-03-08 Luc Teirlinck <teirllm@auburn.edu>
5046
5047 * window.c: Declare preserve_y as a static global variable.
5048 (window_scroll_pixel_based): No longer declare preserve_y;
5049 it is global now.
f945af42 5050 (syms_of_window): Set preserve_y to -1.
629f023d 5051
4cdffedf
YM
50522006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5053
5054 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
5055 depth is 32.
204b78de 5056 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
4cdffedf
YM
5057 depth is 32.
5058
45b5f35d
CY
50592006-03-06 Chong Yidong <cyd@stupidchicken.com>
5060
5061 * xdisp.c (handle_invisible_prop): Don't update it->position with
5062 a buffer position if we're in a display string.
5063
48b60fa1
YM
50642006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5065
5066 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
5067 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
5068
5069 * macfns.c (x_default_scroll_bar_color_parameter)
349a4500
SM
5070 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
5071 Remove unnecessary prototypes.
5072 (x_set_scroll_bar_default_width):
5073 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
48b60fa1
YM
5074 (mac_set_scroll_bar_width): New function.
5075 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
5076
5077 * macterm.c (get_control_part_bounds): Fix type of return value.
5078 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5079 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
5080 scroll bar if it is not tall enough to display scroll bar thumb.
5081 [USE_CARBON_EVENTS] (mac_convert_event_ref)
5082 (mac_handle_command_event, mac_handle_window_event)
5083 (mac_handle_mouse_event): Check error code of GetEventParameter.
5084 (convert_fn_keycode) [MAC_OSX]: Likewise.
f945af42 5085
6f10509c
AS
50862006-03-05 Andreas Schwab <schwab@suse.de>
5087
5088 * xselect.c (x_catch_errors_unwind): Fix missing return value.
5089
f79bc642
KS
50902006-03-02 Kim F. Storm <storm@cua.dk>
5091
5092 * frame.h (struct frame): New member n_tool_bar_rows.
5093
5094 * xdisp.c: Minimize the unpleasent visual impact of the requirement
5095 that non-toolkit tool-bars must occupy an integral number of screen
875e613d 5096 lines, by distributing the rows evenly over the tool-bar screen area.
f79bc642
KS
5097 (Vtool_bar_border): New variable.
5098 (syms_of_xdisp): DEFVAR_LISP it.
349a4500
SM
5099 (display_tool_bar_line): Add HEIGHT arg for desired row height.
5100 Make tool-bar row the desired height. Use default face for border
5101 below tool-bar.
f79bc642
KS
5102 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
5103 actual tool-bar rows.
5104 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
5105 Adjust the height of the tool-bar rows to fill tool-bar screen area.
5106 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
5107 is resized.
5108
0bbe0c9c
LT
51092006-03-01 Luc Teirlinck <teirllm@auburn.edu>
5110
5111 * search.c (Fregexp_quote): Do not precede a literal `]' with two
5112 backslashes to try to make clear that it has a literal meaning; it
5113 does not do that. (It could close a character alternative
5114 containing a backslash.)
5115
c525d842
CY
51162006-02-28 Chong Yidong <cyd@stupidchicken.com>
5117
5118 * xselect.c (x_catch_errors_unwind): New function.
5119 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
5120 (Fx_get_atom_name): Call x_uncatch_errors earlier.
5121
5122 * window.c (Qscroll_up, Qscroll_down): New syms.
5123 (window_scroll_pixel_based): Make preserve_y static to avoid
5124 getting point stuck when scrolling 1 line.
5125
4545fa20
CY
51262006-02-26 Chong Yidong <cyd@stupidchicken.com>
5127
349a4500 5128 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
4545fa20 5129
364d0cf8
JB
5130 * xterm.c (x_load_font, x_term_init, XTmouse_position)
5131 (handle_one_xevent, x_connection_closed, x_list_fonts):
5132 No arg for x_uncatch_errors.
4545fa20
CY
5133
5134 * xselect.c (x_own_selection, x_decline_selection_request)
5135 (x_reply_selection_request, x_get_foreign_selection)
5136 (Fx_get_atom_name, Fx_send_client_event): Likewise.
5137
5138 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
5139 Likewise.
5140
a5e25a4c
LT
51412006-02-26 Luc Teirlinck <teirllm@auburn.edu>
5142
440cbd9e
LT
5143 * lread.c: Declare Vload_file_rep_suffixes instead of
5144 deleted variable default_suffixes.
5145 (Fget_load_suffixes): New function.
5146 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
5147 No longer use deleted variable default_suffixes. Update docstring.
5148 (syms_of_lread): defsubr Sget_load_suffixes.
5149 Expand `load-suffixes' docstring.
5150 Delete default_suffixes and DEFVAR_LISP the new variable
5151 `load-file-rep-suffixes'.
5152
5153 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
5154 of Vload_suffixes.
5155
5156 * lisp.h: EXFUN Fget_load_suffixes.
5157 Extern Vload_file_rep_suffixes.
5158
a5e25a4c
LT
5159 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
5160 with lisp.h.
5161
a7af5886
SM
51622006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
5163
5164 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
5165 qualifier which was trying to avoid the bug that was fixed by
5166 yesterday's changes to xterm.c.
5167
9ba8e10d
CY
51682006-02-25 Chong Yidong <cyd@stupidchicken.com>
5169
5170 * xterm.h (x_catch_errors) Return value changed to void.
4545fa20 5171 (x_uncatch_errors): Delete unused count argument.
a7af5886 5172
9ba8e10d
CY
5173 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
5174 it can be called in a signal handler.
5175 (x_catch_errors_unwind): Function deleted.
5176 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
5177 (x_check_errors): Call x_uncatch_errors before signalling error.
5178
5179 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
5180 (x_connection_closed, x_list_fonts): Use new versions of
5181 x_catch_errors and x_uncatch_errors.
5182
5183 * xselect.c (x_own_selection, x_decline_selection_request)
5184 (x_reply_selection_request, x_get_foreign_selection)
5185 (Fx_get_atom_name, Fx_send_client_event): Likewise.
5186
5187 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
5188 Likewise.
5189
5190 * eval.c (record_unwind_protect): Add an assertion.
5191
f523e0c3
SM
51922006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5193
5194 * process.c (Fmake_network_process): Init the process's mark.
5195
a7a7e1d7
KS
51962006-02-25 Kim F. Storm <storm@cua.dk>
5197
5198 * buffer.c (modify_overlay): Force redisplay if we modify an
5199 overlay at the end of the buffer.
5200
a821c035
JD
52012006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5202
ca21600d
JB
5203 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
5204 nil the image file has been removed, in that case use the (cached)
5205 pixmap.
a821c035 5206
77343e1d
KH
52072006-02-24 Kenichi Handa <handa@m17n.org>
5208
5209 * fileio.c (Finsert_file_contents): When a text is replaced
5210 partially, be sure to set point before the inserted characters.
5211
92fb5516
KH
52122006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
5213
5214 * xfns.c (Fx_file_dialog): Return a decoded file name.
5215
78897758
YM
52162006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5217
5218 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
5219 glyph whose face is extended to the text area end.
5220
5b574e69
YM
5221 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
5222 values if control is not visible or values are not changed.
5223
acc6289a
SM
52242006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
5225
5226 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
5227 The default `window' should not be "on a different frame".
5228
c4336e88
KS
52292006-02-22 Kim F. Storm <storm@cua.dk>
5230
5231 * indent.c (Fvertical_motion): Only try to move back if we can.
5232
b6e3efe0
YM
52332006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5234
5235 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
5236 n_clip_rects.
5237
5238 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
5239 xmenu.c.
5240
5241 * macterm.c (GC_CLIP_REGION): Remove macro.
5242 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
5243 All uses changed. Don't do clipping if n_clip_rects is zero.
acc6289a
SM
5244 (mac_set_clip_rectangles): Use xassert instead of abort.
5245 Set n_clip_rects. Don't make clip_region empty when number of
b6e3efe0
YM
5246 clipping rectangles is zero.
5247 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
5248 calling mac_set_clip_rectangles.
5249 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
5250 avoid multiple redraws.
5251
6f62a45e
KS
52522006-02-22 Kim F. Storm <storm@cua.dk>
5253
5254 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
5255
dd9959da
KS
52562006-02-21 Kim F. Storm <storm@cua.dk>
5257
5258 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
5259
364d0cf8 52602006-02-21 Zhang Wei <brep@newsmth.org>
a8f4bdc6
JD
5261
5262 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
5263 returning it.
5264
dd9959da 52652006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9866a438
JB
5266
5267 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
5268 (standard_bitmaps): Use it.
5269
9fb446e3
YM
52702006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5271
5272 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
5273 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
5274 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
5275 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
acc6289a
SM
5276 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
5277 Draw background if BG_WIDTH is not zero. Use float constants as
9fb446e3
YM
5278 divisors instead of double. Use alloca instead of xmalloc/xfree.
5279 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5280 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
5281 mac_draw_image_string* functions.
5282 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
5283 some fonts when srcCopy text transfer mode might be used.
5284 (mac_begin_clip, mac_end_clip): Check if region is empty.
5285 (mac_set_clip_rectangles): When resetting clip region, make it
5286 empty instead of disposing of it.
5287
49af2995
KS
52882006-02-20 Kim F. Storm <storm@cua.dk>
5289
5290 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
5291
5292 * buffer.h (struct buffer): New members fringe_indicator_alist and
5293 fringe_cursor_alist.
5294
5295 * buffer.c (init_buffer_once): Set dummy default values for
5296 fringe-indicator-alist and fringe-cursor-alist. The proper
5297 default values are set by pre-loading fringe.el.
5298 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
5299 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
9866a438 5300 corresponding default- variables.
49af2995
KS
5301
5302 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
5303 to use `int'.
5304 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
5305 Define explicitly.
5306 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
5307 (Qhollow_small): New variables.
5308 (syms_of_fringe): Intern and staticpro them.
5309 (question_mark_bits): Rename from unknown_bits.
5310 (left_curly_arrow_bits): Rename from continuation_bits.
5311 (right_curly_arrow_bits): Rename from continued_bits.
5312 (left_triangle_bits): Rename from ov_bits.
acc6289a 5313 (right_triangle_bits): Add.
49af2995
KS
5314 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
5315 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
acc6289a 5316 (filled_square_bits): Add.
49af2995 5317 (vertical_bar_bits): Rename from bar_cursor_bits.
9866a438 5318 (horizontal_bar_bits): Rename from hbar_cursor_bits.
49af2995
KS
5319 (empty_line_bits): Rename from zv_bits.
5320 (standard_bitmaps): Update to use new names.
5321 (draw_fringe_bitmap_1): Make static.
5322 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
5323 to map from logical cursors and indicators to physical bitmaps.
875e613d 5324 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
49af2995
KS
5325 bitmaps using symbol names instead of bitmap numbers.
5326 (update_window_fringes): Use logical indicator symbol names
5327 instead of bitmap numbers for logical. Add bitmap cache.
5328 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
5329
a77f947b
CY
53302006-02-20 Chong Yidong <cyd@stupidchicken.com>
5331
a073faa6
CY
5332 * regex.c: Revert 2006-02-19 change.
5333 (xmalloc, xrealloc): Define these when not linked to Emacs.
5334 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
a77f947b 5335
2f90d2bc
LT
53362006-02-19 Luc Teirlinck <teirllm@auburn.edu>
5337
5338 * regex.c (extend_range_table_work_area): Fix typo.
5339
5498b6af
RS
53402006-02-19 Richard M. Stallman <rms@gnu.org>
5341
7b1d7d66
RS
5342 * xterm.c (x_catch_errors): Use xmalloc.
5343
5344 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
5345 (regex_compile): Likewise.
5346 (regcomp): Use xmalloc.
5347
5348 * gtkutil.c (malloc_widget_value): Use xmalloc.
5349
5498b6af
RS
5350 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
5351 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
5352
5353 * xmenu.c (digest_single_submenu): When pane_string is empty,
5354 do initialize save_wv.
5355
4f2f3214
YM
53562006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5357
5358 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
5359 w->update_mode_line if arg F is not the selected frame.
5360
5361 * macmenu.c (popup_activated_flag, submenu_id)
5362 (next_menubar_widget_id): Remove variables.
5363 (initialize_frame_menubar): Remove function.
5364 (pop_down_menu, mac_menu_show): Simplify save value.
5365 (dispose_menus): New function.
5366 (pop_down_menu, fill_menubar): Use it.
5367 (fill_submenu): Remove function. All uses changed to fill_menu.
5368 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
5369 POS. Don't call SetMenuItemHierarchicalID here.
5370 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
5371 used next. Call SetMenuItemHierarchicalID here.
5372 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
5373 objects if needed. Reuse existing menu bar titles if possible.
5374 (set_frame_menubar): Don't clean up menu objects here.
5375
da7520de
CY
53762006-02-18 Chong Yidong <cyd@stupidchicken.com>
5377
5378 * window.c (window_min_size_1): Ensure room for the scroll bar and
5379 fringes.
5380
a9c18b84
RF
53812006-02-17 Romain Francoise <romain@orebokech.com>
5382
5383 * puresize.h (BASE_PURESIZE): Increment to 1200000.
5384
537407f0
SM
53852006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
5386
5387 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
5388 addition of the BLOCK_INPUTs.
5389
5bf3610f
JB
53902006-02-17 Juanma Barranquero <lekktu@gmail.com>
5391
5392 * window.c (Fset_window_scroll_bars): Doc fix.
5393
ed0218e2
KH
53942006-02-17 Kenichi Handa <handa@m17n.org>
5395
5396 * xdisp.c (display_mode_element): Call display_string with correct
5397 PREC arg (which must be a number of characters, not column width).
5398
f036d043
YM
53992006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5400
5401 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
5402
5403 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
5404
5405 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
5406
885f1975
RS
54072006-02-14 Richard M. Stallman <rms@gnu.org>
5408
9d8f542c
RS
5409 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
5410
885f1975
RS
5411 * m/ibms390x.h: New file.
5412
26ebccfd
JD
54132006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5414
5415 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
5416 value of x-gtk-whole-detached-tool-bar.
d8d3d48c 5417 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
26ebccfd
JD
5418
5419 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
5420
4d7637b8 54212006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
58118de5
JD
5422
5423 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
5424
5425 * xterm.h: Declare x_x_to_emacs_modifiers.
5426
5427 * gtkutil.c (xg_tool_bar_button_cb): New function.
5428 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
5429 store modifiers in event.
5430 (update_frame_tool_bar): Connect button-release-event to
5431 xg_tool_bar_button_cb.
5432
f8d775e1
RS
54332006-02-13 Richard M. Stallman <rms@gnu.org>
5434
5435 * .gdbinit (xwindow): Update the code to show the window box.
5436
0c0351b5
JD
54372006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5438
5439 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
5440
4d94dd9a
RS
54412006-02-12 Richard M. Stallman <rms@gnu.org>
5442
5443 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
5444
c54fb9ef
EZ
54452006-02-11 Eli Zaretskii <eliz@gnu.org>
5446
5447 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
5448 (syms_of_keyboard): DEVFAR_LISP and initialize it.
5449 (parse_tool_bar_item, parse_menu_item): If that variable is
5450 non-nil, don't disable menu items and tool-bar buttons.
5451
ac6a9b55
JB
54522006-02-11 Juanma Barranquero <lekktu@gmail.com>
5453
5454 * doc.c (Fsubstitute_command_keys): Doc fix.
5455
0ddb0ae8
TTN
54562006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
5457
5458 * data.c (Findirect_function): Rewrite docstring.
5459 Fix omission bug: Declare new arg NOERROR.
5460
cbd488c4
YM
54612006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5462
5463 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
5464 if window_desc is not set yet.
5465 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
5466 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
5467 parameter `visibility' is `icon'.
5468 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
5469 instead of "fontset-mac".
5470 (Fx_focus_frame): New defun.
5471 (syms_of_macfns): Defsubr it.
5472
5473 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
5474 for unfocused frame.
5475 (x_raise_frame): Call BringToFront instead of SelectWindow.
5476 (x_lower_frame): Use NULL instead of nil.
5477 (x_make_frame_visible): Don't call SelectWindow.
5478 (XTread_socket): Increment handling_signal at the start, decrement
5479 it at the end.
5480 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
5481 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
5482
a7f96a35
KS
54832006-02-10 Kim F. Storm <storm@cua.dk>
5484
5485 * data.c (Findirect_function): Add NOERROR arg. All callers changed
5486 to pass Qnil for NOERROR.
5487
5488 * keymap.c (current_minor_maps_error): Remove.
5489 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
5490 instead of using internal_condition_case_1+current_minor_maps_error.
5491
1834d8e7
JD
54922006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5493
5494 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
5495 frames for GTK, in that case it is the tool bar. This is so that
5496 highlighted text get reset properly.
5497
cffc3472
JB
54982006-02-09 Juanma Barranquero <lekktu@gmail.com>
5499
5500 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
5501
e99c7521
JD
55022006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5503
5504 * window.c (adjust_window_trailing_edge): Check that shrinking
5505 does not set a window to size zero or less.
5506
42ab8e36
MB
55072006-02-08 Miles Bader <miles@gnu.org>
5508
5509 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
cffc3472 5510 of Fget_text_property (other field functions work with overlays as
42ab8e36
MB
5511 well as text-properties).
5512
6a80c3ba
KH
55132006-02-07 Kenichi Handa <handa@m17n.org>
5514
e1a67366 5515 * dispextern.h (unibyte_display_via_language_environment): Extern it.
6a80c3ba 5516
e1a67366
KS
5517 * xterm.h (unibyte_display_via_language_environment):
5518 * w32term.h (unibyte_display_via_language_environment):
5519 * macterm.h (unibyte_display_via_language_environment): Delete extern.
6a80c3ba 5520
d2b4c17d
KH
55212006-02-07 Kenichi Handa <handa@m17n.org>
5522
e1a67366 5523 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
d2b4c17d 5524 (produce_glyphs): Set the character to print in
e1a67366
KS
5525 it->char_to_display. Handle unibyte-display-via-language-environment.
5526 (produce_stretch_glyph): Set character to print in it->char_to_display.
d2b4c17d 5527
8b9d426a
KH
55282006-02-06 Kenichi Handa <handa@m17n.org>
5529
e1a67366 5530 * lread.c (openp): Initialize encoded_fn before GCPRO it.
8b9d426a 5531
d63b4018
KR
55322006-02-05 Ken Raeburn <raeburn@raeburn.org>
5533
5534 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
5535
98950fd6
KR
5536 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
5537 Cast bitfield value to EMACS_INT, to suppress gcc warning.
5538
ca21600d
JB
5539 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
5540 defining.
0cf36656 5541
ad02d7ea
KS
55422006-02-03 Kim F. Storm <storm@cua.dk>
5543
5544 * xdisp.c: Cache last merged escape glyph face.
5545 (last_escape_glyph_frame, last_escape_glyph_face_id)
5546 (last_escape_glyph_merged_face_id): New variables.
5547 (get_next_display_element): Use/update them.
5548 (redisplay_internal): Reset them before redisplay.
5549
5550 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
5551 Only recheck faces after displaying ellipsis.
5552
999a0fe5
KH
55532006-02-02 Kenichi Handa <handa@m17n.org>
5554
5555 * coding.c (decode_composition_emacs_mule): Fix handling of
5556 incorrect format data.
5557
cd7cd4ac
JD
55582006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5559
14a56a1b
JB
5560 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
5561 gtk_toolbar_insert() so we can have tool bars of different sizes.
cd7cd4ac 5562
4cf7e99c
LT
55632006-01-30 Luc Teirlinck <teirllm@auburn.edu>
5564
5565 * data.c (Flistp): Doc fix.
5566
a3bc032f
JB
55672006-01-30 Juanma Barranquero <lekktu@gmail.com>
5568
5569 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
5570 Fix typos in docstrings.
5571
6badf38c
LT
55722006-01-28 Luc Teirlinck <teirllm@auburn.edu>
5573
1f2907ee 5574 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
6badf38c 5575
e2984df0
CY
55762006-01-27 Chong Yidong <cyd@stupidchicken.com>
5577
5578 * alloc.c (make_interval, allocate_string)
5579 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
5580 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
5581 global variables.
5582
dc86c16d
EZ
55832006-01-27 Eli Zaretskii <eliz@gnu.org>
5584
5585 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
5586 the MSDOS definition.
5587
57436ee7
RS
55882006-01-26 Richard M. Stallman <rms@gnu.org>
5589
5590 * alloc.c (check_pure_size): Make overflow message an "error message".
5591
5592 * keymap.c (Fmap_keymap): Doc fix.
5593
5594 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
5595 unless they were cleared out.
5596
5597 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
5598
2cb3aec4
KL
55992006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5600
e477bb04
KL
5601 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
5602 (find_field): Set before_field to after_field when pos is at BEGV.
293bd733
SM
5603 (Fline_beginning_position, Fline_end_position):
5604 Clarify confusing doc string.
2cb3aec4 5605
ca21600d
JB
5606 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
5607 string.
2cb3aec4 5608
34b87689
KH
56092006-01-26 Kenichi Handa <handa@m17n.org>
5610
5611 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
ca21600d
JB
5612 current_dir, and error_file. On reporting an error, decode them
5613 back.
34b87689 5614
1cee1e27
SM
56152006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5616
5617 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
5618 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
5619 Don't check for quit, since any loop will go through fail or jump.
5620
a0b08700
CY
56212006-01-24 Chong Yidong <cyd@stupidchicken.com>
5622
5623 * alloc.c (allocate_string_data): Update next_free immediately, to
5624 reduce risk of memory clobberage.
5625
bf7f1d30
KL
56262006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5627
5628 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
5629 display when point moves across an ellipsis. If there are
5630 adjacent invisible texts, don't lose the second one's ellipsis.
5631 (x_produce_glyphs): Doc fix.
5632
e5e26d8f
SM
56332006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
5634
5635 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
5636
1ff4535b
KS
56372006-01-23 Kim F. Storm <storm@cua.dk>
5638
5639 * xdisp.c (handle_single_display_spec): Fix handling of space
5640 property on char from string: set *position rather than
5641 it->current.pos.
5642 (produce_stretch_glyph): Reduce width of stretch glyphs so they
5643 don't get wider than the window (unless truncate-lines is on).
5644
5badc98d
SM
56452006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
5646
5647 * xterm.c: Avoid allocating Lisp data from a signal handler.
5648 (x_error_message): New var to replace x_error_message_string.
5649 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
5650 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
5651 (syms_of_xterm): Use it instead of x_error_message_string.
5652
5653 * alloc.c (lisp_align_free): Add an assertion.
5654 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
5655 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
5656 a signal handler.
5657
638590e8
LT
56582006-01-21 Luc Teirlinck <teirllm@auburn.edu>
5659
5660 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
5661
cde0a40c
RF
56622006-01-21 Romain Francoise <romain@orebokech.com>
5663
5664 * xdisp.c (get_window_cursor_type): Fix last change.
5665 Update copyright year.
5666
ea5f3ad4
EZ
56672006-01-20 Eli Zaretskii <eliz@gnu.org>
5668
3fdf12ca
EZ
5669 * lread.c (Fload): Don't leak the file descriptor returned by
5670 openp if we are going to signal an error.
5671
7559f399
EZ
5672 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
5673 directly to _close.
5674 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
5675 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
5676 to _read.
cde0a40c 5677 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
7559f399
EZ
5678 directly to _write.
5679
ea5f3ad4
EZ
5680 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
5681 if it is NULL.
5682
ef8beec6
KH
56832006-01-20 Kenichi Handa <handa@m17n.org>
5684
5685 * puresize.h (BASE_PURESIZE): Increment to 1190000.
5686
995f2df9
CY
56872006-01-19 Chong Yidong <cyd@stupidchicken.com>
5688
5689 * xdisp.c (get_window_cursor_type): Use cursor type specified by
5690 the selected buffer for the echo area too.
5691
c94c4d0a
RS
56922006-01-19 Richard M. Stallman <rms@gnu.org>
5693
5694 * keymap.c (Fmap_keymap): Doc fix.
5695
5696 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
5697
5698 * keyboard.c (echo_char): Don't omit the space between first two
5699 echoed chars.
5700
5701 * minibuf.c (read_minibuf): Fix previous change.
5702
71578d4f
KH
57032006-01-19 Kenichi Handa <handa@m17n.org>
5704
5705 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
5706
edd1c685
RS
57072006-01-17 Richard M. Stallman <rms@gnu.org>
5708
5709 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
5710 value in f->param_alist.
5711
0501acd4
AS
57122006-01-15 Andreas Schwab <schwab@suse.de>
5713
5714 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
5715
d33a7384
NR
57162006-01-13 Richard M. Stallman <rms@gnu.org>
5717
5718 * Makefile.in: Define new macro WINDOW_SUPPORT.
5719 (lisp): Use it.
5720 (SOME_MACHINE_LISP): Add conditionally loaded files.
5721
2026418c
YM
57222006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5723
5724 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
22e6707e 5725 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2026418c
YM
5726 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
5727 decomposed form.
5728
5729 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
5730 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
5731 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
5732 macro. Also try member ifr_addr when getting netmask.
5733
b8f7f3be
SM
57342006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
5735
5736 * fileio.c (Fexpand_file_name): Remove redundant tests.
5737 Fix elimination of // so that it doesn't prevent elimination of an
5738 immediately following /. or /..
5739
4c9ca1a3
JD
57402006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5741
5742 * gtkutil.c (xg_toggle_notify_cb): New function.
5743 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
5744 xg_toggle_notify_cb.
5745 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
5746 parameter value changes so the toggle button gets updated.
5747
340bb2ea
NR
57482006-01-06 Nick Roberts <nickrob@snap.net.nz>
5749
5750 * .gdbinit: Fix typo.
5751
feaf060a
EZ
57522006-01-05 Eli Zaretskii <eliz@gnu.org>
5753
5754 * .gdbinit: Fix last change.
5755
c22cc558
KS
57562006-01-05 Kim F. Storm <storm@cua.dk>
5757
5758 * process.c (Fmake_network_process): Use AF_INET instead of
22e6707e 5759 AF_UNSPEC when AF_INET6 is not defined.
c22cc558 5760
07f9b01c
YM
57612006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5762
5763 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
5764 Don't check that the other type is known file-related one.
5765
5766 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
5767 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
5768 OS X 10.4 and later.
5769
0facd9c3
JD
57702006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5771
5772 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
5773 let GTK do all image processing. Importing Emacs own pixmaps to GTK
5774 looks bad for inactive tool bar items with some Gnome themes.
5775
805b0439
EZ
57762006-01-04 Eli Zaretskii <eliz@gnu.org>
5777
913645cd
EZ
5778 * .gdbinit: Avoid a warning message when x_error_quitter is not
5779 compiled in.
5780
805b0439
EZ
5781 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
5782 for w32.
5783
0f5642c2
KS
57842006-01-04 Kim F. Storm <storm@cua.dk>
5785
8a5db8ae
KS
5786 * process.c: Add IPv6 support.
5787 (Qipv4, Qipv6): New vars.
5788 (syms_of_process): Intern and staticpro them.
5789 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
5790 with or without port number. Handle 4 element vector as IPv4 address
5791 without port number.
5792 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
5793 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
5794 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
5795 request that address family only. :family nil or omitted means to
5796 determine address family from the specified :host and :service.
5797 (ifflag_table): Add missing OpenBSD IFF_ flags.
5798 (server_accept_connection): Handle IPv6 addresses.
5799 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
5800
0f5642c2
KS
5801 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
5802 determine which breakpoints to set.
5803
e7b394e1
SM
58042006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
5805
5806 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
5807
5808 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
5809
dcc9b98d
RF
58102006-01-03 Romain Francoise <romain@orebokech.com>
5811
5812 * emacs.c (main): Update copyright year.
5813
6918ac24 58142006-01-03 Ken Raeburn <raeburn@gnu.org>
1a271e14
KR
5815
5816 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
5817 nil for the call to internal_delete_file.
5818
bb951f0e
KR
58192006-01-01 Ken Raeburn <raeburn@gnu.org>
5820
5821 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
5822 to nil for the call to Fwrite_region.
5823
b20de1cd
RS
58242005-12-31 Richard M. Stallman <rms@gnu.org>
5825
5826 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
5827
b5871831
EZ
58282005-12-31 Eli Zaretskii <eliz@gnu.org>
5829
5830 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
5831
c26ec07f
LT
58322005-12-30 Luc Teirlinck <teirllm@auburn.edu>
5833
5834 * textprop.c (set_text_properties): Reword description of return value.
5835 Return Qnil if caller wants to remove all text properties from a
5836 string and the string already has no intervals.
5837
0db017c0
SM
58382005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
5839
5840 * term.c (visible_cursor): New boolean var.
5841 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
5842 visible_cursor.
5843 (syms_of_term): Export the new var as "visible-cursor".
5844
fc8dc7cf
EZ
58452005-12-30 Eli Zaretskii <eliz@gnu.org>
5846
5847 * .gdbinit: Tell users not to worry about GDB warnings that some
5848 functions do not exist in the binary.
5849
82a80058
AS
58502005-12-30 Andreas Schwab <schwab@suse.de>
5851
5852 * process.c (Fnetwork_interface_info): Correctly terminate the
5853 loop over ifflag_table.
5854
c36238ee
RS
58552005-12-29 Richard M. Stallman <rms@gnu.org>
5856
d11db2c8
RS
5857 * lread.c (readevalloop): Test for reading a whole buffer
5858 before actually reading anything. Handle all cases, including
5859 START = END = nil and an already-narrowed buffer.
5860 Convert END to a marker if it is a number.
5861
c36238ee
RS
5862 * keymap.c (describe_map): Put sparse map elements into an array,
5863 sort them, then output a sequence of identical bindings on one line.
5864 (struct describe_map_elt): New data type.
5865 (describe_map_compare): New function.
5866
82bc1fd6
JD
58672005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5868
e7b394e1 5869 * gtkutil.c (xg_get_file_with_chooser): Change message shown
82bc1fd6
JD
5870 in file chooser.
5871
fe5195e8
RS
58722005-12-27 Richard M. Stallman <rms@gnu.org>
5873
6281e1e8
RS
5874 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
5875 not the current one.
5876
5877 * minibuf.c (Fminibuffer_message): Doc fix.
5878 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
5879
fe5195e8
RS
5880 * eval.c (do_autoload): Ignore elements of Vautoload_queue
5881 where car is not symbol.
5882
0d9fb289
KH
58832005-12-27 Kenichi Handa <handa@m17n.org>
5884
5885 * charset.c (lisp_string_width): Check multibyteness of STRING.
5886
ff9c9c59
JD
58872005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5888
14a56a1b 5889 * xfns.c (x_show_hidden_files): New variable.
ff9c9c59
JD
5890 (syms_of_xfns): Defvar it.
5891
5892 * gtkutil.c (xg_toggle_visibility_cb): New function.
5893 (xg_get_file_with_chooser): Add toggle hidden files and a message
5894 to the new file chooser dialog. Show hidden files if
5895 x_show_hidden_files is non-zero.
5896
d7504d5c
RS
58972005-12-26 Richard M. Stallman <rms@gnu.org>
5898
5899 * keyboard.h: Undo previous change.
5900
5901 * Makefile.in (undo.o): Undo previous change.
5902
5903 * undo.c: Undo previous change.
5904
0ad017ce
LT
59052005-12-26 Luc Teirlinck <teirllm@auburn.edu>
5906
403c00a5
LT
5907 * keyboard.h: extern last_point_position_window.
5908
0ad017ce
LT
5909 * undo.c: include keyboard.h.
5910
403c00a5 5911 * Makefile.in (undo.o): Depend on keyboard.h.
0ad017ce 5912
91e25f5e
RS
59132005-12-26 Richard M. Stallman <rms@gnu.org>
5914
d7504d5c
RS
5915 * commands.h (last_point_position_window): Declare.
5916
91e25f5e
RS
5917 * undo.c: Depend on window.h.
5918 (record_point): Save old point from the correct window.
5919
5920 * keyboard.c (last_point_position_window): New variable.
5921 (command_loop_1): Set last_point_position_window.
5922 (syms_of_keyboard): Init it.
5923
5924 * Makefile.in (undo.o): Depend on window.h.
5925
cad1051b
RS
59262005-12-25 Richard M. Stallman <rms@gnu.org>
5927
5928 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
5929 to undo a `provide'.
5930
5931 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
5932
d52c26e9
KB
59332005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
5934
5935 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
5936 define for FreeBSD on this platform.
5937
14af1e44
YM
59382005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5939
5940 * macterm.h (TYPE_FILE_NAME): New define.
5941 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
5942
e7b394e1
SM
5943 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
5944 Add prototypes. Make static.
14af1e44
YM
5945 (mac_aedesc_to_lisp): Initialize err to noErr.
5946 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
5947 (init_coercion_handler): New functions.
5948 (Fmac_coerce_ae_data): Use coercion of Apple event data for
5949 translation from/to file names.
5950
5951 * macterm.c: Don't include sys/param.h.
5952 (init_coercion_handler): Add extern.
5953 [MAC_OS8] (main): Call init_coercion_handler.
5954 (mac_initialize) [MAC_OSX]: Likewise.
5955 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
5956 Apple event data for translation from/to file names.
5957
5958 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
5959
5960 * image.c [MAC_OS] (find_image_fsspec): Likewise.
5961
5fed8c15 59622005-12-23 Martin Rudalics <rudalics@gmx.at>
bab3eee1
EZ
5963
5964 * insdel.c (insert, insert_and_inherit, insert_before_markers)
5965 (insert_before_markers_and_inherit): Make sure FROM is correct
5966 when `after-change-functions' are called.
5967
90f2e16b
JD
59682005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5969
5970 * xfns.c (Fx_uses_old_gtk_dialog): New function.
5971
5972 * gtkutil.c (xg_uses_old_file_dialog): New function.
5973 (xg_get_file_name): Use xg_uses_old_file_dialog.
5974
5975 * gtkutil.h: Declare xg_uses_old_file_dialog.
5976
0ee01fff
RS
59772005-12-22 Richard M. Stallman <rms@gnu.org>
5978
5979 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
5980
b73e4d84
YM
59812005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5982
5983 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
5984
5985 * macgui.h (XCharStruct): Remove member `valid_p'.
5986 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
5987 (XCharStructRow): New typedef.
e7b394e1
SM
5988 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
5989 New macros.
b73e4d84
YM
5990 (struct MacFontStruct): Add member `bounds'. Remove member
5991 `per_char'. All uses for QuichDraw Text fonts are changed to
5992 `bounds.per_char'. ATSUI font bounds are represented as an array
5993 `bounds.rows' of XCharStructRow's, each of which consists of a
5994 bitmap of valid entries and an array of char bounds.
5995
5996 * macterm.c (mac_per_char_metric): Add prototype.
5997 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
5998 (mac_query_char_extents): New function.
5999 (x_per_char_metric): Use it.
6000 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
e7b394e1
SM
6001 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
6002 Use mac_per_char_metric instead of x_per_char_metric.
b73e4d84
YM
6003 (mac_text_extents_16): New function.
6004 (mac_compute_glyph_string_overhangs): Use it.
6005 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
6006
a425bd03
SM
60072005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6008
6009 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
6010 (Fminibuffer_completion_help): Remove duplicates before display.
6011
aa0b0cd9
KL
60122005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6013
ca21600d
JB
6014 * print.c (print_preprocess): Don't lose print_depth levels while
6015 iterating.
aa0b0cd9 6016
5a61ec18
YM
60172005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6018
6019 * macmenu.c (Qmac_apple_event): Add extern.
6020 (set_frame_menubar, mac_menu_show keymp_panes)
6021 (single_keymap_panes, list_of_panes, list_of_item)
6022 (single_menu_item): Add argument types to prototypes.
6023 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
6024 (struct skp): New struct (from xmenu.c).
6025 (single_keymap_panes, single_menu_item, list_of_panes)
6026 (list_of_item): Sync with xmenu.c.
6027 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
6028 POSITION if it is mac-apple-event event.
6029 (menubar_selection_callback): Don't use menu_command_in_progress.
6030 (set_frame_menubar): First parse all submenus, then make
6031 widget_value trees from them. Don't allocate any widget_value
6032 objects until we are done with the parsing.
6033 (parse_single_submenu, digest_single_submenu): New functions.
6034 (single_submenu): Function deleted, replaced by those two.
523fc433
JB
6035 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
6036 or dispose of EventHandlerUPP. Install hander to all submenus.
5a61ec18
YM
6037 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
6038 instead of ENCODE_SYSTEM.
6039 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
6040 integer values.
6041 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
6042 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
6043 format menu item string. Don't use NULL for integer value.
6044
6045 * macterm.h (struct mac_output): Remove unused member
6046 menu_command_in_progress.
6047
3bdba51d
JL
60482005-12-20 Juri Linkov <juri@jurta.org>
6049
6050 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
6051 position is non-nil, else set it to nil.
6052
6053 * macmenu.c (Fx_popup_menu): Add `else' to set
6054 Vmenu_updating_frame to nil only if position is nil.
6055
6056 * w32menu.c (Fx_popup_menu): Add `else' to set
6057 Vmenu_updating_frame to nil only if position is nil.
6058
d6a90a49
YM
60592005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6060
6061 * keyboard.c (make_lispy_event): Drag-and-drop items are now
6062 stored in member `args' of struct input_event.
6063
6064 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
6065
6066 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
6067 stored in member `args' of struct input_event.
6068
6069 * w32term.c (construct_drag_n_drop): Likewise.
6070
6071 * macterm.c (mac_do_receive_drag): Likewise.
6072 (x_use_underline_position_properties): Undo 2005-07-13 change.
6073 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
6074 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
a425bd03
SM
6075 (mac_pass_command_to_system, mac_pass_control_to_system):
6076 New boolean variables renamed from Lisp_Object ones
d6a90a49 6077 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
a425bd03
SM
6078 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
6079 All uses changed.
d6a90a49
YM
6080 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
6081 Make them user options.
a425bd03
SM
6082 (mac_handle_command_event, mac_store_services_event):
6083 Call create_apple_event_from_event_ref without 5th argument.
d6a90a49
YM
6084 (backtranslate_modified_keycode): Mask off modifier keys that are
6085 mapped to some Emacs modifiers before passing it to KeyTranslate.
6086 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
6087 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
6088 Fix docstrings of `mac-*-modifier'.
6089
6090 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
a425bd03
SM
6091 (do_applescript): Change argument types to Lisp_Object.
6092 All uses changed.
d6a90a49
YM
6093
6094 * macterm.h (create_apple_event_from_event_ref): Remove 5th
6095 argument from extern.
6096
20d1c5c5
DN
60972005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6098
6099 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
6100 the answer, return `lambda', not nil.
6101
abeb5855
EZ
61022005-12-17 Eli Zaretskii <eliz@gnu.org>
6103
6104 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
6105 enclosed in $(ARGQUOTE)s should not be split between two lines, as
6106 that will break with GNU Make >3.80, when sh.exe is used and
6107 arg quoting is with '..'.
6108
6b8dfbf7
CY
61092005-12-17 Chong Yidong <cyd@stupidchicken.com>
6110
6111 * print.c (print_preprocess): Just signal an error if print_depth
6112 is exceeded.
6113
d912b87a
EZ
61142005-12-17 Eli Zaretskii <eliz@gnu.org>
6115
6116 * .gdbinit: Set a breakpoint on w32_abort.
6117
2a502a32
JL
61182005-12-16 Juri Linkov <juri@jurta.org>
6119
6120 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
6121 created from minibuffer_completion_contents.
6122 (minibuffer_completion_contents): Remove.
6123 (do_completion, Fminibuffer_complete_word)
6124 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
6125 with Fminibuffer_completion_contents.
6126 (syms_of_minibuf): Add Sminibuffer_completion_contents.
6127 (Fdisplay_completion_list): Doc fix.
6128 (display_completion_list_1): Use `nil' for second arg of
6129 `Fdisplay_completion_list'.
6130
bf63eb69
JD
61312005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6132
6133 * xfns.c (compute_tip_xy): Handle negative dx and dy.
6134
a425bd03 6135 * w32fns.c (compute_tip_xy): Ditto.
bf63eb69 6136
a425bd03 6137 * macfns.c (compute_tip_xy): Ditto.
bf63eb69 6138
9b98e161
CY
61392005-12-14 Chong Yidong <cyd@stupidchicken.com>
6140
6141 * print.c (print_preprocess): Go to a deeper print_depth to avoid
6142 print_object loop.
6143
89aa725a
KH
61442005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
6145
6146 * coding.c (code_convert_region_unwind): GCPRO arg.
6147
3b006f5b
JD
61482005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6149
57134802
JD
6150 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
6151 i.e. dy is offset from top of frame instead of bottom.
6152
6153 * macfns.c (compute_tip_xy): Ditto.
6154
6155 * w32fns.c (compute_tip_xy): Ditto.
6156
3b006f5b
JD
6157 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
6158 (xg_get_image_for_pixmap, xg_create_frame_widgets)
6159 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
6160
6161 * xmenu.c (menubar_selection_callback): Do nothing if the callback
6162 is for an unselected radio menu item.
6163
2cb33a98
RS
61642005-12-11 Richard M. Stallman <rms@gnu.org>
6165
6166 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
6167
6168 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
6169
6170 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
6171 (Flookup_key): Doc fix.
6172 (syms_of_keymap) <function-key-map>: Doc fix.
6173
6174 * fns.c (Frequire): Treat evaluating from a source file
6175 like loading the file.
6176
6177 * floatfns.c (Flog): Doc fix.
6178
6179 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
6180 when we change the buffer.
6181
d7d1f75e
JL
61822005-12-11 Juri Linkov <juri@jurta.org>
6183
6184 * minibuf.c (display_completion_list_1):
6185 Call `minibuffer_completion_contents' instead of using `nil' as
6186 second arg of `Fdisplay_completion_list'.
6187 (keys_of_minibuf): Unbind SPC in
6188 Vminibuffer_local_filename_completion_map (see also related
6189 change on 2005-12-06).
6190
ac8fcf0f
YM
61912005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6192
6193 * emacs.c (main) [MAC_OS8]: Undo previous change.
6194
6195 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
6196 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
6197
4b3eb407
YM
61982005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6199
6200 * Makefile.in (macselect.o): Depend on keymap.h.
6201
6202 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
6203 syms_of_macselect.
6204
6205 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
6206 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
6207
6208 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
6209 (syms_of_keyboard) [MAC_OS]: Initialize it.
6210 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
6211
6212 * mac.c (Qundecoded_file_name): New variable.
6213 (syms_of_mac): Initialize it.
6214 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
a425bd03 6215 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4b3eb407
YM
6216 (Fmac_coerce_ae_data): New defun.
6217 (syms_of_mac): Defsubr it.
6218
6219 * macselect.c: Include keymap.h.
6220 (mac_ready_for_apple_events): New variable.
6221 (Vmac_apple_event_map, Qmac_apple_event_class)
6222 (Qmac_apple_event_id): New variables.
6223 (syms_of_macselect): Initialize them.
6224 (Qundefined, mac_store_apple_event): Add externs.
6225 (struct apple_event_binding): New struct.
6226 (find_event_binding_fun, find_event_binding)
6227 (mac_find_apple_event_spec, defer_apple_events)
6228 (mac_handle_apple_event, init_apple_event_handler)
6229 (copy_scrap_flavor_data): New functions.
6230 (Fmac_process_deferred_apple_events): New defun.
6231 (syms_of_macselect): Defsubr it.
6232 (mac_store_services_event): Fix extern.
6233 (mac_handle_service_event): Don't allocate Lisp objects during
6234 asynchronous input processing. Use mac_store_services_event
6235 instead of mac_store_application_menu_event.
6236
6237 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
6238 (Qpreferences): Remove variables.
6239 (syms_of_macterm) : Don't initialize them.
6240 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
6241 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
6242 (init_required_apple_events, do_ae_open_application)
6243 (do_ae_print_documents, do_ae_open_documents)
6244 (do_ae_quit_application): Remove functions and prototypes.
6245 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
6246 (mac_find_apple_event_spec): Add externs.
6247 (mac_store_application_menu_event): Remove function.
6248 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
6249 (mac_handle_command_event): Create Apple event from Carbon event.
6250 Use mac_store_apple_event instead of mac_store_application_menu_event.
6251 [MAC_OSX] (mac_store_services_event): Likewise.
6252 (struct SelectionRange, SelectionRange): Remove struct and typedef.
6253 [MAC_OS8] (main): Call init_apple_event_handler instead of
6254 init_required_apple_events.
6255 (mac_initialize) [MAC_OSX]: Likewise.
e7b394e1
SM
6256 [!USE_CARBON_EVENTS] (mac_wait_next_event):
6257 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
4b3eb407 6258
e7b394e1
SM
6259 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
6260 Add externs.
4b3eb407
YM
6261 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
6262 (Fmac_get_preference): Add EXFUN.
6263
6264 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
6265 event.
6266
e358e052
RS
62672005-12-09 Richard M. Stallman <rms@gnu.org>
6268
6269 * xfns.c (Fx_create_frame): Reinstate previous change.
6270
9ea74bfb
EZ
62712005-12-09 Eli Zaretskii <eliz@gnu.org>
6272
6273 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
6274 GDB to the abort dialog.
6275
9dd28cae 62762005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
84fdb82c
KS
6277
6278 * indent.c (Fvertical_motion): Force move if starting on
6279 stretch glyph.
6280
2fda6977
RS
62812005-12-08 Richard M. Stallman <rms@gnu.org>
6282
2663a204
RS
6283 * lread.c (read_escape) <\s>: Don't treat strings specially.
6284
2fda6977
RS
6285 * xfns.c (Fx_create_frame): Comment out previous change.
6286
225c13a5
KL
62872005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6288
6289 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
6290 when needed.
6291
da8ec671
SM
62922005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
6293
6294 * minibuf.c (keys_of_minibuf): Just unbind SPC in
6295 Vminibuffer_local_filename_completion_map rather than forcing it
6296 explicitly to the same binding as the global map.
6297
88fde92a
KR
62982005-12-06 Ken Raeburn <raeburn@gnu.org>
6299
e7b394e1 6300 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
88fde92a 6301 * bytecode.c (Fbyte_code): Likewise.
e7b394e1 6302 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
88fde92a
KR
6303 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
6304 * undo.c (truncate_undo_list): Likewise.
6305
fa0d4d0c
RS
63062005-12-05 Richard M. Stallman <rms@gnu.org>
6307
6308 * window.c (enlarge_window): Eliminate arg preserve_before.
6309 Assume it is 0. All callers changed.
6310 (Fenlarge_window, Fshrink_window): Likewise.
6311
5a98616e
EZ
63122005-12-02 Eli Zaretskii <eliz@gnu.org>
6313
6314 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
6315 fit below.
6316
1dbacb90
JD
63172005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6318
6319 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
6320
6321 * xfns.c (x_real_positions): int ign => unsigned int.
6322 (xg_set_icon_from_xpm_data): Remove unused variable err.
6323 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
6324 to remove compiler warning.
6325 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
6326
0a79da1b
EZ
63272005-12-02 David Reitter <david.reitter@gmail.com>
6328
6329 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
6330 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
6331 and Vminibuffer_local_must_match_filename_map keymaps.
6332 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
6333
6334 * keymap.c (Vminibuffer_local_filename_completion_map)
6335 (Vminibuffer_local_must_match_filename_map): New variables.
6336 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
6337 parent to be Vminibuffer_local_completion_map and
6338 Vminibuffer_local_must_match_map, respectively.
6339
6340 * commands.h (Vminibuffer_local_filename_completion_map)
6341 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
6342
e67a1dea
SM
63432005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
6344
6345 * window.c (Fset_window_configuration): Don't accidentally copy the
6346 window-point of one window to another.
6347
6ad0f04d
KL
63482005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6349
7854b2a3 6350 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6ad0f04d 6351
4269a2fd
KS
63522005-11-30 Kim F. Storm <storm@cua.dk>
6353
6354 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
6355 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
6356 passing it to `emacs_write'.
6357
96013ba9
SM
63582005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
6359
6360 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
6361
161ef3be
RS
63622005-11-27 Richard M. Stallman <rms@gnu.org>
6363
6364 * window.c (adjust_window_trailing_edge): New function.
6365 (Fadjust_window_trailing_edge): New function.
96013ba9 6366 (syms_of_window): Defsubr it.
161ef3be
RS
6367 (window_deletion_count): New variable.
6368 (delete_window): Update window_deletion_count.
6369
02b1a164
EZ
63702005-11-26 Eli Zaretskii <eliz@gnu.org>
6371
6372 * minibuf.c (syms_of_minibuf): Mention the extension of
6373 `completion-auto-help's meaning by complete.el.
6374
07908aec
EZ
63752005-11-26 Henrik Enberg <henrik.enberg@telia.com>
6376
96013ba9 6377 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
07908aec
EZ
6378 Handle :inherit property as a lisp expression.
6379
b9c7cbf9
YM
63802005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6381
6382 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
6383 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
6384 Qsuper, and Qmodifier_value.
6385 (Vmac_control_modifier, Vmac_option_modifier)
6386 (Vmac_command_modifier, Vmac_function_modifier)
6387 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
6388 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
6389 (Vmac_charset_info_alist): Doc fixes.
6390
2c012c41
YM
63912005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6392
6393 * emacs.c (main) [MAC_OSX]: Change working directory to home
6394 directory if `-psn_*' option is specified.
6395
6396 * mac.c (DECODE_UTF_8): Remove macro.
6397 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
6398 created from cfstring_to_lisp.
6399 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
6400 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
6401
6402 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
6403 Add prototype.
6404
88fde92a 64052005-11-21 Ken Raeburn <raeburn@gnu.org>
d7c0be75
KR
6406
6407 * keymap.c (shadow_lookup): Use make_number to pass a number to
6408 Fsubstring.
6409
17c1971a
JL
64102005-11-21 Juri Linkov <juri@jurta.org>
6411
6412 * puresize.h (BASE_PURESIZE): Increment to 1180000.
6413
0268cef3
CY
64142005-11-20 Chong Yidong <cyd@stupidchicken.com>
6415
96013ba9
SM
6416 * xfaces.c (Finternal_set_lisp_face_attribute):
6417 Use :ignore-defface for new frame defaults when `unspecified' is
0268cef3
CY
6418 supplied.
6419 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
67d23e01
CY
6420 (merge_face_vectors): Don't do :ignore-defface overwriting here.
6421 (Finternal_merge_in_global_face): Do it here.
0268cef3 6422
dd949173
JL
64232005-11-20 Juri Linkov <juri@jurta.org>
6424
6425 * charset.c (invalid_character): Use Lisp-readable syntax
6426 for octal and hex. Reorder decimal, octal and hex values.
6427
76986433
NR
64282005-11-20 Nick Roberts <nickrob@snap.net.nz>
6429
6430 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
6431 this type is recognised when debugging.
6432
603add2d
AS
64332005-11-19 Andreas Schwab <schwab@suse.de>
6434
6435 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
6436 Lisp_Cons and Lisp_Float.
6437
125ce9ec
YM
64382005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6439
6440 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
6441 New variable.
96013ba9 6442 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
125ce9ec
YM
6443 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
6444 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
6445 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
6446
2ff10663
CY
64472005-11-17 Chong Yidong <cyd@stupidchicken.com>
6448
96013ba9 6449 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
fe45ad15 6450
2ff10663
CY
6451 * xfaces.c (Qignore_defface): New variable.
6452 (syms_of_xfaces): Provide `:ignore-defface'.
6453 (IGNORE_DEFFACE_P): New macro.
05338727
CY
6454 (check_lface_attrs, lface_fully_specified_p)
6455 (Finternal_set_lisp_face_attribute)
96013ba9
SM
6456 (Fface_attribute_relative_p, Fmerge_face_attribute):
6457 Handle Qignore_defface as a possible value.
2ff10663
CY
6458 (merge_face_vectors): The merged face is `unspecified' if the
6459 mergee specifies `:ignore-defface'.
6460
c01f0ed3
SM
64612005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
6462
6463 * lread.c (readevalloop): Add missing GCPROs.
6464
786a43d6
CY
64652005-11-16 Chong Yidong <cyd@stupidchicken.com>
6466
9f7b984b
CY
6467 * xfns.c (xg_set_icon_from_xpm_data): New function.
6468
c01f0ed3
SM
6469 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
6470 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
786a43d6
CY
6471
6472 * xterm.c (x_bitmap_icon): Use the xpm if available.
6473
6474 * image.c (x_create_bitmap_from_xpm_data): New function.
54188d8f 6475 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
786a43d6 6476
8ab84823
LT
64772005-11-15 Luc Teirlinck <teirllm@auburn.edu>
6478
6479 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
6480
3671718b
NR
64812005-11-16 Nick Roberts <nickrob@snap.net.nz>
6482
6483 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
6484
28a099a4
AS
64852005-11-15 Andreas Schwab <schwab@suse.de>
6486
6487 * lisp.h (struct Lisp_Cons): Make cdr a union.
6488 (XCDR_AS_LVALUE): Adjust.
6489 (struct Lisp_Float): Make data a union.
6490 (XFLOAT_DATA): Adjust.
6491
6492 * alloc.c (free_float): Make free list chaining aliasing-safe.
6493 (make_float): Likewise.
6494 (free_cons): Likewise.
6495 (Fcons): Likewise.
6496 (check_cons_list): Likewise.
6497 (Fmake_symbol): Likewise.
6498 (allocate_misc): Likewise.
6499 (free_misc): Likewise.
6500 (gc_sweep): Likewise.
6501
308a6607
YM
65022005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6503
fc09d07f
YM
6504 * mac.c (HASHKEY_QUERY_CACHE): New define.
6505 (xrm_create_database, xrm_q_put_resource): Empty query cache.
6506 (xrm_get_resource): Use query cache.
6507
308a6607
YM
6508 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
6509 inhibit_window_system is set.
6510
29b585db
YM
65112005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6512
6513 * macgui.h (USE_CG_TEXT_DRAWING): New define.
6514 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
6515 and cg_glyphs.
6516
6517 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
6518 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
6519 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
6520 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
6521 not used and font substitution never occurs for ASCII and Latin-1
6522 characters.
6523 (XLoadQueryFont): Maximum and minimum metrics are now those among
6524 ASCII characters.
6525 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
6526 height adjustments for Courier, Helvetica, and Times.
6527
6528 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
6529
9dd28cae 65302005-11-11 David Reitter <david.reitter@gmail.com>
b02e3f7b 6531
dff79d04 6532 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
267ee78f 6533 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
dff79d04
ST
6534 Vmac_control_modifier / mac-control-modifier,
6535 Vmac_option_modifier / mac-option-modifier,
6536 Vmac_command_modifier / mac-command-modifier.
6537 (mac_to_emacs_modifiers): Use the new style modifier
c01f0ed3
SM
6538 variables. Return UInt32 (modifiers are longs now.)
6539 (backtranslate_modified_keycode): New function (refactoring).
6540 (XTread_socket): Use new modifier variables and refactored function.
6541 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
6542 no dedicated meta key. Not in use anyway.)
b02e3f7b
ST
6543 (convert_fn_keycode): Map Fn-keys to their original keycode
6544 using a table (english keyboard only).
b02e3f7b 6545
6a77a9f5
KS
65462005-11-11 Kim F. Storm <storm@cua.dk>
6547
ab4d879e
KS
6548 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
6549 Add post hook to "backtrace" to always dump lisp call stack to
6550 increase chance of people sending it to us when reporting bugs.
6551
8c41220c
KS
6552 * doc.c (Fsubstitute_command_keys): Doc fix.
6553
6a77a9f5
KS
6554 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
6555
6556 * xdisp.c (handle_stop): Skip overlay string handling if
6557 ignore_overlay_strings_at_pos_p is set.
6558 (set_iterator_to_next): At end of display vector, set
6559 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
6560 string, so we skip those overlay strings at current pos.
6561
9dd28cae 65622005-11-10 Lars Hansen <larsh@soem.dk>
19a9c3b7
LH
6563
6564 * fileio.c (file-regular-p): Doc fix.
6565
932954d1
KS
65662005-11-10 Kim F. Storm <storm@cua.dk>
6567
6568 * alloc.c (valid_lisp_object_p): New function to validate that
6569 an object is really a valid Lisp_Object.
6570
6571 * lisp.h (valid_lisp_object_p): Add prototype.
6572
6573 * print.c (safe_debug_print): New function to be called from gdb
6574 to print Lisp objects; use valid_lisp_object_p to avoid crashing
6575 if user tries to print something which is not a Lisp object.
6576
6577 * .gdbinit (pp, pp1): Use safe_debug_print.
6578 (pv, pv1): New commands to print value of a lisp variable.
6579
78e5988d
NR
65802005-11-10 Nick Roberts <nickrob@snap.net.nz>
6581
6582 * .gdbinit (pp1): New user-defined function.
6583
f56a5bd8
YM
65842005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6585
6586 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
6587
6588 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
6589 related variables for dumped executable.
6590
6591 * unexmacosx.c (unexec_write_zero): New function.
6592 (copy_data_segment): Clear uninitialized local variables in
6593 statically linked libraries.
6594
6595 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
6596
58b6f884
JL
65972005-11-09 Juri Linkov <juri@jurta.org>
6598
6599 * keymap.c (shadow_lookup): If Flookup_key returns a number,
6600 call it again with a sub-key-sequence, and if its return value
6601 is non-nil (sub-key is bound), return nil.
6602
1f5f957a
KS
66032005-11-08 Kim F. Storm <storm@cua.dk>
6604
6605 * process.c (Fsignal_process): Recognize signal names with and
6606 without SIG prefix, e.g. SIGHUP and HUP.
6607
6608 * search.c (search_buffer): No need to initialize base_pat.
6609
20b69789
SM
66102005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
6611
6612 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
6613 Don't abuse the `mini' arg. Use the `obj' arg instead.
6614
7353f169
KS
66152005-11-04 Kim F. Storm <storm@cua.dk>
6616
6617 * xdisp.c (show_mouse_face): Clear mouse face to eol.
6618
1f7b1131
DN
66192005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
6620
6621 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
6622 font-lock.elc and jit-lock.elc.
6623
e082564e
RS
66242005-11-03 Richard M. Stallman <rms@gnu.org>
6625
6626 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
6627 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
6628 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
6629
6630 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
6631
6632 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
6633
49e99345
SM
66342005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6635
6636 * window.c (Fdisplay_buffer): Fix last change to not use
6637 a dedicated window.
6638
8f15921b
KS
66392005-11-01 Kim F. Storm <storm@cua.dk>
6640
6641 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
6642 Instead, rotate the bottom angle bitmap 180 degrees to indicate
6643 that the bottom row does not end in a newline.
6644
b4235a80
AS
66452005-11-01 Andreas Schwab <schwab@suse.de>
6646
6647 * unexelf.c (unexec): Handle .plt section in BSS segment.
6648
3cbb13c8
SM
66492005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6650
e5f64be2
SM
6651 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
6652
3cbb13c8
SM
6653 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
6654 determine whether to consider dedicated windows as well.
6655 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
6656 (Fdisplay_buffer): Do consider dedicated windows in those cases where
6657 we will split the window rather than reuse it.
6658 Don't try to use windows on other displays.
6659
c94f08ff
DN
66602005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
6661
6662 * puresize.h (BASE_PURESIZE): Increment to 1170000.
6663
edf84ae9
RF
66642005-10-31 Romain Francoise <romain@orebokech.com>
6665
6666 * macfns.c: Update copyright year.
6667 * m/gould.h: Likewise.
6668
6f07f649
KS
66692005-10-30 Kim F. Storm <storm@cua.dk>
6670
6671 * xdisp.c (display_line): Restore it->current_x and call
6672 extend_face_to_end_of_line when last glyph doesn't fit on line.
9dd28cae 6673 (set_glyph_string_background_width): Remove specific tests here
6f07f649
KS
6674 to see if face background should extend to end of line. Simplify.
6675
4d74a5fc
RS
66762005-10-30 Richard M. Stallman <rms@gnu.org>
6677
6678 * alloc.c (BYTES_USED): Use uordblks, not arena.
6679 (bytes_used_when_reconsidered): New variable.
6680 (emacs_blocked_free): Set that.
6681
bccfb310
CY
66822005-10-29 Chong Yidong <cyd@stupidchicken.com>
6683
6684 * alloc.c (emacs_blocked_free): Fix typo.
6685
f5b8d5f2
RS
66862005-10-29 Richard M. Stallman <rms@gnu.org>
6687
4d74a5fc
RS
6688 * data.c (Fmake_variable_frame_local): Doc fix.
6689
f5b8d5f2
RS
6690 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
6691 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
6692 controls whether to save and restore mode_line_proptrans_alist.
6693 Callers changed.
6694 (unwind_format_mode_line): Work with that feature.
6695 (redisplay_internal): Don't call prepare_menu_bars if memory full.
6696 (move_elt_to_front): New function.
6697 (display_mode_element): Use move_elt_to_front.
6698 Don't bother munging text props on a null string.
6699 Delete obsolete elts from mode_line_proptrans_alist.
6700 (decode_mode_spec): Test Vmemory_full, not spare_memory.
685abb98 6701 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
f5b8d5f2 6702
49e99345
SM
6703 * lisp.h (memory_full_cons_threshold): Declare.
6704 (internal_lisp_condition_case): Declare.
f5b8d5f2
RS
6705
6706 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
6707 (Fmemory_full_p): Function deleted.
6708 (syms_of_alloc): Don't defsubr it.
6709 (memory_full_cons_threshold): New variable.
6710 (spare_memory): Now a vector of 7 elts.
6711 (buffer_memory_full): Don't set Vmemory_full here.
6712 (xfree): Don't try to refill here.
6713 (emacs_blocked_free): Record BYTES_USED in local var.
6714 (memory_full): Now free all the slots in spare_memory.
6715 (refill_memory_reserve): Allocate each slot in spare_memory.
6716 (init_alloc_once): Call refill_memory_reserve.
6717
6718 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
6719
6720 * eval.c (internal_lisp_condition_case): New function.
6721 (Fcondition_case): Use internal_lisp_condition_case.
6722 (Feval): Test Vmemory_full and memory_full_cons_threshold.
6723 (Ffuncall): Likewise.
6724
6725 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
6726
c390e28c
SM
67272005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
6728
6729 * syntax.c (Fparse_partial_sexp): Fix docstring.
6730
ab5d87b3
RF
67312005-10-28 Romain Francoise <romain@orebokech.com>
6732
c390e28c 6733 * puresize.h (BASE_PURESIZE): Increment to 1130000.
ab5d87b3 6734
107fb6c9
RS
67352005-10-28 Richard M. Stallman <rms@gnu.org>
6736
6737 * xfns.c (syms_of_xfns): Provide `x' as feature.
6738
6739 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
6740
6741 * editfns.c (Fformat): Don't include string padding
6742 between info[n].start and info[n].end.
6743
6744 * alloc.c (spare_memory): No longer static.
6745 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
6746
c390e28c 6747 * puresize.h (BASE_PURESIZE): Increment to 1120000.
107fb6c9 6748
f351b58b
CY
67492005-10-27 Chong Yidong <cyd@stupidchicken.com>
6750
c390e28c 6751 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
437610c5 6752
f351b58b
CY
6753 * fringe.c (update_window_fringes): Handle case where buffer ends
6754 with a newline.
6755
581e7427
KH
67562005-10-27 Kenichi Handa <handa@m17n.org>
6757
6758 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
6759
67602005-10-24 Kenichi Handa <handa@m17n.org>
6761
6762 * charset.h (charset_mule_unicode_0100_24ff)
6763 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
6764 Extern them.
6765
6766 * charset.c (charset_mule_unicode_0100_24ff)
6767 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
6768 New variables.
6769 (Fsetup_special_charsets): Initialize them.
6770
6771 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6772 supported Unicode characters.
6773
813fa8a8
JR
67742005-10-25 Jason Rumney <jasonr@gnu.org>
6775
6776 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
6777
05f7d868
YM
67782005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6779
6780 * image.c [MAC_OS] (image_load_qt_1): Check image size.
6781 Use GraphicsImportGetImageDescription instead of
6782 GraphicsImportGetNaturalBounds.
6783 [MAC_OSX] (image_load_quartz2d): Check image size.
6784 [MAC_OS] (xpm_load_image): Likewise.
6785
6786 * macterm.c (last_mouse_glyph_frame): New var.
6787 (note_mouse_movement): Say mouse moved if current frame differs
6788 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6789 (XTmouse_position): Set last_mouse_glyph_frame.
6790 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
29b585db 6791 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
05f7d868
YM
6792 Use EndianU16_BtoN.
6793 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
6794 (x_per_char_metric, XLoadQueryFont)
6795 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
6796 glyph bounds.
6797 (mac_to_x_fontname, mac_do_list_fonts)
6798 (mac_initialize_display_info): Change screen resolutions to 72dpi.
6799
128e729d
MY
68002005-10-25 Masatake YAMATO <jet@gyve.org>
6801
6802 * minibuf.c (Fdisplay_completion_list): Small doc fix.
6803
59017afb
KS
68042005-10-24 Kim F. Storm <storm@cua.dk>
6805
94717db1
KS
6806 * xterm.c: Undo 2005-10-23 change.
6807 (last_mouse_glyph_frame): New var.
6808 (note_mouse_movement): Say mouse moved if current frame differs
6809 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6810 (XTmouse_position): Set last_mouse_glyph_frame.
6811 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
6812 last_mouse_glyph] on mouse up/down event.
6813
59017afb
KS
6814 * editfns.c (Fcompare_buffer_substrings): Fix last change.
6815
7c5ba0d2
SM
68162005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6817
6818 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
6819
a4b0e228
JD
68202005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6821
6822 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
6823 so tool tips don't interfere with press on tool bar button.
6824
f6a18aa2
RS
68252005-10-23 Richard M. Stallman <rms@gnu.org>
6826
6827 * casetab.c (Fset_case_table): Doc fix.
6828
6829 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
6830 (readevalloop): Compute ENTIRE properly.
6831 (syms_of_lread) <load-history>: Doc fix.
6832
45158e77
RS
68332005-10-21 Richard M. Stallman <rms@gnu.org>
6834
6835 * lread.c (Fload): Simplify gcpro structure.
6836 Gcpro FOUND as well as FILE, but not EFOUND.
6837 Unless preloading, record FOUND instead of FILE in Vload_history.
6838 Rename repeat local FILE to MSG_FILE.
6839 (syms_of_lread) <load-history>: Doc fix.
6840
dfa1cd4d
KH
68412005-10-21 Kenichi Handa <handa@m17n.org>
6842
96664fc0 6843 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 6844
1064a9ea
KS
68452005-10-20 Kim F. Storm <storm@cua.dk>
6846
6847 * buffer.c (clone_per_buffer_values): Remove unused var tem.
6848 (init_buffer): Remove unused vars dotstat, pwdstat.
6849
6850 * ccl.c (check_ccl_update): Remove unused var vp.
6851
6852 * fileio.c (auto_save_error): Call SAFE_FREE.
6853
6854 * fns.c (Fchar_table_range): Remove unused var i.
6855
6856 * minibuf.c (display_completion_list_1): New wrapper function
6857 for Fdisplay_completion_list.
6858 (Fminibuffer_completion_help): Use it.
6859
6860 * term.c (encode_terminal_code): Remove unused var src_start.
6861
6862 * window.c (Fwindow_tree): Remove unused var alist.
6863
6864 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
6865
ce13796f
EZ
68662005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
6867
20b69789 6868 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
ce13796f 6869
ad9c16d3
EZ
68702005-10-20 Olli Savia <ops@iki.fi> (tiny change)
6871
6872 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
6873
26e9d2cf
AS
68742005-10-20 Andreas Schwab <schwab@suse.de>
6875
6876 * minibuf.c (Fdisplay_completion_list): Doc fix.
6877
e50165ec
KS
68782005-10-19 Kim F. Storm <storm@cua.dk>
6879
6880 * image.c (check_image_size): Handle integer Vmax_image_size value
6881 directly as max pixel value. Use default frame size for null frame.
6882 (syms_of_image) <max-image-size>: Describe integer value.
6883
d7b94c98
RF
68842005-10-19 Romain Francoise <romain@orebokech.com>
6885
6886 * emacs.c (main): Update copyright year.
6887
f1f25b99
CY
68882005-10-18 Chong Yidong <cyd@stupidchicken.com>
6889
6890 * image.c (Vmax_image_size): New variable.
6891 (check_image_size): New function.
6892 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
6893 (gif_load, gs_load): Use it.
6894 (lookup_image): Try loading again if previous load failed.
6895 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
6896 to display in, NULL if none.
6897 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
6898 argument.
6899
f42d19a2
RS
69002005-10-18 Richard M. Stallman <rms@gnu.org>
6901
6902 * search.c (Fstring_match): Doc fix.
6903
bcbdafce
YM
69042005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6905
6906 * macterm.c (note_mouse_movement): Use PtInRect.
6907 (XTread_socket): Also ignore mouse motion just before a button
6908 release event. Don't process button release event when mouse is
6909 not grabbed.
6910
f5fab556
MY
69112005-10-16 Masatake YAMATO <jet@gyve.org>
6912
6913 * minibuf.c (Fdisplay_completion_list): Add new optional
e5f64be2 6914 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
6915 to the optional argument during running `completion-setup-hook'.
6916
2ef1363e
YM
69172005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6918
6919 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
6920 Allow nil as argument.
6921 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
6922 for encoding arguments as UTF-16 in native byte order, no BOM.
6923
6924 * macfns.c (Fx_create_frame): Add debugging code.
6925 (Fx_show_tip): Set frame pixel width and height.
6926
6927 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
6928 (FRAME_NORMAL_GC): New macro.
6929 (mac_draw_line, mac_clear_area, mac_clear_window)
6930 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
6931 (mac_draw_image_string, mac_draw_image_string_16): Rename from
6932 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
6933 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
6934 All uses changed.
6935 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
6936 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
6937 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
6938 (mac_draw_string_16, mac_draw_image_string)
6939 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
6940 (mac_scroll_area): Drawing functions now take frame as destination.
6941 All uses changed.
6942 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
6943 (x_draw_fringe_bitmap): Set clipping area in face->gc.
6944
6945 * macterm.h (mac_clear_area): Add extern.
6946
fc5c7550
YM
69472005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6948
6949 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
6950 changes for xterm.c.
6951
6952 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
6953
fed91c38
KH
69542005-10-14 Kenichi Handa <handa@m17n.org>
6955
6956 * search.c (search_buffer): Give up BM search on case-fold-search
6957 if one of a target character has a case-equivalence of different
6958 charset even if that target charcter is an ASCII.
6959
6960 * casefiddle.c (casify_object): Fix for the case that case
6961 conversion change the byte length.
6962
0ea1a8af
KS
69632005-10-14 Kim F. Storm <storm@cua.dk>
6964
6965 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
6966 (handle_one_xevent): Only clear help_echo_string; restore it if
6967 note_mouse_movement didn't record any mouse movement.
6968
6969 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
6970 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
6971
647b07d1
AS
6972 * keyboard.c (make_lispy_position): Adjust wx for left margin if
6973 ON_TEXT.
0ea1a8af
KS
6974 (Fposn_at_x_y): Fix calculation of x coordinate.
6975 (Fposn_at_point): Return nil if point is hscrolled out of view.
6976
6e5b2385
AS
69772005-10-13 Andreas Schwab <schwab@suse.de>
6978
6979 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
6980 non-interactive mode.
6981
6de0e1a2
YM
69822005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6983
6984 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
6985
78f3b91f
KS
69862005-10-12 Kim F. Storm <storm@cua.dk>
6987
6988 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
6989
b639c9be
RF
69902005-10-12 Romain Francoise <romain@orebokech.com>
6991
6992 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
6993
76d8f04c
YM
69942005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6995
6996 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
6997 get end of text rows. Obtain header-line/mode-line rows directly.
6998
96013ba9
SM
6999 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
7000 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
621036f9 7001
d76432f5
KS
70022005-10-12 Kim F. Storm <storm@cua.dk>
7003
7a127784
KS
7004 * xdisp.c (remember_mouse_glyph): New generic version based on
7005 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
7006 properly handle all different window areas.
7007
7008 * dispextern.h (remember_mouse_glyph): Add prototype.
7009
7010 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
7011 (note_mouse_movement, XTmouse_position): Use generic
7012 remember_mouse_glyph, add last_mouse_glyph arg.
7013
7014 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
7015 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
7016 (note_mouse_movement, w32_mouse_position): Use generic
7017 remember_mouse_glyph, add last_mouse_glyph arg.
7018
7019 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
7020 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
7021 (XTmouse_position): Adapt to use generic remember_mouse_glyph
7022 instead of pixel_to_glyph_coords.
7023
d76432f5
KS
7024 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
7025 Fix x position for ON_TEXT when left margin width > 0.
7026
55a4ac3e
KS
70272005-10-11 Kim F. Storm <storm@cua.dk>
7028
d76432f5 7029 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
7030
7031 * keyboard.c (make_lispy_position): Fix buffer calculations for
7032 mouse click or movement in right fringe and the margins.
7033
2d4713aa
JB
70342005-10-11 Juanma Barranquero <lekktu@gmail.com>
7035
7036 * image.c (fn_jpeg_stdio_src): Don't define it.
7037 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
7038 (our_common_init_source): Rename from `our_init_source'.
7039 (our_common_term_source): Rename from `our_term_source'.
7040 (our_memory_fill_input_buffer): Rename from
7041 `our_fill_input_buffer'.
7042 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
7043 (jpeg_memory_src): Use the new names.
7044 (struct jpeg_stdio_mgr): New struct.
7045 (JPEG_STDIO_BUFFER_SIZE): New constant.
7046 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
7047 (jpeg_file_src): New functions.
7048 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
7049
71b7a47f
YM
70502005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7051
7052 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
7053 (fm_font_family_alist): New variable.
7054 (syms_of_macterm): Initialize and staticpro it.
7055 (decode_mac_font_name): Replace '-' in family name with '_' if it
7056 occurs just once. Lower family name.
7057 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
7058 All uses changed. Remove argument MF and code conversion for it.
7059 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
7060 to CHARSET. Parse font size. Lower family name. Return integer
7061 value for status of parsing.
7062 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
7063 Don't use Fdowncase because family name is already lowered by
7064 decode_mac_font_name.
96013ba9
SM
7065 (init_font_name_table): Always call decode_mac_font_name.
7066 Add pair of family name and its reference to fm_font_family_alist.
71b7a47f
YM
7067 (mac_clear_font_name_table): Clear fm_font_family_alist.
7068 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
7069 Lookup fm_font_family_alist to get font family reference.
7070 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
7071 name is already lowered by parse_x_font_name.
7072
74051a92
KS
70732005-10-11 Kim F. Storm <storm@cua.dk>
7074
31ab1f05
KS
7075 * xterm.c (glyph_rect): Return 0 if position is outside text area.
7076
74051a92
KS
7077 * keyboard.c (make_lispy_position): Fix buffer position calculation for
7078 mouse click or movement in fringe.
7079
9b909870
JR
70802005-10-10 Jason Rumney <jasonr@gnu.org>
7081
7082 * xterm.c (remember_mouse_glyph): New function.
58af5591 7083 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 7084 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 7085 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 7086
f9e36a6d
JD
70872005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7088
58af5591 7089 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 7090
04bc7945
JB
70912005-10-10 Juanma Barranquero <lekktu@gmail.com>
7092
7093 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
7094 (next_frame, prev_frame, set_term_frame_name): Make static.
7095
7096 * window.c (Fwindow_tree): Fix spelling.
7097
41791a20
RF
70982005-10-09 Romain Francoise <romain@orebokech.com>
7099
7100 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
7101
e313fc07
JD
71022005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7103
58af5591
KS
7104 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
7105 Add options -nb, --no-bitmap-icon.
e313fc07
JD
7106
7107 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
7108
61e62f5f
YM
71092005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7110
7111 * macgui.h (MAX_CLIP_RECTS): New define.
7112 (struct _XGC): New member clip_region.
7113 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
7114 clip_rects.
7115
7116 * macterm.c (GC_CLIP_REGION): New macro.
7117 (saved_port_clip_region): New variable.
7118 (mac_begin_clip, mac_end_clip): New functions.
7119 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
7120 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
7121 (mac_copy_area_with_mask, mac_scroll_area): Use them.
7122 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
7123 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
7124 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
7125 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
7126 rectangles stored in gc.
71b7a47f 7127 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
7128 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
7129 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
7130 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
7131 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
7132 (x_draw_bar_cursor): Use them.
7133 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
7134 get multiple clipping rectangles.
7135
7136 * macterm.h (mac_term_init): Add types to extern.
7137 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 7138 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
7139 scroll_bar_background_pixel in #if 0.
7140 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
7141
7142 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 7143 Add debugging code.
61e62f5f 7144
ef1b4c9e
KS
71452005-10-08 Kim F. Storm <storm@cua.dk>
7146
7147 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
7148
f1010549
KS
71492005-10-07 Kim F. Storm <storm@cua.dk>
7150
7151 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
7152 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
7153 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
7154
c2ded1b7
YM
71552005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7156
7157 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
7158 to for_overlaps. Now occupy 3 bits.
7159 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
7160 (OVERLAPS_ERASED_CURSOR): New defines.
7161 (struct redisplay_interface): Add new OVERLAPS arg to member
7162 fix_overlapping_area.
7163 (x_fix_overlapping_area): Add new OVERLAPS arg.
7164 (get_glyph_string_clip_rects): Add extern.
7165
96013ba9
SM
7166 * dispnew.c (redraw_overlapping_rows):
7167 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
c2ded1b7
YM
7168
7169 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
7170 for_overlaps.
7171 (get_glyph_string_clip_rects): New function created from
f1010549
KS
7172 get_glyph_string_clip_rect. Set clipping rectangles according to the
7173 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
7174 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
7175 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
7176 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 7177 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 7178 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
7179 calculating clipping rectangles later. Call x_fix_overlapping_area
7180 with new OVERLAPS arg to draw only erased cursor area.
f7270128 7181 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 7182 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
7183
7184 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
7185 struct glyph_string to for_overlaps.
7186
a19a0003
RS
71872005-10-04 Richard M. Stallman <rms@gnu.org>
7188
7189 * alloc.c (refill_memory_reserve): Conditionalize the body,
7190 not the function's existence.
7191
abc8ce50
KS
71922005-10-04 Kim F. Storm <storm@cua.dk>
7193
7194 * window.c (window_split_tree): New function.
7195 (Fwindow_split_tree): New defun.
7196 (syms_of_window): Defsubr it.
7197
66533b25
YM
71982005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7199
7200 * macterm.c (mac_invert_rectangle): New function.
7201 (XTflash): Use it.
7202
4156359e
SM
72032005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
7204
4e2f601f
SM
7205 * regex.h (re_char): Don't expose it in the interface.
7206 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
7207
7208 * regex.c (re_char): Move it back here.
7209 (re_set_whitespace_regexp): Change the arg's type to not use it.
7210
4156359e
SM
7211 * keyboard.c (make_lispy_event): If point has moved between down and up
7212 event, make it a drag, not a click, to mirror what
7213 mouse-drag-region expects.
7214
eb27c2ca
DN
72152005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7216
7217 * lisp.h (fatal): Undo previous change.
7218 * term.c (fatal): Undo previous change.
7219
b059f7d0
RS
72202005-10-01 Richard M. Stallman <rms@gnu.org>
7221
7222 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
7223
21a9a7be
KS
72242005-10-01 Kim F. Storm <storm@cua.dk>
7225
7226 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
7227
ddcb7665
YM
72282005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7229
7230 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
7231
7232 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 7233 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
7234 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
7235 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
7236
7237 * macgui.h (struct _XCharStruct): New member valid_p.
7238 (STORE_XCHARSTRUCT): Set valid_p.
7239 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
7240
7241 * macterm.c (mac_draw_string_common, x_per_char_metric)
7242 (mac_compute_glyph_string_overhangs, init_font_name_table)
7243 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
7244 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
7245 (x_draw_glyph_string_background)
7246 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
7247 XDrawImageString. Always draw background and foreground separately.
7248 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
7249 functions for one-byte chars when using ATSUI-compatible fonts.
7250 (atsu_font_id_hash) [USE_ATSUI]: New variable.
7251 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
7252 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
7253 max_char_or_byte2 more in detail.
7254 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
7255
fa8459a3
DN
72562005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
7257
4156359e 7258 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
7259 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
7260
7261 * unexelf.c (fatal): Fix prototype.
7262
7263 * term.c (fatal): Implement using varargs.
7264
21a9a7be 7265 * regex.c (re_char): Move typedef ...
fa8459a3 7266 * regex.h (re_char): ... here.
4156359e 7267 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
7268
7269 * emacs.c (malloc_set_state): Fix return type.
7270 (endif): Fix type.
7271
7272 * lisp.h (fatal): Add argument types.
7273
7274 * dispextern.h (fatal): Delete prototype.
7275
9dd28cae 7276 * systime.h (make_time): Prototype moved from ...
fa8459a3
DN
7277 * editfns.c (make_time): ... here.
7278
7279 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
7280 * dired.c:
7281 * xsmfns.c:
fa8459a3 7282 * process.c: Likewise.
21a9a7be 7283
fa8459a3
DN
7284 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
7285 Add parameter types.
7286 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
7287 (emacs_blocked_free): Change definition to match __free_hook.
7288 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 7289 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 7290
97c3e4cc
RF
72912005-09-30 Romain Francoise <romain@orebokech.com>
7292
7293 * minibuf.c (Fread_buffer): Follow convention for reading from the
7294 minibuffer with a default value. Doc fix.
7295
8ad8c5ce
JL
72962005-09-29 Juri Linkov <juri@jurta.org>
7297
7298 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
7299 Rename argument name `string' to `format-string'.
7300 (Fformat): Doc fix.
7301
64da5759
KS
73022005-09-28 Kim F. Storm <storm@cua.dk>
7303
7304 * image.c (gif_load): Fix size of allocated image buffer
7305 for images where a sub-image may be larger than the image's
7306 total height/width specifications.
7307
eaf92438
YM
73082005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7309
7310 * macgui.h (struct _XCharStruct): Each member now takes short value.
7311
43f15d4a
DN
73122005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
7313
7314 * xfaces.c (lookup_derived_face): Add parameter type.
7315
7316 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
7317
7318 * marker.c (verify_bytepos): Add parameter type.
7319
7320 * process.c (get_operating_system_release): Move prototype ...
7321
7322 * systime.h (get_operating_system_release): ... here.
7323
04bc7945
JB
7324 * xterm.c (handle_one_xevent): Refer to union field to match the
7325 type required by the function definition.
7326 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
7327
7328 * xterm.h: ... here.
7329
7330 * fns.c (internal_equal, seed_random): Fix prototypes.
7331 (internal_equal): Add missing parameter.
7332
c769dcac
RS
73332005-09-25 Richard M. Stallman <rms@gnu.org>
7334
7335 * keyboard.c (update_menu_bindings): Variable deleted.
7336 (syms_of_keyboard): Don't defvar it.
7337 (parse_menu_item): Don't test it.
7338
8dbf19c7
RS
73392005-09-23 Richard M. Stallman <rms@gnu.org>
7340
7341 * editfns.c (Fformat): Explicitly test for end of format string
7342 and don't use `index'.
7343
3480d92b
DN
73442005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
7345
4156359e
SM
7346 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
7347 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
7348
7349 * sysdep.c (get_current_dir_name): Also define if
64da5759 7350 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
7351
7352 * m/ibmrs6000.h: Test for USG5, not USG5_4.
7353
5db60f31
KS
73542005-09-22 Kim F. Storm <storm@cua.dk>
7355
7356 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
7357 (message2): Fix commentary. Ok to use alloca'ed memory.
7358 Still not ok to use Lisp string data (because of GC).
7359 (set_message): Add comment why GC cannot happen.
7360
7c3d233d
YM
73612005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7362
7363 * macterm.c (xlfdpat_block_match_1): Fix assertion.
7364 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
7365 variants for a scalable font multiple times.
7366
acde1152
YM
73672005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7368
7369 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
7370 Setup slave tty options before forking.
7371
52d166e0
JD
73722005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7373
7374 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
7375 positions have been set for the frame (as is done for frames in
7376 special-display-buffer-names).
7377
12d10bc7
KS
73782005-09-19 Kim F. Storm <storm@cua.dk>
7379
7380 * editfns.c (Fformat): Don't scan past end of format string that
7381 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
7382
9f1cf0e3
AS
73832005-09-18 Andreas Schwab <schwab@suse.de>
7384
7385 * window.h (struct window): Remove height_fixed_p, no longer set.
7386
7387 * window.c (make_window): Don't initialize height_fixed_p.
7388 (window_fixed_size_p): Don't use it.
7389
8a658a52
JPW
73902005-09-18 John Paul Wallington <jpw@pobox.com>
7391
7392 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
7393
be9bb408
YM
73942005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7395
7396 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
7397
7398 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7399 New variables.
7400 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
7401 file selection.
7402
7403 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
7404
cbf223e1
EZ
74052005-09-17 Eli Zaretskii <eliz@gnu.org>
7406
7407 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
7408 (obj): Use XMENU_OBJ, not a literal xmenu.o.
7409
e3f509dd
RF
74102005-09-16 Romain Francoise <romain@orebokech.com>
7411
8ccd3630 7412 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 7413
5c4757d3
RS
74142005-09-15 Richard M. Stallman <rms@gnu.org>
7415
7416 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
7417 (display_mode_element): Instead of `lisp_string' and `this',
7418 record `offset' and increment that.
7419 `last_offset' replaces `last'.
7420
7421 * Makefile.in (XMENU_OBJ): Variable deleted.
7422 (obj): Use xmenu.o unconditionally.
7423 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
7424
7425 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
7426
01978521
KS
74272005-09-15 Kim F. Storm <storm@cua.dk>
7428
7429 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
7430 (reseat_at_next_visible_line_start): Likewise (in xassert).
7431
ccf61795
RF
74322005-09-14 Romain Francoise <romain@orebokech.com>
7433
7434 * fileio.c (write_region_inhibit_fsync): New variable.
7435 (Fwrite_region): Use it to skip call to fsync.
7436 (syms_of_fileio): Initialize it.
7437
2b046a72
KH
74382005-09-14 Kenichi Handa <handa@m17n.org>
7439
24a2b282
KH
7440 * coding.c (code_convert_region_unwind): Argument format changed.
7441 (run_pre_post_conversion_on_str): If pre-write-conversion function
7442 changed the current buffer, delete the new buffer.
7443 (run_pre_write_conversin_on_c_str): Likewise.
7444
2b046a72
KH
7445 * fileio.c (Fexpand_file_name): Check multibyteness of
7446 default_directory.
7447
d008f7b7
KH
74482005-09-13 Kenichi Handa <handa@m17n.org>
7449
7450 * composite.c (compose_chars_in_text): Delete it.
7451
7452 * composite.h (compose_chars_in_text): Delete extern.
7453
2ada8ac5
KS
74542005-09-13 Kim F. Storm <storm@cua.dk>
7455
7456 * print.c (print_error_message): Fix last change.
7457
48c60938
KS
74582005-09-12 Kim F. Storm <storm@cua.dk>
7459
0fdbe302
KS
7460 * composite.c (compose_chars_in_text): Fix setup of `pend'.
7461 Unconditionally reload `ptr' and `pend' after eval.
7462
48c60938
KS
7463 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
7464
7465 * print.c (print_error_message): Pass copy of caller name to
7466 message_dolog.
7467
7468 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
7469
5add1986
KH
74702005-09-12 Kenichi Handa <handa@m17n.org>
7471
7472 * xdisp.c (display_mode_element): Be sure to make variables THIS
7473 and LISP_STRING point into a string data of ELT.
7474
18bb66c7
KS
74752005-09-12 Kim F. Storm <storm@cua.dk>
7476
7477 * editfns.c (Ftranslate_region_internal): Reload `tt' after
7478 signal_after_change that may have GC'ed.
7479 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
7480
7481 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
7482 after insert while runs signal_after_change.
7483
7484 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
7485 declaration to where it is used.
7486
7487 * w32.c (check_windows_init_file): Fix allocation of error buffer.
7488
7489 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
7490 (x_set_name_internal): Call x_encode_text with new FREEP arg to
7491 know if xfree is needed instead of guessing.
7492
7493 * xterm.h (x_encode_text): Remove prototype.
7494
945a75f8
JR
74952005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
7496
7497 * w32term.c (x_bitmap_icon): Load small icons too.
7498
156bdb41
RF
74992005-09-10 Romain Francoise <romain@orebokech.com>
7500
7501 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 7502 and terminal zero. Fix typos.
156bdb41 7503
67b8391b
EZ
75042005-09-10 Eli Zaretskii <eliz@gnu.org>
7505
a17b5ed1
EZ
7506 * buffer.c (init_buffer): Fix error message for failed call to
7507 get_current_dir_name.
7508 (get_current_dir_name): Remove prototype.
7509
9dd28cae 7510 * xsmfns.c (get_current_dir_name): Remove prototype.
a17b5ed1 7511
9dd28cae 7512 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
96013ba9 7513 Add prototype.
a17b5ed1 7514
ed326e35 7515 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 7516 Don't #undef NULL after including blockinput.h.
ed326e35 7517
67b8391b
EZ
7518 * config.in: Regenerated.
7519
c187839d
EZ
75202005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
7521
7522 Remove the MAXPATHLEN limitations:
7523
1486d036
EZ
7524 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
7525 New function.
c187839d
EZ
7526
7527 * buffer.c (init_buffer): Use it.
7528
7529 * xsmfns.c (smc_save_yourself_CB): Ditto.
7530
ae8a5689
KS
75312005-09-09 Kim F. Storm <storm@cua.dk>
7532
39cac6b3
KS
7533 * doc.c (Fsubstitute_command_keys): Lookup key binding for
7534 commands that are remapped from some other command.
7535
aeb55c44
KS
7536 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
7537 flag in disabled rows below the window.
7538
ae8a5689
KS
7539 * frame.h (struct frame): New member updated_p.
7540
7541 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
7542 member. Remove local `updated' array and associated variables.
7543
821f6dae
KS
75442005-09-07 Kim F. Storm <storm@cua.dk>
7545
6e5395f2
KS
7546 * xdisp.c (handle_display_prop): Respect overlay window property.
7547
821f6dae
KS
7548 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
7549 Fixes crash reported by YAMAMOTO Mitsuharu.
7550
9655b404
YM
75512005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7552
7553 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
7554 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
7555 (xlfdpat_block_match_1, xlfdpat_match): New functions.
7556 (xlfdpat_block_match): New macro.
7557 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
7558 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
7559 (add_font_name_table_entry): Increase font_name_table_size more
7560 rapidly.
7561 (mac_c_string_match): Remove function.
7562 (mac_do_list_fonts): Use XLFD pattern match instead of regular
7563 expression match.
7564
7565 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
7566
d7ea8b71
RS
75672005-09-03 Richard M. Stallman <rms@gnu.org>
7568
7569 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
7570 (move_it_in_display_line_to): Stop after last char on line even
7571 on a windowing terminal, if that's the specified stop position.
7572
7573 * fns.c (Fsort): Doc fix.
7574
7575 * editfns.c (Fpropertize): Don't insist that properties be symbols.
7576
1550ae60
SM
75772005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
7578
7579 * dired.c (directory_files_internal_unwind, directory_files_internal)
7580 (file_name_completion): Use a Save_Value object rather than a cons of
7581 two 16bit ints to store the DIR*.
7582 (directory_files_internal, file_name_completion): Handle both EINTR and
7583 EAGAIN consistently after `readdir'.
7584
bdb4d6d8
SM
75852005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
7586
1550ae60
SM
7587 * intervals.c (update_interval): Add position info in error.
7588
bdb4d6d8
SM
7589 * dispnew.c (window_to_frame_hpos, update_window):
7590 Avoid gcc warning about unused variable `f'.
7591
6bcc3ca4
JR
75922005-08-31 Jason Rumney <jasonr@gnu.org>
7593
7594 * w32menu.c (add_menu_item): If unicode_append_menu returns an
7595 error, revert to using AppendMenu.
7596
07c5948c
YM
75972005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7598
bdb4d6d8
SM
7599 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
7600 All uses changed.
07c5948c
YM
7601 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
7602 cases.
7603 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
7604 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
7605 Use posix_pathname_to_fsspec.
07c5948c
YM
7606 [MAC_OS] (xpm_load_image): Fill in background_transparent field
7607 while we have mask.
7608
7609 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
7610
7611 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
7612
5a774522
SM
76132005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7614
7615 * syntax.c (update_syntax_table): Properly reproduce the special +1
7616 setting of e_property at the end of the buffer when bumping into the
7617 INTERVALS_AT_ONCE limit.
7618
0fb57cc0
EZ
76192005-08-27 Eli Zaretskii <eliz@gnu.org>
7620
7621 * emacs.c (USAGE1): Fix the description of the -Q option.
7622
5a774522
SM
76232005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
7624
7625 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
7626
4e6b8c5a
KS
76272005-08-26 Kim F. Storm <storm@cua.dk>
7628
7629 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
7630 Don't move PT to new window start.
7631
1f98fbb4
YM
76322005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7633
7634 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
7635 ICONIFY/DEICONIFY_EVENT.
7636
5a774522
SM
7637 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
7638 Restore background color.
1f98fbb4
YM
7639 (mac_handle_visibility_change): New function.
7640 (x_make_frame_invisible, x_iconify_frame)
7641 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
7642 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 7643 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
7644 (x_make_frame_visible): Don't reposition window if it is iconified
7645 or asked for visible before. Select and uncollapse window when it
7646 is made visible.
7647 (x_make_frame_invisible): Don't reset x_highlight_frame.
7648 (x_iconify_frame): Likewise. Make invisible frame visible before
7649 it is iconified.
7650 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
7651 (do_window_update): Don't change visibility of invisible frame.
7652
16691d29
JL
76532005-08-22 Juri Linkov <juri@jurta.org>
7654
7655 * term.c (turn_on_face): Check for TS_set_foreground and
7656 TS_set_background depending on standout_mode. Simplify.
7657
7c3f805b
KS
76582005-08-21 Kim F. Storm <storm@cua.dk>
7659
0f467468
KS
7660 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
7661 bitmaps on fully visible rows.
7662
7c3f805b
KS
7663 * fringe.c (update_window_fringes): Replace FORCE_P arg with
7664 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
7665 and return 0.
7666
7667 * xdisp.c (redisplay_window): Call update_window_fringes with
7668 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
7669
40b388f9
RS
76702005-08-20 Richard M. Stallman <rms@gnu.org>
7671
7672 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
7673 (resize_mini_window): Set w->start, and PT, so as to display the tail
7674 end of the buffer, if it doesn't all fit.
7675
581360f0
KS
76762005-08-18 Kim F. Storm <storm@cua.dk>
7677
7678 * xdisp.c (calc_pixel_width_or_height): Use actual display
7679 resolution when available instead of Vdisplay_pixels_per_inch.
7680
0eefa6fb
KS
76812005-08-17 Kim F. Storm <storm@cua.dk>
7682
7683 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
7684
7685 * dispnew.c (buffer_posn_from_coords): Check that target row is
7686 within matrix.
7687
ada192ba
JD
76882005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7689
7690 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
7691 xg_set_frame_icon and call it.
7692
7693 * gtkutil.c (xg_set_frame_icon): New function.
7694
0eefa6fb 7695 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 7696
ab89a403
KS
76972005-08-16 Kim F. Storm <storm@cua.dk>
7698
7699 * dispnew.c (increment_row_positions): Skip non-enabled rows.
7700
7701 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
7702 (Fcurrent_window_configuration): Use VECSIZE macro instead.
7703
8d34b5e1
RS
77042005-08-15 Richard M. Stallman <rms@gnu.org>
7705
7706 * xdisp.c (message3_nolog): Clear echo_message_buffer.
7707
71e37f3c
KS
77082005-08-15 Kim F. Storm <storm@cua.dk>
7709
0781c303
KS
7710 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
7711
71e37f3c
KS
7712 * process.c (deactivate_process, status_notify, read_process_output)
7713 (update_status, status_convert, decode_status, allocate_pty)
7714 (make_process, remove_process, list_processes_1)
7715 (create_process_1, unwind_request_sigio, read_process_output)
7716 (send_process, keyboard_bit_set): Declare static.
7717 (Fdelete_process): Simplify. Pass process to status_notify, so we
7718 don't try to read output from it.
7719 (status_notify): New arg deleting_process--don't try to read
7720 output from that process.
7721
7722 * lisp.h (deactivate_process, status_notify, read_process_output):
7723 Remove prototypes.
7724
0bf14bfd
RS
77252005-08-14 Richard M. Stallman <rms@gnu.org>
7726
bdb4d6d8
SM
7727 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
7728 define_image_type.
0bf14bfd 7729
6c7eb721
JD
77302005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7731
7732 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
7733 (xg_get_image_for_pixmap): Move some code to
7734 xg_get_pixbuf_from_pix_and_mask, and call it.
7735
7736 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
7737
7738 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
7739 to get an GTK icon and set it with GTK functions to avoid having GTK
7740 override an icon set with just X functions.
7741
6e2d14c8
RS
77422005-08-11 Richard M. Stallman <rms@gnu.org>
7743
bdb4d6d8
SM
7744 * image.c (syms_of_image): Init image_types here, and call
7745 define_image_type.
6e2d14c8
RS
7746 (init_image): Not here.
7747
61298e17
RS
77482005-08-09 Richard M. Stallman <rms@gnu.org>
7749
7750 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
7751
7752 * lisp.h (QUIT): Throw t to Vthrow_on_input.
7753
5a9807a8
TTN
77542005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
7755
7756 * floatfns.c (Fexpt): Use floats for negative exponent.
7757
93469010
JD
77582005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7759
7760 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
7761 should not be there, causing menu display errors with GTK 2.6.9.
7762
44edd521
RS
77632005-08-07 Richard M. Stallman <rms@gnu.org>
7764
8b6a9551
RS
7765 * floatfns.c (Fexpt): Undo previous change.
7766
44edd521
RS
7767 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
7768 so it can be used with various state vectors.
7769
7770 * emacs.c (endif): Convert -script into -scriptload.
7771 (standard_args): Add -scriptload. Allow -basic-display with one dash.
7772
7773 * fns.c (syms_of_fns): Add `emacs' to features.
7774
7775 * term.c (set_terminal_modes): If no TS_termcap_modes string,
7776 output newlines to scroll the old screen contents off the screen.
7777
cac87e30
TTN
77782005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
7779
2a205424
TTN
7780 * floatfns.c (Fexpt): Use floats for negative exponent.
7781 Reported by D Goel.
cac87e30 7782
31b7cc74
JB
77832005-08-02 Richard M. Stallman <rms@gnu.org>
7784
7785 * frame.c (Fframe_char_width): Doc fix.
7786
e2b64074
JB
77872005-07-30 Juanma Barranquero <lekktu@gmail.com>
7788
7789 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
7790 Defvar it.
7791
0962822d
JB
77922005-07-28 Juanma Barranquero <lekktu@gmail.com>
7793
7794 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
7795 (my_create_window, my_create_tip_window): Make static.
7796
7797 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
7798 (my_set_foreground_window, my_destroy_window): Make static.
7799
9eff9fe3
PE
78002005-07-26 Paul Eggert <eggert@cs.ucla.edu>
7801
7802 Merge gnulib getopt implementation into Emacs.
7803
7804 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
7805 now part of lib-src.
7806
1c9916a1
SM
78072005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
7808
7809 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
7810
94c7f257
JR
78112005-07-25 Jason Rumney <jasonr@gnu.org>
7812
7813 * w32menu.c (w32_menu_display_help): Suppress tooltip when
7814 navigating menus with the keyboard.
7815
bf0bf758
RS
78162005-07-23 Richard M. Stallman <rms@gnu.org>
7817
7818 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
7819
7820 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
7821 gc_relative_threshold, one by one.
7822
7823 * keyboard.c (read_char): Test gc_cons_threshold.
7824 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
7825
7826 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
7827 gc_relative_threshold, one by one.
7828
7829 * alloc.c (gc_cons_threshold): Not static.
7830 (gc_cons_combined_threshold): Var deleted.
7831 (gc_relative_threshold): New variable.
7832 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
7833 instead of gc_cons_combined_threshold.
7834
1c9916a1 7835 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
7836 (gc_cons_combined_threshold): Declaration deleted.
7837
99f963e4
YM
78382005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7839
7840 * mac.c: Don't include stdlib.h or string.h.
7841 (Fdo_applescript, Fmac_file_name_to_posix)
7842 (Fmac_file_name_to_posix): Doc fixes.
7843 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
7844 (Fmac_code_convert_string): Likewise.
7845 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
7846 if the executable is not contained in a bundle.
7847
7848 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
7849 (gray_width, gray_height): Remove defines.
7850 (gray_bits, gray_bitmap_width, gray_bitmap_height)
7851 (gray_bitmap_bits): Remove variables.
7852 (lispy_function_keys): Remove extern.
7853 (free_frame_menubar): Add extern.
7854 (x_window_to_frame): Remove function.
7855 (unwind_create_tip_frame): Add declaration.
7856 (x_set_name_internal): New function.
7857 (x_set_name, x_set_title): Use it.
7858 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
7859 (Fx_display_pixel_height, Fx_display_planes)
7860 (Fx_display_color_cells, Fx_server_max_request_size)
7861 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7862 (Fx_display_mm_height, Fx_display_mm_width)
7863 (Fx_display_backing_store, Fx_display_visual_class)
7864 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
7865
7866 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
7867
bdb4d6d8 7868 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
7869 (Fx_get_selection_internal, Fx_selection_owner_p)
7870 (Fx_selection_exists_p): Doc fixes.
7871 (syms_of_macselect) <selection-converter-alist>: Likewise.
7872
1d256714
JB
78732005-07-21 Juanma Barranquero <lekktu@gmail.com>
7874
7875 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
7876
7877 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
7878 (Fccl_execute_on_string): Likewise; add usage info.
7879
7880 * composite.c (Fcompose_region_internal)
7881 (Fcompose_string_internal):
7882 Improve argument/docstring consistency.
7883
7884 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
7885 Fix typos in docstrings.
7886
7887 * textprop.c (Fnext_char_property_change)
7888 (Fprevious_char_property_change): Doc fixes.
7889
7890 * window.c (Fset_window_margins, Fset_window_fringes):
7891 Improve argument/docstring consistency.
7892
7893 * xfaces.c (Finternal_lisp_face_p): Doc fix.
7894
538f78c3
AS
78952005-07-21 Andreas Schwab <schwab@suse.de>
7896
7897 * eval.c (restore_stack_limits): Return a value.
7898
a5b5bf44
JB
78992005-07-20 Juanma Barranquero <lekktu@gmail.com>
7900
7901 * eval.c (Fdefvar): Doc fix.
7902
ae643123
KS
79032005-07-20 Kim F. Storm <storm@cua.dk>
7904
0ed4bf15
KS
7905 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
7906 Use make_save_value to unwind protect stream.
7907
7908 * lread.c (Fload, load_unwind):
7909 Use make_save_value to unwind protect stream.
ae643123 7910
82fc29a1
JB
79112005-07-19 Juanma Barranquero <lekktu@gmail.com>
7912
7913 * eval.c (Fprog2, Fcalled_interactively_p),
7914 (syms_of_eval) <debug-on-quit>: Doc fixes.
7915 (syms_of_eval) <max-specpdl-size>:
7916 (Finteractive_p): Fix typos in docstrings.
7917
73b90087
KS
79182005-07-19 Kim F. Storm <storm@cua.dk>
7919
7920 * w32fns.c (Vx_hand_shape): Variable removed.
7921 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
7922
dfc434d0
KH
79232005-07-19 Kenichi Handa <handa@m17n.org>
7924
bdb4d6d8 7925 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 7926
bcd98331
SM
79272005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
7928
7929 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
7930
2a85a754
KS
79312005-07-18 Kim F. Storm <storm@cua.dk>
7932
7933 * frame.h (struct frame): New member already_hscrolled_p.
7934
7935 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
7936 to avoid redisplay looping hscrolling back and forth ad infinitum.
7937
426179e1
JL
79382005-07-18 Juri Linkov <juri@jurta.org>
7939
7940 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
7941 * keymap.c (Fminor_mode_key_binding):
7942 * macterm.c (mac-emulate-three-button-mouse):
7943 Delete duplicate duplicate words.
7944
9f4a578d
KR
79452005-07-18 Ken Raeburn <raeburn@gnu.org>
7946
7947 * minibuf.c (Ftest_completion): Fix odd syntax in test.
7948
d005338b
YM
79492005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7950
bcd98331 7951 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
7952
7953 * macgui.h (struct _XGC): New struct.
7954 (GC): Use it.
7955 (GCForeground, GCBackground, GCFont): Use X11 mask values.
7956 (XCreateGC, XParseGeometry): Move externs to macterm.h.
7957
bcd98331 7958 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 7959 (XSetFont): Add declaration.
bcd98331
SM
7960 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
7961 Remove functions.
7962 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
7963 New defines.
d005338b
YM
7964 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
7965 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
7966 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
7967 Use them.
d005338b
YM
7968 (mac_erase_rectangle): New function.
7969 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
7970 (x_draw_stretch_glyph_string): Use it.
7971 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
7972 (XSetBackground, XSetFont): Adjust for new GC implementation.
7973 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
7974 (XTset_vertical_scroll_bar): Clear area under scroll bar.
7975
7976 * macterm.h (struct mac_display_info): Change types of
7977 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
7978 (XCreateGC, XParseGeometry): Move externs from macgui.h.
7979
7980 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
7981
9b0c2c56
RS
79822005-07-16 Richard M. Stallman <rms@gnu.org>
7983
7984 * buffer.c (Fmake_overlay): Doc fix.
7985
2e9c1c6d
EZ
79862005-07-16 Eli Zaretskii <eliz@gnu.org>
7987
7988 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
7989 Vw32_valid_locale_ids, and Vw32_valid_codepages.
7990
407289a4
YM
79912005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7992
bcd98331
SM
7993 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
7994 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 7995
e4b477a1
RS
79962005-07-15 Richard M. Stallman <rms@gnu.org>
7997
7998 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
7999
a8613adf
KS
80002005-07-15 Kim F. Storm <storm@cua.dk>
8001
8002 * xdisp.c: Fix redisplay loop in last change.
8003 (IT_POS_VALID_AFTER_MOVE_P): New macro.
8004 (move_it_vertically_backward, move_it_by_lines): Use it.
8005
2d5324c5
JR
80062005-07-14 Jason Rumney <jasonr@gnu.org>
8007
8008 * w32.c (init_environment): Default HOME directory to user's
8009 appdata directory if possible.
8010
3ed70dc4
KS
80112005-07-14 Kim F. Storm <storm@cua.dk>
8012
7b9389b0
KS
8013 * .gdbinit (pitx): Fix output format. Print string charpos.
8014
3ed70dc4
KS
8015 * lread.c (syms_of_lread): Initialize seen_list.
8016
8017 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
8018
8019 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
8020 Staticpro re_match_object.
8021
ef029e5a
YM
80222005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8023
8024 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
8025 dereference.
8026
8027 * macterm.c (mac_window_to_frame): Remove duplicate define.
8028
16ef9c56
KH
80292005-07-14 Kenichi Handa <handa@m17n.org>
8030
8031 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 8032 (code_convert_region): Adjust for the above change.
16ef9c56
KH
8033 (set_conversion_work_buffer): If the work buffer is already in
8034 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 8035 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
8036 (run_pre_write_conversin_on_c_str): Likewise.
8037
098e1273
KS
80382005-07-13 Kim F. Storm <storm@cua.dk>
8039
010b9a45
KS
8040 * xdisp.c (start_display): Don't reseat to next visible line start
8041 if current start position is in a string or image.
8042 (move_it_vertically_backward): Be sure to move out of strings and
8043 images when moving it2 forward.
8044 (move_it_by_lines): When moving forward, move to next buffer
8045 position if we end up in a string or image. When moving backward,
8046 count rows moved over when moving to start of current row in case
8047 row starts in middle of a string or image. Also move further
8048 backward if we end up in a string or image.
bcd98331 8049 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
8050 move backward to set cursor on start of an overlay string.
8051 (cursor_row_p): Row is ok if cursor is at newline from string, but
8052 string starts on this line (so we always position cursor at start
8053 of string).
8054
8055 * indent.c (Fvertical_motion): If start position is on an image,
8056 don't move back if we move too far (that's almost certain to happen).
8057
098e1273
KS
8058 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
8059 row in minibuffer windows.
8060 (try_window): Don't check margins in minibuffer windows.
8061
c229fb15
YM
80622005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8063
8064 * macterm.c: Don't include stdlib.h or composite.h.
8065 (x_use_underline_position_properties, last_mouse_press_frame)
8066 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
8067 (syms_of_macterm, mac_initialize): Don't initialize them.
8068 (waiting_for_input, initial_argv, initial_argc)
8069 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
8070 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
8071 (extra_keyboard_modifiers): Fix type in extern.
8072 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
8073 (x_scroll_bar_report_motion): Add argument types to declaration.
8074 (mac_compute_glyph_string_overhangs): Add declaration.
8075 (disable_mouse_highlight): Remove unused variable.
8076 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
8077 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
8078 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
8079 All callers changed.
c229fb15
YM
8080 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
8081 timestamp.
8082 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
8083 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
8084 only when its width is less than the height.
8085 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
8086 (font_name_table, font_name_table_size, font_name_count):
8087 Make static.
c229fb15
YM
8088 (drag_and_drop_file_list): Remove variable. Previous use is now
8089 local to function.
8090 (do_ae_open_documents): Move DRAG_N_DROP event construction part
8091 from XTread_socket.
bcd98331
SM
8092 (XTread_socket): Consolidate setting of event timestamp.
8093 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
8094 Support extra_keyboard_modifiers.
8095
8096 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
8097 beginning with that for ASCII.
8098
69d05d83
SM
80992005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
8100
8101 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
8102 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
8103 (syms_of_alloc): Declare gc-cons-percentage.
8104
8105 * eval.c (Feval, Ffuncall):
8106 * keyboard.c (read_char):
8107 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
8108
8109 * lisp.h (gc_cons_combined_threshold): Declare.
8110
5c7f9de1
KS
81112005-07-12 Kim F. Storm <storm@cua.dk>
8112
8113 * coding.c (Qprocess_argument):
8114 * coding.h (Qprocess_argument): Remove unused var.
8115
8116 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
8117
c37efb7a
YM
81182005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8119
8120 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
8121 Endian.h.
8122 [!MAC_OSX] (fchmod, fchown): New functions.
8123 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
8124 Use SBYTES and EndianU32_BtoN.
8125 (mac_get_object_from_code): Return 4 byte string even if argument
8126 is 0. Use make_unibyte_string and EndianU32_NtoB.
8127 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
8128 (Fmac_set_file_type): Fix documents and argument declarations.
8129 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
8130
a4429c5b
SM
81312005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
8132
8133 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
8134
a2d7e722
JD
81352005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8136
8137 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
8138 Lucid if X_I18N, font otherwise.
8139
9a4183e9
ST
81402005-07-10 Steven Tamm <steventamm@mac.com>
8141
a4429c5b
SM
8142 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
8143 (Fmac_set_file_type, Fmac_set_file_creator): Add.
8144 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 8145
51f74c37
RS
81462005-07-10 Richard M. Stallman <rms@gnu.org>
8147
8148 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
8149 (syms_of_lread): Set up eval-buffer-list.
8150 (Feval_buffer, Feval_region): Bind eval-buffer-list.
8151
93c7da4c
RS
81522005-07-08 Richard M. Stallman <rms@gnu.org>
8153
8154 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
8155
64af5917
KS
81562005-07-08 Kim F. Storm <storm@cua.dk>
8157
8158 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
8159 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
8160
a96b333c
KS
81612005-07-07 Kim F. Storm <storm@cua.dk>
8162
8163 * window.c (Frecenter): Fix last change (set iarg before use).
8164
dc2204be
RS
81652005-07-06 Richard M. Stallman <rms@gnu.org>
8166
8167 * window.c (Frecenter): When arg is inside the scroll margin,
8168 move it out of the margin.
8169
3fb1d72b
JR
81702005-07-06 Jason Rumney <jasonr@gnu.org>
8171
8172 * w32console.c (initialize_w32_display): Detect when the console
8173 dimensions are insane, and default to 80x25 instead.
14a56a1b 8174 (w32_use_full_screen_buffer): Default to nil.
3fb1d72b 8175
dd15724d
YM
81762005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8177
8178 * macterm.c (mac_draw_vertical_window_border): Use foreground of
8179 VERTICAL_BORDER_FACE_ID for vertical border line.
8180 (mac_encode_char): Call check_ccl_update in advance.
8181 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
8182 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
8183 Don't assume that font family length is less than 32.
dd15724d
YM
8184 (x_compute_min_glyph_bounds): Make static.
8185 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 8186
68003d6b
LK
81872005-07-04 Lute Kamstra <lute@gnu.org>
8188
dc2204be 8189 * Update FSF's address in GPL notices.
68003d6b 8190
3d393029
RS
81912005-07-03 Richard M. Stallman <rms@gnu.org>
8192
8193 * xdisp.c (try_window): Fix previous change in how it handles
8194 a partially-visible line or one only partly past the margin.
8195
8196 * window.c (window_scroll_pixel_based): Take account
8197 of this_scroll_margin when finding point when scrolling up.
8198
81992005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
8200
8201 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8202 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
9dd28cae 8203 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3d393029 8204
d6951bb4
EZ
82052005-07-02 Juri Linkov <juri@jurta.org>
8206
8207 * w32term.c (w32_draw_vertical_window_border): Use foreground of
8208 VERTICAL_BORDER_FACE_ID for vertical border line.
8209
b016179b
EZ
82102005-07-02 Eli Zaretskii <eliz@gnu.org>
8211
8212 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
8213 fchmod so that chmod doesn't get called on MSDOS before the file
8214 is closed.
8215
c2baa2b6
JR
82162005-07-01 Jason Rumney <jasonr@gnu.org>
8217
8218 * w32term.c (cleartype_active): New flag for enabling sub-pixel
8219 workaround.
8220 (w32_initialize): Initialize it.
8221 (w32_native_per_char_metric): Allow a couple of extra pixels when
8222 Cleartype is active.
8223
8224 * w32term.c (w32_initialize): Move check for screen reader here
8225 from syms_of_w32term.
8226
a6d0ae55
JD
82272005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8228
8229 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
8230 is not zero.
8231
711877f3
MY
82322005-07-01 Masatake YAMATO <jet@gyve.org>
8233
a4429c5b 8234 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 8235
63f7ffb3
JL
82362005-06-30 Juri Linkov <juri@jurta.org>
8237
8238 * xdisp.c (x_draw_vertical_border): If left fringe is not present
8239 decrease x coord of vertical border by 1 pixel to not occupy text
8240 area of the right window.
8241
8242 * xterm.c (x_draw_vertical_window_border): Use foreground of
8243 VERTICAL_BORDER_FACE_ID for vertical border line.
8244
8245 * term.c (turn_on_face): In standout mode apply specified
8246 fg to bg, and specified bg to fg (this makes the logic of
8247 inversion on terminal consistent with X).
8248
b26860ad
JB
82492005-06-29 Juanma Barranquero <lekktu@gmail.com>
8250
8251 * eval.c (user_variable_p_eh): New function.
8252 (Fuser_variable_p): Use it. Clarify docstring.
8253 Return t for aliases of user options, nil for alias loops.
8254
3a1f1d79
RS
82552005-06-27 Richard M. Stallman <rms@gnu.org>
8256
8257 * eval.c (Fdefvar): Improve error message.
8258
92de1e01
YM
82592005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8260
8261 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
8262 change.
8263
69410484
JB
82642005-06-27 Juanma Barranquero <lekktu@gmail.com>
8265
8266 * eval.c (Fdefvar): Don't try to set constant symbols.
8267
09352e8f
RS
82682005-06-25 Richard M. Stallman <rms@gnu.org>
8269
a68d870b
RS
8270 * macfns.c (Fx_show_tip): Pass new arg to try_window.
8271
8272 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
8273
8274 * xfns.c (Fx_show_tip): Pass new arg to try_window.
8275
8276 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
8277 (redisplay_window): Handle try_window reporting point in scroll margin.
8278
8279 * dispextern.h (try_window): Declare new arg.
8280
8281 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
8282 Use fchmod to copy the file modes.
8283 (Frename_file): Don't copy UID and GID here;
8284 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
8285
df13531d
RS
8286 * eval.c (call_debugger): Take full care of extending stack limits
8287 to make space for the debugger, and restore the change afterward.
8288 Bind debug-on-error to nil.
8289 (restore_stack_limits): New subroutine.
8290 (Fsignal): Extend specpdl bound along with eval depth bound,
8291 for calling edebug. Don't do either one, for calling debugger.
8292 (find_handler_clause): Don't bind debug-on-error here.
8293 Don't unbind anything either.
8294 Temporarily advance max_specpdl_size for calling
8295 internal_with_output_to_temp_buffer.
8296 (grow_specpdl): Don't alter max_specpdl_size before signaling
8297 an error.
8298 (syms_of_eval) <max-specpdl-size>: Doc fix.
8299
09352e8f
RS
8300 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
8301
90296dd3
EZ
83022005-06-24 Eli Zaretskii <eliz@gnu.org>
8303
8304 * fileio.c (Frename_file): Undo last change: no need to ifdef away
8305 chown on DOS_NT platforms.
8306
8307 * w32.c (sys_chown): New function.
8308
8309 * s/ms-w32.h (chown): New; define to sys_chown.
8310
c4f6ca24
JB
83112005-06-24 Juanma Barranquero <lekktu@gmail.com>
8312
3338c0ad
JB
8313 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
8314 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
8315
9a1505e9 8316 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 8317
528b6abc
RS
83182005-06-23 Richard M. Stallman <rms@gnu.org>
8319
8320 * xdisp.c (get_next_display_element): Finish reversing the tests of
8321 Vnobreak_char_display.
8322
9a1505e9 8323 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 8324 All uses changed.
9a1505e9 8325 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
8326 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
8327
8328 * fileio.c (Frename_file): Preserve owner and group, if possible,
8329 when copying.
8330
1d1c7e75
JB
83312005-06-23 Juanma Barranquero <lekktu@gmail.com>
8332
253b2298
JB
8333 * abbrev.c (Funexpand_abbrev):
8334 * category.c (Fmake_category_set):
8335 * dispnew.c (Fsleep_for, Fsit_for):
8336 * editfns.c (Fsubst_char_in_region):
8337 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
8338 * frame.c (make_frame_without_minibuffer):
8339 * lread.c (read_vector):
8340 * macfns.c (check_x_frame):
8341 * process.c (Fstop_process, Fcontinue_process):
8342 * search.c (Freplace_match):
8343 * syntax.c (Fstring_to_syntax):
8344 * w32fns.c (check_x_frame, check_x_display_info):
8345 * xfaces.c (x_supports_face_attributes_p):
8346 * xselect.c (Fx_own_selection_internal): Follow error conventions.
8347
1d1c7e75
JB
8348 * image.c (fn_png_init_io): Don't define it.
8349 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
8350 (png_read_from_file): New function, based on png_read_from_memory.
8351 (png_load): Use it, instead of fn_png_init_io.
8352
d1fab151
KS
83532005-06-23 Kim F. Storm <storm@cua.dk>
8354
8355 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 8356 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
8357 Add commentary explaining evaporate arg (for internal use only).
8358 (unwind_set_match_data): Add comment on evaporate use.
8359
53abc3bf
MB
83602005-06-22 Miles Bader <miles@gnu.org>
8361
a4429c5b 8362 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
8363 (realize_basic_faces, syms_of_xfaces): Update references to it.
8364 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
8365 to `VERTICAL_BORDER_FACE_ID'.
8366 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
8367
36a3b076
JL
83682005-06-21 Juri Linkov <juri@jurta.org>
8369
8370 * dispextern.h: Add extern Qframe_set_background_mode.
8371
8372 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
8373 Qframe_set_background_mode.
8374
8375 * frame.c (Fmodify_frame_parameters):
8376 Call frame-set-background-mode after changing the background color
8377 on non-window non-dos branch.
8378
23873c96
JB
83792005-06-21 Juanma Barranquero <lekktu@gmail.com>
8380
8381 * fns.c (Fchar_table_range):
8382 * process.c (Fmake_network_process): Fix spellings.
8383
b7d1f38f
KS
83842005-06-20 Kim F. Storm <storm@cua.dk>
8385
8386 * fns.c (Fsort): Doc fix.
8387
b4e49aee
MB
83882005-06-20 Miles Bader <miles@gnu.org>
8389
8390 * xfaces.c (Qvertical_divider): New variable.
8391 (realize_basic_faces): Realize its face.
8392 (syms_of_xfaces): Initialize it.
8393
8394 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
8395
8396 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
8397 window-separator on ttys using `vertical-divider' face by default.
8398
b7da00ba
RS
83992005-06-17 Richard M. Stallman <rms@gnu.org>
8400
a4429c5b
SM
8401 * xdisp.c (get_next_display_element):
8402 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
8403
8404 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
8405 (Ftty_no_underline): New function.
8406 (syms_of_term): defsubr it.
b7d1f38f 8407
b7da00ba
RS
8408 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
8409
8410 * dispnew.c (spec_glyph_lookup_face): New function.
8411 (build_frame_matrix_from_leaf_window): Use it.
8412
8413 * dispextern.h (spec_glyph_lookup_face): Add declaration.
8414
8415 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
8416
84172005-06-12 Richard M. Stallman <rms@gnu.org>
8418
8419 * keyboard.c (read_char): After catching a longjmp,
8420 call restore_getcjmp.
8421
289824a3
JB
84222005-06-17 Juanma Barranquero <lekktu@gmail.com>
8423
8424 * xselect.c (lisp_data_to_selection_data): Fix spelling.
8425
95085023
YM
84262005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8427
8428 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
8429 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
8430 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
8431 events.
8432 (XTread_socket): Don't pass keyboard events with the option
8433 modifier to the system when Vmac_command_key_is_meta is nil or
8434 Vmac_option_modifier is non-nil.
8435 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
8436 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
8437 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
8438 handler function.
8439 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
8440 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
8441 handler part to mac_handle_mouse_event.
8442
4a9308b8
JB
84432005-06-14 Juanma Barranquero <lekktu@gmail.com>
8444
8445 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
8446 NEW-ALIAS and BASE-VARIABLE, respectively.
8447
5aa6db57
SM
84482005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8449
8450 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
8451 (get_phys_cursor_geometry, format_mode_line_unwind_data)
8452 (get_line_height_property, x_produce_glyphs): Remove unused vars.
8453
8454 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
8455
0e0dddda
EZ
84562005-06-13 Eli Zaretskii <eliz@gnu.org>
8457
8458 * w32term.c (x_use_underline_position_properties): New variable.
8459 (x_draw_glyph_string): Remind in a comment to change doc string of
8460 x-use-underline-position-properties if/when underline positioning
8461 is implemented.
8462 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
8463 and initialize it to nil.
8464
7f2b4738
JR
84652005-06-12 Jason Rumney <jasonr@gnu.org>
8466
8467 * w32fns.c (NEWOPENFILENAME): New struct.
8468 (Fx_file_dialog): Use it to trick the system into giving us up to
8469 date dialogs on systems that are documented to support it.
8470 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
8471
a1e8cad6
EZ
84722005-06-12 Eli Zaretskii <eliz@gnu.org>
8473
8474 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
8475 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
8476
099a3eea
EZ
84772005-06-11 Eli Zaretskii <eliz@gnu.org>
8478
2e09fef1
EZ
8479 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
8480 to CreateDIBSection to avoid a compiler warning.
8481 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
8482 warning.
8483 (png_load): Cast return values of fn_png_create_read_struct and
8484 fn_png_create_info_struct, to avoid compiler warnings on W32.
8485 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
8486 to avoid compiler warnings.
8487 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
8488 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
8489 avoid a compiler warning.
8490 (tiff_load): Cast return values of fn_TIFFOpen and
8491 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
8492 to IMAGE_BACKGROUND to avoid a compiler warning.
8493 (gif_load): Cast return values of fn_DGifOpenFileName and
8494 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
8495 IMAGE_BACKGROUND to avoid a compiler warning.
8496 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
8497 before redefining.
8498
099a3eea
EZ
8499 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
8500 the call to CreateDIBSection, to avoid a compiler warning.
8501
d11f8e1a
JR
85022005-06-11 Jason Rumney <jasonr@gnu.org>
8503
8504 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
8505 minibuffer.
8506 * macfns.c (Fx_file_dialog): Likewise.
8507
cd4344a3
EZ
85082005-06-10 Eli Zaretskii <eliz@gnu.org>
8509
8510 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
8511
578c1340
JB
85122005-06-10 Juanma Barranquero <lekktu@gmail.com>
8513
8514 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
8515 * w32fns.c (syms_of_w32fns): Fix spellings.
8516
4162f25f
EZ
85172005-06-10 Eli Zaretskii <eliz@gnu.org>
8518
8519 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
8520 `verbose'; print diagnostic messages only if it is non-zero.
8521 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
8522 in the environment.
8523 (copy_executable_and_dump_data): Print section names with %.8s.
8524
121c59a3
MY
85252005-06-10 Masatake YAMATO <jet@gyve.org>
8526
8527 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
8528 when mouse_face is not given.
121c59a3 8529
c869384d
LT
85302005-06-09 Luc Teirlinck <teirllm@auburn.edu>
8531
8532 * window.c (Fselect_window): Adapt call to Fselect_frame.
8533
8534 * lisp.h: Update EXFUN of Fselect_frame.
8535
8536 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
8537
6ecf436d
LT
8538 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
8539 no_enter.
8540 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
8541 Adapt to above change.
8542
c14ec135
JB
85432005-06-10 Juanma Barranquero <lekktu@gmail.com>
8544
8545 * fns.c (Fmemq, Fmaphash): Doc fixes.
8546
9fed2905
JB
85472005-06-09 Juanma Barranquero <lekktu@gmail.com>
8548
8549 * xfaces.c (Fdisplay_supports_face_attributes_p):
8550 Fix typo in docstring.
8551
427c5b1b
ST
85522005-06-08 Steven Tamm <steventamm@mac.com>
8553
8554 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
8555 used by gcc4 on intel mac.
8556
b7aae902
KS
85572005-06-09 Kim F. Storm <storm@cua.dk>
8558
8559 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
8560 in REUSE list if non-nil; free them if equal to evaporate.
5e1a6e32 8561 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
b7aae902
KS
8562 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
8563 (restore_search_regs): Rename from restore_match_data. Uses changed.
8564 (unwind_set_match_data): New function.
8565 (record_unwind_save_match_data): New function like save-match-data.
8566
8567 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
8568 (record_unwind_save_match_data): Add prototype.
8569 (restore_search_regs): Rename from restore_match_data.
8570
8571 * composite.c (compose_chars_in_text):
8572 * eval.c (do_autoload):
8573 * macmenu.c (set_frame_menubar):
8574 * process.c (read_process_output, exec_sentinel):
8575 * xmenu.c (set_frame_menubar):
8576 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
8577 * w32menu.c (set_frame_menubar):
8578 Use record_unwind_save_match_data.
8579
547d2b37
RS
85802005-06-08 Richard M. Stallman <rms@gnu.org>
8581
8582 * xdisp.c (get_next_display_element): Alter previous change:
8583 Distinguish Vshow_nonbreak_escape = t or not t.
8584 For t, use escape_glyph once again, as before previous change.
8585 Use space or hyphen for display, instead of the non-ASCII char.
8586 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
8587
8588 * process.c (Fstart_process): Don't touch command_channel_p slot.
8589
99598737 8590 * process.h (struct process): Delete command_channel_p.
547d2b37 8591
602907ae
MY
85922005-06-07 Masatake YAMATO <jet@gyve.org>
8593
5aa6db57
SM
8594 * xdisp.c (note_mode_line_or_margin_highlight):
8595 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 8596 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
8597 is not ON_MODE_LINE nor ON_HEADER_LINE.
8598
8b793bed
KS
85992005-06-07 Kim F. Storm <storm@cua.dk>
8600
8601 * process.c: Improve commentary for adaptive read buffering.
8602
3d031334
SM
86032005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
8604
8605 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
8606 if available.
8607
16d2e704
JD
86082005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8609
5aa6db57
SM
8610 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
8611 New functions for popping down menus on C-g.
16d2e704
JD
8612 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
8613
8614 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
8615 non-static.
8616
9fed2905 8617 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 8618
b6cc2ad0
EZ
86192005-06-06 Eli Zaretskii <eliz@gnu.org>
8620
9a1505e9 8621 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 8622
5aa6db57 8623 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
8624
8625 * w32proc.c (RVA_TO_PTR): New macro.
8626
8627 * w32heap.c (RVA_TO_PTR): No need to #undef now.
8628
8629 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
8630 Depend on w32heap.h.
8631
24e55feb
LT
86322005-06-06 Luc Teirlinck <teirllm@auburn.edu>
8633
8634 * keyboard.c (command_loop_1): Update Vthis_original_command.
8635
ce6e10af
RS
86362005-06-06 Richard M. Stallman <rms@gnu.org>
8637
8638 * xmenu.c (popup_get_selection): Undo previous change.
8639
c476bcb0
JL
86402005-06-06 Juri Linkov <juri@jurta.org>
8641
8642 * xdisp.c (Qno_break_space): New variable.
8643 (syms_of_xdisp): Initialize it.
8644 (get_next_display_element): Add no-break space and soft hypen
8645 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
8646 Use `no-break-space' face for no-break spaces.
8647
5494d7bc
JD
86482005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8649
8650 * window.c (delete_window): Handle the case where a h/vchild has
8651 a h/vchild.
8652
a0c38328
EZ
86532005-06-05 Eli Zaretskii <eliz@gnu.org>
8654
8655 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
8656 call to pfn_setsockopt, cast optval to `const char *'.
8657
91018229
EZ
86582005-06-04 Eli Zaretskii <eliz@gnu.org>
8659
1a8fb426
EZ
8660 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
8661 (open_unc_volume): Cast return value of map_w32_filename, to avoid
8662 compiler warnings.
8663
b6f0a397
EZ
8664 * s/ms-w32.h (fileno): Don't define if already defined.
8665
17a7c5c2 8666 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 8667
91018229
EZ
8668 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
8669
196ac78c
RS
86702005-06-04 Richard M. Stallman <rms@gnu.org>
8671
8672 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
8673
b8987570
JD
86742005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8675
8676 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 8677 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
8678 mac_menu_show Quit:s.
8679 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
8680 a dialog).
8681
555228aa
KS
86822005-06-04 Kim F. Storm <storm@cua.dk>
8683
8684 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
8685
8686 * callproc.c (Fcall_process): Don't use alloca to gradually
8687 increase size of buf, as it effectively uses twice the necessary
8688 space on the stack. Instead, pre-allocate buf of full size, and
8689 gradually increase the read size.
8690
8691 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
8692
8693 * eval.c (unbind_to): Preserve value of Vquit_flag.
8694
8695 * xterm.c (handle_one_xevent): Also ignore mouse motion just
8696 before a button release event.
8697
6312e5f7
JB
86982005-06-03 Juanma Barranquero <lekktu@gmail.com>
8699
8700 * xfaces.c (Finternal_lisp_face_equal_p): Really report
8701 on faces in a frame, if the argument FRAME is non-nil.
8702 Improve argument/docstring consistency.
8703
0493f7be
KS
87042005-06-02 Kim F. Storm <storm@cua.dk>
8705
8706 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
8707 (x_consider_frame_title, Fformat_mode_line): Save offset into
8708 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
8709
89fe657e
KS
87102005-06-01 Kim F. Storm <storm@cua.dk>
8711
8712 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
8713
02a6375c
YM
87142005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8715
8716 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
8717 resolution fields for scalable fonts to 0.
8718
8719 * xfaces.c (build_scalable_font_name): Round pixel size to the
8720 nearest integer.
8721
95d4fad8
KS
87222005-06-01 Kim F. Storm <storm@cua.dk>
8723
8724 * xdisp.c (display_mode_line): Support nested calls to redisplay
8725 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
8726
3c1b433a
SM
87272005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8728
8729 * fileio.c (Finsert_file_contents):
8730 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
8731
13cc7d61
KS
87322005-05-31 Kim F. Storm <storm@cua.dk>
8733
8734 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
8735 (mode_line_noprop_ptr): Rename from frame_title_*.
8736 (store_mode_line_noprop_char): Rename from store_frame_title_char.
8737 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 8738 (mode_line_target): New enum to specify current output target
13cc7d61
KS
8739 for mode line formatting.
8740 (display_mode_element): Test it rather than frame_title_ptr and
8741 mode_line_string_list to determine where output should go.
8742 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
8743 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
8744 (format_mode_line_unwind_data, unwind_format_mode_line):
8745 New functions for unwind protection in mode line formatting.
13cc7d61 8746 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
8747 to support nested calls to format-mode-line and redisplay.
8748 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 8749 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
8750 support nested calls to format-mode-line and redisplay.
8751 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 8752 Don't trim trailing dashes.
13cc7d61
KS
8753 (decode_mode_spec): Don't make infinite number of trailing dashes
8754 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
8755 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
8756 mode_line_string_face_prop, and Vmode_line_unwind_vector.
8757 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
8758 Initialize mode_line_target to MODE_LINE_DISPLAY.
8759
c16b1394
RS
87602005-05-29 Richard M. Stallman <rms@gnu.org>
8761
8762 * buffer.c (Fbuffer_local_value): Call indirect_variable.
8763
edfaeb4e
MY
87642005-05-28 Masatake YAMATO <jet@gyve.org>
8765
8766 * xdisp.c (note_mode_line_or_margin_highlight): Change the
8767 pointer to a hand cursor when hoovering over a mouse-face.
8768
7cf49add
KH
87692005-05-27 Kenichi Handa <handa@m17n.org>
8770
8771 * xterm.c (x_encode_char): Call check_ccl_update in advance.
8772
8773 * ccl.c: Now an element of Vccl_program_table is a vector of
8774 length 4, not 3.
3c1b433a
SM
8775 (ccl_get_compiled_code): New arg idx. Caller changed.
8776 Adjust for the change of Vccl_program_table.
8777 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
8778 (check_ccl_update): New function.
8779 (Fregister_ccl_program): Use ASET to set an element of a vector.
8780 Adjusted for the change of Vccl_program_table.
8781
8782 * ccl.h (struct ccl_program): New member idx.
8783 (check_ccl_update): Extern it.
8784
5e2ad10b
JB
87852005-05-27 Juanma Barranquero <lekktu@gmail.com>
8786
3c1b433a 8787 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
8788 (syms_of_image): Defvar it.
8789 (lookup_image_type): Use it.
8790
5e2ad10b
JB
8791 * buffer.c (Fbuffer_local_value): Make argument name match its use
8792 in docstring.
8793
6e604a9b
JB
87942005-05-26 Juanma Barranquero <lekktu@gmail.com>
8795
8796 * keyboard.c (Frecursive_edit): Fix typo in docstring.
8797 (Fposn_at_x_y): Make argument name match its use in docstring.
8798
59244a3f
LK
87992005-05-26 Lute Kamstra <lute@gnu.org>
8800
8801 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
8802
55ce5058
MY
88032005-05-24 Masatake YAMATO <jet@gyve.org>
8804
8805 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
8806 as loop sentinels.
8807
cb5db137
NR
88082005-05-24 Nick Roberts <nickrob@snap.net.nz>
8809
8810 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
8811 select frame title ("Question"/"Information").
8812 (xdialog_show): Use it.
8813
13dcfc35
NR
8814 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
8815
8816 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
8817
d3393daa
NR
8818 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
8819 a third argument (Qnil).
8820
8821 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
8822
8823 * editfns.c (Fmessage_box): Use "Information" for frame title.
8824
71d4fba1
TTN
88252005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
8826
8827 * termcap.c [VMS]: Include <starlet.h>.
8828
359e4563
MY
88292005-05-23 Masatake YAMATO <jet@gyve.org>
8830
6e604a9b
JB
8831 * xdisp.c (note_mode_line_or_margin_highlight): Add code
8832 for mouse-face. Change the type of the first argument from `window'
8833 to `Lisp_Object'.
359e4563
MY
8834 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
8835 window instead of w.
8836
edceb51c
AS
88372005-05-22 Andreas Schwab <schwab@suse.de>
8838
41c4895c 8839 * process.c (send_process): Move misplaced volatile.
edceb51c 8840
5c213fcc
RS
88412005-05-21 Richard M. Stallman <rms@gnu.org>
8842
8843 * xdisp.c (display_mode_element): If we're processing a list and
8844 padding is specified, put it after the last element.
8845
aa4060b9
EZ
88462005-05-21 Eli Zaretskii <eliz@gnu.org>
8847
8848 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
8849 "superroot" on DOS_NT systems.
8850
a2c9aee6
EZ
88512005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
8852
8853 * process.c (send_process): Restore the SIGPIPE handler if we
8854 catch a SIGPIPE.
8855
09e8eb5b
JB
88562005-05-20 Juanma Barranquero <lekktu@gmail.com>
8857
8858 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
8859 misleading comments).
8860 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
8861
f3fbdb1f
LK
88622005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8863
8864 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
8865 Correct the right value.
8866
639ec765
NR
88672005-05-19 Nick Roberts <nickrob@snap.net.nz>
8868
240d926e 8869 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
8870 post-command-idle-hook and post-command-idle-delay.
8871 (command_loop_1): Don't try to execute post-command-idle-hook.
8872
03d42907
KS
88732005-05-16 Kim F. Storm <storm@cua.dk>
8874
1cb83e13
KS
8875 * xdisp.c (handle_display_prop): Handle empty replacement.
8876 (handle_single_display_spec): Return -1 for empty replacement.
8877
8878 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
8879
03d42907
KS
8880 * .gdbinit (pitx): Print more info about iterator.
8881
0da46b6e
AS
88822005-05-16 Andreas Schwab <schwab@suse.de>
8883
3c1b433a 8884 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 8885
d06ba294
RS
88862005-05-14 Richard M. Stallman <rms@gnu.org>
8887
8888 * xdisp.c (message3): Call cancel_echoing.
8889
8890 * alloc.c (Fmemory_full_p): New function.
8891 (syms_of_alloc): defsubr it.
8892
8893 * process.c (send_process_trap): Unblock SIGPIPE.
8894 (send_process): Reset SIGPIPE handler before reporting error.
8895
90713743
NR
88962005-05-14 Nick Roberts <nickrob@snap.net.nz>
8897
8898 * emacs.c (syms_of_emacs): Fix doc string for system-type.
8899
68780e2a
RS
89002005-05-13 Richard M. Stallman <rms@gnu.org>
8901
8902 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
8903 (Finsert_file_contents): If we read 0 bytes from a special file,
8904 unlock the visited file if we locked it.
8905 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 8906 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 8907
5063dbbf
YM
89082005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8909
8910 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
8911
3c1b433a
SM
8912 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
8913 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
8914 redisplay from being paused by them.
8915
8916 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
8917 [!MAC_OSX] (target_ticks): Remove variable.
8918 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
8919 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
8920 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 8921 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
8922 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
8923 handling using Time Manager routines.
3c1b433a
SM
8924 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
8925 New variables.
5063dbbf
YM
8926 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
8927 (setitimer): New functions.
8928
8929 * macfns.c, macmenu.c: Don't include signal.h.
8930
8931 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
8932 Rename from get_control_part_bound. All callers changed.
8933 (x_scroll_bar_clear): New function.
8934 (x_clear_frame): Use it.
8935 (XTset_vertical_scroll_bar): Don't call Draw1Control.
8936 (x_scroll_bar_handle_click): Change type of second argument from
8937 int to ControlPartCode.
8938 (check_alarm): Remove declaration.
02a6375c
YM
8939 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
8940 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
8941
89422005-05-13 Nozomu Ando <nand@mac.com>
8943
8944 * unexmacosx.c: Include assert.h.
8945 (MACOSX_MALLOC_MULT16): New define.
8946 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
8947 ptr is in unexec regions by checking it is multiple of 16.
8948 (unexec_malloc_header_t): New typedef.
8949 (unexec_malloc, unexec_realloc, unexec_free): Store and use
8950 allocated size information in unexec_malloc_header.
8951
d101bf56
RS
89522005-05-10 Richard M. Stallman <rms@gnu.org>
8953
8954 * xterm.c (noinclude): Add #undef.
8955
8956 * image.c, xfns.c, xmenu.c: Don't include signal.h.
8957
2f60660a
JB
89582005-05-09 Juanma Barranquero <lekktu@gmail.com>
8959
f1701e65
JB
8960 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
8961 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
8962 Doc fixes.
8963
2f60660a
JB
8964 * dired.c (Ffile_name_completion): Make argument name
8965 match its use in docstring.
8966
9f29e806
LT
89672005-05-08 Luc Teirlinck <teirllm@auburn.edu>
8968
8969 * eval.c (Fdefvaralias): Remove any pre-existing
8970 variable-documentation property of the alias.
8971
a790bcd4
TTN
89722005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
8973
8974 * xfns.c (start_hourglass): Do nothing when running on a tty.
8975
d5fb8dab
JB
89762005-05-07 Juanma Barranquero <lekktu@gmail.com>
8977
8978 * fns.c (Fchar_table_range): Fix typos in docstring.
8979
7ec64183
SM
89802005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8981
8982 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
8983
6ff95f1d
EZ
89842005-05-06 Eli Zaretskii <eliz@gnu.org>
8985
2c6b25c7
EZ
8986 * lread.c (Flocate_file_internal): Doc fix.
8987
6ff95f1d
EZ
8988 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
8989
17d28d26
YM
89902005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8991
8992 * macselect.c (x_own_selection): Accept Lisp string as result of
8993 selection converter function.
8994 (x_clear_frame_selections): Don't call x-lost-selection-functions
8995 if Emacs is not owner of the selection.
8996 (Vmac_services_selection): Put variable and initialization in
8997 #ifdef MAC_OSX.
8998 (syms_of_macselect) [MAC_OSX]: Set default value of
8999 Vmac_services_selection to PRIMARY.
9000
7ec64183
SM
9001 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
9002 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
9003 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
9004 (install_scroll_bar_timer, set_scroll_bar_timer)
9005 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
9006 (get_control_part_bound, x_scroll_bar_handle_press)
9007 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
9008 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
9009 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
9010 (scroll_bar_timer_event_posted_p): New variables.
9011 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
9012 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
9013 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
9014 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
9015 Initialize track_top and track_height to nil.
9016 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
9017 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
9018 (XTset_vertical_scroll_bar): Don't make space between scroll bar
9019 and associated window.
9020 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
9021 from window config.
7ec64183
SM
9022 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
9023 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
9024 Recalculate them if they are nil.
9025 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
9026 clicked control is a scroll bar.
9027 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
9028 event handler functions. Don't add modifiers to scroll bar click
7ec64183 9029 events. Call scroll bar release handler when window is deactivated.
17d28d26 9030 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
9031 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
9032 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 9033
7ec64183
SM
9034 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
9035 New members track_top and track_height.
17d28d26
YM
9036
9037 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
9038 init_process when including sys/select.h.
9039
643b4cf5
LT
90402005-05-05 Luc Teirlinck <teirllm@auburn.edu>
9041
9042 * eval.c (Fdefvaralias): Doc fix.
9043
9044 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
9045
99bda128
KS
90462005-05-05 Kim F. Storm <storm@cua.dk>
9047
9048 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
9049 default value.
9050 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
9051 Fix type of cursor-in-non-selected-windows.
9052
3a3563e9
JD
90532005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9054
9055 * mac.c: #undef init_process so not to conflict with system headers.
9056
0124c5bd
RS
90572005-05-02 Richard M. Stallman <rms@gnu.org>
9058
9059 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
9060
9061 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
9062
9063 * xdisp.c (Vcursor_in_non_selected_windows)
9064 (Qcursor_in_non_selected_windows): Vars deleted.
9065 (syms_of_xdisp): Don't initialize them.
9066 (get_window_cursor_type): Use cursor_in_non_selected_windows
9067 buffer slot.
9068
4b3f161f
KS
90692005-05-02 Kim F. Storm <storm@cua.dk>
9070
e40527dc
KS
9071 * macros.c (executing_kbd_macro_index): Rename from
9072 executing_macro_index. All uses changed.
9073 (executing_kbd_macro_iterations): Rename from
9074 executing_macro_iterations. All uses changed.
9075 (executing_kbd_macro): Rename from executing_macro.
9076 All uses changed.
9077 (syms_of_macros): Rename Lisp var executing-macro-index to
9078 executing-kbd-macro-index.
9079
4b3f161f
KS
9080 * xdisp.c (move_it_in_display_line_to): Fix last change.
9081
4d49edf6
LT
90822005-05-01 Luc Teirlinck <teirllm@auburn.edu>
9083
f6b1b15a
LT
9084 * xmenu.c (Fx_popup_menu): Doc fix.
9085
4d49edf6
LT
9086 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
9087
4a766fe6
JR
90882005-05-02 Jason Rumney <jasonr@gnu.org>
9089
9090 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
9091
c924d3ff
TTN
90922005-05-02 Nozomu Ando <nand@mac.com>
9093
9094 * sysselect.h: Fix typo.
9095
b161ea4e 90962005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 9097
b161ea4e
NR
9098 * charset.c (Fchars_in_region): Remove as obsolete.
9099
d37e919d 91002005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
9101
9102 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 9103 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 9104 glyph.
5c2e5a5e 9105
bec0b768
LT
91062005-05-01 Luc Teirlinck <teirllm@auburn.edu>
9107
9108 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
9109
ebbfa918
RS
91102005-05-01 Richard M. Stallman <rms@gnu.org>
9111
9112 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
9113 If user cancels the menu, quit unless FOR_CLICK.
9114
7ec64183 9115 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
9116 All uses changed.
9117 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
9118 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
9119 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
9120 * commands.h (Vexecuting_kbd_macro): Likewise.
9121
a72c2d97
TTN
91222005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
9123
9124 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
9125
7e995a23
RS
91262005-04-30 Richard M. Stallman <rms@gnu.org>
9127
9128 * fileio.c (Ffind_file_name_handler): Handle the `operations'
9129 property of the file name handler.
9130 (Qoperations): New variable.
9131 (syms_of_fileio): Initialize and staticpro it.
9132
9133 * xdisp.c (set_message_1): Delete xassert.
9134
7a92caf8
YM
91352005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9136
7ec64183 9137 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
9138
9139 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
9140
9141 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
9142 before/after including Carbon.h if there is a working mktime.
9143
5ae91803
KS
91442005-04-28 Kim F. Storm <storm@cua.dk>
9145
9146 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
9147 Fix cyclic alias check. If alias loop is detected, signal
9148 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
9149
d79b6c21
LK
91502005-04-28 Lute Kamstra <lute@gnu.org>
9151
9152 * eval.c (do_autoload): Record only autoloads in the autoload
9153 property of symbols.
9154
8c75afbf
NR
91552005-04-28 Nick Roberts <nickrob@snap.net.nz>
9156
9157 * emacs.c (USAGE1): Add --basic-display and --quick options.
9158
832e294f
KS
91592005-04-27 Kim F. Storm <storm@cua.dk>
9160
9161 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
9162
f03f317a
RS
91632005-04-26 Richard M. Stallman <rms@gnu.org>
9164
c019856e
RS
9165 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
9166 (syms_of_window): Doc fixes.
9167
f03f317a
RS
9168 * indent.c (Fvertical_motion): Undo previous change.
9169
38f60cd9
KH
91702005-04-26 Kenichi Handa <handa@m17n.org>
9171
9172 * fns.c (char_table_range): New function.
9173 (Fchar_table_range): Signal an error if characters in the range
9174 have inconsistent values. Don't check the parent.
9175
87ede5a1
KH
91762005-04-25 Kenichi Handa <handa@m17n.org>
9177
9178 * fontset.c (fontset_set): Fix previous change.
9179
a6390474
RS
91802005-04-24 Richard M. Stallman <rms@gnu.org>
9181
9182 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
9183
7fce7dfe
EZ
91842005-04-24 Eli Zaretskii <eliz@gnu.org>
9185
cf1982d9
EZ
9186 * regex.c (re_search_2, re_match_2_internal): Convert second arg
9187 of RE_TRANSLATE to int, to shut up GCC warnings.
9188
7fce7dfe
EZ
9189 * fileio.c (Fcopy_file): Doc fix.
9190 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
9191 not needed.
9192
49ed33c7
YM
91932005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9194
9195 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
9196 (SOME_MACHINE_OBJECTS): Likewise.
9197 (mac.o): Depend on ccl.h.
9198 (macselect.o): New target.
9199
7ec64183
SM
9200 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
9201 Call syms_of_macselect.
49ed33c7
YM
9202
9203 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
9204
7ec64183 9205 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
9206 (QCLIPBOARD): Remove variable.
9207 (syms_of_mac): Don't initialize it.
9208 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
9209 Remove functions.
9210 (syms_of_mac): Don't defsubr them.
9211 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
9212 (QHFS_plus_D, QHFS_plus_C): New variables.
9213 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
9214 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
9215 (cfstring_create_normalized): New functions.
9216 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
9217 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
9218
7ec64183
SM
9219 * macterm.c (handling_window_update, terminate_flag):
9220 Remove variables.
9221 (do_window_update, do_ae_quit_application, XTread_socket):
9222 Don't use them.
49ed33c7
YM
9223 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
9224 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
9225 (init_service_handler): Move to macselect.c. Remove declarations.
9226 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
9227 (Qapplication, Qabout): New variables.
9228 (syms_of_mac): Initialize them.
9229 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
9230 (Qperform): New variables.
9231 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 9232 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
9233 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
9234 (mac_store_application_menu_event, init_menu_bar): New functions.
9235 [USE_CARBON_EVENTS] (mac_handle_command_event)
9236 (init_command_handler): New functions.
9237 (mac_handle_window_event): Return noErr on window update event.
9238 (do_ae_quit_application): Call mac_store_application_menu_event.
9239 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
9240 and init_menu_bar.
9241
9242 * macterm.h (x_clear_frame_selections): Add extern.
9243
9244 * macselect.c: New file for selection processing on Mac OS.
9245
469bc679
RS
92462005-04-23 Richard M. Stallman <rms@gnu.org>
9247
9248 * fileio.c (Fcopy_file): New arg MUSTBENEW.
9249 (Frename_file): Pass new arg to Fcopy_file.
9250
9251 * window.c (window_size_fixed): Variable deleted.
9252 (syms_of_window): Initialize window-size-fixed to nil.
9253 But don't DEFVAR window_size_fixed.
9254
d379c558
AS
92552005-04-23 Andreas Schwab <schwab@suse.de>
9256
9257 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
9258 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
9259 use lib64 instead of lib.
9260 (_LP64) [_ARCH_PPC64]: Define if not defined.
9261
007d105b
TTN
92622005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
9263
9264 * s/ms-w32.h (HAVE_PWD_H): Define.
9265
b9c15916
KH
92662005-04-22 Kenichi Handa <handa@m17n.org>
9267
9268 * fns.c (copy_sub_char_table): Explicitly copy the default value
9269 of the sub-chartable.
9270
9271 * fontset.c (fontset_set): When a sub-chartable is created,
9272 explicitly sets the defalt value.
9273
1ba52906
KS
92742005-04-22 Kim F. Storm <storm@cua.dk>
9275
9276 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
9277 (Fsafe_plist_get): Rename to Fplist_get.
9278 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
9279 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
9280
9281 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
9282
9283 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
9284 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9285 Use Fplist_get instead of Fsafe_plist_get.
9286
9287 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
9288
e235145c
MB
92892005-04-21 Miles Bader <miles@gnu.org>
9290
9291 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
9292
766c5349
TTN
92932005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
9294
c164a7e6
TTN
9295 * sysdep.c: Remove reference to defunct vms-pwd.h.
9296 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
9297 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
9298
766c5349
TTN
9299 * config.in: Regenerate.
9300
2b048bf5
KH
93012005-04-20 Kenichi Handa <handa@m17n.org>
9302
9303 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
9304 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
9305 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
9306
9307 * alloc.c (make_sub_char_table): Argument changed to initial
9308 value of the slots.
9309
9310 * data.c (Faref): Handle special slots used as default values of
9311 ascii, eight-bit-control, eight-bit-control. Don't ignore a
9312 default value set for a group of characters.
9313 (Faset): Signal an error if IDXVAL is not a valid character code.
9314 Make a sub-chartable with correct initial value.
9315
9316 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
9317 values for ascii, eight-bit-control, eight-bit-graphic.
9318 Don't call Faref with charset-id.
2b048bf5
KH
9319 (Fset_char_table_default): Document how to treat normal character
9320 argument. Handle special slots used as default values of ascii,
9321 eight-bit-control, eight-bit-control. Make a sub chartable if
9322 necessary.
9323
b0a35939
KH
93242005-04-20 Kenichi Handa <handa@m17n.org>
9325
9326 * search.c (boyer_moore): Fix previous change.
9327
98dde726
KS
93282005-04-19 Kim F. Storm <storm@cua.dk>
9329
9330 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
9331 face unless last visible char and first invisible char have the
9332 same face. Also use default face if saved_face_id is undefined.
9333
327a3376
YM
93342005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9335
9336 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
9337 `full_name'.
9338 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
9339 mac_scriptcode member.
9340
9341 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
9342 (syms_of_mac): Don't initialize them.
9343 (Vmac_charset_info_alist): New variable.
9344 (syms_of_mac): Defvar it.
9345 (create_text_encoding_info_alist): New function.
9346 (decode_mac_font_name, mac_to_x_fontname)
9347 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
9348 code the correspondence among XLFD charsets, Mac script codes, and
9349 Emacs coding systems. Use Vmac_charset_info_alist and result of
9350 create_text_encoding_info_alist instead.
9351 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
9352 routines also on Mac OS Classic.
7ec64183
SM
9353 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
9354 Use add_font_name_table_entry.
327a3376
YM
9355 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
9356 specified. Derive unspecified scalable fields from specified one.
9357 (x_list_fonts): Consider Valternate_fontname_alist.
9358 (kDefaultFontSize): Change value from 9 to 12.
9359 (XLoadQueryFont): Get decoded font family, font face, and charset
9360 from x_font_name_to_mac_font_name. Set full name of loaded font.
9361 (mac_unload_font): Free `full_name' member.
9362 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
9363 NULL. Copy full_name member of struct MacFontStruct to that of
9364 struct font_info.
9365
d0636839
KS
93662005-04-19 Kim F. Storm <storm@cua.dk>
9367
5827e9d4
KS
9368 * xdisp.c (handle_stop): Set saved_face_id to current face if
9369 selective_display_ellipsis_p so ellipsis will be shown in same
9370 face as preceding text.
9371 (setup_for_ellipsis): Don't set saved_face_id here.
9372 (next_element_from_display_vector): Default to saved_face_id.
9373
d0636839
KS
9374 * fns.c (Fsafe_get): New function.
9375 (syms_of_fns): Defsubr it.
9376
9377 * lisp.h (Fsafe_get): EXFUN it.
9378
9379 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
9380 loops in case of bad face property lists. Limit number of face
9381 alias lookups to 10 (in case of face alias loops).
9382
e5c78c9d
KS
93832005-04-18 Kim F. Storm <storm@cua.dk>
9384
9385 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
9386 It replaces the corresponding member from struct window, as a
9387 window may now show multiple overlay arrows.
9388 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
9389
9390 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
9391 Compare overlay_arrow_bitmap than overlay_arrow_p members.
9392
9393 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
9394 rather than from window.
9395 (update_window_fringes): Compare overlay_arrow_bitmap rather than
9396 overlay_arrow_p members.
9397 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
9398 if not default.
9399
9400 * window.h (struct window): Remove member overlay_arrow_bitmap.
9401
9402 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
9403
9404 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
9405 Calls changed. Don't check for overlay-arrow-bitmap property here.
9406 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
9407 fringe is present, return Lisp integer for bitmap (or -1 for default).
9408 Fix value of overlay-arrow-bitmap property to be a symbol, use
9409 lookup_fringe_bitmap to parse it.
9410 (display_line): Change call to overlay_arrow_at_row. Store integer
9411 return value as overlay bitmap in row rather than window.
9412 Only show overlay arrow if row displays text, or if no other overlay
9413 arrow is seen in window (if overlay marker is at point-max).
9414
7d603e3f
TTN
94152005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
9416
9417 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
9418
9942fa0c
LK
94192005-04-18 Lute Kamstra <lute@gnu.org>
9420
9421 * lread.c (Vloads_in_progress): Static.
9422 * fns.c (Vloads_in_progress): Remove extern.
9423 (load_in_progress): Add extern.
9424 (Frequire): Use load_in_progress instead of Vloads_in_progress.
9425
999cdb8f
TTN
94262005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
9427
9428 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
9429
3f4413f8
YM
94302005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9431
9432 * macterm.c (XTread_socket): Don't beep on keyboard input even if
9433 no frame is visible.
9434
60ec7b7e
DN
94352005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9436
9437 * term.c (struct keys): Add support for shifted keys.
9438
a8a1c0ee
RS
94392005-04-16 Richard M. Stallman <rms@gnu.org>
9440
9441 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
9442 (set_message): Call with_echo_area_buffer with WHICH = 0.
9443 (set_message_1): Erase the echo area buffer first thing.
9444 (echo_area_display): Don't clear echo_message_buffer.
9445
f3cf04d3
YM
94462005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9447
9448 * Makefile.in (mac.o): Depend on charset.h and coding.h.
9449
9450 * mac.c: Include charset.h and coding.h.
9451 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 9452 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
9453 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
9454
9455 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
9456
9457 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
9458
9459 * macterm.c (x_autoselect_window_p): Remove variable.
9460 (last_window): New variable.
7ec64183
SM
9461 (XTreassert_line_highlight, x_change_line_highlight):
9462 Remove declarations.
f3cf04d3
YM
9463 (mac_focus_changed, x_detect_focus_change): New functions and
9464 declarations.
9465 (XTextExtents16, front_emacs_window): Remove function.
9466 (mac_focus_frame): New function.
9467 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
9468 (mac_check_for_quit_char): Use it instead of front_emacs_window.
9469 (x_scroll_bar_report_motion): Obtain window from control owner.
9470 (x_make_frame_invisible): Set window manager size hint.
9471 (do_mouse_moved): Remove function.
9472 (XTread_socket): Move its contents here. Generate select-window
9473 event on mouse movement if needed. Use x_detect_focus_change on
9474 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
9475 window rectangle when dnd items are dropped.
9476 Don't activate/deactivate root control.
f3cf04d3
YM
9477 (frame_highlight, frame_unhighlight): Activate/deactivate root
9478 control here.
9479 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
9480
9481 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
9482 New extern.
9483
9e5b2858
LT
94842005-04-15 Luc Teirlinck <teirllm@auburn.edu>
9485
9486 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
9487 (lisp): Use it.
9488 (SOME_MACHINE_LISP): Add tooltip.
9489
42c6741e
YM
94902005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9491
7ec64183
SM
9492 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
9493 Don't include TextEncodingConverter.h.
42c6741e
YM
9494 (mac_system_script_code, Vmac_system_locale): New variables.
9495 (syms_of_mac): Defvar them.
9496 (mac_get_system_locale): New function.
9497
7ec64183
SM
9498 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
9499 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 9500 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
9501 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
9502 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
9503
9504 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
9505 TextEncodingConverter.h.
9506
0614c575
ST
95072005-04-13 Steven Tamm <steventamm@mac.com>
9508
7e26f91b
KS
9509 * macterm.c (syms_of_macterm): Remove redundant definition of
9510 mac-pass-control-to-system.
0614c575 9511
203eb0aa
SM
95122005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9513
9514 * window.c (Fset_window_configuration): Be careful when you choose
9515 among several possible points for the new_current_buffer.
9516
a56e6111
YM
95172005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9518
9519 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
9520 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
9521 (Qlanguage_change) [MAC_OS]: New variable.
9522 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 9523 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
9524
9525 * macterm.c (mac_keyboard_text_encoding)
9526 (current_mac_keyboard_text_encoding): Remove variables.
5e1a6e32 9527 (XTread_socket): Store language-change event if keyboard script change
7e26f91b 9528 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 9529 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 9530
7e26f91b 9531 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 9532
6695c528
RS
95332005-04-10 Richard M. Stallman <rms@gnu.org>
9534
9535 * emacs.c (standard_args): Rename --bare-bones to --quick.
9536 Add -D aka --basic-display.
9537
9538 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
9539
18e2d91f
RS
95402005-04-09 Richard M. Stallman <rms@gnu.org>
9541
9542 * keymap.c (where_is_internal): Convert a string used as event type
9543 into "(any string)".
9544
9545 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
9546 * fns.c (Vloads_in_progress): Add extern.
9547 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
9548
95492005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
9550
9551 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
9552
1cf21850
LK
95532005-04-09 Lute Kamstra <lute@gnu.org>
9554
9555 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
9556 within the accessible part of the buffer.
9557
bfd93240
KS
95582005-04-09 Kim F. Storm <storm@cua.dk>
9559
9560 * lread.c (readevalloop): Add args START and END as region in
9561 current buffer to read. Callers changed.
9562 When specified, narrow to this region only when reading,
9563 not during eval. Track next point to read from during eval.
9564 Also restore point to "real" buffer position before eval.
9565 (Feval_region): Don't save excursion and restriction here, and
9566 don't narrow to region. Just pass region to readevalloop.
9567 Note: Point is now preserved even when PRINTFLAG is nil.
9568
9ba27690
KS
95692005-04-08 Kim F. Storm <storm@cua.dk>
9570
9571 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
9572
73f0d996
KS
95732005-04-06 Kim F. Storm <storm@cua.dk>
9574
9575 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
9576
369f76bb
YM
95772005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9578
9579 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
9580 (Fmac_get_preference): Doc fix.
9581
203eb0aa
SM
9582 * macfns.c (Fx_create_frame, x_create_tip_frame):
9583 Add "fontset-mac" to fallback font/fontsets.
369f76bb 9584
2ba613a6
KS
95852005-04-04 Kim F. Storm <storm@cua.dk>
9586
4d5ddddc
KS
9587 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
9588
2ba613a6
KS
9589 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
9590 Call it again after autoload.
9591
1673df2e
JD
95922005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9593
9594 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
9595 mallopt.
9596
9597 * ralloc.c (r_alloc_init): Ditto.
9598
41639988
KH
95992005-04-01 Kenichi Handa <handa@m17n.org>
9600
1cf21850
LK
9601 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
9602 (Vascii_eqv_table): Extern them.
41639988
KH
9603
9604 * casetab.c (set_case_table): If standard is nonzero, setup
9605 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
9606
9607 * search.c (looking_at_1): Use current_buffer->case_canon_table,
9608 not DOWNCASE_TABLE.
9609 (string_match_1): Likewise.
9610 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
9611 Vascii_downcase_table.
9612 (fast_string_match_ignore_case): Likewise.
9613 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
9614 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
9615 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
9616 simple_translate.
9617
6ca53601
SM
96182005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9619
9620 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
9621 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
9622 Use XtNtopShadowPixel and XtNbottomShadowPixel.
9623 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
9624 really work and that breaks with some versions of Xaw3d.
9625
fafbb99d 96262005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
9627
9628 * coding.c (syms_of_coding): Fix previous change.
9629
6ca53601
SM
96302005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
9631
9632 * fileio.c (search_embedded_absfilename): Fix last change.
9633
bf762c98
KH
96342005-03-25 Kenichi Handa <handa@m17n.org>
9635
9636 * coding.c (syms_of_coding): Suggest to use set-coding-category in
9637 the docstring of coding-category-list.
9638
f793f885
KS
96392005-03-31 Kim F. Storm <storm@cua.dk>
9640
9641 * keyboard.c (Qmouse_fixup_help_message): New var.
9642 (syms_of_keyboard): Intern and staticpro it.
9643 (show_help_echo): Apply mouse-fixup-help-message to help string.
9644
c364fe19
KS
96452005-03-30 Kim F. Storm <storm@cua.dk>
9646
9647 * xdisp.c (display_line): Allow multiple overlay arrows in window.
9648
c70a4df6
SM
96492005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9650
9651 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
9652 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
9653 (Ffile_name_absolute_p): Use it.
9654 (search_embedded_absfilename): New fun, extracted from
9655 Fsubstitute_in_file_name. Use file_name_absolute_p.
9656 Free the pw data after use.
9657 (Fsubstitute_in_file_name): Use it.
9658 After cutting a prefix, re-check file-name-handler.
9659
6e7d0438
JR
96602005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
9661
6ca53601 9662 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
9663
9664 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
9665 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
9666
65671706
SM
96672005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9668
9669 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
9670 Use Fexit_minibuffer.
9671 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
9672
0de4dad4
SM
96732005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9674
781da985
SM
9675 * dired.c (Ffile_attributes): Add a missing gcpro.
9676
0de4dad4
SM
9677 * alloc.c (make_number): The arg can be bigger than `int'.
9678 * lisp.h (make_number): Make prototype more precise.
9679
9680 * process.c, dired.c (Vfile_name_coding_system)
9681 (Vdefault_file_name_coding_system):
9682 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
9683 (Vdefault_file_name_coding_system): Remove unused declarations.
9684
ff18668f
JD
96852005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9686
9687 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
9688 if it failed to pop up (Gnome "show pointer on ctrl" option makes
9689 menus fail to pop up).
9690
0de4dad4 96912005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
9692
9693 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 9694 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 9695
8df0ffbe
KS
96962005-03-22 Kim F. Storm <storm@cua.dk>
9697
9698 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
9699 * dispextern.h (lookup_derived_face): Fix prototype.
9700 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
9701
9702 * xdisp.c (handle_single_display_spec): Derive left-fringe and
9703 right-fringe face from fringe face.
9704
9705 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
9706 Derive face from fringe face.
9707
6ca30ba4
JD
97082005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9709
9710 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
9711
d615870a
DK
97122005-03-22 David Kastrup <dak@gnu.org>
9713
9714 * textprop.c (Fnext_char_property_change)
66347da7 9715 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
9716 (Fnext_single_char_property_change)
9717 (Fprevious_single_char_property_change): Check that limit is a
9718 number in strings.
9719 (Fnext_single_char_property_change): Coerce position to integer.
9720 (Fprevious_single_char_property_change): Same here.
9721
32b939ea
TTN
97222005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
9723
9724 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
9725
6027e473
SM
97262005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9727
9728 * frame.c (Fignore_event): Remove.
9729 (syms_of_frame): Don't defsubr it.
9730
9731 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
9732 redundant `ignore-event'.
9733
730f4d72
EZ
97342005-03-19 Eli Zaretskii <eliz@gnu.org>
9735
9736 * unexec.c (write_segment, unexec): Move these functions to avoid
9737 forward references (which cause errors with "gcc -gcoff").
9738
c7f6afd5
JD
97392005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9740
6027e473 9741 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 9742 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 9743
c7f6afd5
JD
9744 * xrdb.c (x_load_resources): Use different char *helv when I18N
9745 is present.
9746
db328182
KH
97472005-03-17 Kenichi Handa <handa@m17n.org>
9748
66347da7 9749 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 9750
211f2210
SM
97512005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9752
9753 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
9754 Use xic_create_fontsetname even for non-Motif menus.
9755 Don't forget to free the fontsetname.
9756
9757 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
9758
c7bd5d57
RS
97592005-03-17 Richard M. Stallman <rms@gnu.org>
9760
9761 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
9762
9763 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
9764 (Fmake_symbolic_link): Use G to read the new file name.
9765
9766 * callint.c (Finteractive): Document G option.
9767 (Fcall_interactively): Implement G option.
9768
9769 * buffer.c (buffer_lisp_local_variables): New function,
9770 broken out from Fbuffer_local_variables.
9771 (clone_per_buffer_values): Use buffer_lisp_local_variables.
9772
888953f1
SM
97732005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9774
3c916d65
SM
9775 * xfns.c (xic_create_fontsetname): Add `motif' argument.
9776 Always return a freshly allocated string.
9777 (xic_create_xfontset): Adjust call.
9778
9779 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
9780 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
9781 (dump_realized_face): Fix warning.
9782
9f9e5275
SM
9783 * emacs.c (Fkill_emacs): YAILOM.
9784
888953f1
SM
9785 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
9786
48502d68
YM
97872005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9788
9789 * mac.c (HASHKEY_TERMINAL): Remove.
9790 (HASHKEY_MAX_NID): New macro.
9791 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
9792 argument.
888953f1 9793 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
9794 (xrm_create_database, xrm_q_put_resource)
9795 (xrm_merge_string_database, xrm_q_get_resource_1)
9796 (xrm_q_get_resource): Change resource database representation so
9797 that it may not use multiple hash tables for a single database.
9798 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
9799
d5161e8c
SM
98002005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
9801
11a646cd
SM
9802 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
9803
9804 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
9805 locale-coding-system, as was already done for WINDOWSNT.
9806
d5161e8c
SM
9807 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
9808 translation for chars in the 0-255 range.
9809
568b6e41
LK
98102005-03-16 Lute Kamstra <lute@gnu.org>
9811
9812 * floatfns.c (Ffloor): Doc fix.
9813
469fb3cf
YM
98142005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9815
9816 * mac.c: Include macterm.h instead of directly including Carbon.h.
9817 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
9818 (Qarray, Qdictionary): New variables.
9819 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
9820 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
9821 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
9822 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
9823 in callback for CFDictionaryApplyFunction.
9824 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9825 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9826 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
9827 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
9828 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
9829 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
9830 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 9831 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
9832 (parse_binding, parse_component, parse_resource_name, parse_value)
9833 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
9834 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
9835 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
9836 New functions.
469fb3cf
YM
9837
9838 * macfns.c (mac_get_rdb_resource): Remove function.
9839 (x_get_string_resource): Use xrm_get_resource.
9840
9841 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
9842
9843 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
9844 name_list_element.
9845 (mac_make_rdb): Create resource database from preferences and
9846 argument string.
9847 (mac_term_init): Save resource database to cddr part of
9848 name_list_element.
9849
9850 * macterm.h (xrm_merge_string_database, xrm_get_resource)
9851 (xrm_get_preference_database): Add externs.
9852 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9853 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9854 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
9855
9856 * process.c (init_process): Change `#ifdef DARWIN' to `#if
9857 defined (DARWIN) || defined (MAC_OSX)'
9858
9859 * s/darwin.h (DARWIN): Don't define.
9860
6a3fac90
YM
98612005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9862
9863 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
9864 Remove unused variables.
9865 (syms_of_macfns): Don't initialize them. Likewise for
9866 Qface_set_after_frame_default. Defvar and initialize
9867 Vx_window_horizontal_drag_shape.
9868 (x_set_mouse_color): Change mouse pointer shape.
9869 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 9870 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
9871 (hourglass_started): New function (from xfns.c).
9872 (start_hourglass, cancel_hourglass): Put function body in #ifdef
9873 MAC_OSX.
9874 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
9875 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 9876 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
9877
9878 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
9879 Controls.h. Use ThemeCursor instead of CursHandle.
9880
d5161e8c
SM
9881 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
9882 Remove functions and declarations.
9883 (mac_set_colors): Take argument for saving background color.
9884 All callers changed.
6a3fac90
YM
9885 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
9886 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
9887 background color.
9888 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
9889 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
9890 Use SetThemeCursor.
6a3fac90
YM
9891 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
9892 indicator control to the upper-right corner of the window.
9893 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
9894 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
9895 (do_window_update): Update controls after updating content area.
9896 (mac_handle_window_event): Remove unused extern.
9897 (XTread_socket): Check both control handle and control part code
9898 to determine whether a scroll bar is clicked. Activate/deactivate
9899 root control instead of contained scroll bar controls.
9900 (make_mac_terminal_frame): Use ThemeCursor constants.
9901
d5161e8c
SM
9902 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
9903 New member hourglass_control.
6a3fac90 9904 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 9905 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 9906
a7321976
YM
99072005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9908
9909 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 9910 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
9911 laptops, and fn + `enter' on laptops.
9912
f7b758bd
SM
99132005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9914
9915 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
9916 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
9917 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
9918
9919 * xfns.c (xic_defaut_fontset): New constant.
9920 (xic_create_fontsetname): New function.
9921 Extracted from create_frame_xic. Try to generate a slightly
9922 better fontset.
9923 (xic_create_xfontset): Use it.
9924 (create_frame_xic): Simplify.
9925
dac24db4
SM
99262005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
9927
9928 * fileio.c (Fmake_symbolic_link): Fix last change.
9929
e0402468
RS
99302005-03-11 Richard M. Stallman <rms@gnu.org>
9931
9932 * fileio.c (Frename_file, Fadd_name_to_file)
9933 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
9934 expand the basename of FILE relative to it.
9935
fa815b14
KH
99362005-03-11 Kenichi Handa <handa@m17n.org>
9937
9938 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
9939 before calling setup_coding_system so that autoloading of a coding
9940 system work.
9941
817d354b
JD
99422005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9943
68a505ef
JD
9944 * xfns.c (hourglass_started): New function.
9945
9946 * dispextern.h: Declare hourglass_started.
9947
9948 * keyboard.c (Fexecute_extended_command): Restart hourglass
9949 after call to Fcompleting_read if already started.
9950
817d354b
JD
9951 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
9952 GTK main loop is entered in xterm.c, thus doing the redraw.
9953
b0a6f45c
KS
99542005-03-10 Kim F. Storm <storm@cua.dk>
9955
9956 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
9957
ee5d57b0
KH
99582005-03-08 Kenichi Handa <handa@m17n.org>
9959
9960 * frame.c (x_set_font): Call set_default_ascii_font if an
9961 available font is found.
9962
9963 * fontset.c (set_default_ascii_font): New function.
dac24db4 9964 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
9965
9966 * fontset.h (set_default_ascii_font): Extern it.
9967
f30c4a5c
KS
99682005-03-07 Kim F. Storm <storm@cua.dk>
9969
3fb26a86
KS
9970 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
9971 (clear_image_cache_count): New var.
9972 (redisplay_internal): Don't clear face and image caches in the
9973 middle of redisplay; do it afterwards.
9974
a54595d4
KS
9975 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
9976
f30c4a5c
KS
9977 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
9978 is valid. If not, clear phys_cursor_on_p and return.
9979
3d182f9d
AS
99802005-03-07 Andreas Schwab <schwab@suse.de>
9981
9982 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
9983
85d964de
RS
99842005-03-06 Richard M. Stallman <rms@gnu.org>
9985
9986 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
9987
9988 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
9989 (Feval, Ffuncall): Use CHECK_CONS_LIST.
9990
9991 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
9992
9993 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
9994 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
9995
3ff96c81
JL
99962005-03-05 Juri Linkov <juri@jurta.org>
9997
9998 * emacs.c (USAGE1): Replace Info node name "command arguments"
9999 with "emacs invocation".
10000 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
10001 allow arguments `--color' and `MODE' to be separated by space.
10002 Add --no-blinking-cursor, -nbc.
10003 (standard_args): Add -nbc, --no-blinking-cursor.
10004
64eb0083
TTN
100052005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
10006
10007 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
10008 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
10009 * fileio.c (Fexpand_file_name) [VMS]:
10010 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
10011 * doc.c (munge_doc_file_name) [VMS]: Likewise.
10012 (Fsnarf_documentation): Call munge_doc_file_name.
10013
ad708ae5
TTN
100142005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
10015
10016 * s/vms.h (FILE_SYSTEM_CASE): New macro.
10017 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
10018 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
10019
ba025f6d
YM
100202005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10021
10022 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
10023 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 10024
dac24db4 10025 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
10026
10027 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
10028 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 10029 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
10030 (mac_clear_font_name_table): Move extern to macterm.h.
10031
10032 * macfns.c (install_window_handler): Move extern to macterm.h.
10033 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
10034 valid. Don't check !NILP (dir) because it is already checked with
10035 CHECK_STRING.
10036 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 10037 specifying the default location and obtaining the selected filename.
ba025f6d
YM
10038
10039 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
10040
2313f861 10041 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
10042 are included via Carbon.h.
10043
dac24db4
SM
10044 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
10045 Define USE_CARBON_EVENTS to 1.
2313f861 10046 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
10047 (x_free_frame_resources): Call remove_window_handler for
10048 non-tooltip windows.
10049 [TARGET_API_MAC_CARBON]: Don't include headers that are included
10050 via Carbon.h.
10051 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
10052 (mac_do_receive_dragUPP): New variables.
10053 (mac_handle_service_event, init_service_handler): Put declarations
10054 and definitions in #ifdef MAC_OSX.
10055 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
10056 drag-and-drop handler functions and register them.
10057 (remove_window_handler): New function.
dac24db4
SM
10058 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
10059 Use fsspec_to_posix_pathname.
ba025f6d
YM
10060 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
10061 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
10062 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
10063 Set default cursors.
ba025f6d
YM
10064 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
10065 init_service_handler or init_quit_char_handler.
10066 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
10067
10068 * macterm.h (install_window_handler, remove_window_handler)
10069 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
10070 (mac_clear_font_name_table): New externs.
ad708ae5 10071
c1558952
TTN
100722005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
10073
10074 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
10075 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
10076 (Fexpand_file_name): Likewise.
10077
fa439170
TTN
100782005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
10079
10080 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
10081 no longer special-case VMS. Add bogus return value.
10082
db2dacf6
KS
100832005-03-02 Kim F. Storm <storm@cua.dk>
10084
10085 * dispextern.h (XASSERTS): Define to 0 if not already defined.
10086 (xassert) [!XASSERTS]: Define dummy version.
10087
0870514c
KS
100882005-03-02 Kim F. Storm <storm@cua.dk>
10089
10090 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
10091 Reported by David Kastrup.
10092
6b640092
KS
100932005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
10094
10095 * xdisp.c (get_next_display_element): Fix control and escape
10096 glyph from display vector.
10097
f4a5a485
SM
100982005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
10099
10100 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
10101
85d964de
RS
101022005-02-27 Richard M. Stallman <rms@gnu.org>
10103
10104 * xdisp.c (fast_find_position): Rename END to BEG.
10105 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
10106
6e8db3ea
JD
101072005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10108
f4a5a485 10109 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
10110 gtk_window_resize and x_wm_set_size_hint.
10111
0f465b55
KS
101122005-02-25 Kim F. Storm <storm@cua.dk>
10113
10114 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
10115
10116 * xdisp.c (init_from_display_pos): Don't read past end of
10117 it->overlay_strings array.
10118
d5fb8dab 101192005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
10120
10121 * buffer.c (syms_of_buffer): Fix typo.
10122
b02c3eed
LK
101232005-02-23 Lute Kamstra <lute@gnu.org>
10124
10125 * buffer.c (Foverlay_buffer): Doc fix.
10126
c8500765
KS
101272005-02-22 Kim F. Storm <storm@cua.dk>
10128
b686dd59
KS
10129 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
10130 and symbol keys in alists and hash tables.
10131
c8500765
KS
10132 * xdisp.c (fast_find_position): Fix search for start of overlay.
10133
81c85b53
KS
101342005-02-21 Kim F. Storm <storm@cua.dk>
10135
10136 * window.c (window_scroll_pixel_based): When scrolling backwards,
10137 handle partial visible line at end of window even when we hit PT.
10138
f4a5a485 101392005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
10140
10141 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
10142
0dd5a842
KS
101432005-02-21 Kim F. Storm <storm@cua.dk>
10144
10145 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
10146 I think those asserts are bogus if buffer contains invisible text
10147 or images.
10148
d5fb8dab 101492005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
10150
10151 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
10152
0fba9f25
KS
101532005-02-20 Kim F. Storm <storm@cua.dk>
10154
10155 * xdisp.c (pos_visible_p): Be sure to move to the specified
10156 position. Always get the full ascent / descent of the
10157 corresponding row, to return reliable rtop and rbot values.
10158 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
10159 Must look one character back, as back_to_previous_line_start
10160 returns position after the newline.
10161 (move_it_vertically_backward): Fix heuristic for when to move further
10162 back in case line_height * 2/3 is larger than window height.
10163 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
10164 as it does not do anything anymore. Add arg current_matrix_p to
10165 use current matrix rather than desired matrix when set.
10166 (try_cursor_movement): Don't scroll to make cursor row fully
10167 visible if cursor didn't move. This avoids unexpected recentering
10168 in case of blinking cursor or accepting process output.
10169 Use current matrix to check cursor row visibility.
10170 (redisplay_window): Fix whether to recenter or move to top in case
10171 cursor line is taller than window height.
10172 (find_first_unchanged_at_end_row): Stop search if we reach a row
10173 which not enabled (instead of abort).
10174
b1c2adc3
KS
101752005-02-18 Kim F. Storm <storm@cua.dk>
10176
c2ee48fb
KS
10177 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
10178 to be nil in a :box attribute value list; customize prints that
10179 as lisp value when no box color is specified.
10180
b1c2adc3
KS
10181 * .gdbinit (pitx, pit): Pretty print display iterator.
10182 (prowx, prow): Pretty print glyph row.
10183 (pcursorx, pcursor): Pretty print a window cursor.
10184 (pwinx, pwin): Pretty print struct window.
10185
f102186f
SM
101862005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10187
10188 * alloc.c (BLOCK_BYTES): Harmless typo.
10189
9b516537
AS
101902005-02-17 Andreas Schwab <schwab@suse.de>
10191
10192 * xfns.c (hack_wm_protocols): Use correct type for last parameter
10193 of XGetWindowProperty to avoid aliasing issues.
10194 (Fx_window_property): Likewise.
10195
10196 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 10197 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
10198
10199 * xterm.c (handle_one_xevent): Use union of struct input_event and
10200 struct selection_input_event to avoid aliasing issues.
10201 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
10202
886b1418
KS
102032005-02-17 Kim F. Storm <storm@cua.dk>
10204
10205 * dispextern.h (enum it_method): New enum.
10206 (GET_FROM_*): Its members.
10207 (struct it): Change member method from function pointer to enum.
10208
10209 * xdisp.c (check_it, init_from_display_pos, handle_stop)
10210 (setup_for_ellipsis, handle_single_display_spec)
10211 (handle_composition_prop, next_overlay_string)
10212 (get_overlay_strings, reseat_1, reseat_to_string)
10213 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
10214 (in_display_vector_p, display_line, get_next_display_element):
10215 Change it->method from function pointer to enum.
10216 (get_next_element): New array to map it->method to function.
10217 (get_next_display_element): Use it.
10218 (set_iterator_to_next): Use switch instead of if/else chain.
10219
99ee2c6a 102202005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
10221
10222 * w32select.c: Summary: Thorough rework to implement Unicode
10223 clipboard operations and delayed rendering.
10224
10225 Drop last_clipboard_text and related code, keep track of
f4a5a485 10226 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
10227
10228 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
10229 (clipboard_owner, modifying_clipboard, cfg_coding_system)
10230 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
10231 (current_coding_system, current_requires_encoding)
f4a5a485
SM
10232 (current_num_nls, current_clipboard_type, current_lcid):
10233 New static variables.
52c7f9ee
JR
10234
10235 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
10236 (render, render_all, run_protected, lisp_error_handler)
10237 (owner_callback, create_owner, setup_config)
f4a5a485
SM
10238 (enum_locale_callback, cp_from_locale, coding_from_cp):
10239 New local functions.
52c7f9ee
JR
10240
10241 (term_w32select, globals_of_w32select): New global functions.
10242
10243 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
10244 clipboard_owner instead. Use delayed rendering and provide
10245 all text formats. Provide CF_LOCALE if necessary.
10246
10247 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
10248 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
10249 available. Force DOS line-ends for decoding.
10250
10251 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
10252
10253 (syms_of_w32select): Init and register new variables.
10254
10255 * w32.h: Add prototypes for globals_of_w32select and
10256 term_w32select. Make the neighboring K&R declarations into
10257 prototypes, too.
10258
10259 * emacs.c: Include w32.h to get function prototypes.
10260 (main): Call globals_of_w32select.
10261
886b1418 10262 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
10263
10264 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
10265
86e61586
KS
102662005-02-16 Kim F. Storm <storm@cua.dk>
10267
10268 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
10269 at end of display vector.
10270
6407f07b
RS
102712005-02-15 Richard M. Stallman <rms@gnu.org>
10272
10273 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
10274 for mode and header lines.
10275
10276 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
10277
10278 * keymap.h (describe_map_tree): Change decl.
10279
10280 * keyboard.c (command_loop_1): Always use safe_run_hooks
10281 to run Qdeferred_action_function.
10282
10283 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
10284 (describe_map, describe_vector): Likewise. When it's 1,
10285 don't omit shadowed bindings, instead mark them as shadowed.
10286
10287 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
10288 for describe_map_tree. Pass 1 for MENTION_SHADOW.
10289
10290 * data.c (Fsetq_default): Allow no arg case.
10291
3bb917bf
KH
102922005-02-14 Kenichi Handa <handa@m17n.org>
10293
10294 * coding.c (encode_coding_string): Always return a unibyte string.
10295 If NOCOPY is nonzero and there's no need of encoding, make STR
10296 unibyte directly.
10297
10298 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
10299 multibyte string, signal an error instead of aborting.
10300
e31d908f
DN
103012005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
10302
10303 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
10304
48e029b6
KS
103052005-02-12 Kim F. Storm <storm@cua.dk>
10306
10307 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
10308
c10bb00a
KS
103092005-02-10 Kim F. Storm <storm@cua.dk>
10310
10311 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
10312 if it moves outside window or it doesn't display text.
10313
9ca0f64a
KS
103142005-02-09 Kim F. Storm <storm@cua.dk>
10315
10316 * undo.c (Fprimitive_undo): Check that undo function does not
10317 switch buffer.
10318
b8d6f4af
JD
103192005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10320
10321 * xselect.c (selection_data_to_lisp_data): For the special case
10322 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
10323 (x_property_data_to_lisp, selection_data_to_lisp_data):
10324 Comment update: data must be array of int for format == 32.
b8d6f4af 10325
3419757d
SM
103262005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10327
10328 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
10329
3a441526
JD
103302005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10331
fc34503b
JD
10332 * xfns.c (Fx_change_window_property): Use long array when format is 32.
10333 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
10334 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
10335 (x_set_tool_bar_lines): Check that width and height is greater than
10336 zero before clearing area.
fc34503b
JD
10337
10338 * xselect.c (x_reply_selection_request): Pass long array to
10339 XChangeProperty so that 64 bit longs are handeled correctly.
10340 (x_get_window_property): If format is 32 and long is bigger than 32
10341 bits convert data from XGetWindowProperty from long array to int array.
10342 (lisp_data_to_selection_data): When the input is a vector and the
10343 format is 32, allocate a long array even if long is bigger than 32 bits.
10344 (x_fill_property_data): Use char, short and long as the man page
10345 for XChangeProperty specifies. This way the data returned is OK for
10346 both 32 and 64 bit machines.
10347 (x_handle_dnd_message): Calculate size correctly even for 64 bit
10348 machines.
10349 (Fx_send_client_event): Undo change from 2005-02-05,
10350 x_fill_property_data now handles that case.
10351
3419757d 10352 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
10353 reason for the approach in the code.
10354
82ec225b
KS
103552005-02-07 Kim F. Storm <storm@cua.dk>
10356
10357 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
10358
ba2c991c
RS
103592005-02-06 Richard M. Stallman <rms@gnu.org>
10360
10361 * eval.c (Frun_hook_with_args)
10362 (Frun_hook_with_args_until_success)
10363 (Frun_hook_with_args_until_failure): Doc fixes.
10364
e120ea40
AS
103652005-02-05 Andreas Schwab <schwab@suse.de>
10366
3419757d 10367 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 10368
31f16913
JD
103692005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10370
10371 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
10372 the longs in a XClientMessageEvent correctly when long is 64 bits.
10373
6082a820
EZ
103742005-02-05 Eli Zaretskii <eliz@gnu.org>
10375
10376 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
10377 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
10378
0e95095b
JD
103792005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10380
10381 * xmenu.c (menubar_selection_callback): Force out GTK buffered
10382 events so the menu event comes after them. This is to prevent sit-for
10383 from exiting on buffered events directly after a menu selection,
10384 lisp code for Help => About Emacs uses sit-for.
10385
10386 * gtkutil.c (create_menus): Connect selection-done event instead of
10387 the deactivate event to deactivate_cb. This will make the last
10388 leave event come before the call to deactivate_cb, so the leave
10389 event does not make sit-for exit after a menu selection.
10390
5bb6a3c1
KS
103912005-02-03 Kim F. Storm <storm@cua.dk>
10392
10393 * dispnew.c (build_frame_matrix_from_leaf_window)
10394 [!GLYPH_DEBUG]: Fix xassert.
10395
10396 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
10397
10398 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10399
e9859e26
YM
104002005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10401
10402 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
10403 the compiling OS version.
10404
10405 * macfns.c (x_create_tip_frame): Likewise.
10406
3419757d 10407 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 10408
4e07258f
RS
104092005-02-03 Richard M. Stallman <rms@gnu.org>
10410
10411 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
10412
10413 * xdisp.c (echo_area_display): Clear echo_message_buffer.
10414
10415 * buffer.c (Fbury_buffer): Doc fix.
10416
4a34b529
ST
104172005-02-02 Steven Tamm <steventamm@mac.com>
10418
7e26f91b 10419 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 10420 xassert being uncondition, but predicate is.
7e26f91b 10421 * dispnew.c (update_window): Fix compile error due to
f6c62d96 10422 xassert being uncondition, but predicate is.
4a34b529 10423
d78f30b8
MB
104242005-02-02 Miles Bader <miles@gnu.org>
10425
10426 * dispextern.h (xassert): Enable unconditionally.
10427
b044278d
KS
104282005-02-02 Kim F. Storm <storm@cua.dk>
10429
10430 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
10431
56072160
KH
104322005-02-02 Kenichi Handa <handa@m17n.org>
10433
10434 * casefiddle.c (casify_object): Enable changing characters of
10435 different byte length.
10436 (casify_region): Fix loop condition, args to replace_range_2, and
10437 update opoint_byte.
10438
f4a5a485 10439 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 10440
5e1674c5
KS
104412005-02-01 Kim F. Storm <storm@cua.dk>
10442
10443 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
10444 stack before calling handle_display_prop.
10445
fb89c330
KS
104462005-01-31 Kim F. Storm <storm@cua.dk>
10447
10448 * undo.c (Qapply): New lisp var.
10449 (syms_of_undo): Intern and staticpro it.
10450 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
10451 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
10452
10453 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
10454
7bf72fa6
JH
104552005-01-30 Jesper Harder <harder@phys.au.dk>
10456
a050b1a9
KS
10457 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
10458 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 10459
03c64f2e
LT
104602005-01-29 Luc Teirlinck <teirllm@auburn.edu>
10461
10462 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 10463 Increase value to 3 Meg.
03c64f2e 10464
49b8b5dc
JD
104652005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10466
10467 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
10468 button events are not received otherwise.
10469
5a92a9eb
RS
104702005-01-29 Richard M. Stallman <rms@gnu.org>
10471
10472 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
10473
10474 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
10475
5c243ee4
SM
104762005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
10477
10478 * keymap.c (access_keymap): YAILOM.
10479
caf533af
KS
104802005-01-27 Kim F. Storm <storm@cua.dk>
10481
10482 * xdisp.c (get_phys_cursor_geometry): New function to calculate
10483 phys cursor position and size for hollow cursor. Position is
10484 aligned with get_glyph_string_clip_rect and ensures that a hollow
10485 cursor is shown, even when the actual glyph is not visible.
10486
10487 * dispextern.h (get_phys_cursor_geometry): Add prototype.
10488
10489 * xterm.c (x_clip_to_row): Ensure y >= 0.
10490 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10491
10492 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10493
10494 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10495
043f7f73
SM
104962005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
10497
10498 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
10499
889f3641
KS
105002005-01-27 Kim F. Storm <storm@cua.dk>
10501
10502 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
10503 glyph, even when row is only partially visible and actual cursor
10504 position is not visible.
10505
29099c2f
RS
105062005-01-24 Richard M. Stallman <rms@gnu.org>
10507
10508 * xterm.c (x_error_quitter): No longer static, and moved after
10509 x_error_handler.
10510
6adb6f01
KS
105112005-01-24 Kim F. Storm <storm@cua.dk>
10512
10513 * xdisp.c (move_it_by_lines): If we move forward after going too
10514 far back, cancel move if end position is same as start position.
10515
4d904fa0
ST
105162005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10517
10518 * dispextern.h (struct glyph_string): New members clip_head and
10519 clip_tail.
6adb6f01 10520
4d904fa0
ST
10521 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
10522 region to the area between clip_head and clip_tail.
10523 (draw_glyphs): Record the area that need to be actually redrawn to
10524 the new variables clip_head and clip_tail when there are
10525 overhangs. Set values of these variables to the corresponding
10526 members in struct glyph_string. Refine x coordinates for
10527 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 10528
4d904fa0
ST
10529 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
10530
10531 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
10532 QDTextBounds.
10533 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 10534 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 10535 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 10536 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 10537
f2417699
KS
105382005-01-24 Kim F. Storm <storm@cua.dk>
10539
6f67f013
KS
10540 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
10541 direction if window height was smaller than next-screen-context-lines.
10542 Now always scroll at least one line in the requested direction.
10543 Ensure that we actually do scroll backwards when requested to do so.
10544
f2417699
KS
10545 * xdisp.c (redisplay_window): Only try to make cursor line fully
10546 visible once (to avoid redisplay loop).
10547
a354b72c
KS
105482005-01-23 Kim F. Storm <storm@cua.dk>
10549
6b3d88f7 10550 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 10551 partially visible rows.
6b3d88f7
KS
10552 (window_scroll_pixel_based): Adapt to that change.
10553
5c20cae2
KS
10554 * window.c (window_scroll_pixel_based): Force moving to next line
10555 if scrolling doesn't move start point, e.g. if looking at tall image.
10556
a354b72c 10557 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
10558 Clear last_height before calling line_bottom_y to get real height.
10559 Fix calculation of y.
a354b72c 10560
d9e7c622
ST
105612005-01-22 Steven Tamm <steventamm@mac.com>
10562
10563 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 10564 (DARWIN): Define.
7e26f91b 10565
d9e7c622
ST
10566 * process.c (init_process): Default process-connection-type to
10567 nil on darwin 6 or less, t if it is 7 or higher. This way the
10568 broken pty behavior is still allowed on darwin 6 for interactive
10569 processes for people that know what they are doing.
10570
d00e399a
KS
105712005-01-22 Kim F. Storm <storm@cua.dk>
10572
10573 * window.c (auto_window_vscroll_p): New boolean.
10574 (syms_of_window): DEFVAR_BOOL it.
10575 (Fpos_visible_in_window_p): Extend return value to include RTOP
10576 and RBOT values if FULLY is nil.
10577 (window_scroll_pixel_based): Adjust vscroll for partially visible
10578 rows if auto_window_vscroll_p is set.
10579 (Fset_window_vscroll): Do nothing if vscroll is not modified.
10580
10581 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
10582 to return number of partially invisible pixels at top and bottom
10583 of the dislay row at POS.
10584
10585 * lisp.h (pos_visible_p): Fix prototype.
10586
f95a20e7
RS
105872005-01-21 Richard M. Stallman <rms@gnu.org>
10588
10589 * fileio.c (Fcopy_file): Doc fix.
10590
eee141ce
JD
105912005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10592
10593 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
10594 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
10595 start of function for older compilers.
10596
6f771c32
RS
105972005-01-20 Richard M. Stallman <rms@gnu.org>
10598
10599 * editfns.c (Fmessage): If arg is "", return "" (as before).
10600
10601 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
10602
10603 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
10604 variable.
10605
a15252fd
ST
106062005-01-20 Steven Tamm <steventamm@mac.com>
10607
043f7f73 10608 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
10609 (init_editfns): Assign new variable operating-system-release
10610 based on call to uname if available.
043f7f73 10611 (get_operating_system_release): Add function to
d00e399a 10612 allow c-level access to operating system release.
a15252fd
ST
10613
10614 * config.h: Regenerated.
10615
043f7f73
SM
10616 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
10617 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
10618 using ptys as '7'.
10619
3d6a4b2d
KS
106202005-01-20 Kim F. Storm <storm@cua.dk>
10621
62fc9b0f
KS
10622 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
10623
c310aca4
KS
10624 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
10625 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
10626
10627 * macterm.c (x_draw_glyph_string_box): Likewise.
10628
10629 * w32term.c (x_draw_glyph_string_box): Likewise.
10630
3d6a4b2d
KS
10631 * indent.c (Fvertical_motion): Temporarily disable selective display.
10632
27c8be45
KS
106332005-01-19 Kim F. Storm <storm@cua.dk>
10634
77db5cf3
KS
10635 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
10636 image property.
10637
27c8be45
KS
10638 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
10639
81f498dc
KS
106402005-01-18 Kim F. Storm <storm@cua.dk>
10641
10642 * xdisp.c (fast_find_position): Backtrack to find first row if
10643 charpos is inside a display overlay that spans multiple lines.
10644
1cdb0707
KH
106452005-01-18 Kenichi Handa <handa@m17n.org>
10646
10647 * coding.c (decode_coding_iso2022): Translate invalid codes if
10648 translation-table is specified.
10649
677159ce
KS
106502005-01-18 Kim F. Storm <storm@cua.dk>
10651
10652 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
10653 change. If handle_display_prop indicates newline is replaced by
10654 image or text, move back to start of relevant overlay or interval
10655 and continue scan from there. Simplify.
10656
977284cc
KS
106572005-01-17 Kim F. Storm <storm@cua.dk>
10658
043f7f73
SM
10659 * dispnew.c (mode_line_string, marginal_area_string):
10660 Fix off-by-one error in search for glyph.
977284cc 10661
e24531b7
KS
106622005-01-16 Kim F. Storm <storm@cua.dk>
10663
10664 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
10665
5ddd7664
ST
106662005-01-16 Steven Tamm <steventamm@mac.com>
10667
043f7f73 10668 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 10669
fc2ff44b
AS
106702005-01-16 Andreas Schwab <schwab@suse.de>
10671
10672 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
10673
50af5100
JD
106742005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10675
10676 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
10677 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
10678
a2d5fca0
JD
106792005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10680
10681 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
10682 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
10683 New flags for readable_events.
043f7f73 10684 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
10685 (tracking_off): Call readable_events and get_input_pending with
10686 flag READABLE_EVENTS_DO_TIMERS_NOW.
10687 (readable_events): Move code from old readable_filtered_events here,
10688 but check new READABLE_EVENTS_* in argument flags instead of previous
10689 two boolean arguments do_timers_now and filter_events.
10690 If we are doing mouse tracking and the mouse moved, return only if
10691 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
10692 (swallow_events): Call get_input_pending with flag
10693 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 10694 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
10695 here. Replace boolean arguments do_timers_now, filter_events with
10696 flags, and pass flags to readable_events. Document new
10697 READABLE_EVENTS_* flags.
10698 (detect_input_pending_ignore_squeezables): New function.
10699 (detect_input_pending_run_timers): Call get_input_pending with flag
10700 READABLE_EVENTS_DO_TIMERS_NOW.
10701 (Finput_pending_p): Call get_input_pending with flags
10702 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
10703
10704 * dispnew.c (update_window, update_frame_1): Replace calls to
10705 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 10706 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
10707 mouse movements.
10708
10709 * lisp.h: Declare detect_input_pending_ignore_squeezables.
10710
42afbcda
ST
107112005-01-15 Steven Tamm <steventamm@mac.com>
10712
e24531b7
KS
10713 * macterm.c (Vmac_use_core_graphics): Declare variable for
10714 mac-allow-anti-aliasing.
10715 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 10716 (mac_draw_string_common): Use core graphics text rendering if
0530c679 10717 mac-allow-anti-aliasing is enabled.
743d0696 10718
42afbcda
ST
10719 * macfns.c (Fx_file_dialog): Save As dialog includes only the
10720 file name in the text box.
10721
9cdd4884
ST
107222005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10723
043f7f73
SM
10724 * macfns.c (x_set_foreground_color, x_set_background_color):
10725 Sync with xfns.c.
9cdd4884
ST
10726 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
10727 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
10728 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
10729
88948d55
KS
107302005-01-14 Kim F. Storm <storm@cua.dk>
10731
10732 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
10733
20d6de82
RS
107342005-01-13 Richard M. Stallman <rms@gnu.org>
10735
10736 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
10737 if Voverriding_terminal_local_map is non-nil.
10738
10739 * keyboard.c (syms_of_keyboard): Doc fix.
10740
f75a592e
KS
107412005-01-13 Kim F. Storm <storm@cua.dk>
10742
10743 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 10744 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 10745
28f94a34
RS
107462005-01-12 Richard M. Stallman <rms@gnu.org>
10747
10748 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
10749 face property for characters that don't specify one.
10750
10751 * fns.c (Frequire): Record in load-history unconditionally.
10752
57a230b1
KS
107532005-01-10 Kim F. Storm <storm@cua.dk>
10754
10755 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
10756
10757 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
10758 Callers changed.
10759 Add support to merge with lisp face id too (if face_name is t).
10760
10761 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10762 Don't lookup lface_id from display table glyphs here; instead use
10763 merge_faces to merge the lisp face id into current face.
10764
8ab2c119
KS
107652005-01-09 Kim F. Storm <storm@cua.dk>
10766
10767 * dispextern.h (struct it): New member dpvec_face_id.
10768 (merge_into_realized_face): Add prototype.
10769
10770 * xfaces.c (merge_into_realized_face): New function. Used to
5e1a6e32 10771 merge escape-glyph face or face from display table into current face.
8ab2c119
KS
10772
10773 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
10774 (syms_of_xdisp): DEFVAR_LISP it.
10775 (escape_glyph_face): Remove var.
10776 (redisplay_window): Don't initialize it.
10777 (setup_for_ellipsis, get_next_display_element):
10778 Set it->dpvec_face_id to -1.
10779 (get_next_display_element): Test Vshow_nonbreak_escape.
10780 Do not setup escape_glyph_face.
10781 Properly merge escape-glyph face or face from display table with
043f7f73
SM
10782 current face for escape and control characters.
10783 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
10784 element of display vector.
10785 (next_element_from_display_vector): If it->dpvec_face_id is set,
10786 use that instead of lface_id from glyph itself.
10787
e0910857
JD
107882005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10789
10790 * xterm.h (struct x_output): New member, toolbar_detached.
10791
10792 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
10793 38.
10794 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
10795 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
10796 (xg_create_tool_bar): Initialize toolbar_detached.
10797 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
10798 toolbar_detached is zero.
10799
ff59904a
JD
108002005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10801
9b85e63d
JD
10802 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
10803 gtk_menu_popup if not for_click, so callbacks for the menu are called.
10804
ff59904a
JD
10805 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
10806 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 10807 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
10808
10809 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 10810 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
10811 XFLOAT_DATA to get extract number from Lisp object.
10812
f9a23a6f
KS
108132005-01-07 Kim F. Storm <storm@cua.dk>
10814
10815 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
10816 Set stop_charpos to current charpos instead of 0.
10817
28f94a34
RS
108182005-01-06 Nick Roberts <nickrob@snap.net.nz>
10819
10820 * xdisp.c (Fformat_mode_line): First arg now required.
10821
a6fffcdc
ST
108222005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10823
10824 * macterm.c (XLoadQueryFont): Correctly handle 0 size
10825 font widths that are returned from some Japanese fonts.
10826
c35b0c6b
KS
108272005-01-06 Kim F. Storm <storm@cua.dk>
10828
10829 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
10830 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
10831 (destroy_fringe_bitmap): Set fringe_faces element to nil.
10832 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
10833 fringe_faces array and init elements to nil.
10834 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
10835 non-persistent face id.
10836 (mark_fringe_data): New function for GC.
10837
10838 * alloc.c (mark_fringe_data): Declare extern.
10839 (Fgarbage_collect): Call mark_fringe_data.
10840
10841 * alloc.c (overrun_check_free): Invalidate freed memory if
10842 XMALLOC_CLEAR_FREE_MEMORY is defined.
10843
e0e76ab9
ST
108442005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10845
10846 * macfns.c: Include sys/param.h.
10847 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
10848 and function.
10849 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
10850 of filename string. Set event callback function when creating
10851 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 10852 of apple event descriptor record if failed to create it.
e0e76ab9
ST
10853
10854 * macterm.c: Include sys/param.h.
10855 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
10856 kEventWindowUpdate.
10857 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
10858 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
10859 of FSSpec from apple event descriptor record.
10860 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
10861 size of filename string.
10862 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
10863 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
10864 file dialog is in action.
043f7f73
SM
10865 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
10866 Reject only when there are no filename items. Set background color
e0e76ab9 10867 before (un)highlighting the window below the dragged items.
2313f861 10868 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 10869
043bc640
KH
108702005-01-05 Romain Francoise <romain@orebokech.com>
10871
10872 * term.c (encode_terminal_code): Fix buffer size computation.
10873
dd496df6
RS
108742005-01-04 Richard M. Stallman <rms@gnu.org>
10875
10876 * xdisp.c (Fformat_mode_line): Doc fix.
10877
026cdede
SM
108782005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10879
10880 * alloc.c (refill_memory_reserve): Move.
10881 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
10882 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
10883
d57c7572
RS
108842005-01-03 Richard M. Stallman <rms@gnu.org>
10885
10886 * window.c (window_scroll_pixel_based): Don't correct preserve_y
10887 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
10888
b14f868c
JR
108892005-01-03 Jason Rumney <jasonr@gnu.org>
10890
10891 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
10892 fontp->space_width to FONT_WIDTH so they are valid.
10893
10894 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 10895 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
10896 their appropriate values.
10897
10898 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10899 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
10900 fontp->space_width.
10901
e169f939
ST
109022005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10903
10904 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
10905 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
10906 metrics for max and min bounds.
10907 (x_load_font): Correctly calculate average font width metrics.
10908
19996af4
RS
109092005-01-02 Richard M. Stallman <rms@gnu.org>
10910
10911 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
10912
42d02da0
JD
109132004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10914
10915 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
10916
1db7dd46
RS
109172004-12-31 Richard M. Stallman <rms@gnu.org>
10918
b437860a
RS
10919 * xdisp.c (setup_for_ellipsis, get_next_display_element):
10920 Set it->ellipsis_p to 1 or 0.
10921 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 10922 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
10923 (cursor_row_p): If PT's at the end of the ellipsis the row
10924 ends within, don't display cursor on this row.
10925
10926 * dispextern.h (struct it): New element ellipsis_p.
10927 (struct glyph_row): New element ends_in_ellipsis_p.
10928
10929 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
10930 position if we're reading from something other than the buffer.
10931
1db7dd46
RS
10932 * window.c (window_scroll_pixel_based): Only look at
10933 Vscroll_preserve_screen_position if the old PT can't be kept.
10934 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
10935
1225f637
KS
109362004-12-30 Kim F. Storm <storm@cua.dk>
10937
10938 * xdisp.c (get_line_height_property): New function extracted from
10939 original calc_line_height_property.
10940 (calc_line_height_property): Rework. Handle t and (nil . ratio).
10941 (x_produce_glyphs): Use them to handle line-height and
10942 line-spacing according to new height spec.
10943 (Qtotal): Remove.
33b2f4ea 10944 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 10945
c243063e
KH
109462004-12-30 Kenichi Handa <handa@m17n.org>
10947
10948 * fileio.c (Finsert_file_contents): Don't use
10949 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 10950 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
10951
10952 * fontset.h (struct font_info): New members space_width and
10953 average_width.
10954
10955 * frame.h (struct frame): New member space_width.
10956 (FRAME_SPACE_WIDTH): New macro.
10957
10958 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
10959
10960 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10961 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 10962 fontp->space_width.
043f7f73 10963 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
10964 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
10965
10966 * xdisp.c (x_produce_glyphs): Calculate tab width by
10967 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
10968
456e761b
ST
109692004-12-29 Sanghyuk Suh <han9kin@mac.com>
10970
10971 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 10972 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 10973
188577ce
LT
109742004-12-29 Luc Teirlinck <teirllm@auburn.edu>
10975
10976 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
10977
99ec74b9
RS
109782004-12-29 Richard M. Stallman <rms@gnu.org>
10979
10980 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
10981
30c92fab
ST
109822004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10983
10984 * macfns.c (install_window_handler): Modify extern to return OSErr
10985 value.
10986 (mac_window): Handle return value of install_window_handler.
10987
10988 * macterm.c (reflect_byte): Remove function.
10989 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
10990 Lookup table instead.
10991 (mac_do_font_lists): Simplify calculation of the longest
10992 nonspecial string.
5e1a6e32 10993 (init_mac_drag_n_drop): Remove function and declaration.
30c92fab
ST
10994 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
10995 init_mac_drag_n_drop.
10996 (mac_do_track_drag): New function and declaration.
10997 (install_window_handler): Return OSErr value.
043f7f73
SM
10998 (install_window_handler) [TARGET_API_MAC_CARBON]:
10999 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 11000 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
11001 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
11002 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 11003
4b982924
DN
110042004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
11005
11006 * coding.c (decode_coding): Fix previous change.
11007
93fdf45f
RS
110082004-12-28 Richard M. Stallman <rms@gnu.org>
11009
11010 * xdisp.c (back_to_previous_visible_line_start):
11011 Don't call handle_display_prop.
11012
5bdca8af
DN
110132004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
11014
11015 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
11016 (decode_coding_emacs_mule, encode_coding_emacs_mule)
11017 (decode_coding_iso2022, encode_designation_at_bol)
11018 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
11019 (decode_coding): Constify arguments and local vars.
11020
33385c6f
JD
110212004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11022
11023 * xmenu.c (popup_get_selection): Only pop down dialogs
11024 on C-g and Escape.
95bdef2e 11025 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
11026 (create_and_show_popup_menu, create_and_show_dialog):
11027 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 11028
b15325b2
ST
110292004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11030
11031 * dispextern.h: Change HAVE_CARBON to MAC_OS.
11032 (struct glyph_string): Likewise.
a2c7e69a 11033
b15325b2
ST
11034 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
11035 mac_initialize.
a2c7e69a 11036
b15325b2
ST
11037 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
11038 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 11039
b15325b2 11040 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 11041
b15325b2
ST
11042 * frame.c (x_set_frame_parameters, x_report_frame_params)
11043 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
11044 (x_set_border_width, Vdefault_frame_scroll_bars):
11045 Change HAVE_CARBON to MAC_OS.
a2c7e69a 11046
b15325b2
ST
11047 * image.c [MAC_OS]: Include sys/stat.h.
11048 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
11049 QuickTimeComponents.h.
a2c7e69a 11050
b15325b2
ST
11051 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
11052 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 11053 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
11054 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
11055 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
11056 (mac_clear_font_name_table): Add extern.
11057 (Fmac_clear_font_name_table): New defun.
11058 (syms_of_mac): Defsubr it.
11059 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
11060 [MAC_OSX] (select_and_poll_event): New function.
11061 [MAC_OSX] (sys_select): Use it.
11062 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
11063 [MAC_OSX && SELECT_USE_CFSOCKET]
11064 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
11065 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
11066 RunLoop for simultaneously monitoring two kinds of inputs, window
11067 events and process outputs, without periodically polling.
a2c7e69a 11068
b15325b2
ST
11069 * macfns.c (mac_initialized): Remove extern.
11070 (stricmp): Put in #if 0. All callers changed to use xstricmp in
11071 xfaces.c.
043f7f73
SM
11072 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
11073 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
11074 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
11075 (mac_get_rdb_resource): New function (from w32reg.c).
11076 (x_get_string_resource): Use it.
11077 (install_window_handler): Add extern.
11078 (mac_window): New function.
043f7f73
SM
11079 (Fx_create_frame): Use it instead of make_mac_frame.
11080 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
11081 (Fx_open_connection, Fx_close_connection): New defuns.
11082 (syms_of_macfns): Defsubr them.
043f7f73
SM
11083 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
11084 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
11085 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
11086 (x_create_tip_frame): Don't call ShowWindow.
11087 (Fx_show_tip): Call ShowWindow.
11088 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
11089 TARGET_API_MAC_CARBON'.
11090 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
11091 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 11092
043f7f73 11093 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
11094 (Window): Typedef to WindowPtr and move outside `#if
11095 TARGET_API_MAC_CARBON'.
11096 (XSizeHints): New struct.
a2c7e69a 11097
b15325b2
ST
11098 * macterm.c (x_update_begin, x_update_end)
11099 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
11100 frame.
11101 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
11102 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
11103 (construct_mouse_click): Put in #if 0.
11104 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
11105 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
11106 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
11107 (activate_scroll_bars, deactivate_scroll_bars)
11108 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
11109 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
11110 if the position is neither user-specified nor program-specified.
11111 (x_free_frame_resources): Free size_hints.
043f7f73 11112 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
11113 (mac_clear_font_name_table): New function.
11114 (mac_do_list_fonts): Initialize font_name_table if needed.
11115 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
11116 around mac_do_list_fonts.
11117 (mac_unload_font): New function.
11118 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
11119 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
11120 and definitions with #if TARGET_API_MAC_CARBON.
11121 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
11122 (install_window_handler): Add decl.
11123 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
11124 window. Use UpdateControls. Get the rectangle that should be
11125 updated and restrict the target of expose_frame to it.
043f7f73 11126 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
11127 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
11128 (do_zoom_window): Don't use x_set_window_size.
11129 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
11130 (install_window_handler): New function.
11131 [!USE_CARBON_EVENTS] (mouse_region): New variable.
11132 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
11133 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
11134 GetEventDispatcherTarget inside BLOCK_INPUT.
11135 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
11136 Update mouse_region when mouse is moved.
11137 (make_mac_frame): Remove.
043f7f73
SM
11138 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
11139 Initialize mouse pointer shapes. Change values of f->left_pos and
11140 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
11141 Don't call ShowWindow.
b15325b2
ST
11142 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
11143 Vinvocation_name and Vsystem_name.
11144 (mac_make_rdb): New function (from w32term.c).
11145 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
11146 already been opened. Don't pass argument to
11147 mac_initialize_display_info. Don't set dpyinfo->height/width.
11148 Add entries to x_display_list and x_display_name_list.
11149 (x_delete_display): New function.
11150 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
11151 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
11152
b15325b2
ST
11153 * macterm.h (check_mac): Add extern.
11154 (struct mac_output): New member size_hints.
11155 (FRAME_SIZE_HINTS): New macro.
11156 (mac_unload_font): Add extern.
a2c7e69a 11157
b15325b2 11158 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 11159
1d1c7e75 11160 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 11161
92d2947b
RS
111622004-12-27 Richard M. Stallman <rms@gnu.org>
11163
043f7f73 11164 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
11165 (syms_of_buffer): Don't defsubr it.
11166
11167 * process.c (list_processes_1): Set undo_list instead
11168 of calling Fbuffer_disable_undo.
11169
043f7f73 11170 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 11171 single_display_prop_string_p.
043f7f73 11172 (single_display_spec_intangible_p): Rename from
92d2947b 11173 single_display_prop_intangible_p.
043f7f73 11174 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
11175 Rewritten to be easier to understand.
11176
a2c7e69a 11177 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
11178 and variables get just NAME.
11179
11180 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
11181
11182 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
11183 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
11184 (Qdefvar): Var deleted.
11185 (syms_of_eval): Don't initialze it.
11186
11187 * lread.c (syms_of_lread) <load-history>: Doc fix.
11188
9f6fcdc5
JD
111892004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11190
11191 * xmenu.c (popup_get_selection): Pop down on C-g.
11192 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
11193 pops down menu on C-g.
11194 (xdialog_show): If dialog popped down and no button in the dialog was
11195 pushed, call Fsignal to quit.
11196 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
11197 Fsignal to quit.
11198
1d1c7e75 11199 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
11200
11201 * gtkutil.c (xg_initialize): Install bindings for C-g so that
11202 dialogs and menus pop down.
11203
d8ca23a0
KH
112042004-12-27 Kenichi Handa <handa@m17n.org>
11205
11206 * coding.c (code_convert_region): Fix calculation of `ratio'.
11207
857ae68b
JD
112082004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11209
133c0116
JD
11210 * gtkutil.c (update_frame_tool_bar): Make the value of
11211 tool-bar-button-margin control margins of images in tool bar.
11212
857ae68b
JD
11213 * alloc.c (check_depth): New variable.
11214 (overrun_check_malloc, overrun_check_realloc): Only add
11215 overhead and write check pattern if check_depth is 1 (to handle
11216 recursive calls). Increase/decrease check_depth in entry/exit.
11217 (overrun_check_free): Only check for overhead if check_depth is 1.
11218 Increase/decrease check_depth in entry/exit.
11219
bd55c35c
JD
112202004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11221
11222 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
11223 before touching input_available_clear_time, to avoid accessing it
11224 from multiple threads.
11225
66354420
JR
112262004-12-23 Jason Rumney <jasonr@gnu.org>
11227
11228 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
11229 of JPEG library.
11230
55f4edbc
RS
112312004-12-22 Richard M. Stallman <rms@gnu.org>
11232
11233 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
11234
11235 * lisp.h (Vundo_outer_limit): Fix decl.
11236
11237 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
11238 Uses changed.
11239 (syms_of_undo): Initialize appropriately.
11240 (truncate_undo_list): If it's nil, there's no limit.
11241
7a0ea9e3
KH
112422004-12-22 Kenichi Handa <handa@m17n.org>
11243
11244 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
11245
fda2922a
RS
112462004-12-21 Richard M. Stallman <rms@gnu.org>
11247
11248 * eval.c (unwind_to_catch): Clear immediate_quit.
11249
11250 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
11251 specially as `\ ' and `\-'.
11252
11253 * keyboard.c (kbd_buffer_store_event_hold):
11254 In the code for while-no-input, handle immediate_quit.
11255
11256 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
11257 Call that at the very start.
043f7f73 11258 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
11259 (syms_of_alloc): Don't define undo-limit,
11260 undo-strong-limit and undo-outer-limit here.
11261
11262 * undo.c (truncate_undo_list): Return void.
11263 Take just one argument, the buffer.
11264 Make it current, and inhibit recursive GC.
11265 Access and update the undo list directly; return void.
11266 Refer to the undo...limit variables directly.
11267 Test undo_outer_limit only after counting the whole current command.
11268 When it's exceeded, call the function in undo-outer-limit-function.
11269 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
11270 (Vundo_outer_limit_function): New variable.
11271 (syms_of_undo): Define undo-limit, undo-strong-limit
11272 and undo-outer-limit here, and undo-outer-limit-function.
11273 Doc fixes.
11274
11275 * lisp.h (truncate_undo_list): Update decl.
11276
112772004-12-21 Piet van Oostrum <piet@cs.uu.nl>
11278
11279 * fileio.c (Fread_file_name): Delete duplicates in
11280 file-name-history when history_delete_duplicates is true.
11281
68c69027
ST
112822004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11283
11284 * macterm.c (mac_do_list_fonts): Fix memory leak
11285
134579f2
RS
112862004-12-20 Richard M. Stallman <rms@gnu.org>
11287
11288 * regex.c (re_match_2_internal) <symend, wordend>:
11289 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
11290
fbe6152f
ST
112912004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11292
043f7f73
SM
11293 * macterm.c (endif, x_font_name_to_mac_font_name):
11294 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
11295 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
11296 quickly finding a specific font without needing regexps.
11297
fecad3f6
JD
112982004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11299
333f1b6f
JD
11300 * syssignal.h: Declare main_thread.
11301 (SIGNAL_THREAD_CHECK): New macro.
11302
11303 * keyboard.c (input_available_signal): Move thread checking code
11304 to macro SIGNAL_THREAD_CHECK and call that macro.
11305 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
11306
11307 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
11308
11309 * emacs.c: Define main_thread.
11310 (main): Initialize main_thread.
11311 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
11312 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
11313
11314 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
11315
11316 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
11317
11318 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
11319
043f7f73
SM
11320 * process.c (send_process_trap, sigchld_handler):
11321 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
11322
11323 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
11324
11325 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
11326
fecad3f6
JD
11327 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
11328 returning when xg_ignore_gtk_scrollbar is true.
11329
2a84c6da
KS
113302004-12-14 Kim F. Storm <storm@cua.dk>
11331
11332 * keyboard.c (read_char): Save and restore echo_string when
11333 handling input method.
11334
d9c1ce9d
RS
113352004-12-13 Richard M. Stallman <rms@gnu.org>
11336
11337 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
11338
11339 * keyboard.c (Vthrow_on_input): New variable.
11340 (syms_of_keyboard): Defvar and initialize it.
11341 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
11342
11343 * lisp.h (QUIT): Check for Vthrow_on_input.
11344 (Vthrow_on_input): Declare it.
11345
a6495ed5
KS
113462004-12-13 Kim F. Storm <storm@cua.dk>
11347
11348 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
11349 vector.
11350
24a0e22f
RS
113512004-12-12 Richard M. Stallman <rms@gnu.org>
11352
11353 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
11354
11355 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
11356 (Ftry_completion): Really use outer `zero'; eliminate inner one.
11357
d6d31e57
KH
113582004-12-12 Kenichi Handa <handa@m17n.org>
11359
11360 * term.c (encode_terminal_code): Fix previous change.
11361
6f8ffb88
SM
113622004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
11363
fb6f5cbf
SM
11364 * keyboard.c (handle_async_input): Remove pthread mutex handling.
11365 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
11366
6f8ffb88
SM
11367 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
11368 in macro arguments.
11369
11370 * minibuf.c (Ftry_completion, Fall_completions): Don't use
11371 XFASTINT blindly.
11372
11373 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
11374
c83c9f9d
JD
113752004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11376
2f25767f
JD
11377 * w32term.c (x_calc_absolute_position): Remove calculation of
11378 difference between inner and outer window. Don't subtract difference
11379 for left and top calculations.
11380
c83c9f9d
JD
11381 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
11382 for left and top calculations. Remove call to x_real_positions.
14a56a1b 11383 [Bug report by Drew Adams in November.]
c83c9f9d
JD
11384 (x_check_expected_move): Do not set change_gravity to 1 when calling
11385 x_set_offset.
11386
cc1caa4e
RS
113872004-12-08 Richard M. Stallman <rms@gnu.org>
11388
11389 * xdisp.c (get_next_display_element): Use `escape-glyph' for
11390 control chars and escaped octal codes.
11391 (Qescape_glyph): New variable.
11392 (syms_of_xdisp): Initialize it.
11393 (escape_glyph_face): New variable.
11394 (redisplay_window): Initialize it.
11395
e0e30823
RS
113962004-12-07 Paul Eggert <eggert@cs.ucla.edu>
11397
11398 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
11399 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
11400
f415cacd
JD
114012004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11402
cf435f39
JD
11403 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
11404 reset_malloc_hooks.
11405
6f8ffb88
SM
11406 * keyboard.c (handle_async_input, input_available_signal):
11407 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 11408
f415cacd
JD
11409 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
11410
043f7f73 114112004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
11412
11413 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
11414
11415 * config.in: Regenerate.
11416
ded997c1
JD
114172004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11418
453a4f1b
JD
11419 * xmenu.c (Fx_popup_menu): Correct documentation about position.
11420 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
11421 if not given by a mouse click to correspond with x-popup-menu
11422 documentation.
11423
9a38524c
JD
11424 * config.in: Regenerate.
11425
aa477689
JD
11426 * gtkutil.c: Include signal.h and syssignal.h.
11427 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
11428
11429 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
11430 new variables main_thread and alloc_mutex,
11431 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
11432 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
14a56a1b
JB
11433 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
11434 as (UN)BLOCK_INPUT.
aa477689
JD
11435 (emacs_blocked_free, emacs_blocked_malloc)
11436 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
11437 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
11438 (reset_malloc_hooks): New function.
11439
11440 * lisp.h: Declare reset_malloc_hooks.
11441
11442 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
11443
14a56a1b 11444 * keyboard.c: Conditionally include pthread.h.
6f8ffb88 11445 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
11446 thread, block signal, send signal to main thread and return.
11447
ded997c1 11448 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 11449 Set current folder in file chooser if default_filename is a directory.
ded997c1 11450
c72b0edd
SM
114512004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
11452
11453 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
11454 Remove redundant correctness checks.
11455 (regex_compile): Fix up error codes for \{..\} expressions.
11456
c721eee5
RS
114572004-12-05 Richard M. Stallman <rms@gnu.org>
11458
11459 * regex.c (regex_compile): Fix end-of-pattern case for space.
11460
d8f96db8
ST
114612004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11462
6108209e
KS
11463 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
11464 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 11465 crashes with invalid characters.
6108209e
KS
11466 * macmenu.c (add_menu_item): Use it.
11467 * image.c (image_load_quartz2d): Likewise.
11468 * macfns.c (x_set_name, x_set_title): Likewise.
11469 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
11470 creating them each time for labels.
d8f96db8 11471
ab67e8b6
RS
114722004-12-02 Richard M. Stallman <rms@gnu.org>
11473
11474 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
11475 don't use it here.
11476
11477 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
11478 (interactive_p): Skip Scalled_interactively_p frames
11479 like Sinteractive_p frames.
b8217ea6 11480 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
11481
11482 * data.c (Fmake_variable_buffer_local): Doc fix.
11483 (Fmake_local_variable): Doc fix.
11484
11485 * insdel.c (insert_from_string_before_markers)
11486 (insert_from_string): Don't modify buffer on empty insertion.
11487
11488 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
11489
f86bdc80
ST
114902004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11491
11492 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
11493 menu text as UTF8 fails.
11494
1cae6d39
KS
114952004-12-01 Kim F. Storm <storm@cua.dk>
11496
11497 * alloc.c: Add commentary for last change.
11498 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
11499 sizeof(size_t) != 4.
11500 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
11501 Use them. Also clear header and trailer of freed memory.
11502 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
11503 (string_overrun_cookie): Rename from string_overrun_pattern.
11504 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
11505
77ea0764
AS
115062004-12-01 Andreas Schwab <schwab@suse.de>
11507
11508 * lisp.h: Declare string_to_multibyte.
11509
2d5cd4e6
KH
115102004-12-01 Kenichi Handa <handa@m17n.org>
11511
11512 * w32console.c (w32con_write_glyphs): Decide coding here.
11513 Adjusted for the change of encode_terminal_code.
11514
11515 * term.c (encode_terminal_code): Don't make it "static".
11516
25a0994a
KH
115172004-11-30 Kenichi Handa <handa@m17n.org>
11518
19b1f29a 11519 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 11520 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
11521 characters at once, and return a pointer to the result of encoding.
11522 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
11523 (insert_glyphs): Likewise.
11524 (term_init): Initialize encode_terminal_bufsize to 0.
11525
11526 * coding.c (Vcode_conversion_workbuf_name): New variable.
11527 (syms_of_coding): Initialize and staticpro it.
11528 (set_conversion_work_buffer): New function.
11529 (run_pre_post_conversion_on_str): Use it.
11530 (run_pre_write_conversin_on_c_str): New function.
11531
11532 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
11533
fc7a70cc
ST
115342004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11535
11536 * keyboard.c: Don't undef SIGIO
11537 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
11538 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
11539 (macfns.o): Don't depend on ccl.h.
11540 * macfns.c (mac_frame_parm_handlers): Set handlers for
11541 Qleft_fringe and Qright_fringe.
11542 * macterm.c (mac_fill_rectangle_to_pixmap)
11543 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
11544 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
11545 Put in #if 0.
11546 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
11547 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
11548 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
11549 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
11550 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
11551 XDrawImageString. Always draw background and foreground separately.
11552 (x_draw_image_foreground): Use clipping instead of computing the
11553 intersection rectangle.
11554 (x_draw_image_glyph_string): Don't draw an image with mask to a
11555 pixmap.
11556 (x_redisplay_interface): Set flush_display_optional member to 0.
11557 (XTread_socket): Correctly reset the TEConverter
11558 object.
11559
fc368889
KS
115602004-11-30 Kim F. Storm <storm@cua.dk>
11561
11562 * lisp.h: New defines to enable buffer overrun checking.
11563 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
11564 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
11565
11566 * alloc.c: Add more checks for buffer overruns.
11567 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
11568 xmalloc_overrun_check_trailer, overrun_check_malloc)
11569 overrun_check_realloc, overrun_check_free): Add.
11570 (GC_STRING_EXTRA, string_overrun_pattern): Add.
11571 (check_sblock, allocate_string_data, compact_small_strings):
11572 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
11573 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
11574 (check_string_free_list): Add.
11575 (allocate_string, sweep_strings): Call check_string_free_list.
11576
11577 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
11578 XMALLOC_OVERRUN_CHECK to avoid crash during load.
11579
0af8cfe1
KS
115802004-11-29 Kim F. Storm <storm@cua.dk>
11581
11582 * fns.c (concat): Use SAFE_ALLOCA.
11583
77220eeb
SM
115842004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
11585
11586 * sysdep.c (emacs_write): Don't use QUIT.
11587
a778cf63
KH
115882004-11-29 Kenichi Handa <handa@m17n.org>
11589
11590 * buffer.c (init_buffer): Set current_buffer->directory to a
11591 multibyte string made by string_to_multibyte.
11592
77220eeb 11593 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 11594
e3177e43
AS
115952004-11-27 Andreas Schwab <schwab@suse.de>
11596
11597 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
11598
11599 * s/gnu-linux.h: Enable no-op gcpros on ia64.
11600 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
11601
77220eeb
SM
11602 * filelock.c (lock_file_1): Call get_boot_time early.
11603 Increase buffer size.
e3177e43 11604
ca5e6fef
EZ
116052004-11-27 Eli Zaretskii <eliz@gnu.org>
11606
11607 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
11608 is not defined.
11609
e2811828
KS
116102004-11-27 Kim F. Storm <storm@cua.dk>
11611
11612 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
11613 marker out of doc string.
11614
7a262394
SM
116152004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
11616
11617 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
11618 which was not mentioned in the log.
11619
f33cc5a9
KS
116202004-11-26 Kim F. Storm <storm@cua.dk>
11621
048bb03f
KS
11622 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
11623 angle bitmaps at top/bottom line.
11624
52eb0373 11625 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
11626 set it when it->method is set to next_element_from_display_vector.
11627 (setup_for_ellipsis): Add LEN argument. Callers changed.
11628 Set it->saved_face_id.
11629 (get_next_display_element): Use loop instead of recursion.
11630 Set it->saved_face_id. Combine duplicate code for ctr chars.
11631 (next_element_from_display_vector): Do not set it->saved_face_id.
11632 (next_element_from_ellipsis): Use setup_for_ellipsis.
11633
670e8906
EZ
116342004-11-26 Eli Zaretskii <eliz@gnu.org>
11635
11636 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
11637 prevent compiler warnings.
11638
275464e7
SM
116392004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
11640
1bf0e604
SM
11641 * keyboard.c (command_loop_1): Print a message describing the key
11642 the user just pressed when this key has no binding.
11643
275464e7
SM
11644 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
11645 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
11646
11647 * lread.c (readchar): Check QUIT when `getc' is interrupted.
11648
261b01c6
RS
116492004-11-24 Richard M. Stallman <rms@gnu.org>
11650
11651 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
11652
11653 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
11654
a5bd504e
KS
116552004-11-24 Kim F. Storm <storm@cua.dk>
11656
11657 * xdisp.c (move_it_in_display_line_to, display_line):
11658 Restore saved_face_id also when truncate-lines or hscrolled.
11659
255e4140
JD
116602004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11661
11662 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
11663 x-use-old-gtk-file-dialog.
11664
11665 * xfns.c: Define x_use_old_gtk_file_dialog.
11666 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
11667 outside ifdef USE_GTK.
11668
cab27d04
SM
116692004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
11670
11671 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
11672 Don't use XFASTINT blindly.
11673
11674 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
11675
11676 * indent.c (skip_invisible): Avoid non-idempotent side-effects
11677 in macro arguments.
11678
11679 * keymap.c (Flookup_key): Check INTEGERP before XINT.
11680
11681 * lread.c (oblookup): Don't use XFASTINT blindly.
11682
11683 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
11684 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
11685
11e0be49
KS
116862004-11-23 Kim F. Storm <storm@cua.dk>
11687
4d721114
KS
11688 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
11689 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
11690
11e0be49
KS
11691 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
11692 signal_p is zero and face name is unknown.
11693 (Fx_list_fonts): Don't signal error in lookup_named_face.
11694 (Fface_font): Signal error in lookup_named_face.
11695 (ascii_face_of_lisp_face): Likewise.
11696
11697 * dispextern.h (lookup_named_face): Fix prototype.
11698
11699 * xdisp.c (handle_single_display_prop): Don't signal error in
11700 lookup_named_face for unknown fringe face name.
11701 (highlight_trailing_whitespace): Don't signal error in
11702 lookup_named_face if trailing-whitespace face unknown.
11703 (calc_line_height_property): Don't signal error in
11704 lookup_named_face if specified face name is unknown.
11705
11706 * fringe.c (update_window_fringes): Show top row indicator if
11707 window has header-line. Don't show arrow at bob and eob
11708 if the boundary indicators are not used.
11709 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
11710
11711 * window.c (set_window_buffer): Clear display_error_modiff.
11712
0960a582
KS
117132004-11-22 Kim F. Storm <storm@cua.dk>
11714
11715 * fringe.c (update_window_fringes): Provide sensible fall-back
11716 value for non-nil indicate-buffer-boundaries setting.
11717
b0e9bb28
MR
117182004-11-22 Markus Rost <rost@ias.edu>
11719
11720 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
11721
d0bce91e
SM
117222004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
11723
11724 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
11725
e1814672
KS
117262004-11-21 Kim F. Storm <storm@cua.dk>
11727
b7fd3518
KS
11728 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
11729
11730 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
11731 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11732
11733 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
11734 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11735
11736 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
11737 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11738
d0bce91e
SM
11739 * xdisp.c (move_it_in_display_line_to, display_line):
11740 Restore saved_face_id if overflow-newline-into-fringe is enabled and
11741 line is continued before or in middle of element from display vector.
f01d4d05 11742
f1a61389
KS
11743 * indent.c (Fvertical_motion): Fix last change. Use another
11744 method to detect if iterator moved too far ahead after reseat.
11745
e1814672
KS
11746 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
11747 expand matrix width for overflow in zero-width area.
11748 (append_glyph, append_composite_glyph, produce_image_glyph)
11749 (append_stretch_glyph): Use it to avoid loop in redisplay.
11750 (note_mode_line_or_margin_highlight): Don't let help-echo from
11751 string override help-echo from image map.
11752
2dafe1c9
LT
117532004-11-20 Luc Teirlinck <teirllm@auburn.edu>
11754
d0bce91e 11755 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
11756 * callint.c (Fcall_interactively): Ditto.
11757
fd6866c8 117582004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
11759
11760 * minibuf.c (Fminibuffer_complete_and_exit):
11761 Fixup the case of the completed value, for case-indep completion.
11762
dedbac89
RS
117632004-11-20 Richard M. Stallman <rms@gnu.org>
11764
fd6866c8
RS
11765 * lisp.h (Fread_from_minibuffer): Add arg in decl.
11766
9d00469f 11767 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 11768 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 11769
dedbac89 11770 * search.c (Vsearch_spaces_regexp):
d0bce91e 11771 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 11772
2f672bb5
TTN
117732004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
11774
11775 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
11776
f31a9a68
RS
117772004-11-19 Richard M. Stallman <rms@gnu.org>
11778
11779 * search.c (Vsearch_whitespace_regexp): New variable.
11780 (syms_of_search): Defvar it.
11781 (compile_pattern_1): Call re_set_whitespace_regexp with it.
11782 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
11783 is non-nil.
6de891db
RS
11784 (struct regexp_cache): New element whitespace_regexp.
11785 (syms_of_search): Initialize whitespace_regexp elements.
11786 (compile_pattern): Compare whitespace_regexp elements.
11787 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
11788
11789 * regex.c (regex_compile): Substitute whitespace_regexp
11790 for spaces, if it is nonzero.
11791 (whitespace_regexp): New variable.
11792 (re_set_whitespace_regexp): New function.
11793
cbc34cb3
KS
117942004-11-19 Kim F. Storm <storm@cua.dk>
11795
11796 * indent.c (Fvertical_motion): Fix last change.
11797
b54a7539
KS
117982004-11-18 Kim F. Storm <storm@cua.dk>
11799
11800 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
11801 Instead, move back again if reseating moves too far ahead.
11802
118032004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
11804
11805 * xdisp.c (message3): Call clear_message.
11806
5ff504fe
KS
118072004-11-17 Kim F. Storm <storm@cua.dk>
11808
11809 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
11810
5ae53dcf
JD
118112004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11812
d0bce91e 11813 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 11814
6abf3a27 11815 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
11816 (x_menu_set_in_use): Also set popup_activated_flag.
11817
5ff504fe 11818 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
11819 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
11820
52eb0373 11821 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 11822
ee31cd78
RS
118232004-11-16 Richard M. Stallman <rms@gnu.org>
11824
6abf3a27
SM
11825 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
11826 Use map-keymap-internal to implement that.
ee31cd78
RS
11827
11828 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
11829
6abf3a27
SM
118302004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11831
11832 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
11833 a window before using XWINDOW.
11834
11835 * window.c (make_window, Fselect_window, make_dummy_parent)
11836 (save_window_save):
11837 * frame.c (make_frame):
11838 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
11839
11840 * lisp.h (NILP): Use EQ rather than XFASTINT.
11841
b4d61105
KS
118422004-11-16 Kim F. Storm <storm@cua.dk>
11843
6abf3a27 11844 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 11845
b4d61105
KS
11846 * indent.c (Fvertical_motion): Fix last change. Only reseat when
11847 moving backwards.
11848
118492004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
11850
11851 * dispextern.h: Extern reseat_at_previous_visible_line_start.
11852
ab5b02b0
KH
118532004-11-16 Kenichi Handa <handa@m17n.org>
11854
11855 * xdisp.c (display_mode_element): Fix previous change (calculate
11856 end position of substring to display correctly).
11857
c482cf97
KS
118582004-11-16 Kim F. Storm <storm@cua.dk>
11859
11860 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
11861 Reported by Andrew M. Scott.
11862
9f89426b
KS
118632004-11-15 Kim F. Storm <storm@cua.dk>
11864
11865 * fns.c (Fsafe_plist_get): New defun.
11866 (syms_of_fns): Defsubr it.
11867
11868 * lisp.h (Fsafe_plist_get): Add EXFUN.
11869
11870 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
11871 Use Fsafe_plist_get.
11872 (note_mode_line_or_margin_highlight, note_mouse_highlight):
11873 Fix image map element parsing. Use Fsafe_plist_get.
11874
27418463
RS
118752004-11-15 Richard M. Stallman <rms@gnu.org>
11876
11877 * xdisp.c (get_next_display_element): Fix previous change.
11878
a130b901
JD
118792004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11880
ef614e04
JD
11881 * window.c (shrink_windows): Handle special case of one window left
11882 when trying to shrink the final reminder. Grow windows if
11883 total_removed is less than total_shrink.
11884
a130b901
JD
11885 * xmenu.c (pop_down_menu): Remove global variable current_menu,
11886 extract pointer from arg with XSAVE_VALUE.
46303896
KS
11887 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
11888 Construct arg to record_unwind_protect with make_save_value.
a130b901 11889
d9a03ad2
RS
118902004-11-13 Richard M. Stallman <rms@gnu.org>
11891
11892 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
11893 (get_next_display_element): Fix previous change to apply only to \n.
11894
11895 * indent.c (Fvertical_motion): Scan to PT from start of line to
11896 make iterator consistent.
11897
11898 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
11899
b3935289
JD
119002004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11901
11902 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
11903
11904 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
11905 Record unwind with clean_up_file_dialog.
11906
78819ebb
KS
11907 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
11908 Declare.
b3935289
JD
11909
11910 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
11911
af89e871
JD
119122004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11913
457a8155 11914 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 11915 (xg_file_sel_destroy): Remove.
46303896
KS
11916 (xg_file_response_cb, pop_down_file_dialog)
11917 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 11918 New functions.
6abf3a27
SM
11919 (xg_get_file_with_chooser, xg_get_file_with_selection):
11920 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
11921 Move common code to xg_get_file_name. Return widget created.
11922 (xg_get_file_name): Set name, transient for, modal and destroy
11923 with parent here. Connect response signal to xg_file_response_cb,
11924 connect delete-event to gtk_true. Record pop_down_file_dialog
11925 for unwind. Do event loop and call x_menu_wait_for_event in loop.
11926 (xg_create_widget): Make dialogs modal.
11927
af89e871
JD
11928 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
11929 Lisp_Object.
11930 (popup_get_selection): Move unwind protect ...
11931 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11932 Move destroy of widget to pop_down_menu.
11933 (popup_widget_loop): Move unwind protect ...
11934 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11935 Move destroy of widget to pop_down_menu.
11936 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 11937 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
11938 x_mouse_leave and grabbed = 0 to pop_down_menu.
11939
5596fbf1
KS
119402004-11-13 Kim F. Storm <storm@cua.dk>
11941
11942 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
11943 (syms_of_xdisp): DEFVAR_BOOL it.
11944 (make_cursor_line_fully_visible, try_cursor_movement)
11945 (try_window_id): Use it.
11946
b9de078a
KS
119472004-11-12 Kim F. Storm <storm@cua.dk>
11948
381f7091
KS
11949 * dispextern.h (struct glyph_row): New member extra_line_spacing.
11950 (struct it): New member max_extra_line_spacing.
11951 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
11952 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
11953 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
11954 part of last line is only extra line spacing (so the text on the
52eb0373 11955 line is fully visible). Use helper macros.
381f7091
KS
11956 Add W arg (to use them). All callers changed.
11957 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
11958 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
11959
6abf3a27
SM
11960 * window.c (window_scroll_pixel_based, Frecenter):
11961 Use move_it_vertically_backward directly.
381f7091
KS
11962 (Frecenter): Fix calculation of new start pos for negative arg.
11963 Before, the new start pos was sometimes chosen too far back, so
11964 the last line became only partially visible, and thus would be
11965 either only semi-visible or automatically scrolled to the middle
11966 of the window by redisplay.
11967
11968 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
11969 (move_it_vertically_backward): Don't recure to move further back.
11970 (move_it_vertically): Remove superfluous condition.
11971 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 11972 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
11973 (display_tool_bar_line): Clear row->extra_line_spacing.
11974 (try_scrolling): Use move_it_vertically_backward directly.
11975 (redisplay_window): Likewise.
11976 (compute_line_metrics): Set row->extra_line_spacing.
11977 (display_line, display_string): Likewise.
11978 (x_produce_glyphs): Update it->max_extra_line_spacing.
11979
b9de078a
KS
11980 * xmenu.c (pop_down_menu): Return nil.
11981
c3438661
JD
119822004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11983
11984 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 11985 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 11986 to handle timers.
df00f436
JD
11987 (popup_widget_loop): Add argument do_timers.
11988 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
11989 do_timers to popup_widget_loop.
c3438661
JD
11990 (xmenu_show): Call XMenuActivateSetWaitFunction so that
11991 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 11992 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 11993 popup_get_selection.
f1d1cd24
JD
11994 (pop_down_menu): New function.
11995 (popup_get_selection, popup_widget_loop): Unwind protect to
11996 pop_down_menu.
11997 (popup_widget_loop): Add argument widget.
11998 (create_and_show_popup_menu, create_and_show_dialog): Pass new
11999 argument widget to popup_widget_loop.
c3438661 12000
32e2fb04
SM
120012004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12002
12003 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
12004
0faf6806
KS
120052004-11-09 Kim F. Storm <storm@cua.dk>
12006
12007 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
12008 Fix various comments referring to XEvents instead of input events.
12009 (x_queue_event): Fix format strings.
12010 (x_stop_queuing_selection_requests): Likewise.
12011
12012 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
12013 (pint2hrstr): Add extra braces to silence compiler.
12014
12015 * print.c (print_object): Fix format string.
12016
12017 * lread.c (read1): Fix next_char matching.
12018
12019 * lisp.h (Fdelete): Add EXFUN.
12020 (replace_range_2): Add prototype.
12021
12022 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
12023
12024 * intervals.h (NULL_INTERVAL_P): Add separate version when
12025 ENABLE_CHECKING is not defined to silence compiler.
12026 (compare_string_intervals): Add prototype.
12027
12028 * fringe.c (destroy_fringe_bitmap): Fix return type.
12029 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
12030
12031 * emacs.c (Fdump_emacs): Fix format string.
12032
12033 * doc.c: Include <ctype.h>.
12034 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
12035
12036 * data.c (store_symval_forwarding): Remove unused variables.
12037
12038 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
12039
16bf4e32
JD
120402004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12041
12042 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
12043 to ${OLDXMENU}.
12044
cdb805a9
KS
120452004-11-09 Kim F. Storm <storm@cua.dk>
12046
12047 * process.c (Fmake_network_process): Remove kludge for interrupted
12048 connects on BSD. If connect is interrupted, just close socket and
12049 start over rather than sleeping and retry with same socket.
12050
d87a9ab8 120512004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 12052
a8b16c80
JD
12053 * .cvsignore: Add buildobj.lst.
12054
d87a9ab8
JD
12055 * doc.c: New variable Vbuild_files.
12056 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 12057 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
12058 that are in Vbuild_files.
12059 (syms_of_doc): Defvar Vbuild_files.
12060
12061 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
12062 and w32*.o.
12063 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 12064 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
12065
12066 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
12067 is linked.
12068
b6709e77
KS
120692004-11-09 Kim F. Storm <storm@cua.dk>
12070
12071 * fringe.c (update_window_fringes): Update fringe bitmaps if
12072 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
12073 also update previous row to get rid of misc. artifacts.
12074
bae9677d
KS
120752004-11-08 Kim F. Storm <storm@cua.dk>
12076
12077 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 12078 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 12079
3f8ea68c
EZ
120802004-11-08 Eli Zaretskii <eliz@gnu.org>
12081
12082 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
12083 Don't include <sys/time.h> explicitly.
12084 Include <stdio.h> unconditionally, not just on MacOS.
12085
a653f812
KH
120862004-11-08 Kenichi Handa <handa@m17n.org>
12087
12088 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
12089 don't pay attention to '\' before '*'.
12090 (fontset_pattern_regexp): Change the meaning of the second arg.
12091 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
12092 (check_fontset_name): Try NAME as literal at first, and if it
12093 failes, try NAME as pattern.
12094
c37caf9d
JD
120952004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12096
12097 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
12098
b72915a7
AS
120992004-11-07 Andreas Schwab <schwab@suse.de>
12100
78819ebb
KS
12101 * lisp.h (Fmsdos_downcase_filename): Declare.
12102 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
12103 * fileio.c: Likewise.
12104
238a44a8
JD
121052004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12106
12107 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
12108 comparisons with integers instead of Lisp_Object address.
12109 (Fmsdos_set_keyboard): Declare argument allkeys.
12110
12111 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
12112
78819ebb 12113 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
12114 int/Lisp_Object mixup.
12115
12116 * fileio.c: Ditto.
12117
31141c13
ST
121182004-11-06 Steven Tamm <steventamm@mac.com>
12119
12120 * editfns.c: Need to include sys/time.h before resource.h on darwin.
12121
f28c1bd9
RS
121222004-11-06 Richard M. Stallman <rms@gnu.org>
12123
12124 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
12125
12126 * xfaces.c (merge_named_face): GCPRO the face_name in the
12127 named_merge_point struct that we make.
12128 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
12129
12130 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
12131 before deciding whether to inactivate mark.
12132
59dede22
EZ
121332004-11-06 Lars Brinkhoff <lars@nocrew.org>
12134
12135 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
12136 * editfns.c (Fget_internal_run_time): New function.
12137 (syms_of_data): Defsubr it.
12138 * fns.c (sxhash): As far as possible, merge calculation of
12139 hash code for symbols and strings.
59dede22 12140
27540e81
EZ
121412004-11-06 Eli Zaretskii <eliz@gnu.org>
12142
12143 * frame.c (syms_of_frame): Fix the example in the doc string.
12144
df470e3b
JD
121452004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12146
12147 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
12148
12149 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
12150 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 12151
4cc8522c
LT
121522004-11-05 Luc Teirlinck <teirllm@auburn.edu>
12153
12154 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
12155
d4a42098
KS
121562004-11-05 Kim F. Storm <storm@cua.dk>
12157
a8490886
KS
12158 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
12159
d4a42098
KS
12160 * fileio.c (Ffile_modes): Doc fix.
12161 (auto_save_1): Check for Ffile_modes nil value.
12162
36a2b04c
KS
121632004-11-05 Kim F. Storm <storm@cua.dk>
12164
12165 * xselect.c (struct selection_event_queue, selection_queue)
12166 (x_queue_selection_requests, x_queue_event)
12167 (x_start_queuing_selection_requests)
12168 (x_stop_queuing_selection_requests): Add new queue for selection
12169 input events to replace previous XEvent queue in xterm.c.
12170 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
12171 (x_reply_selection_request): Adapt to new queue.
12172 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
12173 (x_handle_selection_request, x_handle_selection_clear): Make static.
12174 (x_handle_selection_event): New function. May queue selection events.
12175 (wait_for_property_change_unwind): Use save_value instead of cons.
12176 Clear property_change_reply_object.
12177 (wait_for_property_change): Abort if already waiting.
12178 Use save_value instead of cons for unwind data.
12179 (x_handle_property_notify): Skip events already arrived, but don't
12180 free them, as "arrived" field is checked by wait_for_property_change,
12181 and it will be freed by unwind or explicit unexpect_property_change.
12182 (x_get_foreign_selection): Add to new queue.
12183 (receive_incremental_selection): Don't unexpect wait_object when done
12184 as it has already been freed by previous wait_for_property_change.
12185
12186 * xterm.h (x_start_queuing_selection_requests)
12187 (x_stop_queuing_selection_requests, x_handle_selection_request)
12188 (x_handle_selection_clear): Remove prototypes.
12189 (x_handle_selection_event): Add prototype.
12190
12191 * xterm.c (handle_one_xevent): Don't queue X selection events
12192 here, it may be too late if we start queuing after we have already
12193 stored some selection events into the kbd buffer.
12194 (struct selection_event_queue, queue, x_queue_selection_requests)
12195 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
12196 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
12197 (x_catch_errors_unwind): Block input around final XSync.
12198
12199 * keyboard.h (kbd_buffer_unget_event): Add prototype.
12200
12201 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
12202 (kbd_buffer_unget_event): New function.
12203 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
12204 and use x_handle_selection_event.
12205 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
12206
9c3ad9e1
JD
122072004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12208
12209 * xselect.c (TRACE3): New debug macro.
12210 (x_reply_selection_request): Use it.
12211 (receive_incremental_selection): In call to TRACE0, the name of
12212 a symbol is in xname.
12213
a33b89de
KS
122142004-11-05 Kim F. Storm <storm@cua.dk>
12215
12216 * fontset.c (fontset_pattern_regexp): Use unsigned char.
12217
a872928c
JD
122182004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12219
88208bb8
JD
12220 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
12221
78819ebb 12222 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
12223
12224 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 12225 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
12226 * xfns.c (syms_of_xfns): ... to here.
12227
a872928c
JD
12228 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
12229 it doesn't start with /.
12230
b912921c
KH
122312004-11-04 Kenichi Handa <handa@m17n.org>
12232
12233 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
12234 treat it as a literal character.
12235
c524d9a6
KS
122362004-11-03 Kim F. Storm <storm@cua.dk>
12237
12238 * .gdbinit (ppt): New function.
12239
8cfd0f36
JD
122402004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12241
a11e1dce
JD
12242 * xterm.c (x_window_to_scroll_bar): Only call
12243 xg_get_scroll_id_for_window if toolkit scroll bars are used.
12244
8cfd0f36
JD
12245 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
12246 of save.
12247
a93563fd
AS
122482004-11-02 Andreas Schwab <schwab@suse.de>
12249
12250 * window.c (Fscroll_right): Fix last change.
12251
2b2d59d8
KS
122522004-11-02 Kim F. Storm <storm@cua.dk>
12253
14a56a1b 12254 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
2b2d59d8
KS
12255
122562004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12257
12258 * callproc.c (Fcall_process): Block input around vfork.
12259
ca28104d
KS
122602004-11-02 Kim F. Storm <storm@cua.dk>
12261
12262 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
12263 (syms_of_eval): Defsubr it.
12264
29bb7127
RS
122652004-11-02 Richard M. Stallman <rms@gnu.org>
12266
12267 * insdel.c (replace_range_2): New function.
12268
12269 * casefiddle.c (casify_region): Handle changes in byte-length
12270 using replace_range_2.
12271
12272 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
12273
b6189c3b 12274 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
12275 Subtract 1 from pos when checking previous newline for invisibility.
12276
12277 * window.c (window_scroll_pixel_based): Update preserve_y
12278 for header line if any.
12279 (Fscroll_left, Fscroll_right): Don't call interactive_p;
12280 use a new second argument instead.
12281
12282 * eval.c (Fcall_interactive_p): New function.
12283 (interactive_p): Don't test INTERACTIVE here.
12284 (Finteractive_p): Doc fix.
12285
12286 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
12287
b6189c3b 122882004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
12289
12290 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 12291 comparing font names.
a3fe4aaf 12292
2a00cdb4
JD
122932004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12294
f9d64bb3
JD
12295 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
12296 Fx_file_dialog if only directories should be read.
12297
12298 * lisp.h: Fx_file_dialog takes 5 parameters.
12299
32e2fb04
SM
12300 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
12301 Add parameter only_dir_p.
f9d64bb3
JD
12302 In Motif version, don't put DEFAULT_FILENAME in filter part of the
12303 dialog, just text field part. Do not add DEFAULT_FILENAME
12304 to list of files if it isn't there.
12305 In GTK version, pass only_dir_p parameter to xg_get_file_name.
12306
32e2fb04
SM
12307 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
12308 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
12309 a save dialog, add option kNavDontConfirmReplacement, change title
12310 to "Enter name", change text for save button to "Ok".
12311
32e2fb04
SM
12312 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
12313 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3 12314
14a56a1b
JB
12315 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
12316 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
12317 and HAVE_GTK_FILE_SELECTION_NEW respectively.
f9d64bb3
JD
12318 (xg_get_file_name): Add parameter only_dir_p.
12319 Call xg_get_file_with_chooser or xg_get_file_with_selection
12320 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
12321 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
12322
12323 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
12324
2a00cdb4
JD
12325 * config.in: Rebuild (added HAVE_GTK_FILE_*).
12326
f6749d5d
KS
123272004-11-01 Kim F. Storm <storm@cua.dk>
12328
32e2fb04
SM
12329 * process.c (connect_wait_mask, num_pending_connects):
12330 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 12331 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
12332 (IF_NON_BLOCKING_CONNECT): New helper macro.
12333 (wait_reading_process_output): Only declare and use local vars
12334 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 12335
1a99fe1a
JR
123362004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
12337
12338 * w32term.c (x_scroll_run): Delete region objects after use.
12339
fcdb28b4
JD
123402004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12341
495ef86b
JD
12342 * xmenu.c: Add prototypes for forward function declarations.
12343 (popup_get_selection): Remove parameter do_timers, remove call to
12344 timer_check.
32e2fb04
SM
12345 (create_and_show_popup_menu, create_and_show_dialog):
12346 Remove parameter do_timers from call to popup_get_selection.
495ef86b 12347
12e6566a
JD
12348 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
12349 tool_bar_items and assign the result to f->tool_bar_items if
12350 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
12351 tool_bar_items to assignment of result.
12352
fcdb28b4 12353 * atimer.c (alarm_signal_handler): Do not call set_alarm if
14a56a1b 12354 pending_atimers is non-zero.
fcdb28b4 12355
1a1a0c4c
KS
123562004-10-31 Kim F. Storm <storm@cua.dk>
12357
12358 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
12359
a36f1680
JW
123602004-10-28 Will <will@glozer.net>
12361
1d1c7e75 12362 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
12363 key via a 'mac-option-modifier' variable.
12364
32e2fb04 123652004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
12366
12367 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
12368 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
12369 (x_handle_selection_request, x_handle_selection_clear)
12370 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
12371
4f71c13f
RS
123722004-10-28 Richard M. Stallman <rms@gnu.org>
12373
12374 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
12375
12376 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
12377
068f3848
SM
123782004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
12379
12380 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
12381 comment-starter over a 1-char one.
12382
4660a9e3
RS
123832004-10-27 Richard M. Stallman <rms@gnu.org>
12384
12385 * xdisp.c (get_next_display_element): In mode lines,
12386 treat newline and tab like other control characters.
12387
12388 * editfns.c (Fmessage): Doc fix.
12389
12390 * indent.c (vmotion): When moving up, check the newline before.
12391 Make prevline an int, not a Lisp_Object.
12392
233f3db6
KS
123932004-10-27 Kim F. Storm <storm@cua.dk>
12394
12395 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
12396 Only allocate info and discarded tables once.
12397
12398 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
12399 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
12400 (SAFE_FREE): Test it to determine if we need to unwind to free.
12401 Remove size arg. All users changed.
12402 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
12403
1442465d
JD
124042004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12405
12406 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
12407 (xg_destroy_widgets): Rename from remove_from_container.
12408 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
12409 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
12410 instead of remove_from_container.
12411 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
12412 (free_frame_tool_bar): Add comment.
12413
12414 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
12415 is not NULL before strcmp.
12416
c8636435
KS
124172004-10-26 Kim F. Storm <storm@cua.dk>
12418
12419 * callint.c (Fcall_interactively): Add 'U' code to get the
12420 up-event discarded by a previous 'k' or 'K' argument.
12421
5629f29b
DK
124222004-10-26 David Kastrup <dak@gnu.org>
12423
12424 * buffer.c (syms_of_buffer): Fix a few typos.
12425
4f2f546e
JD
124262004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12427
12428 * xsmfns.c: Put empty line between comment and function body.
12429 Use two spaces before comment end.
12430
fc1062f5
KH
124312004-10-25 Kenichi Handa <handa@m17n.org>
12432
12433 * fontset.c (fontset_pattern_regexp): Optimize for the case that
12434 PATTERN is full XLFD.
12435
be13f5e5
KH
124362004-10-24 Kenichi Handa <handa@m17n.org>
12437
12438 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
12439
12440 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
12441 (regex_compile): Return REG_ERANGEX if appropriate.
12442
d0ee2ed3
KH
124432004-10-22 Kenichi Handa <handa@m17n.org>
12444
12445 * editfns.c (Ftranslate_region_internal): New function.
12446 (syms_of_editfns): Defsubr it.
12447
63ea8ea5
JD
124482004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12449
12450 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
12451
d495ccfc 124522004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
c27ed90a 12453
068f3848
SM
12454 * xterm.h (x_output): New member `xic_base_fontname'.
12455 (FRAME_XIC_BASE_FONTNAME): New macro.
12456 (xic_free_xfontset): Declare.
c27ed90a 12457
068f3848
SM
12458 * xfns.c (xic_create_xfontset): Share fontsets between frames
12459 based on base_fontname.
12460 (xic_free_xfontset): New function.
12461 (free_frame_xic): Use it.
12462 (xic_set_xfontset): Ditto.
c27ed90a 12463
068f3848 12464 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a 12465
59508699
JR
124662004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
12467
12468 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
12469
dede2792
JD
124702004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12471
3aca2078
JD
12472 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
12473 XSync.
12474
dede2792
JD
12475 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
12476 New variables and constant.
12477 (main): Calculate heap_bss_diff. If we are dumping and the
12478 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
12479 and exec ourself again.
12480 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
12481 print a warning.
12482
12483 * lastfile.c: Make my_endbss and my_endbss_static available on all
12484 platforms.
12485
12486 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
12487 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
12488
1dc5ba01
LT
124892004-10-19 Luc Teirlinck <teirllm@auburn.edu>
12490
12491 * data.c (Flocal_variable_if_set_p): Doc fix.
12492
950090be
JR
124932004-10-19 Jason Rumney <jasonr@gnu.org>
12494
12495 * w32.c (init_environment): Set emacs_dir correctly when running
12496 emacs from the build directory.
12497
8550b998
RS
124982004-10-19 Richard M. Stallman <rms@gnu.org>
12499
12500 * editfns.c (Fdelete_and_extract_region):
12501 If region is empty, return null string.
12502
08dedea6
JD
125032004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12504
1dc5ba01 12505 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 12506 and canon_width.
068f3848 12507 (xg_frame_cleared): Remove.
08dedea6 12508
068f3848
SM
12509 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
12510 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
12511 (xg_create_scroll_bar): Put an event box widget between
12512 the scroll bar widget and the edit widget.
12513 (xg_show_scroll_bar): Show the parent widget (the event box).
12514 (xg_remove_scroll_bar): Destroy parent (the event box) also.
12515 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
12516 Move the parent (the event box) widget inside the fixed widget.
12517 Move window clear to xterm.c.
12518
068f3848 12519 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 12520
08dedea6 12521 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
12522 (x_scroll_bar_create, XTset_vertical_scroll_bar):
12523 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
12524 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
12525
8550b998 125262004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
12527
12528 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 12529
84338890
JD
125302004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12531
12532 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
12533 gdk_window_clear and move gdk_window_process_all_updates after
12534 clear so events are sent to the X server in correct order.
12535
6e1b0d8c
KH
125362004-10-18 Kenichi Handa <handa@m17n.org>
12537
12538 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
12539 comparing font names.
8550b998 12540 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
12541 (list_fontsets): Likewise.
12542
12543 * search.c (fast_string_match_ignore_case): New function.
12544
12545 * lisp.h (fast_string_match_ignore_case): Extern it.
12546
345e75a8
KS
125472004-10-17 Kim F. Storm <storm@cua.dk>
12548
12549 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
12550 than bitmap if there is not left fringe.
12551 (get_overlay_arrow_glyph_row): Also used on windows system.
12552 (display_line): Display overlay string if no left fringe.
12553
be13cbb7
JR
125542004-10-16 Jason Rumney <jasonr@gnu.org>
12555
12556 * w32fns.c (w32_font_match): Encode font name being matched.
12557
c2e2ede7
RS
125582004-10-16 Richard M. Stallman <rms@gnu.org>
12559
12560 * window.c (Fspecial_display_p): Doc fix.
12561
043f7f73 125622004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
12563
12564 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
12565 Don't ignore menus, because where-is-internal already does it for us.
12566
699a0392
KS
125672004-10-15 Kim F. Storm <storm@cua.dk>
12568
b3c7a89b
KS
12569 * xdisp.c (redisplay_window): Only update fringes and vertical
12570 border on window frames.
699a0392 12571
4e382b0f
AS
125722004-10-14 Andreas Schwab <schwab@suse.de>
12573
12574 * m/ia64.h (DATA_SEG_BITS): Don't define.
12575
329a7be2
KS
125762004-10-14 Kim F. Storm <storm@cua.dk>
12577
12578 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 12579 in some X versions.
329a7be2 12580
982241b1
SM
125812004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
12582
12583 * fns.c (map_char_table): Add missing gcpros.
12584
9238467d
SM
125852004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
12586
12587 * keymap.c (get_keymap): An autoload form is not a keymap.
12588
12589 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
12590
4440e3ca
KS
125912004-10-13 Kim F. Storm <storm@cua.dk>
12592
7cfdabde
KS
12593 * callproc.c (Fcall_process): Simplify handling of display arg.
12594 Resume `display_on_the_fly' once a coding system is determined.
12595
4440e3ca
KS
12596 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
12597
1c8dec6a
KS
125982004-10-12 Kim F. Storm <storm@cua.dk>
12599
12600 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
12601 caller, such as call-process, is not going to poll for input.
12602 (calc_line_height_property): Handle case where it->object is nil.
12603
12604 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
12605
170b174c
KH
126062004-10-12 Kenichi Handa <handa@m17n.org>
12607
9238467d
SM
12608 * xdisp.c (get_next_display_element):
12609 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
12610 chars in octal in unibyte buffer.
12611
b583964c
KS
126122004-10-12 Kim F. Storm <storm@cua.dk>
12613
12614 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
12615 are no ordinary bindings.
12616
29fabd8c
JD
126172004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12618
9238467d 12619 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 12620
c3f4c690
ST
126212004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12622
9238467d
SM
12623 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
12624 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 12625 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
12626 terminal frame.
12627 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
12628 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
12629 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
12630 Make a cancel file-open dialog be like C-g.
9238467d
SM
12631 * mac.c (mktime): Use emacs_mktime.
12632 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
12633 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 12634
9688f9eb
KS
126352004-10-10 Kim F. Storm <storm@cua.dk>
12636
12637 * keyboard.c (timer_resume_idle): New function to resume idle
12638 timer without resetting timers on the idle list.
52eb0373 12639 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
12640 (timer_start_idle, timer_stop_idle): Declare static.
12641 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
12642
12643 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
12644
f7f3a65f
ST
126452004-10-08 Steven Tamm <steventamm@mac.com>
12646
9238467d 12647 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 12648 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 12649 NULL where 0 should be used.
f7f3a65f
ST
12650 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
12651 objc/malloc.h
9238467d 12652 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 12653
3c7d999a
KS
126542004-10-07 Kim F. Storm <storm@cua.dk>
12655
12656 * xdisp.c (redisplay_window): Fix flicker on vertical line between
12657 windows. Update vertical line after drawing window fringes, but
12658 only if actually drawing any bitmaps--or there is no fringe.
12659
12660 * xterm.c (x_update_window_end): Likewise.
12661 * macterm.c (x_update_window_end): Likewise.
12662 * w32term.c (x_update_window_end): Likewise.
12663
12664 * fringe.c (draw_window_fringes): Return value now indicates if
12665 any fringe bitmaps were redrawn (or there are no fringes).
12666
12667 * dispextern.h (draw_window_fringes): Update prototype.
12668
bf06c82f
ST
126692004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12670
12671 * macfns.c (mac_get_window_bounds): Add extern.
12672 (x_real_positions): Use mac_get_window_bounds.
12673
12674 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
12675 xmenu.c (YAILOM).
3c7d999a 12676
bf06c82f
ST
12677 * macterm.c [!MAC_OSX]: Include Windows.h.
12678 (front_emacs_window): Rename from mac_front_window. All uses
12679 changed. Return the frontmost non-tooltip emacs window.
12680 (mac_get_window_bounds): New function.
12681 (x_calc_absolute_position): Use the difference of width and height
12682 between the inner and outer window.
12683 (x_set_offset): Specify window position by the coordinae of the
12684 outer window. Adjust the position if the title bar is completely
12685 outside the screen.
12686 (app_is_suspended, app_sleep_time): Remove unused variables.
12687 (do_app_resume, do_app_suspend): Remove their contents because
12688 window-activate/deactivate events will do the job.
12689 (do_zoom_window): Remove unused variables. Make compliant to the
12690 standard way of zooming. Set f->left_pos and f->top_pos.
12691 (XTread_socket): Don't use argument `expected'. Don't use
12692 FrontWindow to determine the clicked window. Exclude unprocessed
12693 mouseUp cases in the early stage. Add parentheses to fix operator
12694 precedence.
12695 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
12696
c6605d63 126972004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
d8b43276
JD
12698
12699 * config.in: Regenerate.
12700
12701 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
12702 HAVE_EXECSHIELD.
12703
b90ee8b5
JD
127042004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12705
12706 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
12707 a row if Alt or Meta has been found for that row. Also stop scanning
12708 for Keysyms for that row.
12709
904db1a2
KS
127102004-10-04 Kim F. Storm <storm@cua.dk>
12711
0207b8ad
KS
12712 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
12713 to list. Include overlay arrow bitmap in return value.
12714
25f7220c
KS
12715 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
12716 bars with fractional column width. If scroll bar separates two
12717 windows, move it towards the window it belongs to. Only update
12718 the padding area below the scroll bar widget when necessary,
12719 i.e. when scroll bar widget is created, moved, or resized.
12720
562020fe
KS
12721 * xdisp.c (define_frame_cursor1): Do not change frame cursor
12722 while tracking/dragging mouse.
12723 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
12724
37e34af7
KS
12725 * window.c (coordinates_in_window): Relax check for cursor
12726 on vertial border between mode lines.
12727 (Fset_window_fringes): Do not allow negative widths.
12728 (Fset_window_scroll_bars): Likewise.
12729
904db1a2
KS
12730 * .gdbinit (pp): Shorthand for p ARG + pr.
12731 (ff): New command: flush frame updates (X only).
12732
38fe4f64
MA
127332004-10-03 Michael Albinus <michael.albinus@gmx.de>
12734
12735 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
12736
9de36315
KH
127372004-09-30 Kenichi Handa <handa@m17n.org>
12738
07c381ad 12739 * process.c (send_process): Free composition data.
9de36315 12740
07c381ad 12741 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
12742
12743 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
12744 compositions to encode.
12745 (encode_coding_string): Likewise. Free composition data.
12746
d5fb8dab 127472004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
12748
12749 * coding.c (code_convert_region): Free composition data.
9de36315 12750
f2a54fbc
KS
127512004-09-29 Kim F. Storm <storm@cua.dk>
12752
dc5d6435
KS
12753 * fringe.c: Remove limit on number of bitmaps.
12754 (fringe_bitmaps, fringe_faces): Change to pointers.
12755 (max_fringe_bitmaps): New var.
12756 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
12757 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
12758
12759 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
12760 (struct glyph_row): Reorder fringe_bitmap related fields.
12761 (struct it): Likewise.
12762
12763 * w32term.c (fringe_bmp): Change to pointer.
12764 (max_fringe_bmp): New var.
12765 (w32_define_fringe_bitmap): Expand fringe_bmp.
12766 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
12767 (w32_destroy_fringe_bitmap): Likewise.
12768
127692004-09-29 Kim F. Storm <storm@cua.dk>
12770
12771 * fringe.c: Simplify last change.
f2a54fbc
KS
12772 (lookup_fringe_bitmap): New function.
12773 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
12774 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
12775 Keep standard bitmaps in Vfringe_bitmaps.
12776 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
12777 (Fset_fringe_bitmap_face): Likewise.
12778
12779 * dispextern.h (lookup_fringe_bitmap): Add prototype.
12780 (valid_fringe_bitmap_p): Remove prototype.
12781
12782 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
12783
841a8bca
KS
127842004-09-29 Kim F. Storm <storm@cua.dk>
12785
1f2da365
KS
12786 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
12787 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
12788
841a8bca
KS
12789 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
12790
12791 * fringe.c (Vfringe_bitmaps): New variable.
12792 (syms_of_fringe): DEFVAR_LISP it.
12793 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
12794 Change arg to Lisp_Object and fail if not an integer.
12795 (get_fringe_bitmap_name, resolve_fringe_bitmap)
12796 (destroy_fringe_bitmap): New functions.
9238467d
SM
12797 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
12798 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
12799 clear its fringe property.
12800 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
12801 Fdestroy_fringe_bitmap.
12802 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
12803 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
12804 and set fringe property. Signal error if no free slots.
12805 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
12806 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
12807
12808 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
12809 symbols with a fringe property.
12810
4d965590
KS
128112004-09-27 Kim F. Storm <storm@cua.dk>
12812
12813 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
12814 Doc fix. Format may now be a symbol or alist, not a cons.
12815
12816 * fringe.c (update_window_fringes): Handle new formats of
12817 indicate-buffer-boundaries (symbol or alist). No longer
12818 allow a simple cons.
12819 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
12820
e888c2b3
JD
128212004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12822
9238467d 12823 * config.in: Rebuild.
e888c2b3 12824
83f1cb94
JD
128252004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12826
12827 * config.in: Rebuild.
12828
9dd28cae 12829 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 12830
2c51754c
SM
128312004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
12832
12833 * xterm.c (x_term_init): Work around a bug in some X servers.
12834
3df5f8aa
RS
128352004-09-18 Richard M. Stallman <rms@gnu.org>
12836
557ca2c1
RS
12837 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
12838
3df5f8aa
RS
12839 * xdisp.c (try_window_reusing_current_matrix):
12840 Handle the case where we reach the old displayed text,
12841 out of sync with the old line boundary.
12842
9238467d 128432004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
12844
12845 * fileio.c (Finsert_file_contents): Fix case of replacement in a
12846 narrowed buffer.
12847
bfa02563
KS
128482004-09-14 Kim F. Storm <storm@cua.dk>
12849
a25fe164
KS
12850 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
12851
bfa02563
KS
12852 * xfaces.c (Qface_no_inherit): New var.
12853 (syms_of_xfaces): Intern and staticpro it.
12854 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
12855 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
12856 Don't increment face_change_count when face has non-nil
12857 face-no-inherit property.
12858
126f9c02
SM
128592004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
12860
892a8eb5
SM
12861 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
12862 (Fbyte_code): Remove dead code after `wrong_type_argument'.
12863
126f9c02 12864 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 12865 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 12866
c0ad3b38
KS
128672004-09-12 Kim F. Storm <storm@cua.dk>
12868
12869 * editfns.c (Fformat): Handle format strings with multiple text
12870 properties. Reverse text property list from the format string,
12871 so the positions are in increasing order.
12872
844fc085
JD
128732004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12874
12875 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
12876 x_uncatch_errors so that possible protocol errors are delivered.
12877
b106731c
EZ
128782004-09-10 Eli Zaretskii <eliz@gnu.org>
12879
21065c92
EZ
12880 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
12881 blockinput.h.
12882 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
12883 charset.h, and coding.h
9238467d 12884 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
12885 (term.o): Depend on window.h and keymap.h.
12886 (abbrev.o): Depend on syntax.h.
12887 (callint.o): Depend on keymap.h.
12888 (casefiddle.o): Depend on charset.h and keymap.h.
12889 (category.o): Depend on keymap.h.
12890 (coding.o): Depend on dispextern.h.
12891 (cmds.o): Depend on keyboard.h and keymap.h.
12892 (dispnew.o): Depend on indent.h and intervals.h.
12893 (doc.o): Depend on keymap.h.
12894 (editfns.o): Depend on frame.h.
12895 (emacs.o): Depend on dispextern.h.
12896 (fileio.o): Don't depend on ccl.h.
12897 (filelock.o): Depend on charset.h and coding.h.
12898 (frame.o): Depend on w32term.h and macterm.h.
12899 (insdel.o): Depend on region-cache.h.
12900 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
12901 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
12902 (search.o): Depend on $(INTERVALS_SRC).
12903 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
12904 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
12905 xterm.h, w32term.h, and macterm.h.
12906 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
12907 w32term.h, and macterm.h.
12908 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
12909 region-cache.h, xterm.h, w32term.h, and macterm.h.
12910 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
12911 (data.o): Depend on frame.h.
12912 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
12913 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
12914 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
12915 (intervals.o): Depend on keymap.h.
12916
9238467d
SM
12917 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
12918 Add debugging print-out to termscript.
b106731c 12919
64b7122d
RS
129202004-09-09 Richard M. Stallman <rms@gnu.org>
12921
12922 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
12923
5670531e
RS
129242004-09-08 Richard M. Stallman <rms@gnu.org>
12925
6cb4a892
RS
12926 * window.c (Fset_window_buffer): Doc fix.
12927
5670531e
RS
12928 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
12929
7e388eb7
JL
129302004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
12931
12932 * minibuf.c (history_delete_duplicates): New variable.
12933 (read_minibuf): Use it.
12934 (syms_of_minibuf): Create the corresponding lisp variable.
12935
370e3587
KS
129362004-09-08 Kim F. Storm <storm@cua.dk>
12937
12938 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
12939 overlay just before point.
12940
f844ba4e
LT
129412004-09-07 Luc Teirlinck <teirllm@auburn.edu>
12942
12943 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
12944 * buffer.c (reset_buffer, init_buffer_once):
12945 Handle auto_save_file_format field.
f844ba4e
LT
12946 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
12947 `buffer-auto-save-file-format'.
f844ba4e
LT
12948 * fileio.c: Delete declaration for removed Vauto_save_file_format.
12949 (build_annotations): Adapt to replacement of
12950 `auto-save-file-format' with the new buffer-local variable
12951 `buffer-auto-save-file-format'.
12952 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
12953
f0f90717
JR
129542004-09-07 Jason Rumney <jasonr@gnu.org>
12955
12956 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
12957
9238467d
SM
12958 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
12959 Handle Unicode menu titles.
f0f90717 12960
4e14f66c
KS
129612004-09-07 Kim F. Storm <storm@cua.dk>
12962
12963 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
12964 property from text property or overlay strings at point.
12965
9238467d 129662004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
12967
12968 * xmenu.c (update_submenu_strings): YAILOM.
12969 (set_frame_menubar): Make sure last_i is initialized.
12970
1f06d367
JR
129712004-09-03 Jason Rumney <jasonr@gnu.org>
12972
1806714a 12973 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
12974 (digest_single_submenu): Set lname and lkey in widget_value
12975 instead of name and key.
12976 (update_submenu_strings): New function.
12977 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12978 call update_submenu_strings.
12979
12980 * w32menu.c (globals_of_w32menu): Check for Unicode API.
12981 (digest_single_submenu, w32_menu_show): Encode menu strings as
12982 UTF-8 if Unicode API is available.
12983 (utf8to16): New function.
12984 (add_menu_item): Use it when calling Unicode API.
1806714a 12985
46540080
KS
129862004-09-03 Kim F. Storm <storm@cua.dk>
12987
12988 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
12989 in overlay or text-property strings; set cursor on corresponding
12990 glyph rather than at end of the string.
12991
9277ba61 129922004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 12993
9277ba61 12994 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
12995 set a new one before obtaining the global coordinate.
12996 Use FRAME_MAC_WINDOW.
12997 (x_set_name, x_set_title): Encode title to UTF8.
12998 Use SetWindowTitleWithCFString.
9277ba61
ST
12999 (Fx_server_version): Get correct OS version.
13000
1806714a
SM
13001 * macmenu.c (add_menu_item): Remove unused variable `i'.
13002 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
13003
13004 * macterm.c (x_update_end): Move SetPortWindowPort to inside
13005 BLOCK_INPUT.
13006 (x_set_offset): Use FRAME_MAC_WINDOW.
13007
13008 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
13009 nontext_cursor if it is on a scroll bar.
13010
13011 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
13012 Carbon support.
1806714a
SM
13013 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
13014 Use LIBS_CARBON.
9277ba61 13015
b10daec7
JD
130162004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13017
13018 * xfns.c (x_set_name_internal): New function. Check if we shall call
13019 xfree before ENCODE_UTF_8.
13020 (x_set_name, x_set_title): Call x_set_name_internal.
13021
f7e22385
JR
130222004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
13023
13024 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
13025 reload it.
13026
2bf436c3
JD
130272004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13028
1806714a 13029 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
13030 (single_submenu): Set lname and lkey in widget_value
13031 instead of name and key.
13032 (update_submenu_strings): New function.
13033 (set_frame_menubar): Remove call to inhibit_garbage_collection,
13034 call update_submenu_strings.
13035
2bf436c3
JD
13036 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
13037 instead of name and key.
13038 (update_submenu_strings): New function.
13039 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 13040 call update_submenu_strings.
2bf436c3
JD
13041
13042 * gtkutil.h (_widget_value): Added lname and lkey.
13043
11715f92
ST
130442004-08-30 Steven Tamm <steventamm@mac.com>
13045
13046 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
13047 by using different names for inner loop variables.
13048
5500be54
JD
130492004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13050
059cd329
JD
13051 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
13052 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
13053
5500be54
JD
13054 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
13055 tool bar items is 0.
13056
383418e5
ST
130572004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13058
13059 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
13060 strings in menu items.
13061 (single_submenu): Use ENCODE_MENU_STRING
13062 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
13063 button release isn't passed to event loop
13064 (add_menu_item): Use SetMenuItemWithCFString
13065
6eb3ee72
ST
130662004-08-26 Steven Tamm <steventamm@mac.com>
13067
13068 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
13069 tool-bar/menu click.
13070 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 13071
10b43ac3
JD
130722004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13073
2728b5d0
JD
13074 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
13075
10b43ac3
JD
13076 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13077 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13078 (x_top_window_to_frame): Return 0 if wdesc is None.
13079
2ee3b79e
RS
130802004-08-22 Richard M. Stallman <rms@gnu.org>
13081
13082 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
13083 HAVE_TERMIOS]: If there's no char for this signal, drop through
13084 and use system calls.
13085
13086 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
13087
9a1ba2ea
KS
130882004-08-20 Kim F. Storm <storm@cua.dk>
13089
13090 * process.c (wait_reading_process_output): Rename from
13091 wait_reading_process_input. All uses changed.
13092 (wait_reading_process_output_1): Rename from
13093 wait_reading_process_input_1. All uses changed.
13094
13095 * dispnew.c (Fsleep_for): Remove obsolete code.
13096
295f3b30
KH
130972004-08-20 Kenichi Handa <handa@m17n.org>
13098
13099 * syntax.c (skip_chars): Fix for unibyte case.
13100
27615979
SM
131012004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13102
13103 * syntax.c (char_quoted): Mixup byte/char pos.
13104 (back_comment): Fixup globals in all cases.
13105
00267f94
JD
131062004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13107
13108 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
13109 passing it to gtk_window_set_title.
13110
2439909e
KS
131112004-08-19 Kim F. Storm <storm@cua.dk>
13112
6ba0f14c
KS
13113 * process.c (wait_reading_process_input): Clean up.
13114 Add wait_for_cell, wait_proc, and just_wait_proc args
13115 to avoid overloading `read_kbd' and `do_display' args.
13116 Change read_kbd arg to int. All callers changed.
13117
2439909e
KS
13118 * process.c (process_send_signal): Use CDISABLE.
13119
13120 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
13121
101c421e
KS
131222004-08-18 Kim F. Storm <storm@cua.dk>
13123
13124 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
13125 forward to wait_reading_process_input via DO_DISPLAY arg.
13126 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
13127 object, only process output from that process; also inhibit
13128 running timers if DO_DISPLAY==-2.
13129
c438dc33
KS
131302004-08-17 Kim F. Storm <storm@cua.dk>
13131
13132 * process.c (process_send_signal): Fix last change--use
13133 _POSIX_VDISABLE instead of CVDISABLE when available.
13134
8afc13c6
RS
131352004-08-16 Richard M. Stallman <rms@gnu.org>
13136
13137 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
13138 Set VQUIT and VINTR chars to the standard ones if they are unset.
13139 [AIX]: Don't do that here. And don't force VINTR to standard
13140 when SIGNALS_VIA_CHARACTERS.
13141
c438dc33 13142 * process.c (process_send_signal)
5e1a6e32 13143 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
8afc13c6
RS
13144 Do nothing if the character is CVDISABLE.
13145
13146 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
13147
c438dc33 13148 * intervals.c (move_if_not_intangible):
8afc13c6
RS
13149 Force POSITION to be between BEGV and ZV.
13150
6dad1714
JPW
131512004-08-14 John Paul Wallington <jpw@gnu.org>
13152
13153 * buffer.c (Frestore_buffer_modified_p): Doc fix.
13154
13155 * fileio.c (Fread_file_name): Doc fix.
13156
13157 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
13158
2bd77330
LT
131592004-08-09 Luc Teirlinck <teirllm@auburn.edu>
13160
13161 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
13162
c90e7e43
LT
131632004-08-08 Luc Teirlinck <teirllm@auburn.edu>
13164
13165 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 13166 Qdisabled_command_hook.
c90e7e43 13167 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 13168 Qdisabled_command_hook.
c90e7e43
LT
13169 (syms_of_keyboard): Ditto.
13170
81909a1a
LT
131712004-08-07 Luc Teirlinck <teirllm@auburn.edu>
13172
13173 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
13174 (syms_of_keymap) <key-translation-map>: Doc fixes.
13175
0cedd530
SM
131762004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
13177
1725a7c9
SM
13178 * window.c (window_list_1): YAILOM.
13179
0cedd530
SM
13180 * fileio.c (make_temp_name): Handle multibyte prefixes.
13181
2515a131
LT
131822004-08-06 Luc Teirlinck <teirllm@auburn.edu>
13183
13184 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
13185 Doc fix.
13186
c8b20fb7
KH
131872004-08-03 Kenichi Handa <handa@m17n.org>
13188
13189 * coding.c (decode_coding_string): Adjust coding->consumed, and
13190 etc. with shrinked_bytes.
13191
fb8b092b
KS
131922004-08-03 Kim F. Storm <storm@cua.dk>
13193
13194 * indent.c (compute_motion): Fix check for full width window
13195 in non-window case. Do not count left truncation glyph on
13196 window systems.
13197
df133612
LT
131982004-08-02 Luc Teirlinck <teirllm@auburn.edu>
13199
13200 * data.c (Finteractive_form): Doc fix.
13201
0f7a93c1
KS
132022004-08-02 Kim F. Storm <storm@cua.dk>
13203
13204 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
13205 properly accounting for continuation glyph on non-window systems.
13206 (Fcompute_motion): Use actual window width if WIDTH is nil, and
13207 actual window width/height if TOPOS is nil, properly accounting for
13208 continuation glyphs on non-window systems, and optional header lines.
13209 (vmotion): Let compute_motion calculate actual window width.
13210
13211 * window.c (window_scroll_line_based): Let compute_motion
13212 calculate actual window width.
13213
f491e1ed
KS
132142004-08-02 Kim F. Storm <storm@cua.dk>
13215
13216 * process.c (read_process_output): Use whole read buffer.
13217 Don't trigger adaptive read buffering on errors.
13218
83f64226
LT
132192004-07-31 Luc Teirlinck <teirllm@auburn.edu>
13220
13221 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
13222
1d1c7e75 13223 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
13224
13225 * callint.c (Fcall_interactively): Doc fix.
13226
8afc13c6
RS
132272004-07-30 Richard M. Stallman <rms@gnu.org>
13228
13229 * abbrev.c (Fexpand_abbrev): Undo previous change.
13230
7c111482
KS
132312004-07-30 Kim F. Storm <storm@cua.dk>
13232
13233 * editfns.c (Fformat): Allocate extra (dummy) element in info.
13234
ee945d08
LT
132352004-07-28 Luc Teirlinck <teirllm@auburn.edu>
13236
13237 * eval.c (Fdefvar, Fdefconst): Doc fixes.
13238
3f911c94
KS
132392004-07-27 Kim F. Storm <storm@cua.dk>
13240
13241 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
13242 we have ensured that the glyph fits on the current line (or returned
13243 MOVE_LINE_CONTINUED otherwise).
13244
f29ff8c7
KS
132452004-07-26 Kim F. Storm <storm@cua.dk>
13246
13247 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
13248 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
13249 if target position is at end of display line but char is not a newline.
13250
81159bb9
RS
132512004-07-25 Richard M. Stallman <rms@gnu.org>
13252
ab431b61
RS
13253 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
13254 instead of ON_VERTICAL_BORDER, when on scroll bar.
13255 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
13256
13257 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
13258
f29ff8c7 13259 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
13260 Take account of FRAME_INTERNAL_BORDER_WIDTH.
13261
13262 * alloc.c (check_cons_list): New function (contents commented out).
13263
fc820cc5
LT
132642004-07-24 Luc Teirlinck <teirllm@auburn.edu>
13265
13266 * xfaces.c (Fcolor_supported_p): Doc fix.
13267
13268 * frame.c (Fselect_frame, Fset_frame_selected_window)
13269 (Fframe_visible_p, Fraise_frame): Doc fixes.
13270
289978b5
LT
132712004-07-24 Richard M. Stallman <rms@gnu.org>
13272
78819ebb 13273 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
13274
13275 * fileio.c (Fwrite_region): Doc fix.
13276
13277 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
13278
13279 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
13280 only when a real abbrev is present.
13281
289978b5
LT
13282 * xfns.c (x_icon_verify): New function.
13283 (Fx_create_frame): Use it.
13284
d5fb8dab 132852004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
13286
13287 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
13288
36f826d4
KS
132892004-07-21 Kim F. Storm <storm@cua.dk>
13290
13291 * window.h (struct glyph_matrix): New members nrows_scale_factor
13292 and ncols_scale_factor.
13293
13294 * window.c (make_window): Initialize nrows_scale_factor and
13295 ncols_scale_factor members.
13296
13297 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
13298 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
13299 (required_matrix_height): Apply nrows_scale_factor.
13300 (required_matrix_width): Apply ncols_scale_factor.
13301
13302 * xdisp.c (display_line): Increment nrows_scale_factor and set
13303 fonts_changed_p if past last allocated row.
13304 (append_glyph, append_composite_glyph, produce_image_glyph)
13305 (append_stretch_glyph): Increment ncols_scale_factor and set
13306 fonts_changed_p if current area is full.
13307
5fc1c546
JD
133082004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13309
13310 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
13311
cb7516e5
LT
133122004-07-19 Luc Teirlinck <teirllm@auburn.edu>
13313
13314 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
13315 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
13316 (Fset_window_start, Fscroll_up, Fscroll_down)
13317 (Fother_window_for_scrolling, Fscroll_other_window)
13318 (Fsave_window_excursion, Fset_window_vscroll)
13319 (syms_of_window) <window-size-fixed>: Doc fixes.
13320
b6189c3b 133212004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
13322
13323 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
13324 ENCODE_SYSTEM for filenames.
13325
bfcf6608
ST
133262004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13327
13328 * mac.c (sys_select): Block input around call to
13329 ReceiveNextEvent to prevent breakage. Correctly handle
13330 blocking on event queue only by calling ReceiveNextEvent
13331 instead of select (since GUI events aren't on an fd).
13332 (sys_read): Remove function
13333 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
13334
e082ac9d
ST
133352004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13336
13337 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 13338 polling instead of 1 sec timeouts (like solaris).
e082ac9d 13339
cb7516e5 13340 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
13341 frame creation.
13342
13343 * keyboard.c: Undef SIGIO on Carbon
13344
13345 * atimer.c (alarm_signal_handler): Call alarm handlers after
13346 scheduling.
13347
13348 * eval.c (Feval): Remove quit_char test
13349
13350 * process.c (wait_reading_process_input): Remove clearing
13351 stdin for select call on process input.
13352
4b9da0fb
LT
133532004-07-18 Luc Teirlinck <teirllm@auburn.edu>
13354
1204e81c
LT
13355 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
13356 capitalization error in docstring.
4b9da0fb 13357
26503ad2
JB
133582004-07-17 Juanma Barranquero <lektu@terra.es>
13359
13360 * keyboard.c (not_single_kboard_state): Do nothing unless
13361 MULTI_KBOARD is defined.
13362
3751eb00
RS
133632004-07-17 Richard M. Stallman <rms@gnu.org>
13364
13365 * window.c (coordinates_in_window): Inside the window but outside
13366 its box to the L or R, return ON_VERTICAL_BORDER.
13367 (window_list_1): Rotate the list to start with WINDOW.
13368
13369 * print.c (print_preprocess): Test for print_depth at limit
13370 before entering in being_printed.
13371
13372 * keyboard.c (not_single_kboard_state): New function.
13373 (stuff_buffered_input): Now no-op only if no SIGTSTP.
13374
13375 * frame.c (Fdelete_frame): If we're in single_bboard_state on
13376 this kboard, and we delete its last frame, go to any_kboard_state.
13377
13378 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
13379
b6189c3b 133802004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
13381
13382 * w32fns.c (Fx_file_dialog): Encode strings in system coding
13383 system before passing them to OS functions for display.
13384
0f6af254
DK
133852004-07-15 David Kastrup <dak@gnu.org>
13386
f9253326
KS
13387 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
13388 Apparently fixes an abort condition.
0f6af254 13389
386c8f42
LT
133902004-07-14 Luc Teirlinck <teirllm@auburn.edu>
13391
13392 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
13393 instead of a cons.
13394
d495ccfc 133952004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
366511da
MB
13396
13397 * keyboard.c (echo_dash): Do nothing if there already is a dash
13398 at the end of the echo string.
13399
f85409d3
KS
134002004-07-12 Kim F. Storm <storm@cua.dk>
13401
13402 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
13403 if GC_MARK_STACK.
13404
0ba2e87b
LT
134052004-07-10 Luc Teirlinck <teirllm@auburn.edu>
13406
da38045d
LT
13407 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
13408
9dd28cae 13409 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
0ba2e87b
LT
13410 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
13411 (Freplace_buffer_in_windows, Fset_window_buffer)
13412 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
13413 (syms_of_window): Expand docstring of `display-buffer-function'.
13414
5668fbb8
LT
134152004-07-09 Luc Teirlinck <teirllm@auburn.edu>
13416
13417 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
13418 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
13419 that time values of the type (HIGH . LOW) are considered obsolete.
13420
a085bf9d
LT
134212004-07-06 Luc Teirlinck <teirllm@auburn.edu>
13422
669de2fb
LT
13423 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
13424 docstring.
13425
bac66325 13426 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 13427
8e975df9
JPW
134282004-07-06 John Paul Wallington <jpw@gnu.org>
13429
13430 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
13431
fa164e6a
JPW
13432 * fns.c (Fclear_string): Signal an error if STRING is not a string.
13433
2bac9bb1
JD
134342004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13435
13436 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
13437 instead of CGMainDisplayID (only in OSX 10.2 and later).
13438
316ef0dc
JPW
134392004-07-04 John Paul Wallington <jpw@gnu.org>
13440
13441 * fileio.c (read_file_name_completion_ignore_case): New variable.
13442 (syms_of_fileio): Declare and initialise it.
13443 (Fread_file_name): Bind `completion-ignore-case' to respect it.
13444
2a1a35c6
EZ
134452004-07-03 Eli Zaretskii <eliz@gnu.org>
13446
13447 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
13448 for event.x and event.y.
13449
33a72331
KH
134502004-07-01 Kenichi Handa <handa@m17n.org>
13451
13452 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
13453 after getting a new string by pre-write-conversion.
13454
9238467d 134552004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
13456
13457 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
13458 (x_calc_absolute_position): Remove unused var `child'.
13459
13460 * xfaces.c (x_supports_face_attributes_p)
13461 (Fdisplay_supports_face_attributes_p): YAILOM.
13462 (tty_supports_face_attributes_p): Remove unused var `i'.
13463
13464 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
13465 back_unibyte_ok.
13466
13467 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
13468
647b07d1
AS
13469 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
13470 `registry'.
07a6ab76
SM
13471
13472 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
13473
f96ec754
AS
134742004-06-30 Andreas Schwab <schwab@suse.de>
13475
13476 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
13477 (Finit_image_library): Pass LIBRARIES through to
13478 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
13479 (lookup_image_type): Pass Qnil as second argument to
13480 Finit_image_library.
13481
78819ebb 13482 * lisp.h (Finit_image_library): Declare.
f96ec754 13483
59feca74 134842004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 13485
31983645
AS
13486 * macterm.c (do_window_activate, do_window_deactivate): Remove.
13487 (XTread_socket): Send mouse button events to the toolbox
13488 dispatcher even when the mouse is grabbed. Don't process window
5e1a6e32 13489 activate events for non-Emacs windows. Replace function calls to
31983645
AS
13490 do_window_activate and do_window_deactivate with their contents.
13491 Reset mouse grabbing status when a window is deactivated.
59feca74 13492
c61278bb
ST
134932004-06-29 Steven Tamm <steventamm@mac.com>
13494
13495 * macterm.c (mac_get_emulated_btn)
13496 (mac_event_to_emacs_modifiers): Fix emulated mouse button
13497 support to correctly mask out modifiers.
13498
c3762cbd
DK
134992004-06-29 David Kastrup <dak@gnu.org>
13500
13501 * search.c (Fset_match_data): Allow buffer before end of list
13502 which can happen if set-match-data is using a pre-consed list.
13503
c61278bb 135042004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
13505
13506 * macterm.c (XTread_socket): Correctly set the frame position
13507 after the window is moved.
13508
74cdfe05
JD
135092004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13510
13511 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
13512 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
13513 (xg_get_image_for_pixmap): Add workaround for monochrome displays
13514 so insensitive and activated icons look ok.
74cdfe05 13515
ef544dc8
JR
135162004-06-27 Jason Rumney <jasonr@gnu.org>
13517
13518 * w32fns.c (file_dialog_callback): Disable edit control if set
13519 to directories only on CDN_INITDONE message.
13520 (Fx_file_dialog): Default to directories only when prompt starts
13521 with "Dired".
13522
7b7990cc
KS
135232004-06-25 Kim F. Storm <storm@cua.dk>
13524
13525 * alloc.c (allocate_misc): Update total_free_markers.
13526 (free_misc): New function.
13527 (safe_alloca_unwind, free_marker): Use it.
13528
13529 * lisp.h (free_misc): Add prototype.
13530
13531 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
13532
d8c379f8
RS
135332004-06-24 Richard M. Stallman <rms@gnu.org>
13534
13535 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
13536 (syms_of_emacs): Lisp variables deleted.
13537
559cdd07
DK
135382004-06-23 David Kastrup <dak@gnu.org>
13539
94939b84
DK
13540 * search.c (Freplace_match): Adjust the match-data more thoroughly
13541 when replacing strings in the buffer.
13542 (Fmatch_data): When INTEGERS is non-nil and the last match was in
13543 a buffer, add the buffer as last element to the match data.
13544 (Fset_match_data): If an additional element of the match-data is a
13545 buffer, restore it to last_thing_searched.
c8d09ad8 13546 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
13547 (restore_match_data): Restore it again.
13548
dce417e7
LT
135492004-06-23 Luc Teirlinck <teirllm@auburn.edu>
13550
13551 * keymap.c (Ftext_char_description): Doc fix.
13552 * doc.c (Fsnarf_documentation): Doc fix.
13553
ef54b2d0
KS
135542004-06-22 Kim F. Storm <storm@cua.dk>
13555
b5bc4d05
KS
13556 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
13557
ef54b2d0
KS
13558 * lisp.h (struct Lisp_Save_Value): New member dogc.
13559 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
13560 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
13561 (SAFE_FREE_LISP): New macro.
13562
13563 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
13564 (make_save_value): Init new dogc member.
13565 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
13566
13567 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
13568 SAFE_FREE_LISP macros.
13569
3d33d993
KS
135702004-06-22 Kim F. Storm <storm@cua.dk>
13571
13572 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
13573 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
13574 in that memory area are unknown to GC. Add comments.
13575
13576 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
13577
5c917f98
KS
135782004-06-21 Kim F. Storm <storm@cua.dk>
13579
13580 * lisp.h (MAX_ALLOCA): Define here.
13581 (safe_alloca_unwind): Add prototype.
13582 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
13583
13584 * alloc.c (safe_alloca_unwind): New function.
13585
13586 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
13587
13588 * charset.c (Fstring): Use SAFE_ALLOCA.
13589
13590 * coding.c (MAX_ALLOCA): Remove define.
13591
13592 * data.c (MAX_ALLOCA): Remove define.
13593 (Faset): Use SAFE_ALLOCA.
13594
13595 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
13596
13597 * fns.c (string_make_multibyte, string_to_multibyte)
13598 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
13599 (MAX_ALLOCA): Remove define.
13600 (Fbase64_encode_region, Fbase64_encode_string)
13601 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
13602 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
13603 memory leak if encoding fails.
13604
13605 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
13606
9a09408e
EZ
136072004-06-21 Eli Zaretskii <eliz@gnu.org>
13608
13609 * print.c (Fwith_output_to_temp_buffer): Doc fix.
13610
376de739
RS
136112004-06-20 Richard M. Stallman <rms@gnu.org>
13612
13613 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
13614
13615 * search.c (match_limit): Cleaner err msg when no match data available.
13616
13617 * window.c (syms_of_window): Doc fix.
13618
13619 * keyboard.c (command_loop_1): Handle values `only' and `identity'
13620 for Vtransient_mark_mode.
13621
13622 * buffer.c (syms_of_buffer): Doc fix.
13623
acd81db9
DK
136242004-06-21 David Kastrup <dak@gnu.org>
13625
13626 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
13627 and unbinding of `case-fold-search' according to
13628 `completion-ignore-case' around calls of string-match and
13629 predicates, respectively. Should give satisfactory performance
13630 in all relevant cases.
13631
f303762d
JD
136322004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13633
95911c74
JD
13634 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
13635 clip_x/y_origin.
13636
a6cb6b78
JD
13637 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
13638
f303762d
JD
13639 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
13640
13641 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
13642 on Mac OSX.
13643
bbdb2684
LT
136442004-06-16 Luc Teirlinck <teirllm@auburn.edu>
13645
13646 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
13647
5ea48b1c
KS
136482004-06-16 Kim F. Storm <storm@cua.dk>
13649
13650 * dispextern.h (Vimage_types): Remove extern.
13651
803aac3e
MB
136522004-06-16 Miles Bader <miles@gnu.org>
13653
13654 * image.c (lookup_image_type): Initialize image type if necessary.
13655
cdc97764
KS
136562004-06-15 Kim F. Storm <storm@cua.dk>
13657
c4a5739c
KS
13658 * xdisp.c (try_cursor_movement): Exclude header line from scroll
13659 margin at top of window.
13660 (try_window_reusing_current_matrix): Calculate proper cursor position
13661 after scrolling up with non-zero scroll margin, as the old cursor
13662 position corresponds to value of PT before executing this command.
13663 (try_window_id): Consider scroll margin at bottom of window too;
13664 otherwise we fail to scroll when hl-line-mode is enabled.
13665
cdc97764
KS
13666 * syntax.c (skip_chars): Only recognize [:class:] when it has the
13667 proper format and class is a lower-case word.
13668
5b166323
JD
136692004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13670
13671 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 13672 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
13673 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
13674 xg_get_gdk_pixmap_and_mask.
cdc97764 13675
5b166323
JD
13676 * xterm.h (struct x_display_info): Typo in comment fixed.
13677
1ebd4f78
JB
136782004-06-14 Juanma Barranquero <lektu@terra.es>
13679
13680 * dispextern.h (Vimage_types): Make it conditional on
13681 HAVE_WINDOW_SYSTEM.
13682
13683 * image.c (Vimage_types): Move from xdisp.c.
13684 (Vimage_type_cache): New variable.
13685 (define_image_type): New argument indicating whether an image
13686 library was loaded; cache loaded status and return t on success,
13687 nil otherwise.
13688 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
13689 (w32_delayed_load): New function to load an image library from a
13690 list of possible filenames.
13691 (init_xpm_functions, init_png_functions, init_jpeg_functions)
13692 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 13693 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
13694 (Finit_image_library): New function, extracted from `init_image'.
13695 Try to initialize an image library on demand and cache whether we
13696 were successful or not.
13697 (syms_of_image): Initialize `Vimage_types' and
13698 `Vimage_type_cache'. Add recognized image types to Vimage_types.
13699 Export `init-image-library'.
13700 (init_image): Remove initialization of all image types, except xbm
13701 and pbm.
13702
13703 * xdisp.c (Vimage_types): Delete (moved to image.c).
13704
904ee128
AS
137052004-06-14 Andreas Schwab <schwab@suse.de>
13706
13707 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
13708 Avoid calling specbind when completion-regexp-list is empty.
13709
092de21d
RS
137102004-06-13 Richard M. Stallman <rms@gnu.org>
13711
13712 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
13713 (re_wctype, re_iswctype, re_wctype_to_bit):
13714 Non-function definitions moved here from regex.c.
1ebd4f78 13715
092de21d
RS
13716 * regex.c (re_wctype, re_iswctype): Function defs longer static.
13717 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
13718 (re_wctype, re_iswctype, re_wctype_to_bit):
13719 Non-function definitions moved to regex.h.
13720
13721 * window.c (Fselect_window): Doc fix.
13722
13723 * syntax.c: Include regex.h.
13724 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
13725 If requested, make a list of classes, then check the scanned
13726 chars for membership in them.
13727 (in_classes): New function.
13728 Doc fix.
13729
13730 * keyboard.c (cmd_error): Don't call any_kboard_state
13731 if inside a recursive edit level.
13732
d495ccfc 137332004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
092de21d
RS
13734
13735 * keyboard.c (command_loop): Call any_kboard_state before
13736 command_loop_2 when at top level.
13737
3ebc0939
AS
137382004-06-13 Andreas Schwab <schwab@suse.de>
13739
cea5d0d4
AS
13740 * print.c (print_object): Always use %ld for printing EMACS_INT.
13741
13742 * keyboard.c (cancel_hourglass_unwind): Return a value.
13743 (modify_event_symbol): Always use %ld for printing EMACS_INT.
13744 (Fexecute_extended_command): Likewise.
13745
13746 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
13747 avoid clashes.
13748 (SYNTAX): Likewise.
13749 (SYNTAX_WITH_FLAGS): Likewise.
13750 (SYNTAX_MATCH): Likewise.
13751
13752 * syntax.c (char_quoted): Avoid warning about undefined operation.
13753 (find_defun_start): Likewise.
13754 (scan_lists): Likewise.
13755 (INC_FROM): Likewise.
13756 (scan_sexps_forward): Likewise.
13757
be8c4ce4
AS
13758 * image.c: Include <ctype.h>.
13759
3ebc0939
AS
13760 * xfaces.c (face_attr_equal_p): Declare parameters.
13761
6fb41b5b
KH
137622004-06-13 Kenichi Handa <handa@m17n.org>
13763
13764 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
13765
fc3095ce
EZ
137662004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
13767
13768 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
13769
66189a40
KH
137702004-06-12 Kenichi Handa <handa@m17n.org>
13771
13772 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
13773 ccl_prog_stack_struct and update it.
13774 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
13775 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
13776 ccl->eof_ic on EOF.
13777 (ccl_debug_hook): New function.
13778 (struct ccl_prog_stack): New member eof_ic.
13779 (ccl_driver): Handle EOF in subrountine call correctly.
13780
137812004-06-11 Kenichi Handa <handa@m17n.org>
13782
a9b43336 13783 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 13784
1da71023
KS
137852004-06-11 Kim F. Storm <storm@cua.dk>
13786
13787 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
13788
e9efcef4
JB
137892004-06-11 Juanma Barranquero <lektu@terra.es>
13790
13791 * keyboard.c (Fposn_at_point): Doc fix.
13792
9b9ceb61
DK
137932004-06-11 David Kastrup <dak@gnu.org>
13794
13795 * search.c (match_limit): Don't flag an error if match-data
13796 exceeding the allocated search_regs.num_regs gets requested, just
13797 return Qnil.
13798
6e87ac8f
MB
137992004-06-08 Miles Bader <miles@gnu.org>
13800
13801 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
13802
0b0dea7b
JB
138032004-06-07 Juanma Barranquero <lektu@terra.es>
13804
13805 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
13806 (Fcurrent_time_string, Fcurrent_time_zone)
13807 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
13808
a0a23346
MB
138092004-06-07 Miles Bader <miles@gnu.org>
13810
08384afd 13811 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
13812 (push_named_merge_point): New function.
13813 (merge_named_face): New function.
13814 (merge_face_ref, face_at_buffer_position, face_at_string_position):
13815 Use `merge_named_face'.
13816 (merge_face_inheritance): Function removed.
c8d09ad8 13817 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
13818 Add new `err_msgs' and `named_merge_points' args. Return error
13819 status. Only print error messages if ERR_MSGS is true. Don't try to
13820 do :inherit attribute validation.
13821 (merge_face_heights): Handle `unspecified' in both directions.
13822 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
13823 Call `merge_face_ref' instead of `merge_face_inheritance'.
13824 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
13825 (compute_char_face, face_at_buffer_position)
13826 (face_at_string_position): Call `merge_face_ref' instead of
13827 `merge_face_vector_with_property'.
13828
12d5b185
KH
138292004-06-07 Kenichi Handa <handa@m17n.org>
13830
13831 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
13832 the necessary places.
13833
2e2d7ee6
KS
138342004-06-07 Kim F. Storm <storm@cua.dk>
13835
13836 * process.c (Fdelete_process): Undo 2004-05-28 change.
13837 Instead, call status_notify also for network process.
13838 (status_message): Use process instead of status as arg.
13839 Give messages "deleted" or "connection broken by remote peer" for
13840 an exited network process.
13841 (status_notify): Change call to status_message.
13842 (read_process_output): Increase readmax to 4096. Do not increase
13843 buffer size for datagram channels (default is now large enough).
13844
fcf0d299
ST
138452004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
13846
13847 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
13848 problem due to newly defined variable.
13849
0722292b
MB
138502004-06-06 Miles Bader <miles@gnu.org>
13851
13852 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
13853 immediately if non-interactive or not initialized.
13854
ddfb8369
RS
138552004-06-05 Richard M. Stallman <rms@gnu.org>
13856
13857 * minibuf.c (Fcompleting_read): Doc fix.
13858
57015754
AS
138592004-06-05 Andreas Schwab <schwab@suse.de>
13860
13861 * macfns.c (x_create_tip_frame): Fix declaration after statement.
13862
23715ea6
JB
138632004-06-05 Juanma Barranquero <lektu@terra.es>
13864
13865 * keymap.c (Fdescribe_vector): Fix docstring.
13866 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
13867
8e330b22
MB
138682004-06-05 Miles Bader <miles@gnu.org>
13869
13870 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
13871 attributes have different values than the default face.
13872
9742a3a6
EZ
138732004-06-04 Eli Zaretskii <eliz@gnu.org>
13874
13875 * xfaces.c (x_supports_face_attributes_p): Make this function
13876 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
13877 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
13878 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 13879
9717e36c
MB
138802004-06-04 Miles Bader <miles@gnu.org>
13881
13882 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
13883 from Ftty_supports_face_attributes_p.
13884 (x_supports_face_attributes_p): New function.
13885 (Ftty_supports_face_attributes_p): Function deleted.
13886 (Fdisplay_supports_face_attributes_p): New function.
13887 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 13888 (face_attr_equal_p): New function.
9717e36c
MB
13889 (lface_equal_p): Use it.
13890
52deb19f
JB
138912004-06-03 Juanma Barranquero <lektu@terra.es>
13892
13893 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
13894 (Vw32_color_map): Fix typo in docstring.
13895 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
13896 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
13897 Make argument names match their use in docstring.
13898
86d373e6
JB
138992004-06-02 Juanma Barranquero <lektu@terra.es>
13900
13901 Work around bugs/problems with MinGW builds of graphics libraries
13902 called from MSVC builds of Emacs.
13903
13904 * image.c (lookup_image): Make pointer to img static.
13905 (png_read_from_memory): Disable "global" optimization.
13906
2fb0ce67
SM
139072004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
13908
c8d09ad8
SM
13909 * eval.c (Fcondition_case): Fix usage. Simplify.
13910
2fb0ce67
SM
13911 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
13912
50bf7673
ST
139132004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13914
13915 * macfns.c: Don't include ccl.h.
13916 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
13917 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
13918 TextUtils.h.
c8d09ad8 13919 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
13920 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
13921 display height/width.
13922 (compute_tip_xy, Vx_max_tooltip_size): Declare.
13923 (unwind_create_tip_frame, compute_tip_xy): New functions.
13924 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
13925 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
13926 and last_show_tip_args.
2fb0ce67 13927
50bf7673
ST
13928 * macgui.h [!MAC_OSX]: Include Gestalt.h.
13929 (Cursor, No_Cursor): New defines.
c8d09ad8 13930 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
13931 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
13932
13933 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
13934
13935 * macterm.c: Don't include Gestalt.h.
13936 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
13937 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
13938 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
13939 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
13940 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
13941 (construct_mouse_click, XTmouse_position)
13942 (x_scroll_bar_report_motion, x_calc_absolute_position)
13943 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
13944 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
13945 (note_mouse_movement): Clear the mouse face and reset the pointer
13946 shape when the pointer goes outside the frame without grabbing.
13947 (mac_front_window): New function.
13948 (mac_window_to_frame): New macro.
13949 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
13950 (do_window_activate, do_window_deactivate, do_app_resume)
13951 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
13952 (do_zoom_window, mac_do_receive_drag, XTread_socket)
13953 (mac_check_for_quit_char): Use mac_front_window and/or
13954 mac_window_to_frame.
13955 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
13956 scroll-bar click event.
13957 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
13958 (x_free_frame_resources): Reset tip_window to NULL when it is
13959 disposed of.
50bf7673 13960 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 13961 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
13962 (do_window_update): Don't do anything if the updated window is the
13963 tooltip window.
13964 (do_mouse_moved): Handle mouse movement events here (previously in
13965 XTread_socket). Clear the mouse face if
13966 dpyinfo->mouse_face_hidden is set.
13967 (do_os_event, do_events): Remove (now in XTread_socket).
13968 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
13969 Loop until all the events in the queue are processed.
13970 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
13971 contents of do_os_event and do_events. Remove mouse movement
13972 handling (now in do_mouse_moved). Add the case where
13973 Vmouse_highlight has an integer value.
13974 (NewMacWindow): Remove.
13975 (make_mac_frame): Do what NewMacWindow previously did. Don't do
13976 excess initializations.
13977 (make_mac_terminal_frame): Previous initializations in
13978 make_mac_frame are moved here.
c8d09ad8
SM
13979 (mac_initialize_display_info):
13980 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
13981
13982 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
13983 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
13984
08fd1251
RS
139852004-05-29 Richard M. Stallman <rms@gnu.org>
13986
13987 * lisp.h (truncate_undo_list): Update decl.
13988
13989 * alloc.c (undo_outer_limit): New variable.
13990 (syms_of_alloc): Defvar it.
13991 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
13992
13993 * undo.c (truncate_undo_list): New arg LIMITSIZE.
13994
13995 * alloc.c (lisp_align_malloc): Check for base == 0
13996 regardless of HAVE_POSIX_MEMALIGN.
13997 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
13998
227ef0ff
SM
139992004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14000
14001 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
14002 (marker_blocks_pending_free): Remove.
14003 (Fgarbage_collect): Sweep after cleaning up undo-lists.
14004 Mark the undo lists after claning them up.
14005 Don't free block in marker_blocks_pending_free.
14006 (mark_buffer): Don't mark undo_list.
14007 (gc_sweep): Sweep hash-tables and strings first.
14008 Do free marker blocks that are empty.
14009
034a6113
SM
140102004-05-28 Jim Blandy <jimb@redhat.com>
14011
14012 * regex.c (print_partial_compiled_pattern): Add missing 'break'
14013 after 'case wordend'. For symbeg and symend, print to stderr,
14014 like the other cases.
14015
33594a8d
NF
140162004-05-28 Noah Friedman <friedman@splode.com>
14017
14018 * process.c (Fdelete_process): Do not call remove_process.
14019
ce50a847
SM
140202004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14021
14022 * alloc.c (struct backtrace): Remove.
14023 (Fgarbage_collect): Use the new mark_backtrace.
14024
14025 * eval.c (mark_backtrace): New function.
14026
14027 * minibuf.c (run_exit_minibuf_hook): New function.
14028 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
14029 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
14030
1e8dae36
KS
140312004-05-27 Kim F. Storm <storm@cua.dk>
14032
14033 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
14034 over display properties, e.g. images, that replace buffer text.
14035
846faa3b
KS
140362004-05-25 Kim F. Storm <storm@cua.dk>
14037
14038 * alloc.c (marker_blocks_pending_free): New var.
14039 (gc_sweep): Store free marker blocks on that list.
14040 (Fgarbage_collect): Free them after undo-list cleanup.
14041
14042 * process.c (wait_reading_process_input): Check connect_wait_mask
14043 before actually accepting connection in case it has already been
14044 accepted due to recursion.
14045
d495ccfc 140462004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
6239a668 14047
ce50a847
SM
14048 * coding.c (Fset_safe_terminal_coding_system_internal):
14049 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 14050
71d5a208
RS
140512004-05-22 Richard M. Stallman <rms@gnu.org>
14052
14053 * alloc.c (Fmake_string): Doc fix.
14054
14055 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
14056 and the alist pairs too.
14057
14058 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
14059
51391fb9
RF
14060 * emacs.c (main): Update copyright year.
14061
71d5a208
RS
14062 * fileio.c (Fread_file_name): Expand DIR if not absolute.
14063
14064 * insdel.c (del_range_2, replace_range): Don't write an anchor
14065 if the gap is empty.
14066
14067 * xdisp.c (try_scrolling): If scroll-up-aggressively or
14068 scroll-down-aggressively is small but positive, put point
14069 near the screen edge.
14070
f63fd14e
JB
140712004-05-22 Juanma Barranquero <lektu@terra.es>
14072
14073 * keymap.c (Fdefine_key): Doc fix.
14074
4d12067c
KS
140752004-05-22 Kim F. Storm <storm@cua.dk>
14076
14077 * alloc.c (struct backtrace): Add debug_on_exit member.
14078 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
14079 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
14080 the removed cons cells.
14081 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
14082 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
14083 any cons cells pointing to unallocated stings.
14084 Do not lisp_free any marker blocks, as there may still be pointers
14085 to them from buffer undo lists at this stage of GC.
14086
14087 * keyboard.c (struct backtrace): Add debug_on_exit member.
14088 (Fcommand_execute): Clear it.
14089
931285e2
LT
140902004-05-20 Luc Teirlinck <teirllm@auburn.edu>
14091
14092 * intervals.c (lookup_char_property): Do not prematurely return nil.
14093
669fa600
SM
140942004-05-19 Jim Blandy <jimb@redhat.com>
14095
14096 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 14097 beginning and end of symbols.
4d12067c 14098
669fa600
SM
14099 * regex.c (enum syntaxcode): Add Ssymbol.
14100 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
14101 (re_opcode_t): New opcodes `symbeg' and `symend'.
14102 (print_partial_compiled_pattern): Print the new opcodes properly.
14103 (regex_compile): Parse the new operators.
ce50a847 14104 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
14105 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
14106 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
14107 (re_match_2_internal): Match symbeg and symend.
14108
14109 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
14110
0d8c2e5c
KS
141112004-05-19 Kim F. Storm <storm@cua.dk>
14112
14113 * .gdbinit (xsymbol): Fix last change.
14114
669fa600
SM
141152004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
14116
14117 * .gdbinit (xprintstr): New fun.
14118 (xstring, xprintsym): Use it.
14119
14120 * w32proc.c (create_child): Use INTMASK.
14121
14122 * alloc.c (Fgarbage_collect): Do all the marking before flushing
14123 unmarked elements of the undo list.
14124
9a6a4c40
DP
141252004-05-18 David Ponce <david@dponce.com>
14126
14127 * print.c (print): Reset print_depth before to call print_object.
14128
f3c4ec74
JR
141292004-05-18 Jason Rumney <jasonr@gnu.org>
14130
14131 * w32console.c: Prefix RIF functions with w32con_ to avoid
14132 namespace clash with functions in term.c and w32term.c.
14133
14134 * w32menu.c (add_menu_item, w32_menu_display_help)
14135 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
14136
0d8c2e5c 14137 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 14138
6be49c3a
EZ
141392004-05-18 Eli Zaretskii <eliz@gnu.org>
14140
4d0b9a0a
EZ
14141 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
14142
6be49c3a
EZ
14143 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
14144 with make_number.
14145 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
14146 with XINT.
14147
0bc90bba
KS
141482004-05-18 Kim F. Storm <storm@cua.dk>
14149
89d19988
KS
14150 * blockinput.h (INPUT_BLOCKED_P): New macros.
14151
14152 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
14153 (Ftop_level): Unblock input if blocked.
14154
0bc90bba
KS
14155 * buffer.h (GET_OVERLAYS_AT): New macro.
14156 * msdos.c (IT_note_mouse_highlight): Use it.
14157 * textprop.c (get_char_property_and_overlay): Use it.
14158 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
14159 * xfaces.c (face_at_buffer_position): Use it.
14160
14161 * print.c (print_object): Increase buf size.
14162
653bd0f6
JR
141632004-05-17 Jason Rumney <jasonr@gnu.org>
14164
14165 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
14166 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
14167 Lisp_Object using i member.
14168 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
14169 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
14170 consistently.
14171
14172 * w32proc.c (create_child): Use make_number instead of masking pid.
14173
14174 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
14175 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
14176 Use EQ to compare Lisp_Objects.
14177 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
14178
14179 * w32term.c (w32_num_mouse_buttons): Rename from
14180 Vw32_num_mouse_buttons and make it an int.
14181
14182 * w32.c (init_environment): Use it.
14183
14184 * w32fns.c (w32_wnd_proc): Likewise.
14185
14186 * w32proc.c (w32_pipe_read_delay): Rename from
14187 Vw32_pipe_read_delay and make it an int.
14188
14189 * w32.c (_sys_read_ahead): Use it.
14190
14191 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
14192
14193 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
14194
14195 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
14196 (key_event): Don't mix Lisp_Object and int.
14197
14198 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
14199
14200 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
14201 modifiers in language change event.
14202
54b53ba7
KS
142032004-05-17 Kim F. Storm <storm@cua.dk>
14204
14205 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
14206 Such objects may be freed markers which still exist on an undo list.
14207
6e86a75d
JB
142082004-05-16 Juanma Barranquero <lektu@terra.es>
14209
14210 * data.c (Fset_default): Make argument names match their use in
14211 docstring.
14212
fc80da24
AS
142132004-05-15 Andreas Schwab <schwab@suse.de>
14214
14215 * emacs.c (gdb_array_mark_flag): Define.
14216 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
14217
c1380aa6
EZ
142182004-05-15 Eli Zaretskii <eliz@gnu.org>
14219
14220 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
14221 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
14222 defined for the MS-DOS build.
14223
89458937
SM
142242004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
14225
14226 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
14227
08020f9a
KH
142282004-05-14 Kenichi Handa <handa@m17n.org>
14229
14230 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
14231
a433994a
ST
142322004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14233
14234 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
14235 section to frame.c section.
14236 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 14237 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 14238
a433994a 14239 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 14240
a433994a 14241 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 14242
a433994a
ST
14243 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
14244 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
14245 (XTread_socket): Fix int/Lisp_Object mixup.
14246 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 14247
a433994a
ST
14248 * macterm.h (struct frame, struct face, struct image)
14249 (display_x_get_resource, Fx_display_color_p)
89458937
SM
14250 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
14251 Add prototypes.
a433994a 14252
b51a51b9
KS
142532004-05-14 Kim F. Storm <storm@cua.dk>
14254
14255 * process.c (wait_reading_process_input): Make reentrant.
14256 Make Available and Connecting non-static. Save and restore value
14257 of waiting_for_user_input_p.
14258
2bde1dd8
KS
142592004-05-13 Kim F. Storm <storm@cua.dk>
14260
14261 * keyboard.c (mark_kboards): Don't mark x and y members
14262 that are overloaded in selection request events.
14263
a267ab4d
SM
142642004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14265
14266 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
14267
eb15ce9e
GM
142682004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
14269
14270 * window.c (Fdisplay_buffer, Fsplit_window)
14271 (split-height-threshold): Doc fix.
14272
7fc92635
JB
142732004-05-13 Juanma Barranquero <lektu@terra.es>
14274
14275 * xfaces.c (Ftty_supports_face_attributes_p)
14276 (Finternal_copy_lisp_face): Fix typo in docstring.
14277 (Finternal_get_lisp_face_attribute): Fix docstring.
14278
1ec2a572
JD
142792004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14280
14281 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
14282
ae9292e0
ST
142832004-05-11 Steven Tamm <steventamm@mac.com>
14284
14285 * macfns.c (Fx_create_frame): Default to using tool-bar by
14286 setting tool-bar-lines to 1 in default-frame-alist.
14287
142882004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
14289
14290 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
14291 (xpm_get_color_table_v, xpm_make_color_table_h)
14292 (xpm_put_color_table_h, xpm_get_color_table_h)
14293 (xpm_str_to_color_key, xpm_load_image, xpm_load)
14294 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 14295 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 14296
fe97e8df
ST
142972004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14298
a267ab4d 14299 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
14300 instead of FRAME_X_P
14301
b47e779e
KS
143022004-05-11 Kim F. Storm <storm@cua.dk>
14303
14304 * process.c (read_process_output): Grow decoding_buf when needed;
14305 this could cause a crash in allocate_string and compact_small_strings.
14306
cdc9b845
EZ
143072004-04-29 Jim Blandy <jimb@redhat.com>
14308
14309 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
14310 against proper opcode.
14311
aa7094ba
JB
143122004-05-10 Juanma Barranquero <lektu@terra.es>
14313
14314 * process.c (Fstart_process): Fix docstring.
14315
14316 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
14317 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
14318 (Fsplit_char, Fchar_charset): Make argument names match their use
14319 in docstring.
14320
e109331a
RS
143212004-05-10 Richard M. Stallman <rms@gnu.org>
14322
14323 * print.c (print_preprocess): Use being_printed, loop_count and
14324 halftail to detect overdeep nesting and cyclic cdr chains.
14325
9a28b921
AS
143262004-05-10 Andreas Schwab <schwab@suse.de>
14327
78819ebb 14328 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
14329
14330 * fileio.c (Frename_file): Remove extra argument in call to
14331 Fmake_symbolic_link.
14332
e2c02c1a
KS
143332004-05-10 Kim F. Storm <storm@cua.dk>
14334
14335 * xdisp.c (calc_line_height_property): Use string position when
14336 object is a string.
14337
cfe9d13e
KH
143382004-05-10 Kenichi Handa <handa@m17n.org>
14339
a57e8159
KH
14340 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
14341 inhibit-modification-hooks to t temporarily before calling
14342 Ferase_buffer.
14343
14344 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
14345 inhibit-modification-hooks to t temporarily before calling
14346 Ferase_buffer.
14347
14348 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
14349 inhibit-modification-hooks to t temporarily before calling
14350 Ferase_buffer.
14351
cfe9d13e
KH
14352 * fns.c (count_combining): Delete it.
14353 (concat): Don't check combining bytes.
14354
ceb96489
JR
143552004-05-09 Jason Rumney <jasonr@gnu.org>
14356
14357 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
14358 (globals_of_w32fns): Set it.
14359
b6189c3b 143602004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
14361
14362 * data.c (Fquo): Simplify.
14363
28712a21
JB
143642004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
14365
14366 * data.c (Fquo): If any argument is float, do the computation in
14367 floating point.
14368
0f0af7a8
JB
143692004-05-08 Juanma Barranquero <lektu@terra.es>
14370
88214ef6
JB
14371 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
14372 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
14373 Fix spelling of Emacs on docstring.
14374 (Fset_process_coding_system, Fprocess_coding_system)
14375 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
14376 Make argument names match their use in docstring.
14377 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
14378 Fix docstring.
14379
0f0af7a8
JB
14380 * editfns.c (Finsert_buffer_substring): Make argument names match their
14381 use in docstring.
14382
14383 * syntax.c (Fmodify_syntax_entry): Fix docstring.
14384
2a316a84
ST
143852004-05-07 Steven Tamm <steventamm@mac.com>
14386
14387 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
14388 around call to ReceiveEvent to avoid certain crashes.
14389
143902004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 14391
2a316a84
ST
14392 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
14393 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
14394 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
14395 Save/restore the current graphics port and device handle when
14396 drawing into an offscreen graphics world.
14397
14398 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
14399 (gif_load): Likewise.
14400
ab80314b
JB
144012004-05-07 Juanma Barranquero <lektu@terra.es>
14402
14403 * window.c (Fset_window_buffer): Fix docstring.
14404
70646bb5
TTN
144052004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
14406
14407 * emacs.c (main) [VMS]: Fix var ref.
14408
b6189c3b 144092004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
14410
14411 * data.c (Fsetq_default): Fix docstring.
14412
279d3293
JR
144132004-05-06 Jason Rumney <jasonr@gnu.org>
14414
14415 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
14416 to avoid name clash.
14417
f72b5416
JD
144182004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14419
14420 * fileio.c (barf_or_query_if_file_exists): Use lstat.
14421 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 14422 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 14423
6ab66799
KS
144242004-05-04 Kim F. Storm <storm@cua.dk>
14425
14426 * xdisp.c (Qtotal): New var.
14427 (syms_of_xdisp): Intern and staticpro it.
14428 (calc_line_height_property): New arg total. Set it if
14429 line-spacing property has format (total . VALUE).
14430 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
14431 Handle total line-spacing property.
14432
ab2d724b
JD
144332004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14434
14435 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
14436 "under" scroll bar when size/position changes.
14437
238add5e
JR
144382004-05-03 Jason Rumney <jasonr@gnu.org>
14439
14440 * makefile.nt: Remove.
14441
1644f4e4
EZ
144422004-05-02 Eli Zaretskii <eliz@gnu.org>
14443
a267ab4d
SM
14444 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
14445 Avoid compiler warnings.
05fdbeb8 14446
1644f4e4
EZ
14447 * Makefile.in (region-cache.o): Depend on config.h.
14448
b6189c3b 144492004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
14450
14451 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
14452 with continuation lines, too.
14453
2b98b088
TTN
144542004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
14455
14456 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
14457
d9bf7950
SM
144582004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
14459
14460 * xdisp.c (calc_line_height_property): YAILOM (yet another
14461 int/Lisp_Object mixup).
14462
affa509c
EZ
144632004-05-01 Eli Zaretskii <eliz@gnu.org>
14464
14465 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
14466 undo bad effect of pack(4) in some versions of system headers.
14467
07c07cfe
JR
144682004-05-01 Jason Rumney <jasonr@gnu.org>
14469
14470 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
14471
e71caa4e
KS
144722004-04-30 Kim F. Storm <storm@cua.dk>
14473
14474 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 14475 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
14476
14477 * dispextern.h (struct it): Remove member use_default_face.
14478 Add members override_ascent, override_descent, override_boff.
14479
14480 * xdisp.c (init_iterator): Handle line-spacing float value.
14481 Initialize override_ascent member.
14482 (append_space_for_newline): Reset override_ascent.
14483 Remove use_default_face.
14484 (calc_line_height_property): New function to calculate value of
14485 line-height and line-spacing properties. Look at overlays, too.
14486 Set override_ascent, override_descent, override_boff members when
14487 using another face than the current face. Float values are now
14488 relative to the frame default font, by default; accept a cons
14489 of ratio and face name to specify value relative to a specific face.
14490 (x_produce_glyphs): Use calc_line_height_property.
14491 Use override_ascent etc. when set to handle different face heights.
14492 A negative line-spacing property value is interpreted as a total
14493 line height, rather than inter-line spacing.
14494 (note_mouse_highlight): Allocate room for 40 overlays initially.
14495
0fddae66
SM
144962004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
14497
14498 * data.c (Fsubr_name): New fun.
14499 (syms_of_data): Defsubr it.
14500
712d23dc
KS
145012004-04-29 Kim F. Storm <storm@cua.dk>
14502
14503 * xdisp.c (null_glyph_slice): New var.
14504 (append_glyph, append_composite_glyph, append_stretch_glyph):
14505 Use it to initialize glyph slice.
14506
033ad8c6
SM
145072004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
14508
14509 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
14510 (on_hot_spot_p): Make sure we always return a value.
14511 (Flookup_image_map): Remove unused var ix and iy.
14512 (note_mode_line_or_margin_highlight): Remove unused var `image'.
14513
93397360
EZ
145142004-04-27 Eli Zaretskii <eliz@gnu.org>
14515
14516 * msdos.c (init_environment): If one of the TMP... environment
14517 variables is set to a drive letter without a trailing slash,
14518 append a slash.
14519
0c54865e
EZ
145202004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
14521
14522 * editfns.c (lisp_time_argument): Provide externally.
14523
14524 * fileio.c (Fset_file_times): New function.
14525 (syms_of_fileio): Intern and staticpro it.
14526
d3b111bd
KS
145272004-04-27 Kim F. Storm <storm@cua.dk>
14528
07dc1231
KS
14529 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
14530 header line strings.
14531
360fe9d2
KS
14532 * dispextern.h (struct it): New member use_default_face.
14533
d3b111bd
KS
14534 * xdisp.c (Qline_height): New variable.
14535 (syms_of_xdisp): Intern and staticpro it.
14536 (append_space_for_newline): Partially undo 2004-04-25 change;
14537 add default_face_p arg, and restore callers.
14538 Clear it->use_default_face after use.
14539 (x_produce_glyphs): Set default font for ascii char if
14540 it->use_default_font is set. Change line-spacing property to set
14541 just extra line spacing. Handle new line-height property.
14542
0448588b
AS
145432004-04-26 Andreas Schwab <schwab@suse.de>
14544
14545 * print.c (print_object): Print non-ascii characters in bool
14546 vector representation as octal escapes.
14547
14548 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
14549 * print.c (print_object): Use it instead of BITS_PER_CHAR for
14550 bool vectors.
14551 * lread.c (read1): Likewise.
14552 * alloc.c (Fmake_bool_vector): Likewise.
14553 * data.c (Faref, Faset): Likewise.
14554 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
14555 (mapcar1): Likewise.
d3b111bd 14556
536d6baa
ST
145572004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
14558
7e26f91b 14559 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 14560
ae11577a
MB
145612004-04-26 Miles Bader <miles@gnu.org>
14562
14563 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
14564
e198ba87
JB
145652004-04-26 Juanma Barranquero <lektu@terra.es>
14566
14567 * buffer.c (Fpop_to_buffer): Fix docstring.
14568
f3d5f92d 145692004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 14570
f3d5f92d
ST
14571 * lread.c (init_lread): Don't display missing lisp directory
14572 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 14573 may be built without correct installation path.
f3d5f92d 14574
03e35edc
KS
145752004-04-25 Kim F. Storm <storm@cua.dk>
14576
9ff3aa31
KS
14577 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
14578
14579 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
14580
03e35edc
KS
14581 * xdisp.c (append_space_for_newline): Rename from append_space.
14582 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
14583 (x_produce_glyphs): Handle line-spacing property on newline char.
14584 If value is t, adjust ascent and descent to fit current row height.
14585 If value is an integer or float, set extra_line_spacing to integer
14586 value, or to float value x current line height.
14587
f24814e0
KH
145882004-04-23 Kenichi Handa <handa@m17n.org>
14589
14590 * fontset.c (Finternal_char_font): If POSITION is nil, return
14591 font for displaying CH with the default face.
14592
d814862a
JB
145932004-04-23 Juanma Barranquero <lektu@terra.es>
14594
14595 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
14596
063a45c5
SM
145972004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14598
14599 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
14600 Don't make assumptions about the relative place of i and val.
14601 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
14602
ae7ab2d3
KS
146032004-04-21 Kim F. Storm <storm@cua.dk>
14604
14605 * dispextern.h (struct glyph_slice): New struct.
14606 (struct glyph): New member slice.
14607 (GLYPH_SLICE_EQUAL_P): New macro.
14608 (GLYPH_EQUAL_P): Use it.
14609 (struct glyph_string): New member slice.
14610 (struct it_slice): New struct.
14611 (struct it): New member slice, add member to stack too.
14612 New member constrain_row_ascent_descent_p.
14613 (image_ascent): Add prototype.
14614
14615 * dispnew.c (buffer_posn_from_coords): Return full image width
14616 and height even for image slices (posn is relative to full image).
14617 (marginal_area_string): Adjust x0,y0 for image slice.
14618
14619 * image.c (image_ascent): Add slice arg; calculate ascent for
14620 image slice (or full image).
14621
14622 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
14623 (syms_of_keyboard): Defsubr them.
14624
14625 * lisp.h (pos_visible_p): Fix prototype.
14626
c62aec78 14627 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
14628 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14629 (x_draw_image_foreground, x_draw_image_relief)
14630 (x_draw_image_foreground_1, x_draw_image_glyph_string):
14631 Draw sliced images.
14632
14633 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
14634 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14635 (x_draw_image_foreground, x_draw_image_relief)
14636 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
14637 Draw sliced images.
14638
14639 * w32term.h (image_ascent): Remove prototype.
14640
14641 * window.c (Fpos_visible_in_window_p): Return pixel position if
14642 PARTIALLY arg is non-nil. Simplify. Doc fix.
14643 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
14644 to return/set vscroll in pixels.
14645
14646 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
14647
14648 * xdisp.c (Qslice): New variable.
14649 (syms_of_xdisp): Intern and staticpro it.
14650 (pos_visible_p): Return pixel position in new x and y args.
14651 (init_iterator): Reset it->slice info.
14652 (handle_display_prop): Parse (slice ...) property.
14653 (push_it, pop_it): Save/restore slice info.
14654 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
14655 force repositioning of tall row if window is vscrolled, as that
14656 would reset vscroll.
14657 (append_space): Set it->constrain_row_ascent_descent_p to avoid
14658 increasing row height if row is non-empty.
14659 (fill_image_glyph_string): Copy slice info.
14660 (take_vertical_position_into_account): Simplify.
14661 (produce_image_glyph): Handle iterator slice info, setup glyph
14662 slice info. Do not force minimum line height.
14663 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
14664 do not increase height (ascent/descent) of non-empty row when
14665 adding normal character glyph; instead reduce glyph ascent/descent
14666 appropriately; if row is higher than current glyph, adjust glyph
14667 descent/ascent to reposition glyph within the existing row.
14668 Likewise, when char is newline, only set ascent/descent if row is
14669 currently empty.
14670 (note_mouse_highlight): Handle hotspots with sliced image.
14671
14672 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
14673 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14674 (x_draw_image_foreground, x_draw_image_relief)
14675 (x_draw_image_foreground_1, x_draw_image_glyph_string):
14676 Draw sliced images.
14677
14678 * xterm.h (image_ascent): Remove prototype.
14679
d58f8753
SM
146802004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
14681
14682 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
14683
4ce2719d
JPW
146842004-04-20 John Paul Wallington <jpw@gnu.org>
14685
14686 * fns.c (Fassoc, Feql): Fix indentation.
14687
d58f8753 14688 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 14689
95f8c3b9
JPW
146902004-04-19 John Paul Wallington <jpw@gnu.org>
14691
14692 * fns.c (Feql): New function.
d58f8753 14693 (syms_of_fns): Defsubr it.
95f8c3b9 14694
b7e85537
JR
146952004-04-18 Jason Rumney <jasonr@gnu.org>
14696
14697 * w32select.c (Fw32_set_clipboard_data): Get sequence number
14698 after closing the clipboard.
14699
5a72efd4
LT
147002004-04-16 Luc Teirlinck <teirllm@auburn.edu>
14701
14702 * buffer.c (Fbuffer_base_buffer): Doc fix.
14703
20dc8583
KS
147042004-04-17 Kim F. Storm <storm@cua.dk>
14705
60962ec4
KS
14706 * keymap.c (Fkey_description): Add optional PREFIX arg.
14707 Combine prefix with KEYS to make up the full key sequence to describe.
14708 Correlate meta_prefix_char and following (simple) key to describe
14709 as meta modifier. All callers changed.
14710 (describe_map): Rename arg `keys' to `prefix'. Remove local
14711 `elt_prefix' var. Use Fkey_description with prefix instead of
14712 elt_prefix combined with Fsingle_key_description.
14713 (describe_vector): Declare static. Replace arg `elt_prefix' with
14714 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 14715 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
14716 Fsingle_key_description.
14717
14718 * keymap.h (Fkey_description): Fix prototype.
14719 (describe_vector): Remove prototype.
14720
409368b9
KS
14721 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
14722
20dc8583
KS
14723 * image.c (PNG_BG_COLOR_SHIFT): Remove.
14724 (png_load): Fix calculation of transparent background color on X
14725 and W32 platforms.
14726
75c5501b
JB
147272004-04-16 Juanma Barranquero <lektu@terra.es>
14728
14729 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
14730 not too large before computing how much to scroll.
14731
da879ae8
SM
147322004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
14733
14734 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
14735
d01ca4a8
LT
147362004-04-14 Luc Teirlinck <teirllm@auburn.edu>
14737
14738 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
14739 Add hyperlink to Elisp manual to the docstring.
14740
572943b3
SM
147412004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
14742
14743 * callint.c (fix_command): Use XDCR.
14744
5e30a0fb
NR
147452004-04-14 Nick Roberts <nick@nick.uklinux.net>
14746
14747 * window.c (Fget_lru_window): Doc fix.
14748
a27ddfaf
KS
147492004-04-14 Kim F. Storm <storm@cua.dk>
14750
14751 * editfns.c (Fformat): Fix allocation size of precision array.
14752
14753 * dispnew.c (update_window): Only set changed_p if
14754 scrolling_window actually did scroll.
14755 (scrolling_window): Only return 1 if we actually did scroll.
14756
14757 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
14758 height to glyph height when cursor row is not fully visible.
14759 (make_cursor_line_fully_visible): Add FORCE_P arg to return
14760 failure in case row is higher than window. Callers changed.
14761 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
14762 Try to scroll partially visible, higher-than-window cursor row.
14763 (redisplay_window): Always try to scroll partially visible,
14764 higher-than-window cursor row - both initially and again with
14765 centering_position = 0.
14766 Clear desired matrix before retrying with centering_position = 0.
14767
da879ae8
SM
147682004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14769
14770 * syntax.c (scan_lists): Simplify backward string scan.
14771 Fix off-by-one boundary check for string and comment fences.
14772
5fc16e8e
SM
147732004-04-13 Joe Buehler <jbuehler@hekimian.com>
14774
14775 * sheap.c, unexcw.c: New files.
14776
c9aac8e6
LT
147772004-04-12 Luc Teirlinck <teirllm@auburn.edu>
14778
14779 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
14780 base buffer has been killed. Correct the error message if the
14781 base buffer does not exist.
14782
1e88a355
SM
147832004-04-12 Joe Buehler <jbuehler@hekimian.com>
14784
14785 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
14786 Cygwin itself. Add support for Xaw3d scrollbars.
14787
14788 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
14789
14790 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
14791
14792 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
14793 before Cygwin unexec.
14794
14795 * Makefile.in: Link changes for Cygwin unexec() support.
14796
8dbff9a0
AS
147972004-04-12 Andreas Schwab <schwab@suse.de>
14798
14799 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
14800
54dffe35
LT
148012004-04-11 Luc Teirlinck <teirllm@auburn.edu>
14802
14803 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
14804 IGNORE argument equals NAME. Doc fix.
14805
99a72bdf
MY
148062004-04-11 Masatake YAMATO <jet@gyve.org>
14807
1e88a355 14808 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
14809 empty if they are backwards.
14810
40899d7b
SM
148112004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14812
14813 * xfaces.c (face_color_supported_p): Fix compilation without X11.
14814
f8f853de
SM
148152004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
14816
14817 * doc.c (Fsnarf_documentation): Ignore new file name entries.
14818
c953fe1b
KS
148192004-04-06 Kim F. Storm <storm@cua.dk>
14820
5e1a6e32 14821 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
661e85c1
KS
14822 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
14823
14824 * w32term.c (w32_read_socket): Set mouse_face_hidden after
14825 clearing highlight.
14826
14827 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
14828
14829 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
14830 clearing highlight.
14831
c953fe1b
KS
14832 * indent.c (vmotion): Do not reserve one column for continuation
14833 marks on window frames.
14834
c1994268
EZ
148352004-04-04 Eli Zaretskii <eliz@gnu.org>
14836
14837 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
14838 from GCC.
14839
9f691b0d
SM
148402004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14841
14842 * .gdbinit-union: Remove.
14843
14844 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
14845 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
14846 ($nonvalbits): Remove.
14847 ($valmask): Set it by calling xreload to avoid redundancy.
14848
14849 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
14850 (gdb_emacs_intbits): Remove.
14851
7a8560d7
JD
148522004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14853
9f691b0d 14854 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 14855
3c8111fc
KH
148562004-03-30 Kenichi Handa <handa@m17n.org>
14857
14858 * editfns.c (Fformat): Fix initialization of the array info.
14859
48a0bce4
KS
148602004-03-30 Kim F. Storm <storm@cua.dk>
14861
14862 * xterm.c (x_mouse_click_focus_ignore_position): New var.
14863 (syms_of_xterm): DEFVAR_BOOL it.
14864 (ignore_next_mouse_click_timeout): New var.
14865 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
14866 Use it to filter mouse clicks following focus event.
14867
1cd0066c
KS
148682004-03-29 David Ponce <david@dponce.com>
14869
14870 * callint.c (Fcall_interactively): Fix last change.
14871
adb3b353
SM
148722004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14873
14874 * eval.c (Fcommandp): Simplify.
14875
14876 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
14877 Extend to handle all kinds of functions.
14878
14879 * lisp.h (Finteractive_form): Declare.
14880
14881 * callint.c (Fcall_interactively): Use it.
14882
6fc4c9c9
KS
148832004-03-26 Kim F. Storm <storm@cua.dk>
14884
14885 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
14886 to catch errors in calc_pixel_width_or_height during redisplay.
14887
abdb9b83
MY
148882004-03-26 Masatake YAMATO <jet@gyve.org>
14889
b17856dd 14890 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 14891
b17856dd 14892 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 14893
b17856dd 14894 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 14895
b17856dd 14896 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 14897
e8a84b6c
JD
148982004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14899
b17856dd 14900 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 14901
36a3fd05
RS
149022004-03-19 Richard M. Stallman <rms@gnu.org>
14903
14904 * s/sol2-6.h: Delete previous change.
14905
ab24c127
KS
149062004-03-19 Kim F. Storm <storm@cua.dk>
14907
14908 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
14909 to_charpos corresponds to newline in right fringe. Use local
14910 BUFFER_POS_REACHED_P macro.
14911
992126de
JD
149122004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14913
14914 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
14915 to compile on non-window system.
14916
45dbfc84
KS
149172004-03-19 Kim F. Storm <storm@cua.dk>
14918
14919 * dispextern.h (calc_pixel_width_or_height): Add prototype.
14920
14921 * image.c (Qcenter): Move to xdisp.c.
14922
14923 * xdisp.c (Qcenter): Declare here.
adb3b353 14924 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
14925 (handle_single_display_prop): Allow space display property on all
14926 platforms.
14927 (display_mode_line): Set mode_line_p before displaying line.
14928 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
14929 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 14930 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
14931 width/height. Return width or height for image specs.
14932 (produce_stretch_glyph): Improve handling of :align-to. Is now
14933 relative to left of text area by default, but other base offsets
14934 can be specified -- also for text lines.
14935
14936 * term.c (produce_glyphs): Handle IT_STRETCH.
14937 (produce_stretch_glyph): New function to handle space width and
14938 align-to display properties on non-window systems.
14939
37264101
SM
149402004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14941
14942 * fileio.c (Fread_file_name): Set completion-ignore-case for
14943 case-insensitive systems.
14944
73bc43da
MY
149452004-03-14 Masatake YAMATO <jet@gyve.org>
14946
14947 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
14948 when keymap and cursor are setup.
14949
d5fb8dab 149502004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 14951
b17856dd 14952 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 14953
e4b1b5ab
KS
149542004-03-14 Kim F. Storm <storm@cua.dk>
14955
14956 * dispextern.h (x_find_image_file): Add prototype.
14957
14958 * image.c (x_find_image_file): Make extern.
14959
14960 * xfns.c (x_find_image_file): Remove prototype.
14961
a6eeaa81 149622004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 14963
37264101 14964 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 14965
37264101 14966 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 14967
e69cfac2
RS
149682004-03-12 Richard M. Stallman <rms@gnu.org>
14969
14970 * fns.c (internal_equal): New arg PROPS controls comparing
14971 text properties. All callers changed.
14972 (Fequal_including_properties): New function.
14973 (syms_of_fns): defsubr it.
14974
45034953
KS
149752004-03-12 Kim F. Storm <storm@cua.dk>
14976
14977 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 14978
45034953
KS
14979 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
14980 (image_background, image_background_transparent): Fix prototypes.
14981
37264101 14982 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
14983
14984 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
14985 (x_query_font, x_find_ccl_program, x_set_window_size)
14986 (x_make_frame_visible, mac_initialize, XCreatePixmap)
14987 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14988 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
14989
14990 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
14991 (x_query_font, x_find_ccl_program, x_set_window_size)
14992 (x_make_frame_visible, mac_initialize, XCreatePixmap)
14993 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14994 (mac_draw_line_to_pixmap): Add prototypes.
14995
149962004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14997
14998 * macterm.c (XTread_socket): Fix mouse click on tool bar.
14999
a12d3d87
KS
150002004-03-11 Kim F. Storm <storm@cua.dk>
15001
d3ab1cf1
KS
15002 * dispextern.h: Move image related prototypes from xfns.c section
15003 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
15004 HAVE_X_WINDOWS.
37264101 15005
37de9f51 15006 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 15007 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
15008 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
15009 (GTK_OBJ) [USE_GTK]: New declaration.
15010 (obj): Add $(GTK_OBJ) to list.
15011
d5fb8dab 150122004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 15013
7e26f91b 15014 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
15015
15016 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 15017 defined in image.c.
5243c06a 15018
c0f97789
KS
150192004-03-11 Kim F. Storm <storm@cua.dk>
15020
15021 The following changes consolidates the identical/similar image
15022 support code previously found in xfns.c, w32fns.c, and macfns.c
15023 into a new file image.c.
15024
15025 * makefile.w32-in (OBJ1): Add image.o.
15026 ($(BLD)/image.$(O)): Add dependencies.
15027
15028 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
15029 (image.o): Add dependencies.
37264101 15030
c0f97789
KS
15031 * image.c: New file with consolidated image support code.
15032 (COLOR_TABLE_SUPPORT): New define to control whether
15033 color table support is available (X only).
15034 (Bitmap_Record): Common name for x_bitmap_record,
15035 w32_bitmap_record, and mac_bitmap_record.
15036 (XImagePtr): Common name for pointer to XImage or equivalent.
15037 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
15038 to XImagePtr on X+MAC, and to HDC on W32.
15039 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
15040 (NO_PIXMAP): Common name for "None" or equivalent.
15041 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
15042 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
15043 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
15044 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
15045 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
15046 (XDrawLine): Define on MAC for code sharing.
15047 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
15048 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
15049 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15050 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15051 (x_reference_bitmap, x_create_bitmap_from_data)
15052 (x_create_bitmap_from_file, x_destroy_bitmap)
15053 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15054 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15055 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15056 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15057 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15058 (define_image_type, lookup_image_type, valid_image_p)
15059 (image_error, enum image_value_type, struct image_keyword)
15060 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15061 (make_image, free_image, prepare_image_for_display, image_ascent)
15062 (four_corners_best, image_background, image_background_transparent)
9dd28cae 15063 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
15064 (make_image_cache, free_image_cache, clear_image_cache)
15065 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15066 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15067 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15068 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
15069 (init_image_func_pointer, image_load_quartz2d)
15070 (struct ct_color, init_color_table, free_color_table)
15071 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15072 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15073 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15074 (x_disable_image, x_build_heuristic_mask)
15075 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15076 (TIFF support, GIF support, Ghostscript support): Consolidate image
15077 code from xfns.c, w32fns.c, and macfns.c.
15078 (syms_of_image): Consolidate image related symbol setup here.
15079 (init_image): Consolidate image related initializations here.
37264101 15080
c0f97789
KS
15081 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
15082 and init_image. Remove call to init_xfns.
15083
37264101
SM
15084 * macterm.h (struct mac_bitmap_record): Add file member.
15085 Not currently used, but simplifies code sharing.
c0f97789
KS
15086
15087 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15088 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15089 (x_reference_bitmap, x_create_bitmap_from_data)
15090 (x_create_bitmap_from_file, x_destroy_bitmap)
15091 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15092 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15093 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15094 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15095 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15096 (define_image_type, lookup_image_type, valid_image_p)
15097 (image_error, enum image_value_type, struct image_keyword)
15098 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15099 (make_image, free_image, prepare_image_for_display, image_ascent)
15100 (four_corners_best, image_background, image_background_transparent)
9dd28cae 15101 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
15102 (make_image_cache, free_image_cache, clear_image_cache)
15103 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15104 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15105 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15106 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
15107 (init_image_func_pointer, image_load_quartz2d)
15108 (struct ct_color, init_color_table, free_color_table)
15109 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15110 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15111 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15112 (x_disable_image, x_build_heuristic_mask)
15113 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15114 (TIFF support, GIF support, Ghostscript support): Merge with image
15115 code from xfns.c and macfns.c into image.c.
15116 (syms_of_xfns): Move image related symbols to image.c.
15117 (init_external_image_libraries, init_xfns): Remove; initialization
15118 moved to init_image in image.c.
15119
15120 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15121 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15122 (x_reference_bitmap, x_create_bitmap_from_data)
15123 (x_create_bitmap_from_file, x_destroy_bitmap)
15124 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15125 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15126 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15127 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15128 (define_image_type, lookup_image_type, valid_image_p)
15129 (image_error, enum image_value_type, struct image_keyword)
15130 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15131 (make_image, free_image, prepare_image_for_display, image_ascent)
15132 (four_corners_best, image_background, image_background_transparent)
9dd28cae 15133 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
15134 (make_image_cache, free_image_cache, clear_image_cache)
15135 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15136 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15137 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15138 (struct ct_color, init_color_table, free_color_table)
15139 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15140 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15141 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15142 (x_disable_image, x_build_heuristic_mask)
15143 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15144 (TIFF support, GIF support, Ghostscript support): Merge with image
15145 code from xfns.c and macfns.c into image.c.
15146 (syms_of_xfns): Move image related symbols to image.c.
15147 (init_external_image_libraries, init_xfns): Remove; initialization
15148 moved to init_image in image.c.
15149
15150 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15151 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15152 (x_reference_bitmap, x_create_bitmap_from_data)
15153 (x_create_bitmap_from_file, x_destroy_bitmap)
15154 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15155 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15156 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15157 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15158 (define_image_type, lookup_image_type, valid_image_p)
15159 (image_error, enum image_value_type, struct image_keyword)
15160 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15161 (make_image, free_image, prepare_image_for_display, image_ascent)
15162 (four_corners_best, image_background, image_background_transparent)
9dd28cae 15163 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
15164 (make_image_cache, free_image_cache, clear_image_cache)
15165 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15166 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15167 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15168 (struct ct_color, init_color_table, free_color_table)
15169 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15170 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15171 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15172 (x_disable_image, x_build_heuristic_mask)
15173 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15174 (TIFF support, GIF support, Ghostscript support): Merge with
15175 w32fns.c and macfns.c image code into image.c.
15176 (syms_of_xfns): Move image related symbols to image.c.
15177 (init_xfns): Remove; initialization moved to init_image in image.c.
15178
15179 * lisp.h (syms_of_image, init_image): Add protoypes.
15180 (init_xfns): Remove prototype.
15181
15182 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15183 (x_reference_bitmap, x_create_bitmap_from_data)
15184 (x_create_bitmap_from_file, x_destroy_bitmap)
15185 (x_create_bitmap_mask): Move prototypes from dispextern.h.
15186 (gamma_correct) [MAC_OS]: Add prototype.
15187
15188 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15189 (x_reference_bitmap, x_create_bitmap_from_data)
15190 (x_create_bitmap_from_file, x_destroy_bitmap)
15191 (x_create_bitmap_mask): Move prototypes to dispextern.h.
15192
6eced09c
KH
151932004-03-09 Kenichi Handa <handa@etlken2>
15194
15195 * coding.c (decode_coding_emacs_mule): Handle insufficent source
15196 correctly.
15197
9a7e95f3
RS
151982004-03-04 Richard M. Stallman <rms@gnu.org>
15199
04a6e76b
RS
15200 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
15201
9a7e95f3
RS
15202 * window.c (Fdisplay_buffer): Doc fix.
15203
15204 * buffer.c (Fpop_to_buffer): Doc fix.
15205
6c2488df
KS
152062004-03-03 Kim F. Storm <storm@cua.dk>
15207
15208 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
15209
d8d95bc7
SM
152102004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
15211
15212 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
15213
357589bf
RS
152142004-03-02 Richard M. Stallman <rms@gnu.org>
15215
15216 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
15217
409949b5
KH
152182004-03-02 Kenichi Handa <handa@m17n.org>
15219
15220 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
15221
d24bc50f
KS
152222004-03-02 Kim F. Storm <storm@cua.dk>
15223
15224 * window.h (struct window): New member overlay_arrow_bitmap.
15225
15226 * window.c (make_window): Initialize overlay_arrow_bitmap.
15227
15228 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
15229 implement and integrate multiple overlay arrows with redisplay.
15230 (syms_of_xdisp): DEFVAR_LISP and initialize it.
15231 (last_arrow_position, last_arrow_string): Replace by properties.
15232 (Qlast_arrow_position, Qlast_arrow_string)
15233 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
15234 (syms_of_xdisp): Intern and staticpro them.
15235 (overlay_arrow_string_or_property, update_overlay_arrows)
15236 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
15237 (overlay_arrow_at_row): New functions for multiple overlay arrows.
15238 (redisplay_internal): Use them instead of directly accessing
15239 Voverlay_arrow_position etc. for multiple overlay arrows.
15240 (mark_window_display_accurate): Use update_overlay_arrows.
15241 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
15242 (try_window_id): Use overlay_arrows_changed_p.
15243 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
15244 (display_line): Use overlay_arrow_at_row to check multiple
15245 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 15246 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
15247 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
15248 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
15249
15250 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
15251 (update_window_fringes): Remove unused code.
15252
c1464661
JR
152532004-03-01 Jason Rumney <jasonr@gnu.org>
15254
15255 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
15256
a64387ee
JB
152572004-03-01 Juanma Barranquero <lektu@terra.es>
15258
15259 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
15260
15261 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
15262
334faa08
JD
152632004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15264
15265 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
15266 how many colors can be displayed.
15267
bb62616f
KH
152682004-03-01 Kenichi Handa <handa@m17n.org>
15269
15270 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
15271 correctly.
15272
0fd16104
KS
152732004-02-28 Kim F. Storm <storm@cua.dk>
15274
15275 * dispnew.c (update_window): Update header line also if there are
15276 no other changes in window (move code after set_cursor label).
15277
15278 * lisp.h (mark_window_display_accurate): Remove prototype.
15279
15280 * window.c (window_loop, Fforce_window_update): Force mode line
15281 updates by setting prevent_redisplay_optimizations_p and
15282 update_mode_lines.
15283
b59dd9c8
JD
152842004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15285
d8d95bc7 15286 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
15287
15288 * xterm.c (x_calc_absolute_position): Call x_real_positions
15289 to get WM window sizes and use those to calculate position.
d8d95bc7 15290 (x_set_offset): Remove code commented out.
b59dd9c8 15291
a874691c
MB
152922004-02-28 Miles Bader <miles@gnu.org>
15293
15294 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
15295
3e0c6482
KS
152962004-02-28 Kim F. Storm <storm@cua.dk>
15297
15298 * keyboard.c (kbd_buffer_store_event_hold): New function to store
15299 an event into kbd fifo, but with special handling of quit event;
15300 a quit event is saved for later, and further events are discarded
15301 until the saved quit event has been processed.
15302 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
15303 (gen_help_event): Store help event in kbd fifo.
15304 (NREAD_INPUT_EVENTS): Remove.
15305 (read_avail_input): Adapt to new read_socket_hook interface.
15306 Remove allocation and initialization of local input_event buffer,
15307 as read_socket_hook stores events directly in fifo. Allocate and
15308 initialize local hold_quit event to handle postponed quit event
15309 (and store it if set by kbd_buffer_store_event_hold).
15310
15311 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
15312 (gen_help_event): Fix prototype.
15313
a64387ee 15314 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 15315 numcharsp args. Add hold_quit arg.
f63fd14e 15316 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
15317 directly in fifo using kbd_buffer_store_event_hold.
15318
15319 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
15320 (read_input_waiting): Adapt to new read_socket_hook interface.
15321 Remove allocation and initialization of local input_event buffer,
15322 as read_socket_hook stores events directly in fifo. Allocate and
15323 initialize local hold_quit event to handle postponed quit event
15324 (and store it if set by kbd_buffer_store_event_hold).
15325
a64387ee 15326 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
15327
15328 * termhooks.h (read_socket_hook): Fix prototype.
15329
15330 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
15331 numcharsp args. Add hold_quit arg.
f63fd14e 15332 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
15333 directly in fifo using kbd_buffer_store_event_hold.
15334
15335 * w32inevt.h (w32_console_mouse_position): Fix prototype.
15336
15337 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
15338 Add hold_quit arg. Rework to use just one, local, inev
15339 input_event. Store inev directly in fifo using
3e0c6482
KS
15340 kbd_buffer_store_event_hold. Update count in one place.
15341 Postpone call to gen_help_event until inev is stored; use new
15342 local do_help for this.
15343 Remove local emacs_event in handing of ButtonPress event; just use
15344 inev instead (so no reason to copy it later).
15345
15346 * xsmfns.c (x_session_check_input): Remove numchars arg.
15347
d8d95bc7
SM
15348 * xterm.c (x_focus_changed, x_detect_focus_change):
15349 Remove numchars arg. Always store event into bufp arg.
15350 Return nothing. Callers changed accordingly.
3e0c6482
KS
15351 (glyph_rect): Simplify.
15352 (STORE_KEYSYM_FOR_DEBUG): New macro.
15353 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
15354 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
15355 (current_hold_quit) [USE_GTK]: Add.
15356 (event_handler_gdk): Adapt to new handle_one_xevent.
15357 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
15358 Add hold_quit arg. Rework to use just one, local, inev
15359 input_event. Store inev directly in fifo using
3e0c6482
KS
15360 kbd_buffer_store_event_hold. Update count in one place.
15361 Postpone call to gen_help_event until inev is stored; use new
15362 local do_help for this.
15363 Simplify handling of keysyms (consolidate common code). Fix bug
15364 where count was updated with nchars instead of nbytes.
15365 Remove local emacs_event in handing of ButtonPress event; just use
15366 inev instead (so no reason to copy it later).
15367 Remove `out' label. Rename label `ret' to `done'; add various
15368 `goto done' to clarify code flow in deeply nested blocks.
15369 (x_dispatch_event): Simplify as handle_one_xevent now calls
15370 kbd_buffer_store_event itself.
f63fd14e 15371 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
15372 arg. Call handle_one_xevent with new arglist. Store event from
15373 x_session_check_input in fifo.
15374 [USE_GTK]: Setup current_hold_quit.
15375 Decrement handling_signal before unblocking input.
15376 (x_initialize) [USE_GTK]: Initialize current_count.
15377
15378 * xterm.h (x_session_check_input): Fix prototype.
15379
e3564461 153802004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 15381
d8d95bc7 15382 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 15383
e3564461
ST
15384 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
15385 macgui.h).
a64387ee 15386
e3564461 15387 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 15388
e3564461
ST
15389 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
15390 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
15391 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
15392 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
15393 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
15394 (Bitmap): Remove typedef.
15395 (Pixmap): Change int to GWorldPtr.
15396
d8d95bc7 15397 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 15398
d8d95bc7
SM
15399 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
15400 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
15401 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
15402 long representation.
15403 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
15404 colors used for masks.
15405 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 15406
e3564461
ST
15407 * macfns.c: Include sys/types.h and sys/stat.h.
15408 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
15409 Include QuickTime/QuickTime.h.
15410 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15411 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
15412 functions defined in macterm.c.
15413 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
15414 (ZPixmap): New #define for compatibility with xfns.c.
15415 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15416 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
15417 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
15418 New functions.
e3564461 15419 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
15420 (x_destroy_x_image, unwind_create_frame, x_disable_image)
15421 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
15422 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
15423 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
15424 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
15425 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
15426 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
15427 long mixup.
15428 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
15429 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
15430 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
15431 (x_set_cursor_type, Fxw_color_values, valid_image_p)
15432 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
15433 (x_alloc_image_color, clear_image_cache, lookup_image)
15434 (x_find_image_file, xbm_read_bitmap_file_data)
15435 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
15436 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
15437 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
15438 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
15439 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 15440 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
15441 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
15442 #if 0.
15443 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
15444 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
15445 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
15446 New functions (from xfns.c).
e3564461
ST
15447 (Fx_create_frame): Record unwind_create_frame.
15448 (Fxw_display_color_p): Use dpyinfo->color_p.
15449 (Fx_display_grayscale_p, Fx_display_planes): Don't use
15450 dpyinfo->n_cbits.
15451 (Fx_display_color_cells): Use dpyinfo->n_planes;
15452 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
15453 (Qheuristic, cross_disabled_images, emboss_matrix)
15454 (laplace_matrix): New variables (from xfns.c).
15455 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
15456 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
15457 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
15458 (image_background_transparent): New function (from xfns.c).
15459 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
15460 (image_load_quicktime): Add declaration.
15461 [MAC_OSX] (image_load_quartz2d): Likewise.
15462 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
15463 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 15464 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
15465 (xbm_load_image_from_file, x_laplace_read_row)
15466 (x_laplace_write_row, pbm_read_file): Remove functions.
15467 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
15468 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
15469 (colors_in_color_table): Sync with xfns.c (although not used).
15470 (lookup_rgb_color): Don't lookup color table. Just do gamma
15471 correction.
15472 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
15473 (x_disable_image): New function (from xfns.c).
15474 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15475 (x_build_heuristic_mask): Sync with xfns.c.
15476 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
15477 (HAVE_PBM): Remove #ifdef.
15478 (pbm_load): Sync with xfns.c. Set img->width and img->height
15479 before IMAGE_BACKGROUND.
d8d95bc7 15480 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
15481 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
15482 Don't enclose with #if HAVE_PNG.
15483 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
15484 symbol _CGImageCreateWithPNGDataProvider is defined.
15485 Otherwise use image_load_quicktime.
e3564461 15486 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
15487 [HAVE_PNG] (png_load): Sync with xfns.c.
15488 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
15489 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
15490 HAVE_JPEG.
15491 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
15492 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
15493 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
15494 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
15495 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
15496 (tiff_image_p, tiff_load): Don't enclose declarations with #if
15497 HAVE_TIFF.
15498 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
15499 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
15500 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
15501 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
15502 New functions (from xfns.c).
e3564461 15503 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 15504 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
15505 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
15506 Don't enclose with #if HAVE_GIF.
15507 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
15508 animated gif. Otherwise use image_load_quicktime.
15509 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
15510 gif_DrawText to avoid conflict with QuickdrawText.h.
15511 [HAVE_GIF] (gif_load): Sync with xfns.c.
15512 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
15513 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
15514 Ghostscript is not supported yet).
15515 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
15516 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
15517 cross_disabled_images (from xfns.c). Remove #if 0 for supported
15518 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
15519 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
15520 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
15521 HAVE_PNG. Call EnterMovies to support animated gifs.
15522 Call init_image_func_pointer to bind a symbol
e3564461 15523 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 15524
d8d95bc7 15525 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
15526 (x_draw_bar_cursor): Sync declaration with xterm.c.
15527 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
15528 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
15529 graphics).
15530 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
15531 (mac_draw_line_to_pixmap, XCreatePixmap)
15532 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
15533 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
15534 New functions.
15535 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
15536 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
15537 Cast bits to char *.
e3564461
ST
15538 (reflect_byte): New function (from w32fns.c).
15539 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
15540 due to byte alignment.
d8d95bc7
SM
15541 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
15542 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
15543 (XSetForeground): Remove static (now used in macfns.c).
15544 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
15545 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
15546 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
15547 (x_draw_glyph_string_box, x_draw_image_foreground)
15548 (x_draw_image_foreground_1, x_draw_image_glyph_string)
15549 (x_draw_stretch_glyph_string, x_draw_glyph_string)
15550 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
15551 Sync with xterm.c.
15552 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
15553 than the xterm.c version when a strictly horizontal or vertical
15554 line is drawn.
15555 (XTset_terminal_window): Add static.
15556 (x_make_frame_visible): Add UNBLOCK_INPUT.
15557 (x_free_frame_resources): New funcion (from xterm.c).
15558 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
15559 occurs in tool bar area.
d8d95bc7
SM
15560 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
15561 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
15562 Initialize image cache.
15563 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
15564 Enclose unused functions with #if 0.
15565 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
15566 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 15567 from a mac font name to an XLFD font name according to its script code.
e3564461 15568 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 15569 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
15570 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
15571 whose name starts with `.'.
15572 (init_font_name_table): Use decode_mac_font_name. Add both
15573 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
15574 of a font is smJapanese.
15575 (mac_do_list_fonts): New function to list fonts that match a given
15576 pattern.
15577 (x_list_fonts, XLoadQueryFont): Use it.
15578 (XLoadQueryFont): Set rbearing field for each variable width
15579 character to avoid needless redraw.
15580 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
15581
446f5f3d
KS
155822004-02-26 Kim F. Storm <storm@cua.dk>
15583
af617d0f
KS
15584 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
15585 as read_socket_hook handler on X aborts if buffer is too small
15586 and W32 handler doesn't always check buffer limit.
15587
446f5f3d
KS
15588 * xdisp.c (handle_single_display_prop): Handle left-fringe and
15589 right-fringe similar to a display margin image. Specifically,
15590 the characters having the fringe prop are no longer shown, and
15591 we use IT_IMAGE/next_element_from_image with image_id = -1 to
15592 do this. Set fringe bitmap face_id in it->face_id.
15593 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
15594 still realize it->face (i.e. the fringe bitmap face).
15595
7d8a0b55
MB
155962004-02-25 Miles Bader <miles@gnu.org>
15597
15598 * xdisp.c (check_it): Check string/string_pos consistency.
15599 (init_iterator): Initialize string-related fields properly.
15600
156012004-02-11 Miles Bader <miles@gnu.org>
15602
15603 * xdisp.c (produce_image_glyph): Force negative descents to zero.
15604
156052004-02-10 Miles Bader <miles@gnu.org>
15606
15607 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
15608 BLOCK_INPUT can be nested, so it doesn't make much sense.
15609
a64387ee 156102004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
15611
15612 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
15613 (xbm_read_bitmap_data): Use unsigned char for image data.
15614
92f5fba2
LT
156152004-02-23 Luc Teirlinck <teirllm@auburn.edu>
15616
15617 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
15618
8565fb3d
JR
156192004-02-22 Jason Rumney <jasonr@gnu.org>
15620
15621 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
15622 correctly over other bitmaps.
15623
a6eeaa81 156242004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
15625
15626 * emacs.c (USAGE1): Split into two halves.
15627 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
15628 (USAGE3): Rename from USAGE2.
15629 (USAGE4): Rename from USAGE3.
f8125c39 15630
4effffca
EZ
156312004-02-21 Juri Linkov <juri@jurta.org>
15632
15633 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
15634 Fix --multibyte. Move --help, --version to USAGE2. Add alias
15635 --file. Fix -f, -l. Sort options. Untabify.
15636 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
15637
923c1e6f
LT
156382004-02-19 Luc Teirlinck <teirllm@auburn.edu>
15639
15640 * category.c (Fdefine_category, Fcategory_docstring)
15641 (Fget_unused_category, Fset_category_table)
15642 (Fcategory_set_mnemonics): Doc fixes.
15643
b0e225fd
KS
156442004-02-20 Kim F. Storm <storm@cua.dk>
15645
15646 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
15647 The following changes are relative to the 2004-01-21 revision.
15648 (NREAD_INPUT_EVENTS): Define as max number of input events to read
15649 in one call to read_socket_hook. Value is 8.
15650 (read_avail_input): Separate and rework handling of read_socket_hook
15651 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
15652 in read_socket_hook case, and repeat if full buffer is read.
15653 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
15654 In non-read_socket_hook case, just use a single input_event, and
15655 call kbd_buffer_store_event on the fly for each character.
15656
b15aa9f9
SM
156572004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15658
15659 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
15660 Remove unused `gu' alternative.
15661
83c9aa95
AS
156622004-02-19 Andreas Schwab <schwab@suse.de>
15663
15664 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
15665 warning.
15666
cc808173
KS
156672004-02-18 Kim F. Storm <storm@cua.dk>
15668
15669 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
15670 Fix last change.
15671
ab90a54d
KS
156722004-02-17 Kim F. Storm <storm@cua.dk>
15673
b26f249f
KS
15674 * xdisp.c (fast_find_position): Fix return value of new version;
15675 it was inverted compared to the 21.1 version.
15676 (get_window_cursor_type): Don't look at glyph if NULL.
15677 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 15678
ab90a54d
KS
15679 * keyboard.c: Rework previous change; it didn't consider that the
15680 buf array was allocated on the stack.
15681 (prev_read): Remove variable.
15682 (read_avail_input_buf): New static event buffer array.
b9568dfc 15683 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 15684 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
15685 Use in_read_avail_input to handle re-entrance; when re-entered,
15686 fully initialize and use tmp_buf array instead of read_avail_input_buf.
15687 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
15688 is always cleared on entry. To ensure that, we clear (just) the
15689 entries that were used before we return.
15690 (init_keyboard): Initialize read_avail_input_buf here.
15691
b6189c3b 156922004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
15693
15694 * cmds.c (Fend_of_line): Doc fix.
15695
7b5368c1
EZ
156962004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
15697
15698 * keyboard.c (prev_read): New static variable.
15699 (read_avail_input): Use it to zero out only those slots in buf[]
15700 that were used last time we were called.
15701
a6eeaa81 157022004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
15703
15704 * Makefile.in (obj): Move fringe.o from here...
15705 (XOBJ, MAC_OBJ): ...to here.
15706
159c348e
SE
157072004-02-16 Stephen Eglen <stephen@gnu.org>
15708
15709 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
15710
d2f14999
SM
157112004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
15712
b15aa9f9
SM
15713 * data.c (Fbyteorder):
15714 * fringe.c (Fdefine_fringe_bitmap):
15715 * xdisp.c (handle_single_display_prop):
d2f14999
SM
15716 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
15717
8d50508a
JR
157182004-02-16 Jason Rumney <jasonr@gnu.org>
15719
15720 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
15721
dd4497dc
ST
157222004-02-15 Steven Tamm <steventamm@mac.com>
15723
15724 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
15725 controlling emulation of a three button mouse with option and
15726 command keys.
7e26f91b 15727 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 15728 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 15729
c9159cb3
KS
157302004-02-15 Kim F. Storm <storm@cua.dk>
15731
2cc52658
KS
15732 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
15733
c9159cb3
KS
15734 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
15735 Perform byte-swapping.
15736
12fde2dc
KS
157372004-02-14 Kim F. Storm <storm@cua.dk>
15738
15739 * dispextern.h (struct draw_fringe_bitmap_params): Change member
15740 bits from char to short to facilitate wider bitmaps.
15741 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
15742 member.
15743
15744 * fringe.c (struct fringe_bitmap): Change member bits from char to
15745 short to facilitate 16 bits wide bitmaps. Modify all standard
15746 bitmaps accordingly.
15747 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
15748 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
15749 (draw_fringe_bitmap): Ditto.
15750 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
15751 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
15752 handle up to 16 bits wide bitmaps.
15753 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 15754 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
15755
15756 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
15757 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
15758 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
15759
15760 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
15761 so it is no longer necessary to expand them here.
15762
15763 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
15764
9d7271e8
KS
157652004-02-12 Kim F. Storm <storm@cua.dk>
15766
15767 * window.c (Fwindow_fringes): Doc fix.
15768
706c1e4f
JD
157692004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15770
15771 * xselect.c (x_get_foreign_selection): Add new optional parameter
15772 time_stamp.
15773 (Fx_get_selection_internal): Ditto, pass time_stamp to
15774 x_get_foreign_selection.
15775
15776 * data.c (Fbyteorder): New function.
15777
c2d12b5d
JD
157782004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15779
15780 * atimer.c: Move include stdio.h to same place as in other files.
15781
15782 * region-cache.c: Ditto.
15783
15784 * sysdep.c: Ditto.
15785
15786 * xfaces.c: Ditto.
15787
4c1947b9
SS
157882004-02-09 Sam Steingold <sds@gnu.org>
15789
89458937 15790 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 15791
82722af3
KS
157922004-02-09 Kim F. Storm <storm@cua.dk>
15793
15794 * fringe.c: New file. Move original fringe related declarations
15795 and code from dispextern.h and xdisp.c here.
15796 Rework code to support user defined fringe bitmaps, redefining
15797 standard bitmaps, ability to overlay user defined bitmap with
15798 overlay arrow bitmap, and add faces to bitmaps.
15799 (Voverflow_newline_into_fringe): Declare here.
15800 (enum fringe_bitmap_align): New enum.
15801 (..._bits): All bitmaps are now defined without bitswapping; that
15802 is now done in init_fringe_once (if necessary).
15803 (standard_bitmaps): New array with specifications for the
15804 standard fringe bitmaps.
15805 (fringe_faces): New array.
15806 (valid_fringe_bitmap_id_p): New function.
15807 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
15808 (draw_fringe_bitmap): New function which draws fringe bitmap,
15809 possibly overlaying bitmap with cursor in right fringe or the
15810 overlay arrow in the left fringe.
15811 (update_window_fringes): Do not handle overlay arrow here.
15812 Compare and copy fringe bitmap faces.
15813 (init_fringe_bitmap): New function.
15814 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
15815 define and destroy user defined fringe bitmaps.
15816 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
15817 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
15818 (syms_of_fringe): New function. Defsubr new DEFUNs.
15819 DEFVAR_LISP Voverflow_newline_into_fringe.
15820 (init_fringe_once, init_fringe): New functions.
15821 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 15822
82722af3
KS
15823 * Makefile.in (obj): Add fringe.o.
15824 (fringe.o): New dependencies.
15825
15826 * dispextern.h (FRINGE_ID_BITS): New definition for number of
15827 bits allocated to hold a fringe number. Increase number of bits
15828 from 4 to 8 to allow user defined fringe bitmaps.
15829 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
15830 left_user_fringe_face_id, right_user_fringe_bitmap,
15831 right_user_fringe_face_id.
15832 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
15833 Move to new file fringe.c.
15834 (MAX_FRINGE_BITMAPS): Define here.
15835 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
15836 and overlay_p. Change member which to int.
15837 (struct redisplay_interface): New members define_fringe_bitmap
15838 and destroy_fringe_bitmap.
15839 (valid_fringe_bitmap_id_p): Add prototype.
15840 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
15841
15842 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
15843 arrows.
15844 (update_frame): Do flush_display if force_flush_display_p to
15845 ensure display (specifically fringes) are updated in a timely
15846 manner when resizing the frame by dragging the mouse.
15847 (update_window_line): Update row if overlay arrow changed.
15848 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
15849 or overlay arrow changed.
15850
15851 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
15852 syms_of_fringe, and init_fringe.
15853
15854 * frame.h (struct frame): New member force_flush_display_p.
15855
15856 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
15857 Add prototypes.
15858
a3993cc8 15859 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 15860 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
15861 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
15862 Use cursor color for displaying cursor in fringe.
82722af3
KS
15863 (x_redisplay_interface): Add null handlers for
15864 define_fringe_bitmap and destroy_fringe_bitmap functions.
15865
15866 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
15867 xterm.c to handle overlayed fringe bitmaps and to use cursor color
15868 for displaying cursor in fringe.
15869 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
15870 specific functions to define and destroy fringe bitmaps in fringe_bmp.
15871 (w32_redisplay_interface): Add them to redisplay_interface.
15872 (w32_term_init): Call w32_init_fringe instead of explicitly
15873 defining fringe bitmaps in fringe_bmp array.
15874 (x_delete_display): Call w32_reset_fringes instead of explicitly
15875 destroying fringe bitmaps in fringe_bmp array.
15876
15877 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
15878 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
15879 (continued_bits, continuation_bits, ov_bits, first_line_bits)
15880 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
15881 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
15882 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
15883 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
15884 Move fringe handling vars and code to new file fringe.c.
15885 (handle_display_prop): Handle left-fringe and right-fringe
15886 display properties; store user fringe bitmaps in iterator.
15887 (move_it_in_display_line_to): Handle cursor in fringe at eob.
15888 (clear_garbaged_frames): Set force_flush_display_p if resized.
15889 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
15890 (display_line): Handle cursor in fringe at eob.
15891 (display_line): Set row user fringe bitmaps from iterator.
15892
15893 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
15894 Use cursor color for displaying cursor in fringe.
15895 (x_redisplay_interface): Add null handlers for
15896 define_fringe_bitmap and destroy_fringe_bitmap functions.
15897
030400eb
JD
158982004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15899
15900 * macfns.c (Fx_change_window_property): Make doc string and
15901 parameters same as for X version.
15902
15903 * w32fns.c (Fx_change_window_property): Ditto.
15904
3af55251
KS
159052004-02-07 Kim F. Storm <storm@cua.dk>
15906
ec110e9e
KS
15907 * xdisp.c (hscroll_window_tree): Position cursor near to right
15908 margin in hscrolled window when jumping to end of line (rather
15909 than centering cursor).
15910
3af55251
KS
15911 * process.c (wait_reading_process_input): Don't do adaptive read
15912 buffering if waiting for a specific process.
15913
b0c138ce
LT
159142004-02-05 Luc Teirlinck <teirllm@auburn.edu>
15915
15916 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
15917 (Fread_minibuffer, Feval_minibuffer)
15918 (Fread_string, Fread_no_blanks_input)
15919 (Fcompleting_read): Doc fixes.
15920 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
15921 completion-regexp-list. Define Qcase_fold_search and staticpro it.
15922 (read_minibuf): Fix initial comment.
15923 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 15924 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
15925 checking completion-regexp-list.
15926 (Fdisplay_completion_list): Make it handle arguments that are
15927 symbols. Doc fix.
15928
9676f5ad 159292004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 15930
9676f5ad 15931 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 15932
9676f5ad
JD
15933 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
15934 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 15935 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 15936 format. Remove unused variable cons.
5b698285 15937
9dd28cae 15938 * xselect.c: Include stdio.h.
5b698285 15939
fc1d15f6
KH
159402004-02-05 Kenichi Handa <handa@m17n.org>
15941
ebaff4af
KH
15942 * fns.c (Fset_char_table_range): Fix previous change.
15943
fc1d15f6
KH
15944 * buffer.c (Fset_buffer_multibyte): Fix docstring.
15945
9676f5ad
JD
159462004-02-04 Luc Teirlinck <teirllm@auburn.edu>
15947
15948 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
15949
da75761f
SM
159502004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
15951
15952 * keymap.c (Vmouse_events): Rename from Vmenu_events.
15953 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
15954
13c5d120
KH
159552004-02-04 Kenichi Handa <handa@m17n.org>
15956
15957 * fns.c (Fset_char_table_range): Handle charsets ascii,
15958 eight-bit-control, and eight-bit-graphic correctly.
15959
2883d842
JR
159602004-02-03 Jason Rumney <jasonr@gnu.org>
15961
15962 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
15963
15964 * w32fns.c (x_to_w32_font): Likewise.
15965
69eff41f
JD
159662004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15967
15968 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
15969 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
15970
15971 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
15972 ClientMessages.
15973
14a56a1b 15974 * xselect.c: Include termhooks.h and X11/Xproto.h.
69eff41f
JD
15975 (x_check_property_data, x_fill_property_data)
15976 (x_property_data_to_lisp, mouse_position_for_drop)
15977 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 15978 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
15979 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
15980
14a56a1b 15981 * xfns.c (x-send-client-message): Move to xselect.c.
69eff41f
JD
15982 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
15983 OUTER_P.
15984 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
15985 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
15986 if vector_ret_p is true.
15987 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 15988
a6eeaa81 159892004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
15990
15991 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
15992 basename of FILE relative to it, not FILE itself.
15993
09721b31
KH
159942004-02-02 Kenichi Handa <handa@m17n.org>
15995
15996 * coding.c (coding_restore_composition): Check invalid
15997 composition data more rigidly.
15998
eb996101
LT
159992004-01-30 Luc Teirlinck <teirllm@auburn.edu>
16000
16001 * fileio.c (Fread_file_name_internal): Correctly handle the case
16002 where insert-default-directory is nil.
16003 (Fread_file_name): Always return an empty string if the user exits
16004 with an empty minibuffer. Adapt the docstring accordingly.
16005 (syms_of_fileio): Adapt the docstring of insert-default-directory
16006 to the change in Fread_file_name.
16007
a6eeaa81 160082004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
16009
16010 * alloca.c [!alloca]: Fix the prototype for xfree.
16011
13f52ed8
KH
160122004-01-29 Kenichi Handa <handa@m17n.org>
16013
16014 * fns.c (string_char_to_byte): Optimize for ASCII only string.
16015 (string_byte_to_char): Likewise.
16016
d57625a0
JR
160172004-01-28 Peter Runestig <peter@runestig.com>
16018
16019 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
16020
a64387ee 160212004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
16022
16023 * unexmacosx.c (unexec_copy): Do not copy more than was
16024 requested to prevent overwriting during unexec.
16025
eb37b8fd
JD
160262004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16027
ce38070a
JD
16028 * process.c (sigchld_handler): Add comment about not calling malloc.
16029
eb37b8fd
JD
16030 * process.h: Add extern to synch_process_termsig.
16031
a64387ee 160322004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 16033
da75761f
SM
16034 * macterm.c (make_mac_frame, make_mac_terminal_frame):
16035 Move setting of scroll bars from make_mac_frame to
16036 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 16037
d62a265d
RS
160382004-01-26 Richard M. Stallman <rms@gnu.org>
16039
16040 * search.c (Freplace_match): Handle nonexistent
16041 back-references properly.
16042
160432004-01-03 Richard M. Stallman <rms@gnu.org>
16044
16045 * window.c (decode_any_window): New function.
16046 (Fwindow_height, Fwindow_width, Fwindow_edges)
16047 (Fwindow_pixel_edges, Fwindow_inside_edges)
16048 (Fwindow_inside_pixel_edges): Use decode_any_window.
16049
ff236419
JD
160502004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16051
16052 * process.h: synch_process_termsig new variable.
16053
16054 * callproc.c: Define synch_process_termsig.
16055 (Fcall_process): Initiate synch_process_termsig to zero and
16056 check if non-zero and get signal name after subprocess has ended.
16057
16058 * process.c (sigchld_handler): Set synch_process_termsig
16059 if terminated by a signal. synch_process_death setting removed.
16060
16061 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
16062
41b867ea
AS
160632004-01-26 Andreas Schwab <schwab@suse.de>
16064
16065 * print.c (print_preprocess): Declare size as EMACS_INT to not
16066 lose bits.
16067 (print_object): Likewise.
16068 * alloc.c (Fpurecopy): Likewise.
16069
a08084ff
LT
160702004-01-25 Luc Teirlinck <teirllm@auburn.edu>
16071
16072 * window.c (Fwindow_minibuffer_p): Doc fix.
16073
b19ac475
JY
160742004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
16075
16076 * editfns.c (Fformat): Make both passes accept the same set of flags.
16077
fe905025
KH
160782004-01-23 Kenichi Handa <handa@m17n.org>
16079
16080 * fns.c (Fmd5): If OBJECT is a buffer different from the current
16081 one, set buffer to OBJECT temporarily.
16082
438fc6c0
SM
160832004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
16084
455316e2
SM
16085 * keyboard.c (kbd_buffer_gcpro): Remove.
16086 (kbd_buffer_store_event, clear_event, Fdiscard_input)
16087 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
16088 Don't initialize and/or maintain the variable any more. It was made
16089 redundant by my commit of 2003-06-15.
16090
438fc6c0
SM
16091 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
16092
5335a4ee
JD
160932004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16094
16095 * lisp.h: Add undef DECL_ALIGN.
16096
dcdaeebc
SM
160972004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
16098
16099 * process.c (wait_reading_process_input) [SYNC_INPUT]:
16100 Check interrupt_input_pending explicitly.
16101
16102 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
16103
16104 * keyboard.c (handle_async_input): New fun,
16105 extracted from input_available_signal.
16106 (input_available_signal, reinvoke_input_signal): Use it.
16107
9076a823
SM
161082004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
16109
d7107586
SM
16110 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
16111
16112 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
16113 manipulation macros for when tags are in the lower bits.
16114 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
16115 (DECL_ALIGN): New macro.
16116 (DEFUN): Use it.
16117
16118 * lisp.h [ENABLE_CHECKING]: Don't force union type.
16119
16120 * s/darwin.h (__attribute__): Remove outdated workaround.
16121
16122 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
16123
16124 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
16125 Don't check range of malloc address.
16126 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
16127
9076a823
SM
16128 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
16129
16130 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
16131
ba029065
KH
161322004-01-19 Kenichi Handa <handa@m17n.org>
16133
16134 * fontset.c (fontset_font_pattern): Fix previous change.
16135
7af0e8d7
MB
161362004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
16137
16138 * xdisp.c (Voverflow_newline_into_fringe)
16139 (move_it_in_display_line_to, redisplay_internal)
16140 (update_window_fringes, redisplay_window, display_line, window):
16141 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
16142 that it compiles without a window-system.
16143 * dispnew.c (direct_output_for_insert, update_window): Likewise.
16144
77a9cf69
KS
161452004-01-16 Kim F. Storm <storm@cua.dk>
16146
16147 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
16148
a64387ee 16149 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
16150 buffer_local_flags for indicate_buffer_boundaries.
16151 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
16152 default- variable for it.
16153
16154 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
16155 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 16156 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
16157 overflowing newlines into right fringe.
16158 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
16159 and indicate_bottom_line_p for buffer boundaries and scrolling.
16160 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
16161 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
16162 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
16163 and HOLLOW_SQUARE_BITMAP.
16164 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
16165 Add prototypes.
16166
16167 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
16168 instead of related indicator fields.
16169 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
16170 (direct_output_for_insert): Handle exact width lines like
16171 contined lines. Call update_window_fringes.
16172 (update_window): Call update_window_fringes.
16173 (scrolling_window): Don't skip desired rows with changed bitmaps.
16174 Check if fringe bitmaps changes when assigning scrolled rows.
16175
16176 * xdisp.c (Voverflow_newline_into_fringe): New variable.
16177 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
16178 (move_it_in_display_line_to): Overflow newline into fringe for
16179 rows that are exactly as wide as the window.
16180 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
16181 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
16182 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
16183 (fringe_bitmaps): Add new bitmaps.
16184 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
16185 Select proper bitmap for cursor in fringe when appropriate.
16186 Handle alignment of bitmap to top or bottom of row.
16187 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
16188 done by update_window_fringes.
16189 (update_window_fringes, draw_window_fringes): New functions.
16190 (redisplay_internal): Call update_window_fringes in case only
16191 cursor row is updated.
16192 (redisplay_window): Call update_window_fringes.
16193 Explicitly call draw_window_fringes if redisplay was done using
16194 the current matrix or the overlay arrow is in the window.
16195 (try_window_reusing_current_matrix): Mark scrolled rows for
16196 fringe update (to update buffer-boundaries / scrolling icons).
16197 (find_last_unchanged_at_beg_row): Handle exact width lines line
16198 continued lines.
16199 (display_line): Overflow newline into fringe for rows that are
16200 exactly as wide as the window. Don't append space for newline
d7107586 16201 in this case.
77a9cf69
KS
16202 (notice_overwritten_cursor): Explicitly clear cursor bitmap
16203 in fringe as if it had been overwritten.
16204 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 16205 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
16206 void-text-area-pointer as user options.
16207 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 16208
77a9cf69
KS
16209 * xterm.c (x_update_window_end): Call draw_window_fringes.
16210 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16211 in row instead of actually drawing fringe bitmaps.
16212 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16213 (x_draw_window_cursor): Draw cursor in fringe.
16214
16215 * w32term.c (x_update_window_end): Call draw_window_fringes.
16216 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16217 in row instead of actually drawing fringe bitmaps.
16218 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16219 (w32_draw_window_cursor): Draw cursor in fringe.
16220
16221 * macterm.c (x_update_window_end): Call draw_window_fringes.
16222 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16223 in row instead of actually drawing fringe bitmaps.
16224 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16225 (mac_draw_window_cursor): Draw cursor in fringe.
16226
a633a954
JD
162272004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16228
16229 * xterm.c (handle_one_xevent): Don't handle characters that are part
16230 of an old style (XLookupString) compose sequence.
16231
80460525
KH
162322004-01-15 Kenichi Handa <handa@m17n.org>
16233
16234 * search.c (Freplace_match): Use make_multibyte_string or
16235 make_unibyte_string according to the buffer multibyteness.
16236
7fc34f85
SM
162372004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
16238
16239 * alloc.c (struct interval_block, struct string_block)
16240 (struct symbol_block, struct marker_block, live_string_p)
16241 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
16242 Better preserve alignment for objects in blocks.
16243 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
16244
16245 * lread.c (defvar_per_buffer): Remove dead declaration.
16246
16247 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
16248 space size.
16249
66070bd1
JD
162502004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16251
16252 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
16253 if a key press should pop down. Only pop down if a key is pressed
16254 outside the menu/dialog.
16255 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
16256 popup_get_selection.
16257 (create_and_show_dialog): Pass 1 for down_on_keypress to
16258 popup_get_selection.
16259
de7515d6
JD
162602004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16261
16262 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
16263 BLOCK/UNBLOCK_INPUT.
16264
160b1b50
JD
162652004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16266
16267 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
16268 specified.
16269
3a9f36e6
KH
162702004-01-08 Kenichi Handa <handa@m17n.org>
16271
16272 * editfns.c (Fformat): Fix '&' to '&&'.
16273
3803eb32
AS
162742004-01-08 Andreas Schwab <schwab@suse.de>
16275
16276 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
16277 size if PSEUDOVECTOR_FLAG is set.
16278
9da88f37
KH
162792004-01-07 Kenichi Handa <handa@m17n.org>
16280
74ac5074
KH
16281 * charset.c (Fdeclare_equiv_charset): Fix docstring.
16282
9da88f37
KH
16283 * fontset.c (fontset_ref_via_base): Fix previous change.
16284
05faee07
KS
162852004-01-07 Kim F. Storm <storm@cua.dk>
16286
16287 * process.c (read_process_output): Only activate adaptive
16288 buffering if we read less than 256 bytes at a time.
16289
634910c8
KS
162902004-01-06 Kim F. Storm <storm@cua.dk>
16291
16292 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
16293 object and image object. Return glyph width and height.
16294 (mode_line_string, marginal_area_string): Ditto.
16295
16296 * dispextern.h (buffer_posn_from_coords, mode_line_string)
16297 (marginal_area_string): Fix prototypes.
16298
16299 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 16300 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
16301 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
16302
16303 * keyboard.c (make_lispy_position): Use modified mode_line_string,
16304 buffer_posn_from_coords, and marginal_area_string functions to
16305 include both string object and image object in the lispy position.
16306 Also add actual glyph width and height to position.
16307 (read_key_sequence): Use real buffer position from mouse
16308 event to find keymap property even when click is in marginal area.
16309
16310 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
16311 mode_line_string and marginal_area_string functions to handle
16312 both string object and image object properties.
d7107586 16313
57951c2e
AS
163142004-01-06 Andreas Schwab <schwab@suse.de>
16315
16316 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
16317 character.
16318
181e6a61
AS
163192004-01-02 Andreas Schwab <schwab@suse.de>
16320
d7107586
SM
16321 * macterm.c (emacs_options, x_initialized, same_x_server):
16322 Remove unused (and duplicated) definitions.
181e6a61 16323
31e0fbdd
KS
163242004-01-02 Kim F. Storm <storm@cua.dk>
16325
16326 * process.h (struct Lisp_Process): New members for adaptive read
16327 buffering: adaptive_read_buffering, read_output_delay, and
16328 read_output_skip.
16329
16330 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
16331 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
16332 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
16333 (process_output_delay_count, process_output_skip): New vars.
16334 (Vprocess_adaptive_read_buffering): New variable.
16335 (make_process): Initialize adaptive read buffering members.
16336 (Fstart_process): Set adaptive_read_buffering member.
16337 (deactivate_process): Cleanup adaptive read buffering.
16338 (wait_reading_process_input): Temporarily omit delayed
16339 subprocesses from the set of file descriptors to read from;
16340 adjust the select timeout if we skipped any subprocesses.
16341 (read_process_output): Increase adaptive read buffering delay if
16342 we read less than a full buffer; reduce delay when we read a
16343 full buffer.
16344 (send_process): Simplify using local Lisp_Process var.
16345 Reset adaptive read buffering delay after write.
16346 (init_process): Initialize process_output_delay_count and
16347 process_output_skip.
16348 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
16349
68c6a789
JR
163502004-01-01 Jason Rumney <jasonr@gnu.org>
16351
d7107586 16352 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 16353
3f70fe82
LT
163542003-12-30 Luc Teirlinck <teirllm@auburn.edu>
16355
16356 * print.c (Ferror_message_string): Add hyperlink in the docstring
16357 to the definition of `signal' in the Elisp manual.
16358 * eval.c (Fsignal): Ditto.
16359
b6189c3b 163602003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
16361
16362 * fns.c (internal_equal): Return t for two NaN arguments.
16363
7abd90ea
RS
163642003-12-29 Richard M. Stallman <rms@gnu.org>
16365
16366 * data.c (store_symval_forwarding): Handle setting
16367 default-fill-column, etc., by changing the value in
16368 buffers that use the default.
16369
16370 * minibuf.c (Fset_minibuffer_window): Doc fix.
16371
16372 * fileio.c (choose_write_coding_system): Ignore auto_saving
16373 if using the visited file for auto saves.
16374 (Fwrite_region): Don't update SAVE_MODIFF
16375 if auto-saving in visited file.
16376
3e7cfcdc
KH
163772003-12-29 Kenichi Handa <handa@m17n.org>
16378
16379 * dispextern.h (face_font_available_p): Extern it.
16380
16381 * fontset.c (Voverriding_fontspec_alist): New variable.
16382 (lookup_overriding_fontspec): New function.
d7107586 16383 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
16384 (fontset_font_pattern): Likewise.
16385 (regulalize_fontname): New function.
16386 (Fset_fontset_font): Call regulalize_fontname.
16387 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
16388 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
16389 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
16390
16391 * xfaces.c (face_font_available_p): New function.
16392
7abd90ea
RS
163932003-12-28 Richard M. Stallman <rms@gnu.org>
16394
16395 * buffer.c (Fother_buffer): Don't crash if BUF is nil
16396 or if its name is nil.
16397
16398 * buffer.c (Fkill_buffer): Don't delete auto-save file
16399 if it's the same as the visited file.
16400
de1d1a40
LT
164012003-12-28 Luc Teirlinck <teirllm@auburn.edu>
16402
16403 * coding.c (Fcheck_coding_system): Doc fix.
16404
204fb75e
KS
164052003-12-28 Kim F. Storm <storm@cua.dk>
16406
16407 * Makefile.in (eval.o): Depend on dispextern.h.
16408
16409 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
16410 image glyph using image's ascent.
16411 (mode_line_string): Return image glyph as object clicked on.
16412 Adjust y0 for image glyph using image's ascent.
16413
16414 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
16415 (struct glyph): New members, ascent and descent. Used to save
16416 this glyph's ascent and descent, instead of having.
16417 (struct glyph): Declare member face_id using FACE_ID_BITS.
16418 (find_hot_spot): Add prototype.
16419
16420 * keyboard.c (Qimage): Remove extern (now in lisp.h).
16421 (QCmap): Declare extern.
16422 (make_lispy_position): When position is inside image hot-spot,
16423 use hot-spot element's id as posn element.
16424
16425 * lisp.h (IMAGEP): New macro to test for image object type.
16426 (Qimage): Declare extern.
16427
16428 * macfns.c (Qimage): Remove extern (now in lisp.h).
16429 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16430
16431 * macterm.c (Qface, Qmouse_face): Remove unused externs.
16432
16433 * w32fns.c (Qimage): Remove extern (now in lisp.h).
16434 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16435
16436 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
16437
16438 * w32term.c (Qface, Qmouse_face): Remove unused externs.
16439
16440 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
16441 pointer types.
16442 (Qrelative_width, Qalign_to): Remove unused variables.
16443 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
647b07d1
AS
16444 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
16445 maps.
16446 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
16447 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
16448 code accordingly.
204fb75e
KS
16449 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
16450 than row's ascent and height, to get sensible height on tall rows.
16451 (build_desired_tool_bar_string): Remove Qimage extern.
16452 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
16453 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
16454 image glyph is alone on the last line.
16455 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 16456 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 16457 (on_hot_spot_p): New function to check if position is inside an
d7107586 16458 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
16459 (find_hot_spot): New function to search for image hot-spot.
16460 (Flookup_image_map): New defun to search for image hot-spot.
647b07d1
AS
16461 (define_frame_cursor1): New aux function to determine frame
16462 pointer.
16463 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
16464 `pointer' text property and :pointer image property to control
16465 frame pointer shape. Detect image hot-spots for pointer and
16466 help_echo properties. Use define_frame_cursor1.
16467 (note_mouse_highlight): Use Vvoid_text_area_pointer.
16468 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
16469 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
16470 Vshow_text_cursor_in_void.
204fb75e
KS
16471
16472 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
16473
16474 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
16475 (Qimage): Remove extern (now in lisp.h).
16476 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16477
16478 * xmenu.c (show_help_event): Remove unused code.
16479
16480 * xterm.c (Qface, Qmouse_face): Remove unused externs.
16481 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
16482 row's ascent and descent, to get a sensible height on tall rows.
16483
fc052137
LT
164842003-12-25 Luc Teirlinck <teirllm@auburn.edu>
16485
16486 * minibuf.c (Fcompleting_read): Undo previous change.
16487
a64387ee 164882003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
16489
16490 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
16491 Arguments GCPRO'ed in call to file name handler.
16492
56ffd194
TTN
164932003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
16494
16495 * termcap.c (tgetst1): Scan for "%pN"; if all
16496 N are continuous in [1,9], remove all "%pN".
16497
5202d23d
JD
164982003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16499
f26fab36
JD
16500 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
16501
5202d23d
JD
16502 * xfaces.c (lface_fully_specified_p): Take into account that
16503 MAC OS always have unspecified stipple.
16504
8babaa59
TTN
165052003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
16506
16507 * tparam.c (tparam1): Add handling for `%pN', which
16508 means use param N for the next substitution.
16509
2d176448
TTN
165102003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
16511
16512 * xfaces.c (Fcolor_gray_p): Fix omission bug:
16513 In case `frame' is nil, consult the selected frame.
16514 (Fcolor_supported_p): Likewise.
16515
adb0708c
LT
165162003-12-23 Luc Teirlinck <teirllm@auburn.edu>
16517
000eeb15
LT
16518 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
16519 Doc fixes.
0dc72b11
LT
16520
16521 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
16522 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
16523 (Fread_from_minibuffer): Delete code moved into read_minibuf.
16524 Doc fix.
16525 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
16526 read_minibuf.
16527 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 16528 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 16529
2e4d132b
KH
165302003-12-03 Kenichi Handa <handa@m17n.org>
16531
16532 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
16533 encoding sequence.
16534
3999c705
KH
165352003-12-01 Kenichi Handa <handa@m17n.org>
16536
16537 * composite.c (syms_of_composite): Don't make the compostion hash
16538 table week.
16539
d344ecbb
LT
165402003-11-30 Luc Teirlinck <teirllm@auburn.edu>
16541
16542 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
16543 * textprop.c (Fget_char_property_and_overlay): New function.
16544 (syms_of_textprop): Defsubr it.
16545
03d6484e
JD
165462003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16547
019b1f0e
JD
16548 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
16549 to compile on terminal configuration.
16550
03d6484e
JD
16551 * fileio.c (Fread_file_name): Check use_file_dialog also before
16552 calling Fx_file_dialog.
16553
1d1c7e75 16554 * fns.c (use_file_dialog): New variable.
03d6484e
JD
16555 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
16556
442d3fd0
KS
165572003-11-29 Kim F. Storm <storm@cua.dk>
16558
16559 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
16560 (syms_of_msdos): Don't intern and staticpro them.
16561
0f6a07a8
KS
165622003-11-27 Kim F. Storm <storm@cua.dk>
16563
16564 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
16565 coordinates relative to glyph at posn. If glyph is an image,
16566 return that as object at posn. Callers changed.
16567 (mode_line_string, marginal_area_string): Calculate and return
16568 pixel coordinates relative to glyph. Callers changed.
16569
16570 * dispextern.h (buffer_posn_from_coords, mode_line_string)
16571 (marginal_area_string): Fix prototypes.
16572 (window_box_left_offset, window_box_right_offset): Add prototypes.
16573
16574 * frame.h (get_specified_cursor_type, get_window_cursor_type):
16575 Remove prototypes.
16576
16577 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
16578
16579 * keyboard.c (make_lispy_position): Add x and y coordinates
16580 relative to the current glyph as 7th element of position.
16581 If glyph is an image, return it in the object element.
16582 (read_key_sequence): Skip checks for keymap property in cases
16583 where POSN_STRING is not a string (e.g. an image).
16584
16585 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
16586 (Vshow_text_cursor_in_void): New variable.
16587 (glyph_to_pixel_coords): Don't use negative hpos.
16588 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
16589 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 16590 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
16591 (calc_pixel_width_or_height): New aux function, implementing
16592 pixel based artihmetic for glyph widths and heights.
16593 (produce_stretch_glyph): Use calc_pixel_width_or_height for
16594 :width, :height, :align-to, and :ascent, thus allowing these to
16595 be specified in pixels as well as multiples of characters.
16596 Don't produce stretch glyphs with zero width or height.
16597 (get_specified_cursor_type): Declare static.
16598 (get_window_cursor_type): Declare static. Add glyph arg to be
16599 able to know when cursor is on an image; always substitute
16600 hollow-box cursor for filled-box cursor on images, to avoid
16601 negative images and flicker when blinking the cursor.
5e1a6e32 16602 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
0f6a07a8
KS
16603 (note_mode_line_or_margin_highlight): Use non-text cursor rather
16604 than vertical scroll-bar cursor in display margins.
16605 (note_mouse_highlight): Use non-text cursor rather than text
16606 cursor in fringes and over images in the text area.
16607 Use non-text cursor when mouse pointer is outside editable text,
16608 i.e. in the void after end-of-line or end-of-buffer; this was
16609 already done for W32, but is now standard for all systems --
16610 user can toggle show-text-cursor-in-void to get old behaviour.
16611 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
16612 Vdisplay_pixels_per_inch.
16613
00498bfc
AS
166142003-11-25 Andreas Schwab <schwab@suse.de>
16615
16616 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
16617 EMACS_INT to not lose bits.
16618 (Ffillarray): Don't set bits beyond the size of a bool vector.
16619
edaa824d
KS
166202003-11-25 Kim F. Storm <storm@cua.dk>
16621
16622 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
16623 define this defun on systems that cannot use stderr as lvalue.
16624
74d6f539
GM
166252003-11-24 Gerd Moellmann <gerd@gnu.org>
16626
16627 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
16628 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
16629 ld's default is incompatible with unexec.
16630
6a1ff3ba
KS
166312003-11-23 Kim F. Storm <storm@cua.dk>
16632
63dc7c6b
KS
16633 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
16634 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
16635 (Fforce_window_update): New defun.
16636 (syms_of_window): Defsubr it.
16637 (Fset_window_margins, Fset_window_fringes): Doc fix.
16638
6a1ff3ba
KS
16639 * print.c (Fredirect_debugging_output): New defun.
16640 (syms_of_print): Defsubr it.
16641
aef109b7
LT
166422003-11-22 Luc Teirlinck <teirllm@auburn.edu>
16643
16644 * fns.c (Fset_char_table_parent): Doc fix.
16645
6a1ff3ba 166462003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
16647
16648 * dispnew.c (buffer_posn_from_coords): Return actual row/column
16649 for glyph clicked on, rather than (unused) pixel positions.
16650 (mode_line_string, marginal_area_string): Change X and Y args to
16651 pointers for returning actual row/column for glyph clicked on.
16652 Simplify and optimize loops.
16653
aef109b7
LT
16654 * dispextern.h (mode_line_string, marginal_area_string):
16655 Update prototypes.
63ccbe21
KS
16656
16657 * keyboard.c (make_lispy_position): New function for generating
16658 mouse click positions from frame and pixel coordinates.
16659 Enhanced to return buffer position and actual row/column for
16660 events outside the text area using updated mode_line_string and
16661 marginal_area_string functions.
16662 Return left-fringe and right-fringe clicks as such, rather than
16663 clicks in text area.
16664 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
16665 pixel_to_glyph_coords, as we never use the results.
16666 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
16667 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
16668 Eliminate unused code in WHEEL_EVENT handling.
16669 (make_lispy_movement): Use make_lispy_position.
16670
16671 * window.c (coordinates_in_window): Remove redundant tests.
16672 Fix returned X pixel value for left-margin.
16673
16674 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
16675 mode_line_string and marginal_area_string parameters.
16676
a64387ee 166772003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 16678
d7107586
SM
16679 * w32.c (struct the_group, getgrgid): Add.
16680 * mac.c (struct my_group, getgrgid): Add.
aef109b7 16681
3dbf3426
LT
166822003-11-21 Luc Teirlinck <teirllm@auburn.edu>
16683
16684 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
16685
cae8ddbb 166862003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 16687
d7107586
SM
16688 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
16689 include in call to file name handler. Optionally translate numeric
16690 UID and GID to strings. Update docstring.
16691 (directory_files_internal): Add parameter ID-FORMAT.
16692 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
16693 include in call to file name handler and call to
16694 directory_files_internal. Update Docstring.
16695 (Fdirectory_files): Add dummy parameter in call to
16696 directory_files_internal.
16697 * lisp.h (Qinteger): Add.
16698 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
16699 (Ffile_attributes): Add parameter.
16700 * data.c (Qinteger): Export.
cae8ddbb 16701
2550b848
LT
167022003-11-21 Luc Teirlinck <teirllm@auburn.edu>
16703
3dbf3426 16704 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 16705
88380018
KS
167062003-11-19 Kim F. Storm <storm@cua.dk>
16707
16708 * xdisp.c (init_iterator): Initialize it->start to position
16709 before reseating (in case start position is invisible).
16710 (init_to_row_start): Set it->start to row-start.
16711 (redisplay_window): Accept optional_new_start if start position
16712 is invisible (in which case IT_CHARPOS overshoots PT).
16713 (display_line): Setup row->start from it->start (rather than
16714 it->current which is wrong if first char on line is invisible).
16715 When done, reseat it->start to it->current (= start of next row).
16716 (expose_area): Fix exposure of text area when first char (e.g. TAB)
16717 is only partially visible.
16718
16719 * dispextern.h (struct it): New member start.
16720
854c1a59
SM
167212003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
16722
455316e2
SM
16723 * alloc.c (make_float, Fcons): Clear the markbit at init time.
16724 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
16725 of block_index outside of the macro call.
16726 (Fgarbage_collect): Remove null code.
16727
16728 * m/amdx86-64.h: Don't redefine XPNTR.
16729
854c1a59
SM
16730 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
16731 of VALMASK.
16732
16733 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
16734 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
16735 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
16736
16737 * lisp.h (VALMASK): Only define for non-union type.
16738 (MARKBIT): Remove.
16739 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
16740 (XTYPE): Define unconditionally.
16741 (XSETTYPE): Remove one more remnant.
16742 (EQ): Define differently for the union and non-union cases.
16743 (INTMASK): New bit mask.
16744 (struct Lisp_Marker): Move down to prepare for upcoming patch.
16745 (GC_EQ): Delegate to EQ.
16746
16747 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
16748
a0c6ef2d
JD
167492003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16750
16751 * xterm.c (x_window_to_scroll_bar): Move check of display to
16752 where window_id is compared.
16753
859492c4
KS
167542003-11-17 Kim F. Storm <storm@cua.dk>
16755
16756 * dispextern.h (struct it): New member first_vpos.
16757
16758 * xdisp.c (start_display): Set it->first_vpos.
16759 (try_window_id): Use first_vpos to start display in first _text_
16760 line if no reusable lines at start of window with header line.
16761
810f2256
JD
167622003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16763
7c402969 16764 * w32fns.c (XPutPixel):
854c1a59
SM
16765 * w32bdf.c (w32_init_bdf_font):
16766 * sunfns.c (sel_read):
16767 * process.c (Fmake_network_process):
16768 * frame.c (store_frame_param):
16769 * fontset.c (Fset_fontset_font):
16770 * emacs.c (shut_down_emacs):
a64387ee 16771 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 16772
a32e9bfd
JD
16773 * config.in: Regenerate.
16774
810f2256
JD
16775 * xfns.c (x_window_to_frame, x_any_window_to_frame)
16776 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
16777 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
16778 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
16779 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
16780
16781 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
16782
16783 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
16784 (XTmouse_position, handle_one_xevent): Pass Display* to
16785 x_window_to_scroll_bar.
16786 (x_window_to_scroll_bar): Take a Display* argument.
16787 Check that display for frame is equal to Display* argument.
854c1a59 16788 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
16789 x_display_info_for_display instead. Use Display in xev instead
16790 of GDK_DISPLAY.
16791 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 16792 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
16793 (x_connection_closed): Call xg_display_close for GTK.
16794 (x_term_init): Call xg_display_open for additional displays.
16795 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
16796 for GTK.
16797
16798 * xmenu.c (single_menu_item, mouse_position_for_popup)
16799 (x_activate_menubar): Formatting adjustments.
16800
16801 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
16802 adjustments.
16803
16804 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
16805 (xg_display_close, xg_create_default_cursor)
16806 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
16807 handling.
854c1a59
SM
16808 (xg_left_ptr_cursor): Remove.
16809 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
16810 cursor here.
16811 (xg_win_to_widget): Take Display* argument, call
16812 gdk_xid_table_lookup_for_display.
16813 (xg_create_frame_widgets, xg_get_file_name, create_menus)
16814 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
16815 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
16816 in FRAME_X_DISPLAY_INFO.
16817 (xg_get_scroll_id_for_window): Take Display* argument.
16818 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 16819 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 16820
78819ebb
KS
16821 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
16822 Display* argument.
16823 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 16824
0b03cc78
JD
168252003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16826
16827 * xterm.c (x_detect_focus_change): Do not change focus frame for
16828 Enter/LeaveNotify if the current focus frame has explicit focus.
16829
77e688fa
KS
168302003-11-14 Kim F. Storm <storm@cua.dk>
16831
16832 * dispnew.c (update_text_area): Fix redisplay error when hscroll
16833 is active and first glyph is only partially visible.
854c1a59 16834
dd429b03
KH
168352003-11-13 Kenichi Handa <handa@m17n.org>
16836
16837 * xdisp.c (select_frame_for_redisplay): New function.
16838 (redisplay_internal): Record also selected_frame for
16839 unwind_redisplay. Call select_frame_for_redisplay before
16840 redrawing each frame.
16841 (unwind_redisplay): Argument changed to a cons.
16842
6d9266f4
LT
168432003-11-12 Luc Teirlinck <teirllm@auburn.edu>
16844
16845 * fns.c (Fstring_to_multibyte): Doc fix.
16846
80060eb3
KH
168472003-11-11 Kenichi Handa <handa@m17n.org>
16848
16849 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16850
74305183
JD
168512003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16852
16853 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
16854 program specified positions.
16855
cfda993e
JD
168562003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16857
16858 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
16859
df211069
KH
168602003-11-08 Kenichi Handa <handa@m17n.org>
16861
16862 * Makefile.in (lisp): Add kannada.el.
16863 (shortlisp): Likewise.
16864
4307d534
KH
168652003-11-07 Kenichi Handa <handa@m17n.org>
16866
854c1a59
SM
16867 * coding.c (coding_allocate_composition_data):
16868 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
16869 (coding_restore_composition): Detect invalid composition data.
16870 Give Fstring and Fvector a Lispy integer, not C int.
16871
854c1a59
SM
168722003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
16873
16874 * floatfns.c (Flogb): Don't use VALMASK.
16875
16876 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
16877 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
16878
16879 * lisp.h (XINT): Move the cast to clarify what is going on.
16880 (GCTYPEMASK, XSETTYPE): Remove.
16881 (XGCTYPE): Make it an alias of XTYPE.
16882
d04103a1
JD
168832003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16884
16885 * xterm.c (x_term_init): Fix formatting.
16886
da18b5ac
JD
168872003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16888
78819ebb
KS
16889 * gtkutil.h (xg_have_tear_offs): Declare.
16890 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
16891
16892 * gtkutil.c: Remove variable xg_did_tearoff.
16893 (xg_have_tear_offs): New function.
16894 (tearoff_remove): Just decrease xg_detached_menus.
16895 (tearoff_activate): Increase xg_detached_menus and call
16896 tearoff_remove when tearoff is removed.
854c1a59 16897 (xg_keep_popup): Remove function.
da18b5ac
JD
16898 (create_menus): Give add_tearoff_p as argument to recursive
16899 call to create_menus.
16900 (xg_create_widget): Use variables instead of multiple
16901 strcmp. Tell create_menus to create tear off only for
16902 menu bar menus.
16903 (xg_update_menubar): Change title for a detached menu also.
16904 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
16905 of deep_p.
16906 (xg_initialize): Initialize xg_detached_menus, remove
16907 initialization of xg_did_tearoff.
16908
16909 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
16910 xg_have_tear_offs returns non-zero.
16911 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
16912 call to xg_keep_popup.
16913
64d4923e
AC
169142003-11-01 Andrew Choi <akochoi@shaw.ca>
16915
16916 * macterm.c (XTread_socket): Handle menubar selection and grow
16917 window only for mouseDown events.
854c1a59 16918
6cc8bc07
JD
169192003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16920
16921 * xterm.c (x_term_init): For GTK part, increase x_initialized
16922 to check for more than one display. Use error instead of return 0.
16923
043131c4
AC
169242003-10-31 Andrew Choi <akochoi@shaw.ca>
16925
854c1a59 16926 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
16927 (copy_dysymtab): Call it.
16928
bdda99a1
LT
169292003-10-31 Luc Teirlinck <teirllm@auburn.edu>
16930
16931 * eval.c (Fdefvaralias): Doc fix.
16932
800f42ff 169332003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
16934
16935 * data.c (Fsetplist): Doc fix.
16936
ef35b389
LK
169372003-10-14 Lute Kamstra <lute@gnu.org>
16938
16939 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 16940
ef35b389 169412003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 16942
07107abc
KS
16943 * window.c (Fset_window_margins): Simplify arg checking.
16944
f7005886
RS
169452003-10-13 Richard M. Stallman <rms@gnu.org>
16946
16947 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
16948 (print_partial_compiled_pattern): Replace assert with a printout.
16949 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
16950
16951 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
16952
16953 * window.c (Fset_window_margins): Allow only integers as args.
647b07d1
AS
16954 (syms_of_window) <special-display-buffer-names,
16955 special-display-regexps>: Doc fixes.
f7005886 16956
9c0c2af5
LK
169572003-10-13 Lute Kamstra <lute@gnu.org>
16958
16959 * window.c (Fset_window_fringes): Elaborate docstring.
16960
3f080e4e
AC
169612003-10-12 Andrew Choi <akochoi@shaw.ca>
16962
854c1a59 16963 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 16964
3f080e4e
AC
16965 * s/darwin.h (GC_MARK_STACK): Define.
16966
0aa513ed
JD
169672003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16968
16969 * window.c (shrink_windows): New function.
16970 (size_window): Call shrink_windows to calculate window sizes when
16971 shrinking frame with more than one window.
16972
6aa8858a
KS
169732003-10-12 Kim F. Storm <storm@cua.dk>
16974
16975 * xdisp.c (compute_fringe_widths): Doc fix.
16976
c2164d91
KH
169772003-10-08 Kenichi Handa <handa@m17n.org>
16978
854c1a59 16979 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 16980
f82ac129
KH
169812003-10-07 Kenichi Handa <handa@m17n.org>
16982
16983 * coding.c (Qcoding_system_define_form): New variable.
16984 (syms_of_coding): Intern and staticpro it.
16985 (Fcheck_coding_system): Try to autoload the definition of
16986 CODING-SYSTEM.
16987
9296c947
LT
169882003-10-05 Luc Teirlinck <teirllm@auburn.edu>
16989
16990 * fns.c (Frequire): Doc fix.
16991
c1f0671a
JD
169922003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16993
3d8c3826
JD
16994 * xfns.c (Fx_send_client_event): New function as a base for
16995 manipulating extended window manager hints.
6dc15d98 16996 (Fx_send_client_event): Remove unused variable s.
3d8c3826 16997
068ae0fd
JD
16998 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
16999 that function is removed.
17000
17001 * xterm.c (x_set_offset): Use move_offset_left/top instead of
17002 x/y_pixels_outer_diff.
17003 (x_check_expected_move): Calculate move_offset_left/top.
17004
17005 * xterm.h (struct x_output): New members: move_offset_top/left.
17006
854c1a59 17007 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
17008 call x_set_offset directly.
17009
17010 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
17011
96f09305
JD
17012 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
17013
17014 * xterm.c (x_delete_display): Free font names and font_encoder
17015 in dpyinfo->font_table.
17016
854c1a59
SM
17017 * xfns.c (Fx_close_connection): Only call XFreeFont here.
17018 Move xfree of font names to x_delete_display.
96f09305 17019
c1f0671a
JD
17020 * xterm.h (struct x_display_info): New member, wm_type.
17021 (struct x_output): New members, expected_top/left and
17022 check_expected_move.
17023
17024 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
17025 is received.
854c1a59
SM
17026 (handle_one_xevent): Rename x_check_expected_move from
17027 x_check_fullscreen_move.
5e1a6e32 17028 (x_set_offset): Only add WM decoration sizes to modified_top/left
c1f0671a 17029 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 17030 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
17031 Removed fullscreen specific code. Use check_expected_move,
17032 expected_left/top instead. Also, set wm_type.
17033 (x_term_init): Initialize wm_type to unknown.
17034
17035 * frame.c (x_fullscreen_move): Remove addition of WM decoration
17036 sizes to move_x/y.
17037
be2fdba9
KH
170382003-10-03 Kenichi Handa <handa@m17n.org>
17039
17040 * macterm.c (x_load_font): Clear all members of FONTP before start
17041 filling them.
17042
170432003-10-02 Kenichi Handa <handa@m17n.org>
17044
17045 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
17046 before calling find_ccl_program_func. Call find_ccl_program_func
17047 only when fontp->font_encoder is not NULL.
17048
17049 * xterm.c (x_load_font): Clear all members of FONTP before start
17050 filling them.
17051
26a6e439
JPW
170522003-10-03 John Paul Wallington <jpw@gnu.org>
17053
17054 * keymap.c (map_keymap): Don't abort when binding is a vector.
17055
0d4c2dc2
JR
170562003-10-02 Jason Rumney <jasonr@gnu.org>
17057
854c1a59
SM
17058 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
17059 Sync dependencies with Makefile.in.
a63cf46f
JR
17060 (alloca.o): Remove.
17061
0d4c2dc2
JR
17062 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
17063 filling them.
17064
17065 * w32bdf.c (w32_load_bdf_font): Likewise.
17066
ab8f7d5c
RS
170672003-09-30 Richard M. Stallman <rms@gnu.org>
17068
17069 * term.c (set_tty_color_mode): Calculate current_mode_spec
17070 regardless of value of VAL.
17071
854c1a59 17072 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
17073 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
17074 Handle over_used when splitting UNDER.
17075
c6605d63 170762003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
17077
17078 * regex.c (regex_compile): Free the stack when returning from function.
17079
3413f972
KH
170802003-09-28 Kenichi Handa <handa@m17n.org>
17081
17082 * fontset.c (Finternal_char_font): Change return value to
17083 cons (FONT-NAME . GLYPH-CODE).
17084
a6eeaa81 170852003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
17086
17087 * term.c (tty_setup_colors): Treat any negative argument as -1.
17088
f98ddc99
KH
170892003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
17090
17091 * process.c (send_process): Delete unused temp_buf.
17092
66c8f1a8
DL
170932003-09-26 Dave Love <fx@gnu.org>
17094
17095 * xterm.c (x_bitmap_mask): Declare.
17096
ca716c26
DL
170972003-09-25 Dave Love <fx@gnu.org>
17098
17099 * Makefile.in (fns.o): Depend on md5.h.
17100
fbe57420
KS
171012003-09-25 Kim F. Storm <storm@cua.dk>
17102
17103 * window.c (set_window_buffer): Fix redisplay problems when
17104 switching between buffers with different display margin widths.
17105
ef6ae4ff
KS
171062003-09-23 Kim F. Storm <storm@cua.dk>
17107
17108 * process.c (set_socket_option): Fix :bindtodevice option.
17109 (Fset_network_process_option): Update process contact list when
17110 setting option succeeds.
17111 (Fmake_network_process): Doc fix.
17112
68e03c1c
DL
171132003-09-23 Dave Love <fx@gnu.org>
17114
7146d1c1 17115 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 17116
a6eeaa81 171172003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
17118
17119 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
17120 color mode is an integer number (it could be -1).
17121
8fe7d8c8
RS
171222003-09-22 Richard M. Stallman <rms@gnu.org>
17123
17124 * intervals.c (graft_intervals_into_buffer): Correct the main loop
17125 in the case where OVER is longer than UNDER.
17126
2f71b5ea
MY
171272003-09-22 Masatake YAMATO <jet@gyve.org>
17128
7146d1c1 17129 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 17130 `vertical_type'.
7146d1c1 17131
0c4da023
KS
171322003-09-21 Kim F. Storm <storm@cua.dk>
17133
17134 * frame.c (Vdefault_frame_scroll_bars): New variable.
17135 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
17136 (syms_of_frame): DEFVAR_LISP it, and initialize according to
17137 window-system default scroll bar position.
17138
b648413b
KS
17139 * window.c (Fwindow_scroll_bars): Doc fix.
17140
8f5b9e34
JD
171412003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17142
854c1a59 17143 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 17144
b0f23edf
RS
171452003-09-19 Richard M. Stallman <rms@gnu.org>
17146
17147 * atimer.h: Don't include lisp.h.
17148 (P_): Define it here (as well as elsewhere).
17149
17150 * print.c (Fprin1_to_string): Move the PRINTPREPARE
17151 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
17152
17153 * data.c (Fvariable_binding_locus): New function.
17154 (syms_of_data): defsubr it.
17155 (Flocal_variable_p): Delete duplicate call to indirect_variable.
17156
e1283999
DL
171572003-09-18 Dave Love <fx@gnu.org>
17158
ad5f3636
DL
17159 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
17160
e1283999
DL
17161 * process.c (Fnetwork_interface_info): Fix type error.
17162 (Fnetwork_interface_list): Doc fix.
17163 (read_process_output, read_process_output): Delete unused var.
17164
b8c7fd71
KS
171652003-09-17 Kim F. Storm <storm@cua.dk>
17166
17167 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
17168 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
17169 (Fnetwork_interface_info): Check that ifreq struct has required
17170 fields before accessing them; this requires that those fields are
17171 defined as macros, which may be too restrictive on some platforms,
17172 but it is better than failing on other platforms.
17173 (syms_of_process): Only defsubr above fns when included.
17174
11e0a411
DL
171752003-09-17 Dave Love <fx@gnu.org>
17176
17177 * unexalpha.c: Don't include varargs.h.
17178
e9c50801
KS
171792003-09-17 Kim F. Storm <storm@cua.dk>
17180
17181 * process.c (Fset_process_sentinel): Add sentinel to childp plist
17182 for network process.
17183 (socket_options): Add `:' prefix to option names. Add optbit field.
17184 (set_socket_option): Remove no_error arg and special handling of s < 0.
17185 Return 1<<optbit for known option, 0 for unknown.
17186 Do not interpret 0 as false for boolean option (only nil).
17187 Pass failed option and value to report_file_error.
7146d1c1 17188 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
17189 (Fset_network_process_option): New function to set just one option.
17190 (Fmake_network_process): Allow :coding arg to be a cons.
17191 Allow :server arg to be an integer specifying backlog size.
17192 Remove :options arg, and allow options to be specified directly
17193 as :KEY, VALUE pairs. Parse these options before binding socket.
17194 As before, :reuseaddr t is default for a server process, but this
17195 can now be disabled by specifying :reuseaddr nil.
17196 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
17197 (init_process): Availability of network options is now checked with
17198 simpler syntax (featurep 'make-network-process :OPTION); use loop to
17199 setup features.
17200 (syms_of_process): Fix defsubr's for the replaced functions.
17201
a0fc3644
DL
172022003-09-16 Dave Love <fx@gnu.org>
17203
17204 * Makefile.in: Depend on coding.h.
17205
6df2a645
KS
172062003-09-14 Kim F. Storm <storm@cua.dk>
17207
17208 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
17209 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
17210 (syms_of_process): Defsubr them.
17211
17212 * config.in: Regenerate.
7146d1c1
SM
17213
172142003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17215
17216 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
17217 * m/news-r6.h (XUNMARK): Remove.
17218 * m/mips.h (XUNMARK): Remove.
17219 * m/mips-siemens.h (XUNMARK): Remove.
17220 * m/iris4d.h (XUNMARK): Remove.
17221 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
17222
0930c1a1
SM
172232003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17224
31003b9e
SM
17225 * lisp.h (VALBITS): Don't remove 1 for the markbit.
17226 (union Lisp_Object): Use unsigned int for types. Remove markbit.
17227 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
17228 (XTYPE): Use unsigned right-shift.
17229 (XMARKBIT, XMARK, XUNMARK): Remove.
17230
0930c1a1
SM
17231 * alloc.c (init_intervals, init_symbol, init_marker):
17232 Don't preallocate anything.
17233 (Fgarbage_collect, mark_object): Ignore the markbit.
17234
17235 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
17236
19bb0fcd 172372003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
17238
17239 * xdisp.c (pint2hrstr): New function.
17240 (decode_mode_spec): Add `%i' and `%I' specs.
17241 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
17242 for `mode-line-format'.
17243
03bb6a06
AS
172442003-09-07 Andreas Schwab <schwab@suse.de>
17245
17246 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
17247 avoid warning.
17248
a6eeaa81 172492003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 17250
0930c1a1 17251 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 17252
ed159bbf
KS
172532003-09-03 Kim F. Storm <storm@cua.dk>
17254
17255 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
17256 change (superseded by 2002-08-30 change); the default blink-off
17257 cursor is now again "no cursor".
17258
fe64a394
JR
172592003-09-01 Jason Rumney <jasonr@gnu.org>
17260
17261 * makefile.w32-in (alloca.o): Remove.
17262 (coding.o): Depend on intervals.h
17263 (emacs.o, bytecode.o): Depend on window.h
17264
c0175e24
DL
172652003-09-01 Dave Love <fx@gnu.org>
17266
17267 * Makefile.in (alloca.o): Remove commands.
17268 (coding.o): Depend on intervals.h composite.h window.h.
17269 (emacs.o): Depend on window.h keyboard.h keymap.h.
17270 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
17271 (bytecode.o): Depend on window.h.
17272
a24d4cb2
JR
172732003-08-31 Jason Rumney <jasonr@gnu.org>
17274
4bc2315e
JR
17275 * w32term.c (w32_per_char_metric): Allow cached metrics to be
17276 returned even when font_type is unknown.
17277
a24d4cb2
JR
17278 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
17279
9d35adc7
JD
172802003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17281
17282 * xterm.c (x_term_init): Initialize new fields in x_display_info.
17283
17284 * xterm.h (struct x_display_info): Add red/green/blue_bits and
17285 *_offset.
17286
17287 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
17288 calculate pixel value.
17289
6f68b035
GM
172902003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
17291
0930c1a1
SM
17292 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
17293 Don't tell redisplay display is accurate when it's actually been
17294 paused for pending input.
6f68b035 17295
4828b4d7
RS
172962003-08-29 Richard M. Stallman <rms@gnu.org>
17297
17298 * dispnew.c (adjust_glyph_matrix): Call window_box
17299 whenever W is nonzero.
17300
17301 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17302 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 17303 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
17304 Use indirect_variable to trace thru variable aliases.
17305
17306 * config.in: Updated.
17307
17308 * callint.c (Fcall_interactively): Save and restore
17309 Vthis_command, Vthis_original_command, real_this_command,
17310 and current_kboard->Vlast_command.
17311
17312 * abbrev.c (Fexpand_abbrev): Insert before deleting.
17313
e019878d
GM
173142003-08-29 Gerd Moellmann <gerd@gnu.org>
17315
17316 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
17317
85478bc6
KH
173182003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
17319
0930c1a1 17320 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
17321 (decode_coding_sjis_big5): Likewise.
17322
07ce82d3
JR
173232003-08-27 Jason Rumney <jasonr@gnu.org>
17324
d3703de3
JR
17325 * w32.c (sys_pipe): Protect against file descriptor overflow.
17326
ee4a01d1
JR
17327 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
17328
07ce82d3
JR
17329 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
17330
a64387ee 173312003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
17332
17333 * xfns.c (Vgtk_version_string): New variable.
17334 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
17335
a6eeaa81 173362003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 17337
0930c1a1 17338 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 17339
5459e42a
EZ
17340 * Makefile.in (msdos.o): Depend on intervals.h.
17341
0930c1a1 17342 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 17343
231d6cfb
JD
173442003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17345
17346 * xterm.h (struct x_display_info): New fields: client_leader_window
17347 and Xatom_wm_client_leader.
17348
17349 * xterm.c (x_initialize): Move call to x_session_initialize to ...
17350 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
17351
17352 * xsmfns.c (create_client_leader_window): New function.
17353 (x_session_initialize): Call create_client_leader_window, take
17354 dpyinfo as argument.
17355
17356 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
17357
17358 * Makefile.in (xsmfns.o): Add more depenedencies.
17359
afa88464
DL
173602003-08-21 Dave Love <fx@gnu.org>
17361
17362 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
17363
f730033e
KH
173642003-08-21 Kenichi Handa <handa@m17n.org>
17365
17366 * term.c (term_init): Fix previous change; don't rely on the
17367 length of `buffer' if TERMINFO is defined.
17368
6dca786c
DL
173692003-08-20 Dave Love <fx@gnu.org>
17370
17371 * atimer.h: Include lisp.h.
17372
17373 * lisp.h (EMACS_LISP_H): New.
17374 (popup_activated_flag): Don't declare.
17375
17376 * alloca.c: Some merging with gnulib. Change logic and doc
17377 concerning (x)malloc/(x)free -- no longer Emacs-specific.
17378 [DO_BLOCK_INPUT]: Don't include lisp.h.
17379 (xmalloc, xfree): Declare.
17380 (malloc): Don't declare.
17381
0930c1a1 17382 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
17383 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
17384 atimer.h, blockinput.h.
17385
17386 * alloc.c (lisp_align_malloc): Change type of `aligned'.
17387
78819ebb 17388 * alloca.s: Remove.
6dca786c 17389
3a06a6d9
RS
173902003-08-19 Gerd Moellmann <gerd@gnu.org>
17391
17392 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
17393 use -lncurses.
17394
17395 * term.c (term_init): Use a buffer of size 4096 for tgetent since
17396 FreeBSD returns something longer than 2044. Abort if the end of
17397 the buffer is overwritten.
17398
27eeee55
MB
173992003-08-19 Miles Bader <miles@gnu.org>
17400
17401 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
17402
2f297815
GM
174032003-08-19 Gerd Moellmann <gerd@gnu.org>
17404
f4446bbf
GM
17405 * alloc.c (lisp_align_malloc): Check for memory full when
17406 allocating ablocks, which also avoids freeing a pointer into an
17407 ablocks structure.
17408
17409 * puresize.h (BASE_PURESIZE): Increase to 1100000.
17410
0930c1a1 17411 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 17412
0e7d7aae
RS
174132003-08-16 Richard M. Stallman <rms@gnu.org>
17414
17415 * editfns.c (Fencode_time): Doc fix.
17416
174172003-08-16 David Ponce <david@dponce.com>
17418
17419 * fileio.c (Fwrite_region): Fix conditional expression to issue
17420 the right message.
17421
b6189c3b 174222003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
17423
17424 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 17425 Set default value to 1.
0e7d7aae 17426
5d551295
KH
174272003-08-15 Kenichi Handa <handa@m17n.org>
17428
17429 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
17430 what autoscaled.
17431 (best_matching_font): Once we find a better scalable font, set
17432 non_scalable_has_exact_height_p to 1.
17433 (try_font_list): Call try_alternative_families to try any family
17434 with the given registry.
17435
1661e56b
AS
174362003-08-09 Andreas Schwab <schwab@suse.de>
17437
f29181dc
AS
17438 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
17439
1661e56b
AS
17440 * print.c (print_string): Fix printing of multibyte string with
17441 nontrivial printcharfun.
17442
465aa50a
JD
174432003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17444
17445 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
17446
17447 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
17448
e430e5ba
KH
174492003-07-31 Kenichi Handa <handa@m17n.org>
17450
17451 * process.c (read_process_output): Return the actually read bytes
17452 instead of the result of decoding.
17453
97e7188e
KH
174542003-07-31 Kenichi Handa <handa@m17n.org>
17455
17456 * xterm.h (struct x_bitmap_record): New member have_mask.
17457
17458 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
17459 to 0.
17460 (x_create_bitmap_from_file): Likewise.
17461 (x_destroy_bitmap): Check have_mask member before freeing a mask.
17462 (x_destroy_all_bitmaps): Likewise.
17463 (x_create_bitmap_mask): Set have_mask member to 1.
17464
b53094d6
RS
174652003-07-30 Richard M. Stallman <rms@gnu.org>
17466
17467 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
17468
631f2082
JD
174692003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17470
17471 * gtkutil.c (xg_mark_data): Update calls to mark_object.
17472
c855f2ca
RS
174732003-07-29 Richard M. Stallman <rms@gnu.org>
17474
17475 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
17476 Conditionalize XIM code on HAVE_XIM.
17477
17478 * fns.c (Fclear_string): New function.
17479 (syms_of_fns): defsubr it.
17480
b6189c3b 174812003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 17482
0930c1a1 17483 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 17484
29ea8ae9
SM
174852003-07-22 Stefan Monnier <monnier@cs.yale.edu>
17486
17487 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
17488
17489 * buffer.c (delete_all_overlays): New function.
17490 * buffer.h (delete_all_overlays): Declare.
17491 * coding.c (run_pre_post_conversion_on_str):
17492 * print.c (temp_output_buffer_setup):
17493 * fileio.c (Finsert_file_contents):
17494 * minibuf.c (get_minibuffer): Use it.
17495
1dd7ccf2
AC
174962003-07-22 Andrew Choi <akochoi@shaw.ca>
17497
17498 * unexmacosx.c (unexec_regions_sort_compare):
17499 (unexec_regions_merge): New functions. Sort and merge unexec
17500 regions before dumping them.
17501
f57bd967
DL
175022003-07-22 Dave Love <fx@gnu.org>
17503
17504 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
17505
7cdee936
SM
175062003-07-21 Stefan Monnier <monnier@cs.yale.edu>
17507
17508 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
17509 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
17510 MARKBIT as the gcmarkbit for strings.
17511
e50886d3
RS
175122003-07-21 Richard M. Stallman <rms@gnu.org>
17513
17514 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
17515
29ea8ae9 17516 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
17517 (syms_of_fns): Corresponding change.
17518
17519 * alloc.c (syms_of_alloc): Doc fixes.
17520
175212003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
17522
17523 * s/netbsd.h: Use -Wl syntax.
17524
fdc39b59
RS
175252003-07-17 Richard M. Stallman <rms@gnu.org>
17526
17527 * xterm.c (xim_initialize): Redo 6/24 change.
17528
9c53385f
SM
175292003-07-15 Stefan Monnier <monnier@cs.yale.edu>
17530
17531 * buffer.c (copy_overlays): Use EMACS_INT for positions.
17532 (Fswitch_to_buffer): Don't signal an error when switching to the same
17533 buffer in a dedicated window.
17534
17535 * alloc.c: Use bitmaps for cons, as was done for floats.
17536 (init_float, init_cons): Let the normal code allocate the first block.
17537 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
17538 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
17539 New macros.
17540 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
17541 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
17542 (live_cons_p): Check the pointer is not past the `conses' array.
17543 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
17544 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
17545 (survives_gc_p): Use CONS_MARKED_P and simplify.
17546 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
17547
dde13196
PE
175482003-07-13 Paul Eggert <eggert@twinsun.com>
17549
17550 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
17551 puts it into BSS instead, at least on Solaris 8 and 9.
17552 This is a valid optimization, and it may occur on other platforms,
17553 so Emacs should not assume that initializing a static variable to
17554 zero puts it into data.
17555 * alloc.c (pure, staticvec):
17556 Initialize these arrays to nonzero, so that they're not
17557 put into BSS by that optimization.
17558
a801bc34
SM
175592003-07-13 Stefan Monnier <monnier@cs.yale.edu>
17560
17561 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
17562 (lisp_align_malloc): Use posix_memalign is available.
17563 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
17564 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
17565 for consistency. Update users.
17566
0c8b2afa
RS
175672003-07-13 Richard M. Stallman <rms@gnu.org>
17568
17569 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
17570
668c2ab0
JB
175712003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
17572
9dd28cae 17573 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
668c2ab0
JB
17574 and use the Gtk+ function gtk_window_icon_from_file if available.
17575
17576 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
17577 handle mask of bitmaps.
17578 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
17579 mask property.
17580 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
17581
17582 * xterm.h (xg_set_icon): New function.
17583
800bebe3
RS
175842003-07-12 Paul Eggert <eggert@twinsun.com>
17585
17586 * unexelf.c (unexec): Consider a section to precede the .bss
17587 section if its addresses overlap that of .bss.
17588
69e38995
RS
175892003-07-12 Richard M. Stallman <rms@gnu.org>
17590
17591 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
17592
17593 * config.in (HAVE_CRTIN): Add #undef.
17594 (INLINE): Really inline only if OPTIMIZE is defined.
17595
17596 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
17597 END_FILES_1.
17598 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 17599 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
17600
17601 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
17602 (TERMINFO): Define.
17603 (LIBS_TERMCAP): Define.
17604 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
17605
17606 * xfns.c: Include libpng/png.h instead of png.h.
17607
f1d0c238
AS
176082003-07-11 Andreas Schwab <schwab@suse.de>
17609
17610 * buffer.c (modify_overlay): Update prototype.
17611 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
17612 Likewise.
17613
5f6bf5fe
SM
176142003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17615
17616 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
17617 (struct interval): Move to intervals.h.
17618 (struct Lisp_Marker): Use EMACS_INT for position info.
17619 (forward_point): Remove prototype of defunct function.
17620 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
17621 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
17622 (syms_of_textprop, set_text_properties): Remove prototypes that are
17623 already in intervals.h.
17624
17625 * intervals.h (struct interval): Move from lisp.h.
17626 Use EMACS_INT for position and size info.
17627
17628 * coding.c: Include intervals.h for Fset_text_properties.
17629
17630 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
17631 position and length information.
17632
2765b457
SM
176332003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17634
17635 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
17636 position and length information.
17637
2410d73a
SM
176382003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17639
17640 Change overlays_after and overlays_before so the overlays themselves
17641 are linked into lists, rather than using cons cells. After all each
17642 Lisp_Misc already occupies 5 words, so we can add a `next' field to
17643 Lisp_Overlay for free and save up one cons cell per overlay (not
17644 to mention one indirection when traversing the list of overlay).
17645
17646 * lisp.h (struct Lisp_Overlay): New field `next'.
17647
17648 * buffer.h (struct buffer): Change overlays_before and overlays_after
17649 from Lisp lists of overlays to pointers to overlays.
17650
17651 * buffer.c (overlay_strings, recenter_overlay_lists):
17652 Fix typo in eassert in last commit.
17653 (unchain_overlay): New function.
17654 (add_overlay_mod_hooklist): Use AREF.
17655 (copy_overlays, reset_buffer, overlays_at, overlays_in)
17656 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
17657 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
17658 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
17659 (report_overlay_modification, evaporate_overlays, init_buffer_once):
17660 Adjust to new type of overlays_(before|after).
17661
17662 * alloc.c (mark_object): Mark the new `next' field of overlays.
17663 (mark_buffer): Manually mark the overlays_(after|before) fields.
17664
17665 * coding.c (run_pre_post_conversion_on_str):
17666 * editfns.c (overlays_around):
17667 * xdisp.c (load_overlay_strings):
17668 * fileio.c (Finsert_file_contents):
17669 * indent.c (current_column):
17670 * insdel.c (signal_before_change, signal_after_change):
17671 * intervals.c (set_point_both):
17672 * print.c (temp_output_buffer_setup): Use new type for
17673 overlays_(before|after).
17674
04812929
SM
176752003-07-08 Stefan Monnier <monnier@cs.yale.edu>
17676
17677 * buffer.c (report_overlay_modification): Don't run hooks while
17678 traversing the list of overlays.
17679
17680 * buffer.h (struct buffer): Use an int for overlay_center.
17681 (overlays_at, evaporate_overlays, recenter_overlay_lists)
17682 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
17683
17684 * buffer.c (reset_buffer, recenter_overlay_lists)
17685 (adjust_overlays_for_insert, adjust_overlays_for_delete)
17686 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
17687 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
17688 (overlays_at, evaporate_overlays, recenter_overlay_lists)
17689 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
17690
17691 * xdisp.c (fast_find_position): Remove unused var.
17692
17693 * cmds.c (Qexpand_abbrev): New sym.
17694 (syms_of_cmds): Initialize it.
17695 (internal_self_insert): Use it to call expand-abbrev.
17696
2e7ecf15
KS
176972003-07-09 Kim F. Storm <storm@cua.dk>
17698
f9711de4 17699 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 17700 was configured with --without-xim.
42f81f64 17701 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 17702
c6de56a0
RS
177032003-07-07 Richard M. Stallman <rms@gnu.org>
17704
17705 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
17706
17707 * alloc.c (Fgarbage_collect): Doc fix.
17708
b6189c3b 177092003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
17710
17711 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
17712
bfe1a3f7
SM
177132003-07-06 Stefan Monnier <monnier@cs.yale.edu>
17714
04812929
SM
17715 * minibuf.c (read_minibuf): UNGCPRO before returning.
17716 (Ftry_completion, Fall_completions): Doc fix.
17717
bfe1a3f7
SM
17718 * alloc.c (live_float_p): Check that p is not past the `floats' array,
17719 now that `floats' is not the last element of the struct any more.
17720
ee79d1aa
JR
177212003-07-06 Jason Rumney <jasonr@gnu.org>
17722
17723 * w32term.h (ClipboardSequence_Proc): New type.
17724
17725 * w32fns.c (clipboard_sequence_fn): New variable.
17726 (globals_of_w32fns): Initialize it.
17727
17728 * w32select.c (last_clipboard_sequence_number): New variable.
17729 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
17730 number if possible.
17731
49723c04
SM
177322003-07-06 Stefan Monnier <monnier@cs.yale.edu>
17733
4698665f
SM
17734 * m/amdx86-64.h (MARKBIT):
17735 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
17736 MARKBIT and ARRAY_MARK_FLAG any more.
17737
17738 * m/hp800.h (XSETMARKBIT):
17739 * m/sr2k.h (XSETMARKBIT):
17740 * lisp.h (XSETMARKBIT): Remove unused macro.
17741
49723c04
SM
17742 * lisp.h (mark_object): Change prototype.
17743
17744 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
17745 (last_marked): Change accordingly.
17746 (mark_interval, mark_maybe_object, mark_maybe_pointer)
17747 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
17748 (mark_buffer): Update calls to mark_object.
17749
17750 * bytecode.c (mark_byte_stack):
17751 * fns.c (sweep_weak_table):
17752 * keyboard.c (mark_kboards): Update calls to mark_object.
17753
1d660eca
JR
177542003-07-06 Jason Rumney <jasonr@gnu.org>
17755
17756 * alloc.c (struct ablock): Only include padding when there is some.
17757
618b5ae4
SM
177582003-07-04 Stefan Monnier <monnier@cs.yale.edu>
17759
17760 * alloc.c (ALIGN): Add casts to simplify usage.
17761 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
17762 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
17763 (struct ablock, struct ablocks): New types.
17764 (free_ablock): New global var.
17765 (lisp_align_malloc, lisp_align_free): New functions.
17766 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
17767 (struct float_block): Reorder and add gcmarkbits.
17768 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
17769 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
17770 (init_float, make_float): Use lisp_align_malloc.
17771 (free_float, live_float_p): Don't use `type' any more.
17772 (make_float): Use FLOAT_UNMARK to access to mark bit.
17773 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
17774 Use FLOAT_MARKED_P to access the mark bit.
17775 (pure_alloc): Simplify use of ALIGN.
17776 (mark_object): Use FLOAT_MARK to access the mark bit.
17777 (gc_sweep): Use new macros to access the float's mark bit.
17778 (init_alloc_once): Init free_ablock.
17779
17780 * lisp.h (struct Lisp_Float): Remove unused field `type'.
17781
3ef06d12
SM
177822003-06-27 Stefan Monnier <monnier@cs.yale.edu>
17783
17784 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
17785 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
17786 (allocate_buffer): Move.
17787 (string_bytes): Don't mask markbit of `size_byte'.
17788 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17789 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
17790 Use the `size' field of buffers (rather than the `name' field) for
17791 the mark bit, as is done for all other vectorlike objects.
17792 Use the new macros to access the mark bit of vectorlike objects.
17793
e81043aa
RS
177942003-06-26 Richard M. Stallman <rms@gnu.org>
17795
17796 * puresize.h (BASE_PURESIZE): Increment base size.
17797
17798 * xdisp.c (fast_find_position): Enable Gerd's new definition.
17799
17800 * xterm.c (xim_initialize): Undo previous change.
17801
2d0834cc
SM
178022003-06-26 Stefan Monnier <monnier@cs.yale.edu>
17803
17804 * alloc.c (survives_gc_p): Simplify.
17805
17806 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
17807
17808 * window.c (Fset_window_dedicated_p): Simplify.
17809 (display_buffer_1): Don't raise the win from which minibuf was entered.
17810 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
17811 (Fminibuffer_selected_window): Simplify.
17812
17813 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
17814
17815 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
17816 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
17817
17818 * insdel.c (check_markers, adjust_markers_for_delete)
17819 (adjust_markers_for_insert, adjust_markers_for_replace)
17820 (prepare_to_modify_buffer, RESTORE_VALUE):
17821 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
17822 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
17823 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
17824 * alloc.c (Fmake_marker, free_marker, gc_sweep):
17825 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
17826 * editfns.c (save_excursion_restore, transpose_markers):
17827 * window.c (delete_window):
17828 * xdisp.c (message_dolog): Update for new types.
17829
d54ae3d8
JD
178302003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17831
a5f696ac
JD
17832 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
17833 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 17834 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
17835
17836 * frame.c (make_frame): Initialize default_face_done_p.
17837
17838 * frame.h (struct frame): Add default_face_done_p.
17839
d54ae3d8
JD
17840 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
17841 will be defined.
17842
2336fe58
SM
178432003-06-25 Stefan Monnier <monnier@cs.yale.edu>
17844
17845 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
17846 Initialize the new field `gcmarkbit'.
17847 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
17848 (mark_interval_tree): Don't mark the tree separately from the nodes.
17849 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
17850 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17851 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
17852
17853 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
17854 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
17855 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
17856 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
17857 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
17858
bcea31c2
DL
178592003-06-24 Dave Love <fx@gnu.org>
17860
17861 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
17862
17863 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
17864 from gnulib.
17865
2601f59e
RS
178662003-06-21 Richard M. Stallman <rms@gnu.org>
17867
17868 * fileio.c (Fwrite_region): Alternate messages
17869 for append and partial write.
17870
17871 * keyboard.c (read_key_sequence): When converting upcase fn key to
17872 downcase, update fkey and keytran so `backspace' gets translated.
17873
17874 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
17875
17876 * process.c (wait_reading_process_input): Don't signal SIGIO
17877 in batch mode.
17878
b5d2c621
KH
178792003-06-17 Kenichi Handa <handa@m17n.org>
17880
17881 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
17882 composite.h.
17883
17884 * xselect.c: Don't include charset.h, coding.h, composite.h.
17885 (Qforeign_selection): New variable.
17886 (syms_of_xselect): Intern and static it.
17887 (selection_data_to_lisp_data): Return a unibyte string made from
17888 data with `foreign-selection' text property.
17889
6793bc63
SM
178902003-06-15 Stefan Monnier <monnier@cs.yale.edu>
17891
17892 * termhooks.h (EVENT_INIT): New macro.
17893
17894 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
17895
17896 * alloc.c (mark_kboards): Move to keyboard.c.
17897
17898 * keyboard.c (record_asynch_buffer_change, read_avail_input):
17899 * xterm.c (x_dispatch_event):
17900 * xmenu.c (find_and_call_menu_selection):
17901 * xdisp.c (handle_tool_bar_click):
17902 * w32menu.c (menubar_selection_callback):
17903 * sysdep.c (kbd_input_ast, read_input_waiting):
17904 * msdos.c (dos_rawgetc):
17905 * macterm.c (mac_check_for_quit_char):
17906 * macmenu.c (menubar_selection_callback):
17907 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
17908 data to kbd_buffer_store_event.
17909
b3ea810c
KS
179102003-06-15 Kim F. Storm <storm@cua.dk>
17911
17912 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 17913 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 17914
b8f75eda
KG
179152003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
17916
17917 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
17918
ba92ce48
KH
179192003-06-12 Kenichi Handa <handa@m17n.org>
17920
17921 * fileio.c (Fwrite_region): Save and restore restriction.
17922
b80263be
DL
179232003-06-12 Dave Love <fx@gnu.org>
17924
17925 * alloca.c (alloca): Declare arg as size_t.
17926
6793bc63
SM
17927 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
17928 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 17929
b23c0a83
DL
179302003-06-11 Dave Love <fx@gnu.org>
17931
17932 * search.c (shrink_regexp_cache): Use xrealloc.
17933 (syms_of_search): Use xmalloc.
17934
700e47c2
KS
179352003-06-10 Kim F. Storm <storm@cua.dk>
17936
17937 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
17938 Adjust phys_cursor.x to be relative to window box, rather than
17939 text area before checking -- to ensure cursor is redrawn when
17940 exposing window.
17941 Note: This also fixes a similar (older) bug if display margins
17942 are present.
17943
f11aa0b2
KH
179442003-06-06 Kenichi Handa <handa@m17n.org>
17945
17946 * coding.c (encoding_buffer_size): If coding->type is
17947 coding_type_ccl, double magnification on CRLF encoding.
17948
3d143690
JR
179492003-06-06 Jason Rumney <jasonr@gnu.org>
17950
17951 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
17952 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
17953
17954 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
17955 Mac too.
17956
f16205ca
DL
179572003-06-05 Dave Love <fx@gnu.org>
17958
b23c0a83
DL
17959 * strftime.c: Merge changes from gnulib.
17960
f16205ca
DL
17961 * mktime.c (__mktime_internal): Merge changes from gnulib
17962 involving year 69 and dst2.
17963
17964 Changes to merge with gnulib version and be consistent with the
17965 autoconf test:
17966
6793bc63
SM
17967 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
17968 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
17969 [HAVE_LOCALE_H]: Include locale.h.
17970 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
17971
9b87a0bc
KS
179722003-06-05 Kim F. Storm <storm@cua.dk>
17973
17974 * window.c (coordinates_in_window): Convert X and Y to window
17975 relative coordinates inside mode-line and header-line parts.
17976 Convert X and Y to margin area relative coordinates inside left
17977 and right display margin parts.
17978
5a8a15ec
JR
179792003-06-05 Jason Rumney <jasonr@gnu.org>
17980
17981 * w32fns.c (add_system_logical_colors_to_map): New function.
17982 (Fx_open_connection): Use it.
17983
01ed8ff1
SM
179842003-06-04 Stefan Monnier <monnier@cs.yale.edu>
17985
17986 * process.c (allocate_pty): Revert part of the previous patch.
17987 (Faccept_process_output): Simplify.
17988
b427b65d
JR
179892003-06-04 Jason Rumney <jasonr@gnu.org>
17990
17991 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
17992
17993 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
17994 (lispy_mouse_wheel_names): Remove.
17995 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
17996 Always define drag_and_drop_syms.
17997
17998 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
17999 WHEEL_EVENT events.
18000
914a8c47
SM
180012003-06-03 Stefan Monnier <monnier@cs.yale.edu>
18002
01ed8ff1
SM
18003 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
18004
914a8c47
SM
18005 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
18006
adcb132c
JD
180072003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18008
18009 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
18010 menu item label.
18011
be781fa7
RS
180122003-06-03 Richard M. Stallman <rms@gnu.org>
18013
18014 * window.c (Fwindow_edges): Doc fix.
18015 (Fwindow_pixel_edges, Fwindow_inside_edges)
18016 (Fwindow_inside_pixel_edges): New functions.
18017 (syms_of_window): defsubr them.
18018
18019 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
18020 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
18021
914a8c47
SM
180222003-06-02 Stefan Monnier <monnier@cs.yale.edu>
18023
18024 * dispnew.c (Fsit_for): Don't lie about the number of args.
18025
5b07197a
DL
180262003-06-02 Dave Love <fx@gnu.org>
18027
18028 * callproc.c: Use HAVE_FCNTL_H, not USG5.
18029 (syms_of_callproc) <process-environment>: Doc fix.
18030
18031 * doc.c: Use HAVE_FCNTL_H, not USG5.
18032
18033 * xfaces.c (font_rescale_ratio): Fix for K&R.
18034
18035 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
18036
18037 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
18038
18039 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
18040
18041 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
18042 (xg_create_frame_widgets): Use ENCODE_UTF_8.
18043
d7107586 18044 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
18045
18046 * xmenu.c (ENCODE_MENU_STRING): New.
18047 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
18048 Use it.
18049
18050 * coding.h (ENCODE_UTF_8): New.
18051 (Qutf_8): Declare.
18052
18053 * coding.c (Qutf_8): New.
18054 (syms_of_coding): Intern it.
18055
18056 * fns.c: Doc fixes.
18057
7335b336
KH
180582003-06-02 Kenichi Handa <handa@m17n.org>
18059
18060 * buffer.c (Fset_buffer_multibyte): Fix previous change.
18061
914a8c47
SM
180622003-06-01 Stefan Monnier <monnier@cs.yale.edu>
18063
18064 * lread.c (openp): Make sure STR is a string.
18065
9862c135
JR
180662003-06-01 David Ponce <david@dponce.com>
18067
cab27d04 18068 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
18069 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
18070
18071 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
18072 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
18073 (discard_mouse_events): Discard WHEEL_EVENT events too.
18074 (lispy_wheel_names, wheel_syms): New.
18075 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 18076 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 18077 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
18078
18079 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
18080 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
18081 WHEEL_EVENT events.
18082
f984e73e
JPW
180832003-05-31 John Paul Wallington <jpw@gnu.org>
18084
18085 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
18086 timer are in lisp/emacs-lisp.
18087
1efcd78f
KH
180882003-05-31 Kenichi Handa <handa@m17n.org>
18089
458c8af4
KH
18090 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
18091 region when a buffer is changed to unibyte.
18092
1efcd78f
KH
18093 * charset.h (VALID_LEADING_CODE_P): New macro.
18094 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
18095
778e2804
KH
18096 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
18097 is nonzero, accept multibyte form of eight-bit-control chars.
18098 (decode_composition_emacs_mule): Likewise.
18099 (decode_coding_emacs_mule): Likewise.
18100 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
18101 multibyte form of eight-bit-control chars.
18102
18103 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
18104 (Finsert_file_contents): If coding-system-for-read is bound to
18105 Qauto_save_coding, use the coding system emacs-mule with special
18106 setting for recovering a file.
18107 (choose_write_coding_system): On auto saving, use the coding
18108 system emacs-mule with special setting for auto saving.
18109 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
18110
034060e4
KH
181112003-05-30 Kenichi Handa <handa@m17n.org>
18112
18113 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
18114 properly before calling ccl_driver.
18115
778e2804 18116 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 18117
cab27d04 18118 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
18119 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
18120 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
18121
595f5aa5
GM
181222003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
18123
18124 * xfaces.c (realize_default_face): Do not abort if lface is
18125 non-existent - reverts change from 2003-05-19.
18126
103e0180
KH
181272003-05-29 Kenichi Handa <handa@m17n.org>
18128
18129 * coding.c (decode_coding_iso2022): Pay attention to the byte
18130 sequence of CTEXT extended segment, and retain those bytes as is.
18131
181322003-05-28 Kenichi Handa <handa@m17n.org>
18133
cab27d04 18134 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
18135 of CODING_REPLACEMENT_CHARACTER.
18136 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
18137 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
18138 check this flag on encoding.
cab27d04
SM
18139 (encode_coding_sjis_big5):
18140 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
18141 (Fset_terminal_coding_system_internal):
18142 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
18143 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
18144
18145 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
18146 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18147 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
18148
ff6a3bfb 181492003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 18150
ff6a3bfb
RS
18151 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
18152
18153 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 18154
1963c428
KS
181552003-05-28 Kim F. Storm <storm@cua.dk>
18156
18157 * xdisp.c (expose_window): Fix error in calculation of
18158 window relative coordinates of area to redisplay.
18159
2b5d4601
JR
181602003-05-27 Jason Rumney <jasonr@gnu.org>
18161
18162 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
18163
1c64a4a2
JB
181642003-05-27 David Ponce <david@dponce.com>
18165
18166 Handle W32 mouse wheel events as mouse click events, like in X.
18167
18168 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
18169 MOUSE_WHEEL_EVENT anymore.
18170
18171 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
18172 Scrolling down/up the mouse wheel is respectively mapped to mouse
18173 button 4 and 5.
18174 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
18175 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
18176 WM_MOUSEWHEEL events.
18177
2d031b89
AS
181782003-05-27 Andreas Schwab <schwab@suse.de>
18179
20464fdf
AS
18180 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
18181
2d031b89
AS
18182 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
18183 partially visible line.
18184
18185 * alloc.c (Fgarbage_collect): Fix last change.
18186
97bc76d4
JPW
181872003-05-26 John Paul Wallington <jpw@gnu.org>
18188
18189 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
18190
56613f06
SM
181912003-05-25 Stefan Monnier <monnier@cs.yale.edu>
18192
18193 * window.c (Fset_window_buffer): Add type of `keep_margins'.
18194 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
18195
18196 * window.h (window_box_text_cols): Declare.
18197
18198 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
18199 (x_draw_vertical_border): Remove unused var `f'.
18200
18201 * xfaces.c (build_scalable_font_name): Remove `unused var
18202 pixel_size' warning.
18203
18204 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
18205
18206 * unexelf.c (unexec): Remove `unused var n' warning.
18207
18208 * strftime.c (my_strftime_localtime_r): Remove `defined but
18209 unused' warning.
18210
18211 * process.c (allocate_pty): Remove `unused var stb' and
18212 `cp might be used uninitialized' warnings.
18213
18214 * dispnew.c (mode_line_string): Remove unused var `f'.
18215
18216 * coding.c (find_safe_codings): Remove unused var `i'.
18217
18218 * bytecode.c (Fbyte_code): Remove `unused val' warning.
18219
18220 * buffer.c (Fkill_buffer): Remove unused var `list'.
18221
18222 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
18223
93421a1f
JD
182242003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18225
18226 * frame.c (make_frame): Condition want_fullscreen with
18227 HAVE_WINDOW_SYSTEM.
18228
c4b8aebc
JB
182292003-05-25 Juanma Barranquero <lektu@terra.es>
18230
18231 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
18232 (Fwindow_scroll_bars): Fix typo in docstring.
18233
0416870b
KS
182342003-05-24 Kim F. Storm <storm@cua.dk>
18235
18236 The following changes serve several purposes:
18237
18238 1) Swap the position of fringes and display margins in windows, i.e.
18239 the fringes are now displayed between the margins and the text area
18240 (by default).
18241
18242 2) Allow fringe and scroll bar parameters to be set per-buffer and
18243 per-window (like display margins). Such settings are now stored
18244 in window configurations, preserved when frames are resized, and
9018a88e 18245 copied when windows are split vertically or horizontally.
0416870b
KS
18246 Several bugs related to display margins have been fixed.
18247
18248 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 18249
0416870b 18250 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5e1a6e32 18251 rather than FRAME_WIDTH (FRAME_FONT (f)).
0416870b
KS
18252
18253 5) Introduce a consistent naming of variables, members and macros
18254 depending on whether their value is measured in pixels or in
18255 canonical columns/lines. Pixel dimensions are named *_width and
18256 *_height, while canonical columns/lines are named *_cols and
18257 *_lines. Pixel positions are named *_x and *_y, while column/line
18258 positions are named *_col and *_line.
18259
18260 6) Consolidate more of the X, W32, and MAC gui code by moving
18261 common data into struct frame, and generalize it for the non-gui
18262 case by using suitable defaults.
18263
18264 7) Cleanup and consolidate the macros controlling frame and window
18265 layout into frame.h and window.h, and generalize the use of the
18266 various window_box_* functions (enhanced to handle the new fringe
18267 position and the per-window fringe and scroll bar settings).
18268
18269 * frame.h (struct frame): Rename members height to text_lines,
18270 width to text_cols, window_height to total_lines, window_width to
18271 total_cols, new_height to new_text_lines, new_width to
18272 new_text_cols. All uses changed.
18273 (struct frame): New members which consolidate common members of
18274 x_output, w32_output, and mac_output structures: left_pos,
18275 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
18276 win_gravity, size_hint_flags, border_width, internal_border_width,
18277 line_height, fringe_cols, left_fringe_width, right_fringe_width,
18278 want_fullscreen. All uses changed.
18279 (struct frame): New member column_width contaning the canonical
18280 column width, analogue to line_height. All uses changed.
18281 (struct frame): Rename members scroll_bar_pixel_width to
18282 config_scroll_bar_width, and scroll_bar_cols to
18283 config_scroll_bar_cols. All uses changed.
18284 (struct frame): New member scroll_bar_actual_width which
18285 consolidates and renames the vertical_scroll_bar_extra member of
18286 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 18287 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
18288 from x/w32/macterm.h files. All uses changed. Also change code
18289 which referred to f->output_data...->pixel_height.
cab27d04 18290 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 18291 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 18292 which referred to f->output_data...->pixel_width.
cab27d04 18293 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 18294 Also change code which referred to f->height.
cab27d04 18295 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
18296 Also change code which referred to f->width.
18297 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
18298 to update new_text_lines and new_text_cols members directly.
cab27d04 18299 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 18300 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 18301 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
18302 FRAME_SCROLL_BAR_COLS. All uses changed.
18303 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 18304 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
18305 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
18306 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
18307 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
18308 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
18309 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
18310 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
18311 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
18312 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
18313 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
18314 Unconditionally return line_height member (it now has proper value
18315 also for non-window frames).
18316 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
18317 return new column_width member (rather than the default font width).
18318 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 18319 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
18320 from x/w32/macterm.h files. Unconditionally return corresponding
18321 member of frame structure (they now have proper values also for
18322 non-window frames).
cab27d04 18323 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
18324 Calculate return value from left and right widths.
18325 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
18326 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
18327 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
18328 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
18329 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
18330 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
18331 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 18332 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 18333 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 18334 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 18335 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 18336 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 18337 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 18338 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 18339 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 18340 consolidated from x/mac/w32term.h.
cab27d04 18341 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 18342 consolidated from x/mac/w32term.h.
cab27d04 18343 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 18344 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 18345 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
18346 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
18347
18348 * window.h (struct window): Rename members left to left_col,
18349 top to top_line, height to total_lines, width to total_cols,
18350 left_margin_width to left_margin_cols, right_margin_width to
18351 right_margin_cols, orig_height to orig_total_lines, orig_top to
18352 orig_top_line. All uses changed.
18353 (struct window): New members left_fringe_width, right_fringe_width,
18354 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
18355 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
18356 New macros primarily used to simplify other macros.
18357 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
18358 referred to XINT (w->width).
18359 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
18360 referred to XINT (w->height).
18361 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
18362 referred to XINT (w->width) * canon_x_unit.
18363 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
18364 referred to XINT (w->height) * canon_y_unit.
18365 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
18366 referred to XINT (w->left).
cab27d04 18367 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
18368 all uses and code that referred to XINT (w->left) + XINT (w->width).
18369 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
18370 referred to XINT (w->top).
18371 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
18372 referred to XINT (w->top) + XINT (w->height).
18373 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
18374 referred to XINT (w->left) * canon_x_unit.
18375 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
18376 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
18377 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
18378 referred to XINT (w->top) * canon_y_unit.
18379 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
18380 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
18381 (WINDOW_LEFTMOST_P): New macro.
cab27d04 18382 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 18383 All uses changed.
cab27d04 18384 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 18385 All uses changed.
cab27d04 18386 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
18387 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
18388 Do not exclude left fringe width.
cab27d04 18389 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
18390 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
18391 Do not exclude fringe widths.
18392 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
18393 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
18394 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
18395 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
18396 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
18397 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
18398 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
18399 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
18400 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
18401 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
18402 New macros. Change code which referenced corresponding
18403 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
18404 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
18405 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
18406 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
18407 allow per-window scroll-bar settings.
18408 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
18409 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
18410 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
18411 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
18412 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
18413 FRAME_SCROLL_BAR_WIDTH.
18414 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 18415 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 18416 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 18417 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 18418 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 18419 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 18420 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
18421 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
18422 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
18423 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
18424 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
18425 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 18426 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 18427 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
18428 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
18429 (window_from_coordinates): Update prototype.
18430 (Fset_window_buffer): Update EXFUN.
18431 (set_window_buffer): Update prototype.
9018a88e 18432
0416870b 18433 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 18434 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
18435 changed.
18436 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
18437 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
18438 internal_border_width is now set to 0 for non-window frames.
18439 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
18440 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
18441 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
18442 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
18443 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
18444 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
18445 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
18446 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
18447 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 18448 Move to window.h and renamed [see window.h changes].
0416870b
KS
18449 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
18450 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
18451 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
18452 Use WINDOW_TOTAL_LINES.
0416870b
KS
18453 (frame_update_line_height): Remove prototype.
18454
18455 * buffer.h (struct buffer): Rename members measured in columns:
18456 left_margin_width to left_margin_cols, right_margin_width to
18457 right_margin_cols. All uses changed.
18458 New members left_fringe_width, right_fringe_width,
18459 fringes_outside_margins for per-buffer fringe settings.
18460 New members scroll_bar_width and vertical_scroll_bar_type for
18461 per-buffer scroll bar settings.
18462
18463 * buffer.c (init_buffer_once): Set buffer_defaults and
18464 buffer_local_flags for new buffer-local variables
18465 left_fringe_width, right_fringe_width, fringes_outside_margins,
18466 scroll_bar_width, and vertical_scroll_bar_type.
18467 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
18468 default-* variables for them.
18469
18470 * dispnew.c: Make (many) trivial substitutions for renamed and
18471 new macros in dispextern.h, frame.h and window.h.
18472 (mode_line_string): No need to adjust width for mode lines, as it
18473 is already adjusted by the caller.
18474 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 18475
0416870b
KS
18476 * frame.c: Make (many) trivial substitutions for renamed and
18477 new macros in dispextern.h, frame.h and window.h.
18478 (make_frame): Initialize left_fringe_width, right_fringe_width,
18479 fringe_cols, scroll_bar_actual_width, border_width,
18480 internal_border_width, column_width, line_height, x_pixels_diff,
18481 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
18482 members with values suitable for a non-window frames.
18483
18484 * gtkutil.c: Make (many) trivial substitutions for renamed and
18485 new macros in dispextern.h, frame.h and window.h.
9018a88e 18486
0416870b
KS
18487 * indent.c: Make (few) trivial substitutions for renamed and
18488 new macros in dispextern.h, frame.h and window.h.
18489
18490 * keyboard.c: Make (many) trivial substitutions for renamed and
18491 new macros in dispextern.h, frame.h and window.h.
18492 (make_lispy_event): Use window positions returned from
18493 window_from_coordinates when constructing the lisp event for
18494 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
18495 (incorrect) values locally.
18496 (make_lispy_movement): Use window positions returned from
18497 window_from_coordinates when constructing the lisp event, rather
18498 than calculating (incorrect) values locally.
18499
18500 * scroll.c: Make (some) trivial substitutions for renamed and
18501 new macros in dispextern.h, frame.h and window.h.
18502
18503 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
18504 scroll-bars.
18505
18506 * sysdep.c: Make (few) trivial substitutions for renamed and
18507 new macros in dispextern.h, frame.h and window.h.
18508
18509 * term.c: Make (some) trivial substitutions for renamed and
18510 new macros in dispextern.h, frame.h and window.h.
18511
18512 * widget.c: Make (few) trivial substitutions for renamed and
18513 new macros in dispextern.h, frame.h and window.h.
18514
18515 * window.c: Make (many) trivial substitutions for renamed and
18516 new macros in dispextern.h, frame.h and window.h.
18517 (make_window): Initialize new members
18518 left_margin_cols, right_margin_cols, left_fringe_width,
18519 right_fringe_width, fringes_outside_margins, scroll_bar_width,
18520 and vertical_scroll_bar_type.
cab27d04 18521 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 18522 and per-window fringes and scroll-bars.
0416870b 18523 Fix bug related to incorrectly adjusting coordinates by
9018a88e 18524 frame's internal_border_width (the effect normally negible since
0416870b
KS
18525 the internal_border_width is typically 0 or 1 pixel, but very
18526 noticeable for an internal_border_width of e.g. 25 pixels).
18527 Upon successful return (other than ON_NOTHING), the coordinates
18528 are now always properly converted to window relative for the
18529 given display element.
18530 (window_from_coordinates): Add new parameters wx and wy to
18531 return the window relative x and y position in the returned
18532 window and part. A null arg means, don't return the position.
18533 All callers changed.
18534 (adjust_window_margins): New function which may reduce the width
18535 of the display margins if a window's text area is too small after
18536 resizing or splitting windows.
18537 (size_window): Fix bug that did not account for display margin
18538 widths when checking the minimum width of a window; use
18539 adjust_window_margins.
18540 (set_window_buffer): Call Fset_window_fringes and
18541 Fset_window_scroll_bars to setup per-window elements.
18542 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
18543 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
18544 (e.g. after splitting a window or resizing the frame).
18545 All callers changed.
0416870b
KS
18546 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
18547 (Fsplit_window): Duplicate original window's display margin,
18548 fringe, and scroll-bar settings; then call Fset_window_buffer with
18549 KEEP_MARGINS non-nil. This fixes a bug which caused a split
18550 window to only preserve the display margins in one of the windows.
5e1a6e32 18551 When splitting horizontally, call adjust_window_margins on both
0416870b 18552 windows to ensure that the text area of the new windows is non too
f9711de4 18553 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
18554 width of the split window was less than the width of the display
18555 margins.
cab27d04 18556 (window_box_text_cols): Rename from window_internal_width.
9018a88e 18557 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
18558 Fix bug that caused vertical separator to be subtracted also on
18559 window frames. Fix another bug that did not reduce the returned
18560 value by the columns used for display margins.
18561 (window_scroll_line_based): Fix bug related to scrolling too much
18562 when display margins are present (implicitly fixed by the fix to
18563 window_box_text_cols).
18564 (scroll_left, scroll_right): Fix bug related to scrolling too far
18565 by default when display margins are present (implicitly fixed by
18566 the fix to window_box_text_cols).
18567 (struct saved_window): Rename members left to left_col, top to
18568 top_line, width to total_cols, height to total_lines, orig_top to
18569 orig_top_line, orig_height to orig_total_lines. All uses changed.
18570 New members left_margin_cols, right_margin_cols,
18571 left_fringe_width, right_fringe_width, fringes_outside_margins,
18572 scroll_bar_width, and vertical_scroll_bar_type for saving
18573 per-window display elements.
18574 (Fset_window_configuration): Restore display margins, fringes,
18575 and scroll bar settings. This fixes a bug which caused display
18576 margins to be discarded when saving and restoring a window
18577 configuration.
18578 (save_window_save): Save display margins, fringes, and scroll bar
18579 settings. This fixes a bug which caused display margins to be
18580 discarded when saving and restoring a window configuration.
18581 (Fset_window_margins): Do nothing if display margins are not
18582 really changed. Otherwise, call adjust_window_margins to ensure
18583 the text area doesn't get too narrow. This fixes a bug which
f9711de4 18584 could cause Emacs to trap if setting display margins wider than
0416870b
KS
18585 the width of the window.
18586 (Fset_window_fringes): New defun to allow user to specifically set
18587 this window's fringe widths and position vs. display margins.
cab27d04 18588 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
18589 (Fset_window_scroll_bars): New defun to allow user to specifically
18590 set this window's scroll bar width and position.
18591 (Fwindow_scroll_bars): New defun to return window's actual scroll
18592 bar settings.
18593 (compare_window_configurations): Also compare display margins,
18594 fringes, and scroll bar settings.
18595 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
18596
18597 * xdisp.c: Make (many) trivial substitutions for renamed and
18598 new macros in dispextern.h, frame.h and window.h.
18599 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 18600 and new fringe vs. display margin position. Note that returned
0416870b
KS
18601 value is no longer guaranteed to be a whole multiple of the frame
18602 column width, since per-window fringes may now be any width.
18603 (window_box_left_offset): New function like window_box_left, but
18604 value is relative to left border of window (rather than frame).
18605 (window_box_right_offset): New function like window_box_right,
18606 but value is relative to left border of window.
18607 (window_box_left): Adapt to per-window fringes and scroll bars,
18608 and new fringe vs. display margin position. Simplify by using
18609 WINDOW_LEFT_EDGE_X and window_box_left_offset.
18610 (window_box): Allow null args for unnecessary return values;
18611 change/simplify relevant callers.
18612 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
18613 and new fringe vs. display margin position.
18614 Use window_box_left_offset and window_box_right_offset
0416870b 18615 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
18616 scroll bars, and new fringe vs. display margin position.
18617 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
18618 (draw_fringe_bitmap): Rework to handle per-window fringes and new
18619 fringe vs. display margin position.
18620 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
18621 (redisplay_window): Adapt to per-window scroll bars.
18622 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
18623 bars, and new fringe vs. display margin position.
18624 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 18625 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
18626 bars, and new fringe vs. display margin position. Fix bug which
18627 increased total width of full_width rows by width of scroll bars
18628 although window's total width already includes that.
18629 (x_fix_overlapping_area): Simplify using window_box_left_offset.
18630 (expose_area): Simplify using window_box_left_offset.
18631 (x_draw_vertical_border): Handle per-window scroll bar settings,
18632 mixing windows with left, right and no scroll bars.
18633
18634 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
18635 where it's used in x_list_fonts (for clarity).
18636 (frame_update_line_height): Remove unused function; functionality
18637 is now done directly when setting the default font in x_set_font.
18638
18639 * xfns.c: Make (many) trivial substitutions for renamed and
18640 new macros in dispextern.h, frame.h and window.h.
18641
18642 * xmenu.c: Make (some) trivial substitutions for renamed and
18643 new macros in dispextern.h, frame.h and window.h.
18644
18645 * xterm.h (struct x_output): Move members left_pos, top_pos,
18646 border_width, pixel_height, pixel_width, line_height,
18647 internal_border_width, vertical_scroll_bar_extra,
18648 left_fringe_width, right_fringe_width, fringe_cols,
18649 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18650 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
18651 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18652 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18653 (PIXEL_WIDTH, PIXEL_HEIGHT)
18654 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 18655 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
18656 frame.h and renamed [see frame.h changes].
18657 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18658 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 18659 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 18660 and renamed [see frame.h changes].
9018a88e 18661
0416870b
KS
18662 * xterm.c: Make (several) trivial substitutions for renamed and
18663 new macros in dispextern.h, frame.h and window.h.
cab27d04 18664 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
18665 (scroll_run): Adapt to new fringe position.
18666 (glyph_rect): Use window coordinates returned from
18667 window_from_coordinates rather than frame_to_window_pixel_xy.
18668 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18669 scroll-bars.
18670 (handle_one_xevent): Simplify a USE_GTK conditional.
18671 (x_clip_to_row): Remove superfluous whole_line_p arg and code
18672 (fringes are now inside margins, i.e. always in the clipping area).
18673 All callers changed.
18674 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18675 directly, then call compute_fringe_widths. Don't call
18676 frame_update_line_height.
18677
18678 * w32term.h (struct w32_output): Move members left_pos, top_pos,
18679 border_width, pixel_height, pixel_width, line_height,
18680 internal_border_width, vertical_scroll_bar_extra,
18681 left_fringe_width, right_fringe_width, fringe_cols,
18682 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18683 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
18684 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18685 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18686 (PIXEL_WIDTH, PIXEL_HEIGHT)
18687 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 18688 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
18689 frame.h and renamed [see frame.h changes].
18690 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18691 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 18692 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 18693 and renamed [see frame.h changes].
9018a88e 18694
0416870b
KS
18695 * w32term.c: Make (several) trivial substitutions for renamed and
18696 new macros in dispextern.h, frame.h and window.h.
cab27d04 18697 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
18698 (glyph_rect): Use window coordinates returned from
18699 window_from_coordinates rather than frame_to_window_pixel_xy.
18700 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18701 scroll-bars.
18702 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
18703 (fringes are now inside margins, i.e. always in the clipping area).
18704 All callers changed.
18705 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18706 directly, then call compute_fringe_widths. Don't call
18707 frame_update_line_height.
18708
18709 * w32console.c: Make (few) trivial substitutions for renamed and
18710 new macros in dispextern.h, frame.h and window.h.
18711
18712 * w32fns.c: Make (many) trivial substitutions for renamed and
18713 new macros in dispextern.h, frame.h and window.h.
18714
18715 * w32menu.c: Make (few) trivial substitutions for renamed and
18716 new macros in dispextern.h, frame.h and window.h.
18717
18718 * macterm.h (struct mac_output): Move members left_pos, top_pos,
18719 border_width, pixel_height, pixel_width, line_height,
18720 internal_border_width, vertical_scroll_bar_extra,
18721 left_fringe_width, right_fringe_width, fringe_cols,
18722 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18723 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
18724 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18725 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18726 (PIXEL_WIDTH, PIXEL_HEIGHT)
18727 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 18728 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
18729 frame.h and renamed [see frame.h changes].
18730 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18731 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 18732 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 18733 and renamed [see frame.h changes].
9018a88e 18734
0416870b
KS
18735 * macterm.c: Make (several) trivial substitutions for renamed and
18736 new macros in dispextern.h, frame.h and window.h.
cab27d04 18737 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
18738 (glyph_rect): Use window coordinates returned from
18739 window_from_coordinates rather than frame_to_window_pixel_xy.
18740 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18741 scroll-bars.
18742 (x_clip_to_row): Remove superfluous whole_line_p arg and code
18743 (fringes are now inside margins, i.e. always in the clipping area).
18744 All callers changed.
18745 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18746 directly, then call compute_fringe_widths. Don't call
18747 frame_update_line_height.
18748
18749 * macfns.c: Make (several) trivial substitutions for renamed and
18750 new macros in dispextern.h, frame.h and window.h.
9018a88e 18751 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
18752
18753 * macmenu.c: Make (few) trivial substitutions for renamed and
18754 new macros in dispextern.h, frame.h and window.h.
18755
18756 * msdos.h (struct x_output): Remove members left_pos, top_pos,
18757 and line_height, and use corresponding new members in struct
18758 frame. All uses changed.
18759 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
18760 superseeded by corresponding macros in frame.h.
18761
18762 * msdos.c: Make (several) trivial substitutions for renamed and
18763 new macros in dispextern.h, frame.h and window.h.
18764 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 18765 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
18766 (internal_terminal_init): No need to initialize line_height here;
18767 it now defaults to 1.
18768
9018a88e
SM
187692003-05-24 Stefan Monnier <monnier@cs.yale.edu>
18770
18771 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
18772 dropping `down' events.
18773
016bd3c0
AS
187742003-05-24 Andreas Schwab <schwab@suse.de>
18775
18776 * coding.c (find_safe_codings): Fix last change.
18777
4dacadcc
TTN
187782003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
18779
18780 * xfns.c (x_window): Fix typo from 2003-05-21 change.
18781
319830ce
SM
187822003-05-23 Stefan Monnier <monnier@cs.yale.edu>
18783
9018a88e
SM
18784 * xdisp.c (display_mode_element): Increase max depth.
18785 Simplify the error handling code. Use a different error string
18786 for the case where we hit the depth limit.
18787
319830ce
SM
18788 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
18789
18790 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
18791
187922003-05-21 Stefan Monnier <monnier@cs.yale.edu>
18793
18794 * intervals.c (get_local_map): Don't get char-property of previous
18795 point any more: get_pos_property already does it and better.
18796
c67de8ba
DL
187972003-05-21 Dave Love <fx@gnu.org>
18798
18799 [Merged from unicode branch.]
18800
18801 * xfns.c (x_window, x_window): Use use_xim.
18802
18803 * xterm.c (use_xim): Initialize.
18804 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18805 (x_term_init): Maybe set use_xim.
18806
18807 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18808
edd3ff1d
JR
188092003-05-21 Jason Rumney <jasonr@gnu.org>
18810
18811 * unexw32.c (_start): Remove _fmode initialization.
18812
18813 * emacs.c (main) [WINDOWSNT]: Move it here.
18814
463f55ee
DL
188152003-05-20 Dave Love <fx@gnu.org>
18816
18817 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
18818
af253914
RS
188192003-05-19 Richard M. Stallman <rms@gnu.org>
18820
18821 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
18822 as value for QCfont attribute.
18823 (realize_default_face): lface should already exist; crash if not.
18824 Specify 0 for FORCE_P when calling set_lface_from_font_name.
18825
18826 * frame.c (Fignore_event): Doc fix.
18827
1d211019
KH
188282003-05-19 Kenichi Handa <handa@m17n.org>
18829
18830 * coding.c (decode_coding_string): Handle post-read-conversion
18831 even if the coding doesn't require decoding.
18832
4dd68254
RS
188332003-05-18 Richard M. Stallman <rms@gnu.org>
18834
18835 * callproc.c (Fcall_process_region): Doc fix.
18836
14d87dc9
SM
188372003-05-17 Stefan Monnier <monnier@cs.yale.edu>
18838
deca5d96
SM
18839 * lread.c (Fload): Print a message if package is obsolete.
18840
14d87dc9
SM
18841 * window.c (Fselect_window): Add optional `norecord' arg.
18842 (select_window_1): Fold into Fselect_window.
18843 (select_window_norecord): New function.
18844 (temp_output_buffer_show): Use it. Preserve current buffer.
18845
18846 * window.h (Fselect_window): Update declaration.
18847
18848 * window.c (delete_window, Fother_window, Fset_window_configuration):
18849 * minibuf.c (read_minibuf):
18850 * macterm.c (x_new_focus_frame):
18851 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
18852 * callint.c (Fcall_interactively):
18853 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
18854
18855 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
18856
78f52183
DK
188572003-05-17 David Kastrup <dak@gnu.org>
18858
18859 * process.c (read_process_output): Back out change from 2003-03-09.
18860
14d87dc9
SM
188612003-05-17 Stefan Monnier <monnier@cs.yale.edu>
18862
18863 * editfns.c (get_pos_property): Don't assume that `object' = nil.
18864
18865 * textprop.c (text_property_stickiness): New arg `buffer'.
18866
18867 * intervals.h (text_property_stickiness): New arg `buffer'.
18868 (get_pos_property): Declare.
18869
18870 * intervals.c (get_local_map): Use get_pos_property, to obey
18871 stickiness and empty overlays.
18872 (create_root_interval, graft_intervals_into_buffer): Use BEG.
18873 (merge_properties, intervals_equal, merge_properties_sticky):
18874 Use XCAR, XCDR.
18875 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
18876
1fd1cc2f
RS
188772003-05-17 Richard M. Stallman <rms@gnu.org>
18878
4f9f637a
RS
18879 * minibuf.c (read_minibuf): If buffer is empty, record the default
18880 in the history.
18881 (Fminibuffer_complete_word): When deleting the overlap, take account
18882 of its real position.
18883
18884 * fns.c (map_char_table): Fix previous change.
18885
1fd1cc2f
RS
18886 * syntax.c (find_defun_start):
18887 When open_paren_in_column_0_is_defun_start,
18888 return beginning of buffer.
18889
18890 * lisp.h (map_char_table): Declare added arg.
18891
18892 * fns.c (map_char_table): New arg TABLE gets the master table.
18893 All calls changed.
18894 Process default and inheritance, resorting to Faref if necessary.
18895
18896 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18897 (Faccessible_keymaps): Pass new arg to map_char_table.
18898
18899 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
18900
18901 * casetab.c (set_case_table): Pass new arg to map_char_table.
18902
18903 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
18904
18905 * lisp.h (specbinding_func): New typedef.
18906 (struct specbinding): Use specbinding_func, to put the `volatile'
18907 in the right place.
18908
18909 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
18910 to avoid GCC warning.
14d87dc9 18911
b6189c3b 189122003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 18913
14d87dc9 18914 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 18915
35fb885d
SM
189162003-05-15 Stefan Monnier <monnier@cs.yale.edu>
18917
18918 * keyboard.c (apply_modifiers): Don't fill the other cache.
18919
9a274fbd
SM
189202003-05-14 Stefan Monnier <monnier@cs.yale.edu>
18921
c55b5fad
SM
18922 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
18923
9a274fbd
SM
18924 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
18925 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
18926 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
18927 (Fset_window_configuration, Fcurrent_window_configuration)
18928 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
18929 (Fpos_visible_in_window_p, mark_window_cursors_off)
18930 (window_internal_height, window_internal_width, Frecenter)
18931 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
18932 (replace_buffer_in_all_windows, init_window_once, init_window)
18933 (syms_of_window, keys_of_window): Move from lisp.h.
18934 * lisp.h: Move window.c declarations to window.h.
18935
18936 * bytecode.c: Include window.h.
18937 * emacs.c: Include window.h.
18938
14d87dc9 18939 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
18940 (keyremap): Add `parent' field.
18941 (keyremap_step): Use it. Remove `parent' argument.
18942 (read_key_sequence): Setup and use the new `parent' field.
18943
fd93e331
SM
189442003-05-11 Stefan Monnier <monnier@cs.yale.edu>
18945
18946 * keyboard.c (adjust_point_for_property): Ensure termination.
18947
1c4001a1
SM
189482003-05-10 Stefan Monnier <monnier@cs.yale.edu>
18949
18950 * keyboard.c (follow_key): Remove dead variable `did_meta'.
18951 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
18952 duplicated handling of function-key-map and key-translation-map
18953 in read_key_sequence.
18954 (read_key_sequence): Use them.
18955
18956 * keyboard.c (adjust_point_for_property): Try harder to move point
18957 to the non-sticky end of an invisible property.
18958
18959 * xdisp.c (single_display_prop_intangible_p): Make `space' display
18960 property intangible as well.
18961
780379b1
AS
189622003-05-10 Andreas Schwab <schwab@suse.de>
18963
18964 * xmenu.c (single_menu_item): Change last parameter to void* to
18965 avoid warning.
18966
ca2de342
RS
189672003-05-09 Richard M. Stallman <rms@gnu.org>
18968
18969 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
18970 Bind Qinhibit_modification_hooks to t so there will be no GC.
18971 Rename local `tem' to `save_deactivate_mark'.
18972
18973 * eval.c (specpdl_ptr): Declare volatile.
18974 (unbind_to): Copy the whole binding and decrement specpdl_ptr
18975 before doing the work of unbinding it.
18976
18977 * lisp.h (struct specbinding): Declare elements volatile.
18978 (specpdl_ptr): Declare volatile.
18979
18980 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
18981
18982 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
18983 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
18984
347003be
DL
189852003-05-08 Dave Love <fx@gnu.org>
18986
18987 * coding.c (Vlast_coding_system_used): Doc fix.
18988
5adcec23
JR
189892003-05-07 Jason Rumney <jasonr@gnu.org>
18990
18991 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
18992 when system does not support them.
18993
5fe3b8a4
SM
189942003-05-05 Stefan Monnier <monnier@cs.yale.edu>
18995
18996 * fileio.c (Qwrite_region_annotate_functions): New var.
18997 (build_annotations): Use it to process the global part of the hook.
18998 (syms_of_fileio): Init and staticpro it.
18999
19000 * keyboard.c (safe_run_hooks_error): Display a message instead of
19001 silently ignoring the error.
19002
190032003-05-03 Stefan Monnier <monnier@cs.yale.edu>
19004
19005 * keyboard.c (input_available_signal): Mark static.
19006 (menu_bar_items): Use map_keymap.
19007 (menu_bar_one_keymap): Remove.
19008 (menu_bar_item): Adjust arglist (for use in map_keymap).
19009 Properly hide a second binding when not both are keymaps.
19010
19011 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
19012 (single_keymap_panes): Use it and map_keymap.
19013 (single_menu_item): Use skp as well.
19014
19015 * keymap.h (map_keymap_function_t): New type.
19016 (map_keymap): Declare.
19017
19018 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
19019 (map_keymap_call, Fmap_keymap): New functions.
19020 (syms_of_keymap): Defsubr map-keymap.
19021
4b1b4443
JD
190222003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19023
19024 * gtkutil.c (create_dialog, make_widget_for_menu_item)
19025 (make_menu_item, create_menus, xg_update_menu_item): Don't call
19026 ..._with_mnemonic functions for menu items.
19027
1f816871
KH
190282003-05-01 Kenichi Handa <handa@m17n.org>
19029
19030 * coding.c (coding_system_accept_latin_extra_p): Delete this
19031 function.
19032 (find_safe_codings): Pay attention to
19033 the property tranlsation-table-for-encode of each codings.
19034 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
19035
5ed6ba5b
SM
190362003-05-01 Stefan Monnier <monnier@cs.yale.edu>
19037
19038 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
19039
32c06229
SM
190402003-04-30 Stefan Monnier <monnier@cs.yale.edu>
19041
19042 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
19043
19044 * lisp.h (CHECK): Wrap args in parenthesis.
19045 (specbind): Fix doc: symbol = Qnil is not supported any more.
19046
19047 * bytecode.c (Fbyte_code) <unwind-protect>:
19048 Use Fprogn rather than 0 and Qnil.
19049
19050 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
19051 `double', and `triple' modifiers as well.
19052
ed3c3314
RS
190532003-04-30 Richard M. Stallman <rms@gnu.org>
19054
19055 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
19056
19057 * alloc.c (abort_on_gc): New variable.
19058 (Fgarbage_collect): Abort if abort_on_gc is set.
19059
19060 * lisp.h (abort_on_gc): Add decl.
19061
19062 * eval.c (Fsignal): Clear abort_on_gc.
19063
19064 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 19065 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
19066
19067 * xdisp.c (move_it_vertically_backward): Do the final big else
19068 even if nlines is 0.
19069
19070 * xdisp.c (redisplay_internal): Finish the per-frame loop
19071 even if redisplay is suspended by input.
19072
0b325c12
AC
190732003-04-24 Andrew Choi <akochoi@shaw.ca>
19074
19075 * macterm.c (x_list_fonts): Return all fonts that match if
19076 maxnames = -1.
19077
4e837cd0
KH
190782003-04-25 Kenichi Handa <handa@m17n.org>
19079
19080 * syntax.c (skip_chars): Fix previous change.
19081
9af7511a
KH
190822003-04-24 Kenichi Handa <handa@m17n.org>
19083
19084 * syntax.c (skip_chars): Make the code faster by using the common
19085 technique of *p, *stop, and *endp.
19086
e3b2c21f
JD
190872003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19088
19089 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 19090 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
19091 being updated.
19092
32c06229
SM
190932003-04-19 Stefan Monnier <monnier@cs.yale.edu>
19094
19095 * eval.c (Fapply): Undo last change and add a comment about why.
19096
c6464167
MB
190972003-04-18 Miles Bader <miles@gnu.org>
19098
19099 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
19100 pickier PARSE_MULTIBYTE_SEQ.
19101
e509f168
SM
191022003-04-17 Stefan Monnier <monnier@cs.yale.edu>
19103
19104 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
19105 Use XCDR, XCAR, CONSP.
19106 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
19107 (Fapply): Remove unnecessary GCPRO.
19108
19109 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
19110
19111 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
19112
19113 * buffer.h: Don't hardcode BEG==1.
19114
19115 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
19116
5ceea398
RS
191172003-04-16 Richard M. Stallman <rms@gnu.org>
19118
19119 * xdisp.c (try_window, try_window_reusing_current_matrix):
19120 When at end of window, set window_end_pos to Z-ZV.
19121
19122 * buffer.c (Foverlay_recenter): Doc fix.
19123
e509f168
SM
191242003-04-14 Stefan Monnier <monnier@cs.yale.edu>
19125
19126 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
19127
d243e605
AC
191282003-04-14 Andrew Choi <akochoi@shaw.ca>
19129
19130 * macterm.c (mac_check_for_quit_char): Don't check more often than
19131 once a second.
19132
6901b111
SM
191332003-04-11 Stefan Monnier <monnier@cs.yale.edu>
19134
19135 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
19136 specially, so that they can't hide an implicit switch-frame event.
19137 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
19138 (head_table): Use switch-frame as event_kind for select-window.
19139 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
19140
19141 * editfns.c (Fformat): Lisp_Object/int mixup.
19142 (format2): Remove unused var numargs.
19143
e301806f 191442003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 19145
6901b111 19146 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
19147 (Qafter_insert_file_set_coding): New variable.
19148 (syms_of_fileio): Initialize and staticpro it. Delete declaration
19149 for after-insert-file-adjust-coding-function.
19150 (Finsert_file_contents): Call Qafter_insert_file_set_coding
19151 instead of Vafter_insert_file_adjust_coding_function.
19152
38914424
KH
191532003-04-11 Kenichi Handa <handa@m17n.org>
19154
19155 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
19156
19157 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
19158 string. Callers changed.
19159
191602003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 19161
6901b111 19162 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 19163 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
19164 (Finsert_file_contents):
19165 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
19166 decode-format.
19167
f979dc05
JD
191682003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19169
19170 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
19171 get GtkAdjustment as widget now is a GtkRange.
19172
19173 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
19174 GtkRange to avoid memory leak.
19175
f8c6b4c2 191762003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 19177
50ebc53d
KH
19178 * xfaces.c (Vface_font_rescale_alist): New variable.
19179 (struct font_name): New member rescale_ratio.
19180 (font_rescale_ratio): New function.
6901b111 19181 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
19182 (better_font_p): On comparing point sized, pay attention to
19183 recale_ratio member of fonts.
19184 (build_scalable_font_name): Reflect font->rescale_ratio in the
19185 font name.
6901b111 19186 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 19187
cb98871c
KH
19188 * lread.c (read1): Before calling index, check if the 2nd
19189 arguemnt is in ASCII range.
19190
4773b8ca
RS
191912003-04-08 Richard M. Stallman <rms@gnu.org>
19192
b0ada147
RS
19193 * fileio.c (Ffile_symlink_p): Doc fix.
19194
19195 * editfns.c (Fformat): Translate positions of text properties
19196 in the format string to apply them to the result.
19197
4773b8ca
RS
19198 * fileio.c (Finsert_file_contents): Doc fix.
19199 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19200
192012003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 19202
4773b8ca
RS
19203 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
19204
e8f25745 192052003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 19206
e8f25745
ST
19207 * mac.c (init_mac_osx_environment): Switch libexec and bin so
19208 that self-contained application finds libexec files.
19209
f8c6b4c2 192102003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 19211
6901b111
SM
19212 * coding.c (code_convert_region_unwind):
19213 Set Vlast_coding_system_used to the argument.
2310d84c
KH
19214 (code_convert_region): If post-read-conversion function changed
19215 the value of last-coding-sytem, keep the new value in
19216 coding->symbol so that it won't be overridden.
19217 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
19218 (coding_system_accept_latin_extra_p): New function.
19219 (find_safe_codings): Pay attention to characters registered in
19220 latin-extra-code-table.
2310d84c 19221
39c9a034
TTN
192222003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
19223
19224 * Makefile.in (md5.o): Add missing dependency info.
19225
eb67c5d6
RS
192262003-04-06 Richard M. Stallman <rms@gnu.org>
19227
19228 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
19229
19230 * marker.c (verify_bytepos): New function.
19231
19232 * intervals.c (set_intervals_multibyte_1): When becoming
19233 multibyte, adjust right and left child sizes to a whole set of
19234 characters. If an interval gets zero total-length, delete it.
19235 If an interval consists of just its children, delete one of them.
19236
19237 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
19238 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 19239
52eb0373 19240 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
19241 All calls deleted.
19242 (lisp_malloc): Do the work here directly.
19243
b1f81fc5
JB
192442003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
19245
19246 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
19247 char tables.
19248
192492003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
19250
19251 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
19252 destructively change "%S" to "%s".
19253
774666fb
MB
192542003-04-03 Miles Bader <miles@gnu.org>
19255
19256 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
19257 always set.
19258
19c37f01
DL
192592003-04-01 Dave Love <fx@gnu.org>
19260
19261 * xfns.c (xpm_lookup_color): Grok "opaque".
19262
2f4b24c3
AC
192632003-03-31 Andrew Choi <akochoi@shaw.ca>
19264
19265 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
19266 parent window ID.
19267
19268 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
19269
19270 * macterm.h (struct mac_output): Define x_pixels_diff and
19271 y_pixels_diff.
b1f81fc5 19272
9443fcf6
JB
192732003-03-31 Juanma Barranquero <lektu@terra.es>
19274
19275 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
19276 blockinput.h and files included from it.
19277
e072891b
KS
192782003-03-31 Kim F. Storm <storm@cua.dk>
19279
19280 The following changes consolidates the common code related to
19281 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
19282 files into frame.c.
9443fcf6 19283
e072891b
KS
19284 * frame.c: Include blockinput.h.
19285 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
19286 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
19287 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
19288 related vars here.
19289 (struct frame_parm_table, frame_parms): New table for describing
19290 frame parameters and their associated Q-variable.
19291 The order of the parameters corresponds to the sequence of the
19292 frame_parm_handlers table in redisplay_interface.
19293 (x_fullscreen_move, x_set_frame_parameters)
19294 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
19295 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
19296 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19297 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
19298 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
19299 Generic functions for processing of frame parameters.
19300 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
19301 (display_x_get_resource, x_get_resource_string): Functions for
19302 generic access to X resources.
19303 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
19304 (x_default_parameter, Fx_parse_geometry): Functions for generic
19305 access to frame parameters.
6901b111
SM
19306 (x_figure_window_size): Generic calculation of frame size.
19307 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
19308 (syms_of_frame): Intern and staticpro frame parameter variables.
19309 Defvar_lisp Vx_resource_class and Vx_resource_name here.
19310 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 19311
e072891b
KS
19312 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
19313 parameter related vars defined in frame.c.
19314 (EMACS_CLASS): Define here.
19315 (enum FULLSCREEN_*): Define here.
19316 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
19317 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
19318 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
19319 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
19320 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
19321 (x_set_visibility, x_set_autoraise, x_set_autolower)
19322 (x_set_unsplittable, x_set_vertical_scroll_bars)
19323 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
19324 (x_figure_window_size): Add prototypes.
19325
19326 * dispextern.h (frame_parm_handler): New typedef.
19327 (struct redisplay_interface): New member frame_parm_handlers.
19328 (enum resource_types): Move declaration here.
19329 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
19330 (x_default_parameter): Add prototypes.
19331
19332 * window.c: Remove extern decl for frame parameter vars.
19333 (change_window_heights): New generic function;
19334 replaces x_change_window_heights. All users changed.
19335
19336 * window.h (change_window_heights): Add prototype.
19337
19338 * xfaces.c: Remove extern decl for frame parameter vars.
19339
19340 * xterm.h (EMACS_CLASS): Remove. Use generic define.
19341 (struct w32_display_info): Fix type of xrdb member.
19342 (enum FULLSCREEN_*): Remove.
19343 Remove prototypes for generic functions (in frame.h).
19344
19345 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19346 parameters now defined in frame.h and frame.c.
f63fd14e 19347 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
19348 (enum x_frame_parms): Remove (bogus, unused enum).
19349 (check_x_display_info): Make non-static (for frame.c).
19350 (struct x_frame_parm_table, x_frame_parms): Remove.
19351 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19352 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19353 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19354 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19355 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19356 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19357 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19358 Remove. Use generic functions instead.
19359 (enum resource_types): Remove.
19360 (x_set_scroll_bar_default_width): New global function (for frame.c).
19361 (Fx_create_frame): Depend on x_figure_window_size to add space for
19362 toolbar and setup size_hint_flags.
19363 (x_frame_parm_handlers): New table for redisplay_interface.
19364 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 19365
e072891b 19366 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 19367 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
19368 (x_redisplay_interface): Add x_frame_parm_handlers member.
19369
19370 * w32gui.h (XrmDatabase): New (dummy) typedef.
19371
19372 * w32term.h (EMACS_CLASS): Remove. Use generic define.
19373 (struct w32_display_info): Fix type of xrdb member.
19374 (enum FULLSCREEN_*): Remove.
19375 (x_fullscreen_adjust): Remove prototype.
19376
19377 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19378 parameters now defined in frame.h and frame.c.
f63fd14e 19379 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
19380 (enum x_frame_parms): Remove (bogus, unused enum).
19381 (check_x_display_info): Make non-static (for frame.c).
19382 (struct x_frame_parm_table, x_frame_parms): Remove.
19383 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19384 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19385 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19386 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19387 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19388 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19389 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19390 Remove. Use generic functions instead.
19391 (enum resource_types): Remove.
19392 (x_set_scroll_bar_default_width): New global function (for frame.c).
19393 (Fx_create_frame): Depend on x_figure_window_size to add space for
19394 toolbar and setup size_hint_flags.
19395 (w32_frame_parm_handlers): New table for redisplay_interface.
19396 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 19397
e072891b 19398 * w32term.c: Remove unnecessary extern declarations.
52eb0373 19399 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
19400 (x_redisplay_interface): Add w32_frame_parm_handlers member.
19401
19402 * w32reg.c (x_get_string_resource): Use XrmDatabase.
19403
19404 * macgui.h (XrmDatabase): New (dummy) typedef.
19405
19406 * macterm.h (EMACS_CLASS): Remove.
19407 (struct mac_display_info): Add xrdb member.
19408 (struct mac_output): Add want_fullscreen member.
19409
19410 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19411 parameters now defined in frame.h and frame.c.
f63fd14e 19412 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
19413 (check_x_display_info): Make non-static (for frame.c).
19414 (struct x_frame_parm_table, x_frame_parms): Remove.
19415 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19416 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19417 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19418 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19419 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19420 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19421 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19422 Remove. Use generic functions instead.
19423 (enum resource_types): Remove.
19424 (x_set_scroll_bar_default_width): New global function (for frame.c).
19425 (mac_frame_parm_handlers): New table for redisplay_interface.
19426 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 19427
e072891b
KS
19428 * macterm.c: Remove unnecessary extern declarations.
19429 (x_redisplay_interface): Add mac_frame_parm_handlers member.
19430
3e6a560b
KS
19431 * Makefile.in (frame.o): Add dependency on blockinput.h and files
19432 included from it (atimer.h and systime.h).
19433
7b7b454e
AS
194342003-03-30 Andreas Schwab <schwab@suse.de>
19435
19436 * xdisp.c (x_insert_glyphs): Fix swapped width and height
19437 parameters for shift_glyphs_for_insert.
19438
19439 * macterm.c (x_redisplay_interface): Add missing entry for
19440 draw_vertical_window_border.
19441
beb402de
KG
194422003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
19443
19444 * fileio.c (Fexpand_file_name): In the no-handler case, after
19445 expanding, look again for a handler and invoke it. This is needed
19446 for filenames like "/foo/../user@host:/bar/../baz" -- the first
19447 expansion produces "/user@host:/bar/../baz" which needs to be
19448 expanded again for the finame result "/user@host:/baz".
19449
b676f356
JD
194502003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19451
19452 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
19453 of area to be redrawn for better performance.
19454
3c671a56
SM
194552003-03-28 Stefan Monnier <monnier@cs.yale.edu>
19456
19457 * xterm.c (take_vertical_position_into_account): Remove.
19458 (xt_action_hook): Call set_vertical_scroll_bar if needed.
19459 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
19460 (xm_scroll_callback, x_create_toolkit_scroll_bar)
19461 (x_set_toolkit_scroll_bar_thumb): Simplify.
19462 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
19463 (XTread_socket): Remove unused var.
19464 (x_make_frame_invisible): Replace goto with else.
19465
19466 * xdisp.c (set_vertical_scroll_bar): New fun.
19467 (redisplay_window): Use it.
19468
84f2e615
RS
194692003-03-26 Richard M. Stallman <rms@gnu.org>
19470
19471 * xdisp.c (update_tool_bar): Recompute tool bar if
19472 update_mode_lines is set. Set w->update_mode_line
19473 only if the tool bar contents actually change.
19474 (update_menu_bar): Undo previous change.
19475
70b6104c
JD
194762003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19477
5fd6f727
JD
19478 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
19479 (xg_frame_set_char_size): Calculate scroll bar width before frame
19480 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
19481 (xg_separator_p): Check for all documented separator types.
19482 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
19483 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
19484
70b6104c
JD
19485 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
19486 so tool bar gets updated.
19487
d9b36d19
SM
194882003-03-26 Stefan Monnier <monnier@cs.yale.edu>
19489
19490 * data.c (store_symval_forwarding): Re-instate part of the code
19491 that was deleted with too much enthusiasm.
19492
194932003-03-25 Stefan Monnier <monnier@cs.yale.edu>
19494
19495 * data.c (store_symval_forwarding): Delete special read-only
19496 hack for type == -1, since we now use ->constant instead.
19497 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
19498
19499 * buffer.c (overlays_in): Declare static.
19500 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
19501 `constant' field rather than the variable's `type' field.
19502
365fa1b3
AC
195032003-03-24 Andrew Choi <akochoi@shaw.ca>
19504
19505 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
19506
19507 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
19508
19509 * fns.c [MAC_OSX]: Do not redefine vector.
19510
19511 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
19512
19513 * macgui.h: Remove definition of No_Cursor.
19514
d9b36d19 19515 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
19516
19517 * xdisp.c: Define No_Cursor.
19518 (x_write_glyphs, notice_overwritten_cursor)
19519 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
19520 (note_mouse_highlight): Remove Mac-specific code.
19521 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 19522
c0bcce6f
JPW
195232003-03-24 John Paul Wallington <jpw@gnu.org>
19524
19525 * xdisp.c (redisplay_window): If mini window's buffer is not
19526 empty, then redisplay it like other windows.
19527
a526b96c
KS
195282003-03-23 Kim F. Storm <storm@cua.dk>
19529
19530 * w32term.c (w32_draw_window_cursor): Fix last change.
19531
37ab321e
KH
195322003-03-23 Kenichi Handa <handa@m17n.org>
19533
a526b96c
KS
19534 * alloc.c (make_string_from_bytes, make_specified_string):
19535 Add `const' for the arg CONTENTS.
37ab321e
KH
19536
19537 * lisp.h (make_string_from_bytes, make_specified_string):
19538 Prototypes adjusted.
19539
7863d625
JD
195402003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19541
14a56a1b 19542 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
fd4c9408 19543
7863d625
JD
19544 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
19545 (XG_SB_RANGE): New define.
19546
19547 * gtkutil.c (xg_fixed_handle_expose): New function.
19548 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
19549 expose events.
19550 (xg_update_scrollbar_pos): Take two more arguments, left and width
19551 of scroll bar including borders.
19552 Clear left and right part outside scroll bar separately as some
19553 themes have bars that are not an even number of pixels.
d9b36d19 19554 Don't set reallocate_redraws, don't call
7863d625
JD
19555 gdk_window_process_all_updates.
19556 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
19557 so no need to change it. Calculate size and value with XG_SB_RANGE.
19558
d9b36d19
SM
19559 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
19560 Pass left and width of scroll bar including borders to
7863d625
JD
19561 xg_update_scrollbar_pos.
19562
af0ad939
TTN
195632003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
19564
19565 * Makefile.in: Make sure space precedes end-of-line backslashes.
19566
b22139fd
KS
195672003-03-22 Kim F. Storm <storm@cua.dk>
19568
19569 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
19570 Add generic versions here. Remove system specific versions
19571 defined elsewhere.
19572
19573 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
19574 Add prototypes.
19575
6e6410cf
KS
19576 * xterm.h (STORE_NATIVE_RECT): New macro.
19577
5c9cc435
KS
195782003-03-21 Kim F. Storm <storm@cua.dk>
19579
00c64fab
SM
19580 * xdisp.c (get_glyph_string_clip_rect):
19581 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
19582
19583 * dispextern.h (struct redisplay_interface): Add active_p
19584 argument to draw_window_cursor member. All uses changed.
19585
acd37560
KS
195862003-03-21 Kim F. Storm <storm@cua.dk>
19587
19588 The following changes consolidate code related to writing and
19589 inserting glyphs, exposing frame, the tool bar, the mouse face,
19590 the output cursor, and help echo from xterm.c, w32term.c and
19591 macterm.c into xdisp.c. It also generalizes the use of the
19592 window_part enum instead of using numeric values throughout.
af0ad939 19593
acd37560
KS
19594 * xdisp.c: Consolidate gui-independent code here.
19595 Include keymap.h.
19596 (Qhelp_echo): Import.
19597 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
19598 (help_echo_string, help_echo_window, help_echo_object)
19599 (previous_help_echo_string, help_echo_pos): Declare here.
19600 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
19601 (estimate_mode_line_height): Define here. Handle windowing
19602 systems directly (without using estimate_mode_line_height_hook).
19603 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
19604 (update_window_cursor, update_cursor_in_window_tree)
19605 (fast_find_position, fast_find_string_pos)
19606 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
19607 (expose_area, expose_line, expose_overlaps, expose_window)
19608 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
19609 declared static as they are only used locally in xdisp.c.
19610 (draw_glyphs): Rename from x_draw_glyphs and make static.
19611 (tool_bar_item_info, notice_overwritten_cursor): Make static.
19612 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
19613 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 19614 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
19615 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
19616 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
19617 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
19618 (note_mouse_highlight, x_clear_window_mouse_face)
19619 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
19620 (x_intersect_rectangles): New generic functions for use by xdisp.c
19621 and GUI front-ends.
19622 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
19623 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
19624
19625 * dispextern.h (Display_Info): Generic typedef for *_display_info.
19626 (NativeRectangle): Generic typedef for rectangle type.
19627 (enum window_part): Move here from window.c.
19628 (struct redisplay_interface): New members flush_display_optional,
19629 define_frame_cursor, clear_frame_area, draw_window_cursor,
19630 draw_vertical_window_border, shift_glyphs_for_insert.
19631 Rename member clear_mouse_face to clear_window_mouse_face.
19632 (estimate_mode_line_height_hook): Remove hook.
19633 (auto_raise_tool_bar_buttons_p): Don't declare extern.
19634 (tool_bar_item_info): Remove prototype.
19635 (help_echo_string, help_echo_window, help_echo_object)
19636 (previous_help_echo_string, help_echo_pos)
19637 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
19638 (x_stretch_cursor_p, output_cursor): Declare extern.
19639 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
19640 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
19641 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
19642 (display_and_set_cursor, set_output_cursor, x_cursor_to)
19643 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
19644 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
19645 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
19646 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
19647 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
19648 Add prototypes.
19649 (mode_line_string, marginal_area_string): Fix prototypes.
19650
19651 * window.c (enum window_part): Move to dispextern.h.
19652 (coordinates_in_window): Use enum window_part member names
19653 instead of numbers to describe return value.
19654 (struct check_window_data): Change part member to window_part.
19655 (check_window_containing): Return window_part unaltered.
19656 (window_from_coordinates): Change part arg from int to enum
19657 window_part. Allow part arg to be null. All users changed.
19658
19659 * window.h (window_from_coordinates): Fix prototype.
19660
19661 * term.c (estimate_mode_line_height): Move to xdisp.c.
19662
19663 * keyboard.c (make_lispy_event): Use enum window_part.
19664
19665 * dispnew.c (mode_line_string, marginal_area_string): Use enum
19666 window_part instead of int in arg list. Users changed.
19667
19668 * xterm.h (No_Cursor): Declare as None for X.
19669 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 19670
acd37560
KS
19671 * xterm.c: Remove consolidated defines and code.
19672 (BETWEEN): Remove unused macro.
19673 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
19674 (x_define_frame_cursor, x_clear_frame_area)
19675 (x_draw_window_cursor): New X-specific functions for RIF.
19676 (x_redisplay_interface): Add new members.
19677
19678 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
19679
19680 * w32term.h (struct w32_output): Remove cross_cursor member.
19681
19682 * w32term.c: Remove consolidated defines and code.
19683 (BETWEEN): Remove unused macro.
19684 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
19685 (w32_define_frame_cursor, w32_clear_frame_area)
19686 (w32_draw_window_cursor): New W32-specific functions for RIF.
19687 (w32_redisplay_interface): Add new members.
19688
a64387ee 19689 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
19690 (XRectangle): Add X compatible rectangle type.
19691 (NativeRectangle): Declare as RECT for W32.
19692 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
19693
19694 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
19695
19696 * w32console.c: Remove consolidated defines and code.
af0ad939 19697
acd37560
KS
19698 * msdos.h (Display_Info): Add generic typedef.
19699
19700 * msdos.c: Remove consolidated defines and code.
19701 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
19702
19703 * macterm.h (struct mac_output): Replace member cross_cursor by
19704 hand_cursor.
19705 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
19706
19707 * macterm.c: Remove consolidated defines and code.
19708 (BETWEEN): Remove unused macro.
19709 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
19710 (mac_define_frame_cursor, mac_clear_frame_area)
19711 (mac_draw_window_cursor): New Mac-specific functions for RIF.
19712 (x_redisplay_interface): Add new members.
19713
19714 * macgui.h (No_Cursor): Define as 0 for Mac.
19715 (XRectangle): Add X compatible rectangle type.
19716 (NativeRectangle): Declare as Rect for Mac.
19717 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
19718
204ccab1
KS
19719 * macfns.c (x_set_mouse_color): Setup hand_cursor.
19720 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 19721
9443fcf6 19722 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
19723 included from it. Add dependency on keymap.h.
19724
19725 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
19726
8ba01a70 197272003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
19728
19729 * fileio.c (Fexpand_file_name): Fix previous change.
19730
8ba01a70 197312003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
19732
19733 * fileio.c (Ffile_name_directory): Reconstruct file name by
19734 make_specified_string.
19735 (Ffile_name_nondirectory, Ffile_name_as_directory)
19736 (Fdirectory_file_name, Fexpand_file_name)
19737 (Fsubstitute_in_file_name): Likewise.
19738 (Fread_file_name): Compare decoded homedir with DIR and
19739 DEFAULT_FILENAME.
19740
19741 * alloc.c (make_specified_string): If NCHARS is negative, count
19742 the number of characters.
19743
19536747
JD
197442003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19745
de38ae5a
JD
19746 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
19747 all widgets.
19748
19536747
JD
19749 * gtkutil.h: Removed xg_ignore_next_thumb.
19750
37ab321e 197512003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
19752
19753 * coding.c (Vchar_coding_system_table): Remove this variable.
19754 (Vcoding_system_safe_chars): New variable.
19755 (intersection): Remove this function.
19756 (find_safe_codings): Don't use Vchar_coding_system_table, but try
19757 all codings in SAFE_CODINGS.
00c64fab 19758 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
19759 find_safe_codings. Get generic coding systems from
19760 Vcoding_system_safe_chars.
19761 (Fdefine_coding_system_internal): New function.
19762 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
19763 Initialize and staticpro Vcoding_system_safe_chars.
19764
17097258
JD
197652003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19766
2a2071c3
JD
19767 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
19768 equal old values before updating.
19769
17097258
JD
19770 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
19771
19772 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
19773
197742003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19775
19776 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
19777 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
19778 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
14a56a1b 19779 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
17097258
JD
19780 (xg_create_scroll_bar): Pass bar to button event callback.
19781 (xg_find_top_left_in_fixed): New function.
19782 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
19783 whole scroll bar area. Get old position with
19784 xg_find_top_left_in_fixed, calculate and only clear needed areas.
19785 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
19786 dragging is in progress. Calculate whole as for Motif.
19787 Remove code that saved last values. Call gtk_range functions to
19788 set scroll bar sizes.
19789
19790 * gtkutil.h: Removed xg_ignore_next_thumb.
19791
8cb9dfbf
JB
197922003-03-17 Juanma Barranquero <lektu@terra.es>
19793
19794 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
19795 and files included from it.
19796
00c64fab
SM
197972003-03-18 Stefan Monnier <monnier@cs.yale.edu>
19798
19799 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
19800 multiple occurrences of the same keymap under different prefixes.
19801 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
19802
c45bb3b2
JR
198032003-03-16 Jason Rumney <jasonr@gnu.org>
19804
19805 * w32gui.h: Use HDC for Display.
19806
19807 * w32term.c (w32_encode_char): Prevent double-byte chars from
19808 crashing Emacs.
19809
19810 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
19811 as binary.
19812
2a6d0874
JB
198132003-03-16 Juanma Barranquero <lektu@terra.es>
19814
19815 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
19816
03eb5fab
KS
198172003-03-16 Kim F. Storm <storm@cua.dk>
19818
19819 The following changes consolidate some of the gui-independent
19820 parts of the processing and drawing of "glyph strings" from
19821 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 19822
03eb5fab
KS
19823 * dispextern.h (struct glyph): Reduce face_id member from 22 to
19824 21 bits (this reduces number of faces from 4M to 2M).
19825 Replace W32 specific w32_font_type member (2 bits) by generic
19826 font_type member (3 bits) for portability.
19827 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
19828 (enum draw_glyphs_face): Define here.
19829 (struct glyph_string): Define here. Merge W32 and X versions.
19830 (struct redisplay_interface): New members per_char_metric,
19831 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
19832 (VCENTER_BASELINE_OFFSET): Define here.
19833 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
19834 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
19835
19836 * xdisp.c: Consolidate gui-independent "glyph string" code here.
19837 (dump_glyph_string): Moved here.
19838 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
19839 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
19840 (fill_composite_glyph_string, fill_glyph_string)
19841 (fill_image_glyph_string, fill_stretch_glyph_string)
19842 (left_overwritten, left_overwriting, right_overwritten)
19843 (right_overwriting, get_char_face_and_encoding)
19844 (set_glyph_string_background_width, compute_overhangs_and_x)
19845 (append_glyph, append_composite_glyph, produce_image_glyph)
19846 (take_vertical_position_into_account, append_stretch_glyph)
19847 (produce_stretch_glyph): New generic functions (based on X version).
19848 Call platform specific functions through rif.
19849 (INIT_GLYPH_STRING): New macro, hides W32 details.
19850 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
19851 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
19852 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
19853 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
19854 (notice_overwritten_cursor):
19855 Generic functions exported to platform modules. Users changed.
19856
19857 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
19858 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
19859 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 19860 New macros for consolidated code.
2a6d0874 19861
03eb5fab
KS
19862 * xterm.c: Remove consolidated defines and code.
19863 (x_per_char_metric, x_encode_char)
19864 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
19865 (x_redisplay_interface): Add new members.
19866
19867 * w32gui.h (Display): Add dummy typedef for consolidation.
19868 (XChar2b): Define alias for wchar_t for consolidation.
19869 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19870
19871 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 19872 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
19873 New macros for consolidation.
19874
fad49844 19875 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
19876 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
19877 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
19878 (w32_per_char_metric): Change font_type arg to int for RIF.
19879 (w32_encode_char): Return int according to RIF requirements.
19880 (w32_compute_glyph_string_overhangs): Adapt to RIF.
19881 (w32_get_glyph_overhangs): New function for RIF. Uses generic
19882 x_get_glyph_overhangs.
19883 (w32_redisplay_interface): Add new members.
19884
19885 * macgui.h (XChar2b): Move typedef here for consolidation.
19886 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19887
19888 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
19889 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
19890 consolidation.
19891
19892 * macterm.c: Remove consolidated defines and code.
19893 (mac_per_char_metric): New function for RIF.
00c64fab 19894 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
19895 (mac_compute_glyph_string_overhangs): Adapt for RIF.
19896 (x_redisplay_interface): Add new members.
19897
00c64fab
SM
198982003-03-15 Stefan Monnier <monnier@cs.yale.edu>
19899
19900 * keymap.c (Vmenu_events): New var.
19901 (syms_of_keymap): Initialize it.
19902 (where_is_internal): Check more carefully what is a menu event.
19903
225c7a07
RS
199042003-03-14 Richard M. Stallman <rms@gnu.org>
19905
19906 * lread.c (read1): After #!, exit loop on eof.
19907
cea9be54
JD
199082003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19909
9ea0e54d
JD
19910 * gtkutil.h: Add declaration for xg_frame_cleared.
19911
0cb35f4e
JD
19912 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
19913
cea9be54
JD
19914 * gtkutil.c (struct xg_last_sb_pos): New structure.
19915 (handle_fixed_child): New function.
19916 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
19917 and force a redraw on them.
19918 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
19919 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
19920 so we can avoid unneeded redraws.
19921 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
19922 and force a redraw on the scroll bar.
19923 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
19924 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 19925 (xg_frame_cleared): New function.
cea9be54 19926
20b853f3
KH
199272003-03-13 Kenichi Handa <handa@m17n.org>
19928
19929 * coding.c (Fdetect_coding_region): Fix docstring.
19930 (Fdetect_coding_string): Fix docstring.
19931
7a555aff
AS
199322003-03-13 Andreas Schwab <schwab@suse.de>
19933
25cc0080
AS
19934 * gtkutil.c: Add prototype for create_menus.
19935
30225431
AS
19936 * data.c (long_to_cons): Fix type of top.
19937
19938 * xselect.c (selection_data_to_lisp_data): Use int instead of
19939 long for an integer of size 4.
19940
7a555aff 19941 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 19942 (xg_tool_bar_help_callback): Likewise.
7a555aff 19943
a3e4741f
AS
199442003-03-12 Andreas Schwab <schwab@suse.de>
19945
19946 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
19947
9668be7c
KS
199482003-03-12 Kim F. Storm <storm@cua.dk>
19949
03eb5fab 19950 The following changes consolidate the fringe handling from
9668be7c 19951 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 19952
9668be7c
KS
19953 * xdisp.c: Consolidate fringe handling code here.
19954 (left_bits, right_bits, continued_bits, continuation_bits)
19955 (ov_bits, zv_bits): Define fringe bitmaps.
19956 (fringe_bitmaps): New array holding fringe bitmaps.
19957 (draw_fringe_bitmap): Draw a specific bitmap; call display
19958 specific drawing routine via rif->draw_fringe_bitmap.
19959 (draw_row_fringe_bitmaps): Generic replacement for
19960 x_draw_row_fringe_bitmaps; all callers changed.
19961 (compute_fringe_widths): Generic replacement for
19962 x_compute_fringe_widths; all callers changed.
19963
19964 * dispextern.h (enum fringe_bitmap_type): Define here.
19965 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
19966 (fringe_bitmaps): Declare extern.
19967 (struct redisplay_interface): New member draw_fringe_bitmap.
19968 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
19969
19970 * xterm.c: Remove generic fringe code.
19971 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19972 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19973
19974 * w32term.c: Remove generic fringe code.
19975 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
19976 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 19977
9668be7c
KS
19978 * macterm.c: Remove generic fringe code.
19979 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19980 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19981
00a88f32
SM
199822003-03-11 Stefan Monnier <monnier@cs.yale.edu>
19983
19984 * print.c (Fprin1_to_string): Return unibyte string if possible.
19985
1d1de695
DK
199862003-03-09 David Kastrup <dak@gnu.org>
19987
19988 * process.c (read_process_output): We have allocated enough space
19989 for readmax and carryover, so actually use the alloted space.
19990
257f40f2
JD
199912003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19992
19993 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
19994 toolkit scrollbar click.
19995
19996 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
19997 for USE_GTK.
19998 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
19999 also.
1d1c7e75 20000 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 20001 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 20002
78819ebb 20003 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
20004
20005 * gtkutil.c (xg_get_scroll_id_for_window): New function.
20006 (xg_tool_bar_item_expose_callback): New function.
20007 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
20008 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
20009 on the tool bar widget.
20010 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
20011 to expose on the tool bar item widgets.
20012
15213141
JD
200132003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20014
26b74a0b 20015 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 20016 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
20017 deleted from the image cache).
20018
15213141
JD
20019 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
20020 the event isn't for a frame (i.e. for dialogs).
20021
20b853f3 200222003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
20023
20024 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
20025 composition components reaches the limit, terminate composing.
20026 (COMPOSITION_OK): New macro.
00a88f32 20027 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
20028 composition is found.
20029 (coding_restore_composition): Adjust the number of composition
20030 components if it is not sane.
20031
c9029fe5
JB
200322003-03-06 Juanma Barranquero <lektu@terra.es>
20033
20034 * w32term.h (struct w32_display_info): Add xrdb member to support
20035 passing resources via -xrm on Windows.
20036
20037 * w32term.c (w32_make_rdb): New function.
20038 (w32_term_init): Use it to initialize xrdb member of w32_display_info
20039 struct. Delete leftover code.
20040
20041 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
20042 for resources passed on the command line.
20043
20044 * w32reg.c (w32_get_rdb_resource): New function.
20045 (x_get_string_resource): Use it, so resources passed with -xrm
20046 supercede the ones in the registry.
20047
9d00001f
JD
200482003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20049
20050 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
20051 instead of x_top_window_to_frame.
20052
ca2417b9
JD
200532003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20054
20055 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
20056 when restarting Emacs.
20057
5b20caf0
RS
200582003-03-03 Richard M. Stallman <rms@gnu.org>
20059
20060 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
20061 to run kill-buffer-query-functions.
20062 (Qkill_buffer_query_functions): New var.
20063 (syms_of_buffer): Init and staticpro it.
20064
58e91b77
JD
200652003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20066
20067 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
20068
932357b4
KS
200692003-02-25 Kim F. Storm <storm@cua.dk>
20070
20071 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
20072 If centering point failed to make whole line visible and vscroll
20073 is non-zero, disable vscroll and try centering point again.
20074
20075 * lread.c (read1): Accept `single space' syntax like (? x).
20076
bb8db7e1
JD
200772003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20078
20079 * keyboard.c (cancel_hourglass_unwind): Surround with
14a56a1b 20080 #ifdef HAVE_X_WINDOWS.
bb8db7e1 20081
47d77aab
KH
200822003-02-25 Kenichi Handa <handa@m17n.org>
20083
20084 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
20085 process only when "subprocesses" is defined.
20086
6a097c0c
SM
200872003-02-24 Stefan Monnier <monnier@cs.yale.edu>
20088
20089 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
20090
0b063c27
JB
200912003-02-24 Juanma Barranquero <lektu@terra.es>
20092
d1135afc
JB
20093 * callint.c (fix_command): Declare as static void and move before
20094 Fcall_interactively.
20095
0b063c27
JB
20096 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
20097 (syms_of_xdisp): Don't initialize Qwhen.
20098
0af912f0
JD
200992003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20100
20101 * keyboard.c (cancel_hourglass_unwind): New function.
20102 (command_loop_1): Cancel hourglass with unwind-protect.
20103
120d0a23
RS
201042003-02-23 Richard M. Stallman <rms@gnu.org>
20105
20106 * callint.c (fix_command): New subroutine, from Fcall_interactively.
20107 Detect (when ... (region-beginning)) etc.
20108 (Fcall_interactively): Call fix_command.
20109 (Qif, Qwhen): New variables.
20110 (syms_of_callint): Init and staticpro them.
0b063c27 20111
120d0a23
RS
20112 * regex.c (print_partial_compiled_pattern): Output to stderr.
20113
4ece81a6
KG
201142003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
20115
20116 * dired.c (directory_files_internal): Don't expand directory.
20117 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
20118 instead. From Lars Hansen <larsh@math.ku.dk>.
20119
e52bd6b7
SM
201202003-02-22 Stefan Monnier <monnier@cs.yale.edu>
20121
20122 * fns.c (string_to_multibyte): Remove unused var i.
20123 (Flanginfo): Fix int/Lisp_Object mixup.
20124 (void_call2): New fun.
20125 (Fmap_char_table): Use it in place of call2.
20126
20127 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
20128
20129 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
20130
20131 * keymap.c (copy_keymap_1): Make it static.
20132
20133 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
20134
c33ef7c4
JB
201352003-02-22 David Ponce <david@dponce.com>
20136
20137 * lread.c (Fload): Don't check STRING_MULTIBYTE.
20138
16782258
JD
201392003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20140
20141 * process.h: Removed subtty field from struct Lisp_Process.
20142
20143 * process.c (create_process): Remove setting of subtty.
20144 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
20145 (Fprocess_running_child_p, process_send_signal):
20146 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
20147 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
20148
3abeca61
KG
201492003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
20150
20151 * keymap.c (Fdefine_key): Doc fix.
20152
92a8ce63
JB
201532003-02-21 Juanma Barranquero <lektu@terra.es>
20154
20155 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
20156
20157 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
20158 POLLING_PROBLEM_IN_SELECT.
20159
20160 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
20161 Delete #undef of POLLING_PROBLEM_IN_SELECT.
20162
20163 * s/hpux10-20.h: New file.
20164
e52bd6b7
SM
20165 * process.c (wait_reading_process_input):
20166 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 20167
20f1ef2e
KH
201682003-02-20 Kenichi Handa <handa@m17n.org>
20169
32d0a9dc
KH
20170 * fontset.c (check_fontset_name): If NAME is nil, return the
20171 default fontset.
20172 (override_font_info): New function.
e52bd6b7 20173 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
20174 (Ffontset_info): If FONTSET is not the default fontset, merge
20175 FONTSET onto the copy of the default fontset, and work on that
20176 copy. Document that NAME nil means the default fontset.
20177 (Ffontset_font): Document that NAME nil means the default fontset.
20178
20f1ef2e
KH
20179 * process.c (setup_process_coding_systems): If the process's
20180 in/out descriptor is -1, do nothing.
20181
77d1daf2
AS
201822003-02-19 Andreas Schwab <schwab@suse.de>
20183
e52bd6b7
SM
20184 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
20185 Add prototypes.
77d1daf2 20186
f9a45bb3
KH
201872003-02-19 Kenichi Handa <handa@m17n.org>
20188
20189 * xfaces.c (try_alternative_families): Try all scalable fonts if
20190 Vscalable_fonts_allowed is not Qt.
20191
72ecb43c
JD
201922003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20193
20194 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
20195
ee5be7c3
JD
201962003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20197
20198 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
20199 names.
20200
20201 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 20202 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
20203 x_face_list_fonts.
20204 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
20205 (Fx_list_fonts): Set maxnames to -1 to get all font names.
20206
4cd519a7
KS
202072003-02-18 Kim F. Storm <storm@cua.dk>
20208
068f9882
KS
20209 * lread.c (read1): Fix last change.
20210 "`" is not always special. Allow "?" after a character constant.
4cd519a7 20211
7290a344
AC
202122003-02-18 Andrew Choi <akochoi@shaw.ca>
20213
20214 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
20215
1f7fa69b
AS
202162003-02-18 Andreas Schwab <schwab@suse.de>
20217
20218 * window.c (window_scroll_pixel_based): Move outside a
20219 multi-glyph character before setting new window start.
20220
20221 * xdisp.c (in_display_vector_p): New function.
20222 * dispextern.h (in_display_vector_p): Declare.
20223
23e21195
KS
202242003-02-18 Kim F. Storm <storm@cua.dk>
20225
20226 * lread.c (read1): Fix and relax read syntax.
20227 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
20228 Only recognize "," after dotted-pair dot if inside backquote.
20229 Never include "`" or "," (inside backquote) in a symbol.
20230 Allow dotted-pair dot after a character constant.
20231 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 20232
f098b121
JD
202332003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20234
20235 * gtkutil.c (xg_tool_bar_expose_callback): New function.
20236 (xg_create_tool_bar): Force style of tool bar to be horizontal with
5e1a6e32 20237 icons. Set name of tool bar to emacs-toolbar.
f098b121
JD
20238 (update_frame_tool_bar): Connect expose event to
20239 xg_tool_bar_expose_callback.
20240
63020c46
RS
202412003-02-17 Richard M. Stallman <rms@gnu.org>
20242
20243 * keyboard.c (this_command_key_count_reset): New variable.
20244 Initiatize to 0 where this_command_key_count is set.
20245 (read_char): Save and restore this_command_key_count_reset
20246 around input method code.
20247 (read_char): If this_command_key_count_reset, echo reread commands.
20248 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
20249
fb4452cc
KH
202502003-02-17 Kenichi Handa <handa@m17n.org>
20251
20252 * fns.c (string_to_multibyte): Always return a multibyte string.
20253
bd11cc09
JR
202542003-02-16 Jason Rumney <jasonr@gnu.org>
20255
e52bd6b7
SM
20256 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
20257 Negative max_fonts parameter means list all.
bd11cc09 20258
4cdf4bde
DL
202592003-02-14 Dave Love <fx@gnu.org>
20260
20261 * fns.c (Flanginfo): Doc fix.
20262
023b93f6
KS
202632003-02-13 Kim F. Storm <storm@cua.dk>
20264
37cd4238
KS
20265 * lread.c (read_escape): Interpret \s as a SPACE character, except
20266 for \s-X in a character constant which still is the super modifier.
20267 (read1): Signal an `invalid read syntax' error if a character
20268 constant is immediately followed by a digit or symbol character.
20269
140a6b7e
KS
20270 * search.c (Fmatch_data): Doc fix. Explicitly state that
20271 match-data is undefined if last search failed.
20272
3419757d 20273 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
20274 All uses changed.
20275
7d5c86e5
JB
202762003-02-12 Juanma Barranquero <lektu@terra.es>
20277
20278 * eval.c (Fdefmacro): Fix typo.
20279
295fff2c
KS
202802003-02-12 Kim F. Storm <storm@cua.dk>
20281
20282 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
20283 macro is a string, convert meta modifiers in string when copying
20284 the string into a vector.
20285
60f3202d
KS
202862003-02-11 Kim F. Storm <storm@cua.dk>
20287
20288 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
20289
61cb0b53
KH
202902003-02-11 Kenichi Handa <handa@m17n.org>
20291
20292 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
20293
7392e23c
KS
202942003-02-10 Kim F. Storm <storm@cua.dk>
20295
20296 * process.c: Doc fixes.
20297 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
20298
ce4254bd
KH
202992003-02-10 Kenichi Handa <handa@m17n.org>
20300
9c7a329a
KH
20301 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
20302
ce4254bd
KH
20303 * process.c (QCfilter_multibyte): New variable.
20304 (setup_process_coding_systems): New function.
e52bd6b7
SM
20305 (Fset_process_buffer, Fset_process_filter):
20306 Call setup_process_coding_systems.
ce4254bd
KH
20307 (Fstart_process): Initialize the member `filter_multibyte' of
20308 struct Lisp_Process.
20309 (create_process): Call setup_process_coding_systems.
20310 (Fmake_network_process): New keyward `:filter-multibyte'.
20311 Initialize the member `filter_multibyte' of struct Lisp_Process.
20312 Call setup_process_coding_systems.
20313 (server_accept_connection): Call setup_process_coding_systems.
20314 (read_process_output): If the process has a filter, decide the
20315 multibyteness of a string to given to the filter by
20316 `filter_multibyte' member of the process. If the process doesn't
20317 have a filter and the result of conversion is unibyte, use
20318 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
20319 multibyte form.
20320 (Fset_process_coding_system): Call setup_process_coding_systems.
20321 (Fset_process_filter_multibyte): New function.
20322 (Fprocess_filter_multibyte_p): New function.
20323 (syms_of_process): Intern and staticpro QCfilter_multibyte.
20324 Defsubr Sset_process_filter_multibyte and
20325 Sprocess_filter_multibyte_p.
20326
20327 * process.h (struct Lisp_Process): New member filter_multibyte.
20328
20329 * lisp.h (setup_process_coding_systems): Add prototype.
20330
20331 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
20332 process, update coding systems for the process.
20333
b08d5f59
KH
203342003-02-09 Kenichi Handa <handa@m17n.org>
20335
20336 * fns.c (string_to_multibyte): New function.
20337 (Fstring_to_multibyte): New function.
20338 (syms_of_fns): Defsubr it.
20339
0dfd93c0
AS
203402003-02-08 Andreas Schwab <schwab@suse.de>
20341
20342 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
20343 instead of the substitution.
20344
7b76ca1c
JD
203452003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20346
20347 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
20348
20349 * xmenu.c (menu_position_func): Adjust menu popup position so that
20350 the menu is fully visible.
7b76ca1c 20351
2436a4e4
JD
203522003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20353
20354 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
20355 (x_make_frame_invisible, x_wm_set_icon_position):
20356 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
20357
20358 * xfns.c (x_set_name, x_set_title): Ditto.
20359
37d1e680
RS
203602003-02-04 Richard M. Stallman <rms@gnu.org>
20361
20362 * keyboard.c (echo_now): Update before_command_echo_length.
20363 (Freset_this_command_lengths): Reset this_command_key_count etc.
20364 immediately rather than arranging to do it later.
20365 (before_command_key_count_1, before_command_echo_length_1)
20366 (before_command_restore_flag): Vars deleted.
20367 (add_command_key): Don't handle before_command_restore_flag.
20368 (read_char, record_menu_key): Don't update before_command_key_count or
20369 before_command_echo_length.
20370 (read_char): Don't handle before_command_restore_flag.
20371
20372 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
20373 in direct-output clauses if it wouldn't be called in the ordinary case.
20374
578846a3
KS
203752003-02-04 Kim F. Storm <storm@cua.dk>
20376
20377 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
20378
49853a4d
JD
203792003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20380
20381 * gtkutil.c (remove_from_container): Copying list is not needed.
20382 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
20383 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
20384 on list returned from gtk_container_get_children to avoid memory leak.
20385
8b53dc06
JR
203862003-02-01 Jason Rumney <jasonr@gnu.org>
20387
5d54d177
JR
20388 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
20389 local malloc.
20390 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
20391 definitions in xpm.h.
20392 (init_xpm_functions): New function.
f63fd14e 20393 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
20394 (init_external_image_libraries): Try to load libXpm.dll.
20395
8b53dc06
JR
20396 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
20397 timestamp.
20398
b222e415
DL
203992003-01-31 Dave Love <fx@gnu.org>
20400
20401 * syntax.c (Fskip_chars_forward)
20402 (open-paren-in-column-0-is-defun-start): Doc fix.
20403
c60ee5e7
JB
204042003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
20405
20406 * fileio.c: Support // at start of name for Cygwin (just added proper
20407 preprocessor tests).
20408
20409 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
20410
20411 * Makefile.in: Use @EXEEXT@ for Cygwin.
20412
20413 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
20414
20415 * s/cygwin.h: Added for Cygwin port.
20416
53b37591
JB
204172003-01-31 Juanma Barranquero <lektu@terra.es>
20418
20419 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
20420 when including gif_lib.h.
fe929957 20421 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
20422 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
20423 Windows. Disable color table lookups. Call library functions
53b37591 20424 through pointers determined at runtime.
fe929957
JB
20425 (init_external_image_libraries): Try to load libungif.dll and
20426 libtiff.dll.
53b37591 20427
45415a8f
KH
204282003-01-31 Kenichi Handa <handa@m17n.org>
20429
20430 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 20431 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 20432
a97e4138
JD
204332003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20434
e52bd6b7 20435 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 20436
6eed9bed
DL
204372003-01-30 Dave Love <fx@gnu.org>
20438
20439 * alloc.c (Vgc_elapsed, gcs_done): New variables.
20440 (Fgarbage_collect): Use them.
20441 (init_alloc, syms_of_alloc): Set them up.
20442
100dcd40
JB
204432003-01-30 Juanma Barranquero <lektu@terra.es>
20444
20445 * w32fns.c (init_external_image_libraries): Add missing operator.
20446
fbd852af
JR
204472003-01-29 Jason Rumney <jasonr@gnu.org>
20448
20449 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
20450 an alternative name for jpeg.dll.
20451
8a2d8020
KH
204522003-01-29 Kenichi Handa <handa@m17n.org>
20453
20454 * xdisp.c (set_cursor_from_row): Pay attention to string display
20455 properties.
20456
058c18c7
AC
204572003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
20458
20459 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
20460 <escape>.
20461 (keycode_to_xkeysym_table): Reformat and add more comments.
20462 (XTread_socket): Drop special case for backspace.
20463
385f11cf
AC
204642003-01-28 Andrew Choi <akochoi@shaw.ca>
20465
20466 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
20467 values in old-style RGB specs.
20468
c922a224
JB
204692003-01-27 Juanma Barranquero <lektu@terra.es>
20470
20471 * w32fns.c (init_external_image_libraries): Try alternate names for the
20472 jpeg dll.
20473
0a1d6de0
JD
204742003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20475
20476 * gtkutil.c (create_dialog, xg_separator_p)
20477 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
20478 before calling strcmp or strlen.
20479
a97e4138 204802003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
20481
20482 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
20483 and handle image load failure.
20484
28908312
JR
204852003-01-26 Jason Rumney <jasonr@gnu.org>
20486
20487 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
20488 New functions.
f63fd14e
JB
20489 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
20490 Disable color table lookups. Call jpeg library functions
28908312
JR
20491 through pointers determined at runtime.
20492 (init_external_image_libraries): Try to load jpeg.dll.
20493
84e47416
RS
204942003-01-25 Richard M. Stallman <rms@gnu.org>
20495
20496 * lisp.h: Declare format2 instead of format1.
20497
20498 * fileio.c (barf_or_query_if_file_exists):
20499 Call format2 instead of format1.
20500
20501 * editfns.c (format2): New function, replaces format1
20502 but takes exactly two Lisp Objects as format args.
20503
20504 * buffer.c (Fkill_buffer): Call format2 instead of format1.
20505
a97e4138 205062003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
20507
20508 * xterm.h: Change to return value of x_dispatch_event to int.
20509
20510 * xterm.c (x_filter_event): New function.
20511 (event_handler_gdk, XTread_socket): Call x_filter_event.
20512 (x_dispatch_event): Change to return value of finish.
20513 (event_handler_gdk): Use return value from x_dispatch_event.
20514
20515 * xfns.c (x_window): Call create_frame_xic for GTK version to
20516 initialize input methods.
20517
20518 * gtkutil.h: Add (void) prototypes.
20519
20520 * gtkutil.c (create_menus): Remove code that puts the help menu to
20521 the right.
20522
54eefef1
JR
205232003-01-25 Jason Rumney <jasonr@gnu.org>
20524
20525 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
20526 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
20527 (png_load): Adjust colors for Windows. Use Windows
20528 bitmaps. Disable color table lookups.
c262430d
JR
20529 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
20530 (init_png_functions): New function.
20531 (png_read_from_memory, png_load): Call png library functions
20532 through pointers determined at runtime.
20533 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
20534 (init_external_image_libraries): New function.
20535 (init_xfns): Call it.
54eefef1 20536
1a9e275b
AS
205372003-01-24 Andreas Schwab <schwab@suse.de>
20538
20539 * minibuf.c (Fminibuffer_message): Verify type of parameter.
20540
a97e4138 205412003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
20542
20543 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
20544 of static initializer.
20545
422eec7e
DL
205462003-01-24 Dave Love <fx@gnu.org>
20547
20548 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
20549 architectures.
20550
20551 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
20552 Use __alignof__.
20553
2a026b04
KH
205542003-01-24 Kenichi Handa <handa@m17n.org>
20555
20556 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 20557 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
20558 (command_loop_1): Call adjust_point_for_property with proper
20559 second arg.
20560
a18bb28d
JR
205612003-01-22 Jason Rumney <jasonr@gnu.org>
20562
20563 Sync changes with xterm.c and xfns.c.
20564
20565 * w32term.c (x_draw_glyph_string_foreground)
20566 (x_draw_composite_glyph_string_foreground): Implement overstriking.
20567
20568 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
20569 phys_cursor's hpos is overwritten. This is still not completely
20570 correct, as it doesn't really make sense to use hpos at all to
20571 get the cursor glyph (as that is relative to the width of the
20572 characters on the line, which may have changed during the update).
20573
20574 * w32term.c (notice_overwritten_cursor): Handle the special case
20575 of the cursor being in the first blank non-text line at the
20576 end of a window.
20577
20578 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
20579 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
20580 Compute from the x position returned by x_draw_glyphs.
20581
20582 (x_display_and_set_cursor): Don't set phys_cursor_width here,
20583 except for NO_CURSOR and system caret, to make phys_cursor_width
20584 contain what its name suggests.
20585 (notice_overwritten_cursor): Consider the cursor image erased if
20586 the output area intersects the cursor image in y-direction.
20587
6a097c0c
SM
20588 * w32term.c (note_mode_line_or_margin_highlight): Rename from
20589 note_mode_line_highlight and extend.
a18bb28d
JR
20590
20591 * w32term.c (last_window): New variable.
20592 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
20593 (note_mouse_movement): Remove reimplemented code in #if 0.
20594
20595 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
20596 not update_mode_lines, and always set it to 1.
20597
ac6e47ef
JR
205982003-01-21 Jason Rumney <jasonr@gnu.org>
20599
20600 * w32fns.c (IDC_HAND): Define it if system headers don't.
20601
206022003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
20603
20604 * w32term.h (struct w32_output): New member hand_cursor.
20605 (WM_EMACS_SETCURSOR): New message definition.
20606
20607 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
20608 function w32_define_cursor.
20609 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
20610 position, change member name output_data.x to output_data.w32 and
20611 add function w32_define_cursor.
20612 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
20613 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
20614 (w32_initialize_display_info):
20615 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
20616
20617 * w32fns.c (Vx_hand_shape): New variable.
20618 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
20619 WM_EMACS_SETCURSOR.
20620 (x-create-frame): Setup Cursor types.
20621
ceb39a17
JB
206222003-01-21 David Ponce <david@dponce.com>
20623
ac6e47ef 20624 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
20625 ccl->reg[2] to -1 before calling ccl_driver.
20626 (Sync. with xterm.c x_encode_char change by Kenichi Handa
20627 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
20628 (w32_draw_relief_rect): Declare all args.
20629 (w32_define_cursor): New.
20630
20631 * w32fns.c (w32_load_cursor): New function.
20632 (w32_init_class): Use it.
20633 (x_put_x_image): Declare all args.
20634
b6189c3b 206352003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
20636
20637 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
20638
a97e4138 206392003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476 20640
14a56a1b 20641 * gtkutil.c: Must include stdio.h before termhooks.h.
e8794476 20642
83fc9c63
DL
206432003-01-21 Dave Love <fx@gnu.org>
20644
20645 * alloc.c (Fgc_status): Print zombie list.
20646 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
20647 Fix assignment of zombies.
20648 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
20649 Don't take car of non-cons.
20650
20651 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20652
20653 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20654
fe04b8c8
JR
206552003-01-20 David Ponce <david@dponce.com>
20656
20657 * w32menu.c (digest_single_submenu): Declare all args.
20658
20659 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
20660 changes in xmenu.c:
20661
20662 (parse_single_submenu): Use individual keymap's prompt
20663 string as pane name, if there is one.
20664 (set_frame_menubar): Save menu_items_n_panes from each call to
20665 parse_single_submenu and use it when calling digest_single_submenu.
20666
539e69a9
ST
206672003-01-20 Steven Tamm <steventamm@mac.com>
20668
7e26f91b 20669 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
20670 before sending a scroll-wheel event.
20671
675d000f
RS
206722003-01-20 Richard M. Stallman <rms@gnu.org>
20673
20674 * xdisp.c (redisplay_window): If mini window's buffer is not
20675 a minibuffer, then redisplay it like other windows.
20676
a97e4138 206772003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
20678
20679 * gtkutil.c (xg_create_frame_widgets): Check if there is an
20680 external tool bar before setting tool bar height.
20681
048addec
JD
206822003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20683
20684 * xterm.c (handle_one_xevent): Surround popup_activated
20685 with #ifdef:s for non-toolkit version.
20686
14a56a1b 20687 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
048addec
JD
20688 (gtkutil.o): New file.
20689 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
20690 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
20691
20692 * gtkutil.c: New file for GTK version.
20693
20694 * gtkutil.h: New file for GTK version.
20695
20696 * xterm.h: Add xt_or_gtk_widget.
20697 Include gtk files for USE_GTK.
20698 (struct x_output): Add toolbar_height.
20699 (struct x_output): Add GTK widgets and Gdk size_hints.
20700 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
20701 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
20702 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
20703
20704 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 20705 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
20706 (note_mouse_highlight): Check popup_activated for USE_GTK.
20707 (xt_action_hook): Don't compile if USE_GTK.
20708 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
20709 (xg_scroll_callback): New function.
20710 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
20711 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
20712 for USE_GTK.
20713 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
20714 xg_show_scroll_bar for USE_GTK.
20715 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
20716 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
20717 (event_handler_gdk): New function for USE_GTK.
20718 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
20719 (handle_one_xevent): Make sure widget is mapped before
20720 calling x_real_positions for USE_GTK.
20721 (XTread_socket): Add GTK event loop for USE_GTK.
20722 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
20723 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
20724 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
20725 (x_iconify_frame): Add code for USE_GTK.
20726 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
20727 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
20728 is in gtkutil.c.
20729 (x_term_init): Add initialization for GTK.
20730 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
20731
20732 * xmenu.c: Include gtkutil.h for USE_GTK.
14a56a1b 20733 (Fx_popup_menu): Use current position if x and y are nil.
6bdb309a
SM
20734 (single_menu_item, single_menu_item, Fx_popup_dialog):
20735 Check for USE_GTK.
048addec
JD
20736 (popup_widget_loop): New function for USE_GTK.
20737 (x_activate_menubar): Add code for USE_GTK.
20738 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
20739 (menu_highlight_callback, menubar_selection_callback):
20740 Add USE_GTK versions.
048addec
JD
20741 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
20742 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
20743 (free_frame_menubar): Only compile if not USE_GTK. GTK version
20744 is in gtkutil.c.
20745 (popup_selection_callback): New version for USE_GTK.
20746 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 20747 one USE_X_TOOLKIT version.
048addec
JD
20748 (xmenu_show): Call create_and_show_popup_menu.
20749 (dialog_selection_callback): New version for USE_GTK.
20750 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 20751 one USE_X_TOOLKIT version.
048addec
JD
20752 (xdialog_show): Call create_and_show_dialog.
20753
20754 * xfns.c: Include gtkutil for USE_GTK.
20755 (x_window_to_frame, x_any_window_to_frame)
20756 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
20757 (x_top_window_to_frame): Add code for USE_GTK.
20758 (x_set_background_color): Call xg_set_background_color for GTK.
20759 (x_set_menu_bar_lines): Check for USE_GTK.
20760 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
20761 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
20762 (x_window): Call xg_create_frame_widgets for USE_GTK.
14a56a1b 20763 (Fx_create_frame): Check for USE_GTK.
048addec
JD
20764 (Fx_file_dialog): New implementation for USE_GTK.
20765
20766 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
20767 (update_menu_bar): Add check for USE_GTK.
20768 (update_tool_bar): Add check for USE_GTK and external tool bar.
20769 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
20770 (redisplay_internal): Add check for USE_GTK and popup_activated.
20771 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
20772 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
20773 (display_menu_bar): Add check for USE_GTK
20774
78819ebb 20775 * lisp.h (Vx_resource_name): Declare extern.
048addec 20776
a64387ee 20777 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
20778 for USE_GTK.
20779 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
20780
20781 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
20782 (FRAME_EXTERNAL_TOOL_BAR): New macro.
20783 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
20784
20785 * fileio.c (Fread_file_name): Add check for USE_GTK.
20786
6bdb309a
SM
20787 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
20788 Add check for USE_GTK.
048addec 20789
14a56a1b 20790 * config.in: Added HAVE_GTK.
048addec
JD
20791
20792 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
20793
207942003-01-18 Stefan Monnier <monnier@cs.yale.edu>
20795
20796 * charset.h (Funibyte_char_to_multibyte): Export.
20797
207982003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20799
20800 * xmenu.c (mouse_position_for_popup): New function.
20801 (Fx_popup_menu): Call mouse_position_for_popup for X and
20802 mouse_position_hook for others.
20803
208042003-01-17 Kim F. Storm <storm@cua.dk>
20805
20806 * editfns.c (Finsert): Mention `string-make-multibyte' and
20807 `string-as-multibyte' in doc string.
20808
208092003-01-17 Kenichi Handa <handa@m17n.org>
20810
20811 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 20812
048addec
JD
20813 * editfns.c (Fformat): Convert an unibyte char argument that is
20814 formatted by "%c" to multibyte if the total result must be a
20815 multibyte string.
cd7df9c0 20816
048addec 208172003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 20818
048addec
JD
20819 * process.c (set-process-filter): Document unibyte/multibyte-ness
20820 of string argument.
56210ecd 20821
048addec 208222003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 20823
048addec 20824 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 20825
048addec
JD
20826 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
20827 (re_search_2): Likewise.
6df8b9fe 20828
048addec 208292003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 20830
048addec
JD
20831 * xdisp.c (message_dolog): Fix bug of the case that *Message*
20832 buffer is unibyte.
292ddc31 20833
048addec 208342003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 20835
048addec 20836 * fns.c (Fsubstring): Clarify doc string.
292ddc31 20837
048addec
JD
20838 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
20839 (Fprevious_char_property_change)
20840 (Fnext_single_char_property_change)
20841 (Fprevious_single_char_property_change, Fnext_property_change)
20842 (Fnext_single_property_change, Fprevious_property_change)
20843 (Fprevious_single_property_change, Fadd_text_properties)
20844 (Fput_text_property, Fset_text_properties)
20845 (Fremove_text_properties, Fremove_list_of_text_properties)
20846 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 20847
048addec 208482003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 20849
048addec
JD
20850 * process.h (struct Lisp_Process): New member plist replaces old
20851 member private_vars. All uses changed.
63e4e4c6 20852
048addec 20853 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 20854 (QCplist): Rename from QCvars. Change all uses.
048addec 20855 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 20856 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 20857 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 20858 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 20859
048addec 208602003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 20861
6bdb309a 20862 * m/delta.h: Remove (obsolete).
e833850f 20863
048addec 208642003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 20865
048addec
JD
20866 * fileio.c (Fdelete_directory, Fdelete_file): Document the
20867 behaviour in front of symlinks.
20868 (Fdelete_file): Raise an error on directories.
817cb127 20869
048addec 208702003-01-13 Dave Love <fx@gnu.org>
817cb127 20871
048addec 20872 * fns.c (Freverse): Use QUIT.
3e8cf2ea 20873
048addec 208742003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 20875
048addec
JD
20876 * minibuf.c (minibuffer_completion_contents):
20877 Error if point is inside prompt.
3e8cf2ea 20878
048addec
JD
20879 * keyboard.c (command_loop_1): Don't redisplay directly
20880 if there's a post-command-hook.
3e8cf2ea 20881
048addec
JD
20882 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
20883 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 20884
048addec 208852003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 20886
048addec 20887 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 20888
048addec
JD
20889 * process.c (QCvars): New variable.
20890 (syms_of_process): Intern and staticpro it.
20891 (Fset_process_contact): Removed function.
20892 (Fprocess_variable, Fset_process_variable): New functions.
20893 (syms_of_process): Defsubr them.
20894 (Fstart_process): Initialize private_vars plist to nil.
20895 (Fmake_network_process): New arg :vars to setup the private
20896 variables for new network process.
20897 (server_accept_connection): Copy server's private variables to
20898 client process.
2c10f029 20899
048addec
JD
20900 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
20901 crashes). Code rewritten and simplified. Now directly aligns the
20902 pointer and recalculates pure_bytes_used, rather than aligning the
20903 size and adjusting the pointer.
b8a76c6c 20904
048addec 209052003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 20906
048addec
JD
20907 * process.c (Fset_process_contact): New function.
20908 (syms_of_process): defsubr it.
20909 (make-network-process): Update doc.
3a8d0899 20910
048addec 209112003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 20912
048addec
JD
20913 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
20914 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 20915
048addec 209162003-01-10 Dave Love <fx@gnu.org>
4abc7470 20917
048addec 20918 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 20919
048addec 209202003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 20921
048addec
JD
20922 * process.c (Fmake_network_process): Convert new port number
20923 to host byte order for `:service t' case. From Mario Lang.
bf338245 20924
048addec 209252003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 20926
048addec
JD
20927 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
20928 instead of XtAppProcessEvent.
bf338245 20929
048addec
JD
20930 * xterm.c (handle_one_xevent): New function.
20931 (x_dispatch_event): New function.
20932 (XTread_socket): Call handle_one_xevent.
bf338245 20933
048addec 20934 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 20935
048addec
JD
20936 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
20937 call XQueryPointer to get coordinates.
20938 (popup_get_selection): Do not set popup_activated_flag to zero,
20939 let popup_deactivate_callback do that. Needed for Motif.
20940 Call x_dispatch_event instead of XtDispatchEvent.
20941 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 20942
048addec 209432003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 20944
6bdb309a 20945 * process.c (server_accept_connection): Fix recording of new
048addec
JD
20946 connection's local address in :local property of contact info.
20947 (Fmake_network_process): Record local network address for new
20948 client processes in :local property of contact info.
6bdb309a 20949 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 20950
048addec 209512003-01-07 Dave Love <fx@gnu.org>
00e3ab56 20952
048addec 20953 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 20954
ddec2286
RS
209552003-01-06 Dave Love <fx@gnu.org>
20956
20957 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
20958 (Vlocale_coding_system): Declare.
20959 (Qcodeset, Qdays, Qmonths, Qpaper): New.
20960 (Flanginfo): New.
20961 (syms_of_fns): Initialize new stuff.
20962
048addec 209632003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 20964
048addec 20965 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 20966
048addec
JD
20967 * eval.c (Fuser_variable_p): Doc change. For custom variables,
20968 use the same test as for custom-variable-p.
8c6d74c6 20969
048addec 209702003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 20971
048addec
JD
20972 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
20973 Count LAST_LINE_MISFIT in scroll margin for end of window.
20974 Move label too_near_end before setting SCROLL_MARGIN_POS.
20975 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 20976
048addec
JD
20977 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
20978 scroll_conservatively case. If scrolling that much doesn't change
20979 STARTP, move it down one line.
e833850f 20980
048addec
JD
20981 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
20982 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 20983
048addec
JD
20984 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
20985 selected frame.
8c6d74c6 20986
048addec 20987 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 20988 (syms_of_keymap): Staticpro them.
048addec
JD
20989 (Fapropos_internal): Initialize them and clear them out.
20990 Don't GCPRO them.
8c6d74c6 20991
f5ecbcee 20992 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
8c6d74c6 20993
048addec
JD
20994 * lisp.h: New misc type Lisp_Save_Value.
20995 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
20996 (XSAVE_VALUE): New macro.
20997 (struct Lisp_Save_Value): New data type.
20998 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 20999 (make_save_value): Declare.
8c6d74c6 21000
048addec 21001 * alloc.c (make_save_value): New function.
8c6d74c6 21002
048addec
JD
21003 * xterm.c (x_catch_errors): Save dpy using make_save_value.
21004 (x_catch_errors_unwind): Call XSync.
8c6d74c6 21005
048addec 210062003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 21007
048addec 21008 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 21009
048addec
JD
21010 * keyboard.c (command_loop_1): Call adjust_point_for_property
21011 in direct action cases for Qforward_char and Qbackward_char.
21012 Set already_adjusted so it won't be done twice.
8c6d74c6 21013
b6189c3b 210142002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 21015
048addec
JD
21016 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
21017 type definition of size_t.
8c609cff 21018
048addec 210192003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 21020
048addec
JD
21021 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
21022 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 21023
048addec 210242002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 21025
048addec
JD
21026 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
21027 to default to t.
fa634a5e 21028
048addec 210292002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 21030
048addec 21031 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 21032
048addec 210332002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 21034
7e26f91b 21035 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
21036 allow building in a different directory than source. Uses some
21037 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 21038
048addec 210392002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 21040
048addec
JD
21041 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
21042 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
21043 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
21044 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 21045
048addec 210462002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 21047
048addec
JD
21048 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
21049 <scroll-down-aggressively>: Doc fix.
2155ecf3 21050
048addec
JD
21051 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
21052 string as pane name, if there is one.
21053 (set_frame_menubar): Save menu_items_n_panes from each call to
21054 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 21055
048addec
JD
21056 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
21057 Don't try to make last line fully visible if it is past end of window.
61f1d295 21058
048addec 210592002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 21060
048addec
JD
21061 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
21062 (mac_menu_show): Add support for hierarchical popup menus.
21063 (add_menu_item): Remove indentation support.
21064 (fill_submenu, fill_menu): Create hierarchical menus
21065 instead of using indentation.
0b17a217 21066
048addec 210672002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 21068
048addec
JD
21069 * xdisp.c (try_cursor_movement): Don't call try_window here.
21070 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 21071
048addec 21072 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 21073
048addec 210742002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 21075
048addec
JD
21076 * macterm.c (XTread_socket): Call KeyTranslate for control and
21077 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 21078 being treated like C-%. Do not look for shift key to deal
048addec 21079 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 21080
048addec 210812002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 21082
048addec
JD
21083 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
21084 If it is non-nil, run timers. Use an unwind-protect to requeue
21085 the events that were read ahead.
21086 (popup_get_selection_unwind): New subroutine.
21087 (popup_get_selection_queue): File-scope variable now holds that queue.
21088 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
21089 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
21090 Use an unwind-protect to pop down the dialog box.
21091 (xdialog_show_unwind): New subroutine implements that.
f02cac82 21092
048addec
JD
21093 * xdisp.c (row_containing_pos): Change exit test using last_y.
21094 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 21095
048addec
JD
21096 * lread.c (load_error_handler): New function.
21097 (Fload): Handle errors in Fsubstitute_in_file_name.
21098 Don't expect Fsignal to return.
f02cac82 21099
048addec
JD
21100 * eval.c: Errors and throws work right with interrupt blocking.
21101 (struct catchtag): New elt interrupt_input_blocked.
21102 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
21103 (internal_catch, Fcondition_case, internal_condition_case)
21104 (internal_condition_case_1, internal_condition_case_2): Save it.
21105 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 21106
048addec 21107 * editfns.c (Fformat): Add parens.
f02cac82 21108
048addec
JD
21109 * dired.c (file_name_completion): Fix that change.
21110 Delete special quit-handling code; just use QUIT.
f02cac82 21111
b6189c3b 211122002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 21113
048addec
JD
21114 * dired.c (file_name_completion): Close directory on error
21115 just as in directory_files_internal.
1a590729 21116
048addec 211172002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 21118
048addec
JD
21119 * window.c (Fset_window_configuration): Set old_point to correct
21120 value when new_current_buffer == current_buffer.
f02cac82 21121
048addec 211222002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 21123
048addec
JD
21124 Revisited my earlier fix for the following entry in etc/PROBLEMS:
21125 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
21126 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 21127
048addec
JD
21128 These changes were in part based upon suggestions made by Peter
21129 'Luna' Runestig [peter@runestig.com].
9785d95b 21130
f4a5a485
SM
21131 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
21132 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
21133 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 21134 global variables.
9785d95b 21135
048addec
JD
21136 * w32.c (globals_of_w32): New function. Used to initialize those
21137 global variables that must always be initialized on startup even
21138 when the global variable initialized is non zero. Its primary
21139 purpose at this time is to set the global variables
21140 g_b_init_is_windows_9x, g_b_init_open_process_token,
21141 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
21142 g_b_init_get_sid_identifier_authority to 0 on startup.
21143 Called from main.
9785d95b 21144
048addec
JD
21145 * w32.c (is_windows_9x): Perform initialization only if
21146 g_b_init_is_windows_9x is equal to 0. On initialization set
21147 g_b_init_is_windows_9x equal to 1.
2308af15 21148
048addec
JD
21149 * w32.c (open_process_token): Perform initialization only if
21150 g_b_init_open_process_token is equal to 0. On initialization set
21151 g_b_init_open_process_token equal to 1.
2308af15 21152
048addec
JD
21153 * w32.c (get_token_information): Perform initialization only if
21154 g_b_init_get_token_information is equal to 0. On initialization
21155 set g_b_init_get_token_information equal to 1.
9785d95b 21156
048addec
JD
21157 * w32.c (lookup_account_sid): Perform initialization only if
21158 g_b_init_lookup_account_sid is equal to 0. On initialization
21159 set g_b_init_lookup_account_sid equal to 1.
9785d95b 21160
048addec
JD
21161 * w32.c (get_sid_identifier_authority): Perform initialization
21162 only if g_b_init_get_sid_identifier_authority is equal to 0.
21163 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 21164
f63fd14e 21165 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
21166 those global variables that must always be initialized on startup
21167 even when the global variable initialized is non zero.
21168 Its primary purpose at this time is to initialize the global variable
21169 track_mouse_event_fn.
9785d95b 21170
a64387ee 21171 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 21172 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 21173
048addec 21174 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 21175
f63fd14e 21176 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
21177 initialize those global variables that must always be initialized
21178 on startup even when the global variable initialized is non zero.
21179 Its primary purpose at this time is to initialize the global
21180 variables get_menu_item_info and set_menu_item_info.
9785d95b 21181
048addec
JD
21182 * w32menu.c (initialize_frame_menubar): Remove initialization of
21183 get_menu_item_info and set_menu_item_info.
9785d95b 21184
048addec 21185 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 21186
048addec
JD
21187 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
21188 Declare them.
9785d95b 21189
048addec
JD
21190 * emacs.c (main): Call globals_of_w32 prior to calling
21191 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
21192 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
21193 is defined.
9785d95b 21194
048addec
JD
21195 * w32term.c (x_update_window_begin): Fix Windows API error
21196 detected by BoundsChecker. Test to determine if
21197 w32_system_caret_hwnd is NULL prior to attempting to use
21198 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 21199
048addec
JD
21200 * w32term.c (x_update_window_end): Fix Windows API error
21201 detected by BoundsChecker. Test to determine if
21202 w32_system_caret_hwnd is NULL prior to attempting to use
21203 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 21204
048addec 212052002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 21206
048addec
JD
21207 * coding.c (coding_system_require_warning): New variable.
21208 (syms_of_coding): DEFVAR it.
b6da19ef 21209
048addec 21210 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 21211
048addec
JD
21212 * fileio.c (choose_write_coding_system): Even if
21213 Vcoding_system_for_write is non-nil, if
21214 coding_system_require_warning is nonzero, call
21215 Vselect_safe_coding_system_function.
bfcf6dbe 21216
048addec 212172002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 21218
048addec
JD
21219 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
21220 (lisp): Add font-core.
2c568af5 21221
048addec 212222002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 21223
048addec
JD
21224 * textprop.c (text_read_only): New arg `propval'.
21225 (get_char_property_and_overlay): Remove unused var `next_overlay'.
21226 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 21227
048addec 212282002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 21229
048addec 21230 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 21231
048addec 212322002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 21233
048addec
JD
21234 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
21235 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
21236 Be more careful about when help_events are generated.
96720f09 21237
048addec 212382002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 21239
048addec
JD
21240 * macterm.c (mac_check_for_quit_char): Correctly set the
21241 modifiers of the event to 0.
21242 * mac.c (sys_select): Duplicate rfds before calling select to
21243 ensure that rfds survive the while loop.
e5ae1c49 21244
048addec 212452002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 21246
048addec
JD
21247 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
21248 row_containing_pos returned NULL.
2eb46b2d 21249
048addec 212502002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 21251
6bdb309a 21252 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 21253 non-blocking.
6bdb309a 21254 (sys_select): Fix sys_select to not use a timeout larger than
048addec 21255 the one given.
b11f1d8a 21256
048addec 212572002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 21258
048addec 21259 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 21260
048addec 212612002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 21262
048addec
JD
21263 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
21264 as the last thing.
a4ac5b17 21265
048addec 212662002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 21267
048addec 21268 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 21269
048addec 212702002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 21271
048addec
JD
21272 * editfns.c (Fformat): Handle precision in string conversion
21273 specifiers like libc functions do (ie, print at most that many
21274 characters).
85cce843 21275
048addec 212762002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 21277
048addec
JD
21278 * xdisp.c (row_containing_pos): Check more carefully
21279 whether charpos is really in the row before returning it.
0d4d26a7 21280
048addec 212812002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 21282
048addec 21283 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 21284
048addec
JD
21285 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
21286 each stack frame. This may change as it could be time consuming.
0d4d26a7 21287
048addec
JD
21288 * macterm.c (mac_check_for_quit_char, quit_char_comp)
21289 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 21290 (mac_initialize): Add code to check for pressing of quit_char
048addec 21291 in the OS event queue.
b11f1d8a 21292
048addec
JD
21293 * mac.c (sys_select): Call mac_check_for_quit_char every second
21294 while blocking on select.
0d4d26a7 21295
048addec
JD
21296 * mac.c (sys_read): Use sys_select to test for input first
21297 before calling read, to allow C-g to break.
9252f7bc 21298
048addec 212992002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 21300
048addec 21301 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 21302
048addec 21303 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 21304
048addec 21305 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 21306
048addec
JD
21307 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
21308 autoload.
9252f7bc 21309
048addec 21310 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 21311
048addec 21312 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 21313
c6605d63 213142002-12-06 Francesco Potort\e,Al\e(B <pot@gnu.org>
bfa261c0 21315
048addec 21316 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 21317
048addec 213182002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 21319
048addec 21320 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 21321
048addec 21322 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 21323
048addec 21324 * alloca.c: Don't use #error.
02d588e2 21325
048addec 213262002-12-03 Dave Love <fx@gnu.org>
02d588e2 21327
048addec
JD
21328 * buffer.c (Qucs_set_table_for_input): New.
21329 (Fget_buffer_create): Use it.
21330 (Qset_buffer_major_mode_hook): Deleted.
21331 (Fset_buffer_major_mode): Revert previous change.
21332 (init_buffer_once): Intern ucs-set-table-for-input.
21333 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
21334 Add &Qucs_set_table_for_input.
451e2697 21335
048addec 213362002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 21337
048addec
JD
21338 * callint.c (Fcall_interactively): Use next_event only if less
21339 than key_count.
72742a99 21340
048addec 213412002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 21342
048addec
JD
21343 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
21344 names to 255 characters.
72742a99 21345
048addec
JD
21346 * macterm.c (XTread_socket): If all frames have been collapsed,
21347 expand the first one before handling drag-and-drop events.
72742a99 21348
048addec
JD
21349 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
21350 which is detected by autoconf.
40e6ff95 21351
048addec 213522002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 21353
048addec
JD
21354 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
21355 offset in two hints table to allow prebinding to be redone and
21356 allow the executable to be stripped.
c02138c6 21357
048addec 213582002-11-29 Dave Love <fx@gnu.org>
c02138c6 21359
048addec
JD
21360 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
21361 already provided.
0e47bbf7 21362
048addec 213632002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 21364
048addec
JD
21365 * xdisp.c (start_display): Check more intelligently for
21366 whether the line is continued.
21367 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 21368
048addec 213692002-11-28 Dave Love <fx@gnu.org>
44129dcb 21370
048addec
JD
21371 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
21372 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 21373
048addec 213742002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 21375
048addec
JD
21376 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
21377 more descriptive error output from lread.c:Fload upon most require
21378 cycles during boostrapping.
1637fd2c 21379
048addec 213802002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 21381
048addec
JD
21382 * fileio.c (Finsert_file_contents): Give a more appropriate error
21383 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 21384
048addec
JD
21385 * dired.c (Ffile_attributes): Don't return negative file sizes for
21386 files bigger than 2Gb when off_t is 32 bit.
540c2788 21387
048addec 213882002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 21389
048addec 21390 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 21391
048addec
JD
21392 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
21393 Test GETPGRP_VOID instead.
21394 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 21395
048addec
JD
21396 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
21397 Don't define.
21398 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 21399
048addec 21400 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 21401
048addec 214022002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 21403
048addec
JD
21404 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
21405 supported.
4042a81a 21406
048addec 214072002-11-25 Dave Love <fx@gnu.org>
4042a81a 21408
048addec 21409 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 21410
048addec 21411 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 21412
048addec 214132002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 21414
048addec 21415 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 21416
048addec 214172002-11-24 Steven Tamm <steventamm@mac.com>
82122254 21418
048addec
JD
21419 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
21420 determine the size of pointers alloced in unexed space instead
21421 of using possibly invalid emacs_zone pointers. This fixes the
21422 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 21423
048addec 214242002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 21425
048addec 21426 * search.c (Fstring_match): Doc fix.
c1ee53bc 21427
048addec
JD
21428 * callint.c (Fcall_interactively): If a command fails because
21429 `*' detects a read-only buffer, but RECORD_FLAG is set,
21430 record it anyway if the args don't actually do tty input.
5598c32e 21431
048addec 214322002-11-22 Dave Love <fx@gnu.org>
5598c32e 21433
048addec 21434 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 21435
048addec
JD
21436 * keyboard.c (interrupt_signal): Provide forward declaration.
21437 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 21438
048addec 21439 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 21440
048addec 214412002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 21442
048addec
JD
21443 * eval.c (interactive_p): Skip any number of bytecode
21444 and special form frames, in any order.
516eea8e 21445
048addec 214462002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 21447
048addec
JD
21448 * w32fns.c (convert_mono_to_color_image): New function.
21449 (xbm_load, xbm_load_image): Use it when foreground or background
21450 is explicitly set.
04dbfa08 21451
048addec 214522002-11-19 Dave Love <fx@gnu.org>
04dbfa08 21453
048addec 21454 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 21455
048addec 214562002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 21457
048addec
JD
21458 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
21459 (XPutPixel): Swap blue and red.
21460 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
21461 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
21462 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
21463 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 21464
048addec 214652002-11-18 Dave Love <fx@gnu.org>
d824beee 21466
048addec 21467 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 21468
048addec 21469 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 21470
048addec 21471 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 21472
048addec
JD
21473 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
21474 malloc, realloc, calloc.
d824beee 21475
048addec
JD
21476 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
21477 (bcmp): Don't define.
d824beee 21478
048addec 21479 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 21480
048addec 21481 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 21482
048addec 21483 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 21484
048addec 21485 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 21486
048addec
JD
21487 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
21488 Don't include alloca.h.
d824beee 21489
048addec 21490 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 21491
048addec 21492 * regex.c (_GNU_SOURCE): Don't define.
1998560a 21493
048addec 21494 * process.c (_GNU_SOURCE): Don't define.
1998560a 21495
048addec 21496 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 21497
048addec 214982002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 21499
048addec 21500 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 21501
048addec 215022002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 21503
048addec
JD
21504 * dispextern.h (struct face): Add `overstrike' field.
21505 * xterm.c (x_draw_glyph_string_foreground)
21506 (x_draw_composite_glyph_string_foreground): Implement overstriking.
21507 * xfaces.c (load_face_font): Set `face->overstrike' based on
21508 result from choose_face_font.
21509 (best_matching_font, choose_face_font): Add `needs_overstrike'
21510 argument, and use it to return whether overstriking is desirable
21511 for this face/font combo.
21512 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 21513
048addec 215142002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 21515
048addec
JD
21516 This change is my fix for the following entry in etc/PROBLEMS:
21517 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
21518 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 21519
048addec
JD
21520 * w32.c: Added wrapper functions around the win32 API functions
21521 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
21522 GetSidIdentifierAuthority. These wrapper functions serve two
21523 purposes:
21524 1. They ensure that the wrapped function can never be called
21525 when Emacs is running on an operating system on which they are
21526 not supported (Microsoft Windows 95 / 98 / ME).
21527 2. They call the wrapped functions via function pointers rather
21528 than calling them directly. This avoids taking advantage of the
21529 undocumented fact that although these functions are not supported
21530 in the 9x branch of Microsoft Windows, the functions do exist in
21531 the version of advapi32.dll that is found in the 9x branch of
21532 Microsoft Windows.
f60ae425 21533
6bdb309a 21534 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
21535 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
21536 and GetSidIdentifierAuthority with calls to the newly added
21537 wrapper functions.
f60ae425 21538
048addec
JD
21539 * w32.h: Added extern declarations for the following functions:
21540 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
21541 syms_of_w32menu, and void syms_of_fontset.
f60ae425 21542
6bdb309a 21543 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
21544 function pointer track_mouse_event_fn in the handler for the
21545 WM_SETFOCUS message.
3582b6a3 21546
6bdb309a 21547 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
21548 reinitialize the function pointers set_menu_item_info and
21549 get_menu_item_info.
f60ae425 21550
048addec 215512002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 21552
048addec
JD
21553 * sound.c: Added a partial implementation of play-sound-internal
21554 for Microsoft Windows. Added various #ifdef / #else / #endif
21555 code blocks to separate the code that will compile under
9fed2905 21556 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 21557 Moved several blocks of code around to make this separation of code
9fed2905 21558 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 21559
048addec 21560 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 21561
048addec
JD
21562 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
21563 added support for play-sound-internal under Windows would be
21564 included in the build of Emacs.
517f42a0 21565
048addec 215662002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 21567
048addec 21568 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 21569
048addec 21570 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 21571
048addec 215722002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 21573
048addec
JD
21574 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
21575 (adjust_point_for_property): Move out of display and invisible even if
21576 we were already inside before (in case a property was added while
21577 we weren't looking). Be more careful when handling invisible props.
21578 Skip invisible text as if it really wasn't there at all.
aab83f91 21579
048addec 215802002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 21581
048addec
JD
21582 * w32term.c (x_draw_image_foreground)
21583 (w32_draw_image_foreground_1): Use standard copy and invert
21584 operations to draw images.
aab83f91 21585
048addec
JD
21586 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
21587 depth of 1.
21588 (xbm_read_bitmap_data): Invert bits as xbm is read in.
21589 (XPutPixel): Don't invert bits here.
a4478a76 21590
048addec 215912002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 21592
048addec
JD
21593 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
21594 (w32_draw_image_foreground_1): Handle image masks.
21595 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 21596
048addec
JD
21597 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
21598 (x_from_xcolors): Adjust RGB values for W32.
21599 (image_background, image_background_transparent)
21600 (postprocess_image, x_to_xcolors, x_disable_image)
21601 (x_build_heuristic_mask): Adapt for W32 and enable.
21602 (x_create_x_image_and_pixmap): Mark images with palettes as such.
21603 (xbm_load): Remove unused variable.
03670a65 21604
048addec 216052002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 21606
048addec 21607 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 21608
048addec 216092002-11-14 Dave Love <fx@gnu.org>
59daa29a 21610
048addec 21611 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 21612
048addec
JD
21613 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
21614 * xmenu.c (unuse_menu_items, digest_single_submenu):
21615 * xfns.c (x_put_x_image):
21616 * xdisp.c (message2_nolog, set_message):
21617 * undo.c (record_point):
21618 * terminfo.c (tparam):
21619 * syntax.c (scan_sexps_forward):
21620 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21621 * composite.c (update_compositions):
21622 * cm.c (calccost, cmgoto):
21623 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 21624
048addec 21625 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 21626
048addec
JD
21627 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
21628 Don't declare.
59daa29a 21629
048addec 21630 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 21631
048addec
JD
21632 * fns.c (Fcopy_sequence): Doc fix.
21633 (Fmap_char_table): Cast `call2'.
3947677c 21634
c6605d63 216352002-11-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
048addec
JD
21636
21637 * s/sol2-8.h: New file.
21638
216392002-11-14 Kim F. Storm <storm@cua.dk>
21640
21641 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
21642 dependency on `risky-local-variable' and the :propertize form.
21643
216442002-11-12 Stefan Monnier <monnier@cs.yale.edu>
21645
21646 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
21647
21648 * syntax.c (scan_sexps_forward): Undo last patch.
21649 Use a more obvious fix: check eob before updating the syntax table.
21650
216512002-11-09 Stefan Monnier <monnier@cs.yale.edu>
21652
21653 * syntax.c (scan_sexps_forward): Update syntax table before reading
21654 a char rather than after so we don't update the table past eob.
21655
216562002-11-09 Dave Love <fx@gnu.org>
21657
21658 * buffer.c (Fset_buffer_major_mode): Fix last change.
21659
21660 * regex.c (regexec): Fix pmatch declaration.
21661
21662 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
21663
21664 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
21665 to self-inserting characters.
21666 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
21667
21668 * coding.c (Vtranslation_table_for_input): New.
21669 (syms_of_coding): DEFVAR it.
21670
216712002-11-08 Juanma Barranquero <lektu@terra.es>
21672
21673 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
21674 window.
21675
216762002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21677
6bdb309a 21678 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
21679 cp, and i.
21680
216812002-11-06 Dave Love <fx@gnu.org>
21682
21683 * buffer.c (Qset_buffer_major_mode_hook): New.
21684 (Fset_buffer_major_mode): Use it.
21685
216862002-11-06 Richard M. Stallman <rms@gnu.org>
21687
21688 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
21689 and stop_polling.
21690
21691 * process.c (wait_reading_process_input):
21692 Test POLLING_PROBLEM_IN_SELECT, not hpux.
21693 Avoid initialization for auto Lisp_Object var.
21694
21695 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
21696
21697 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
21698
216992002-11-05 Richard M. Stallman <rms@gnu.org>
21700
21701 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
21702
21703 * callint.c (Fcall_interactively): New local filter_specs.
21704 (Fcall_interactively): Check for progn as well as let.
21705 Add a gcpro.
21706 (Qprogn): New variable.
21707 (syms_of_callint): Staticpro and init Qprogn.
21708
217092002-11-04 John Paul Wallington <jpw@shootybangbang.com>
21710
21711 * lread.c (Feval_buffer): Doc fix.
21712
217132002-11-04 Dave Love <fx@gnu.org>
21714
21715 * keyboard.c (read_char): Always translate iff
21716 Vkeyboard_translate_table is a char table and c is valid.
21717
21718 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21719 and fix C types.
21720
217212002-11-03 Stefan Monnier <monnier@cs.yale.edu>
21722
21723 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
21724
21725 * editfns.c (get_pos_property): Don't hardcode Qfield.
21726
21727 * keyboard.c (adjust_point_for_property): Handle `display' prop on
21728 overlays. Also handle `invisible' prop.
21729
217302002-11-02 Stefan Monnier <monnier@cs.yale.edu>
21731
21732 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
21733 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
21734
217352002-11-01 Andreas Schwab <schwab@suse.de>
21736
21737 * editfns.c (Fmessage): Revert last change to properly handle %%.
21738
217392002-11-01 Stefan Monnier <monnier@cs.yale.edu>
21740
21741 * xmenu.c (unuse_menu_items): New fun.
21742 (menu_items_inuse): New var.
21743 (syms_of_xmenu): Initialize it.
21744 (init_menu_items): Use it to detect re-entrance.
21745 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
21746 (Fx_popup_menu): Remove spurious XSETFRAME.
21747
21748 * editfns.c (find_field): Make an exception for nil fields.
21749
217502002-11-01 Dave Love <fx@gnu.org>
21751
21752 * m/gec63.h: Deleted.
21753
217542002-10-31 Dave Love <fx@gnu.org>
21755
21756 * xterm.c (XTread_socket): Fix last change.
21757 (xaw_scroll_callback): Cast call_data to long to avoid warning.
21758
217592002-10-31 Stefan Monnier <monnier@cs.yale.edu>
21760
21761 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
21762
217632002-10-30 Stefan Monnier <monnier@cs.yale.edu>
21764
21765 * editfns.c (overlays_around, get_pos_property): New funs.
21766 (find_field): Use them.
21767 Also be careful not to modify POS before its last use.
21768 (Fmessage): Don't Fformat if there's nothing to format.
21769
217702002-10-30 Dave Love <fx@gnu.org>
21771
21772 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
21773 [HAVE_PTY_H]; Include pty.h.
21774
21775 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
21776
21777 * xterm.c (Qeql): Declare.
21778 (Vx_keysym_table): New.
21779 (syms_of_xterm): Initialize it.
21780 (XTread_socket): Use it. Deal with ASCII keysyms.
21781 (XSetIMValues) [HAVE_X11R6]: Prototype.
21782
21783 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
21784 (lispy_kana_keys): Comment out.
21785 (make_lispy_event) [XK_kana_A]: Comment out.
21786 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
21787 Fix sprintf call.
21788
21789 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
21790 regexp.h change).
21791 (TERMINFO, LIBS_TERMCAP): Define.
21792
21793 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
21794 (bcmp): Define conditional on HAVE_BCMP.
21795 (NO_SIOCTL_H): Don't define.
21796 (TIOCSIGSEND): Don't make conditional on IRIX6.
21797
21798 * s/sol2-5.h: Don't include strings.h.
21799 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
21800
21801 * s/irix6-0.h (IRIX6): Don't define.
21802 (bcopy, bcmp, bzero): Don't undef.
21803
21804 * s/irix6-5.h: Don't include strings.h.
21805 (IRIX6): Don't define.
21806 (bcopy, bcmp, bzero): Don't undef.
21807
21808 * syntax.c (Fforward_comment): Doc fix.
21809
218102002-10-29 Kim F. Storm <storm@cua.dk>
21811
21812 * process.c (Fsignal_process): Allow PROCESS to be specified by
21813 name in addition to pid (as integer or string).
21814
218152002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
21816
21817 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
21818 environments.
21819
218202002-10-27 Kim F. Storm <storm@cua.dk>
21821
21822 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21823
21824 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
21825
21826 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
21827
21828 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21829
218302002-10-26 Richard M. Stallman <rms@gnu.org>
21831
21832 * editfns.c (Fformat): Detect invalid format letters for floats.
21833
218342002-10-25 Kenichi Handa <handa@m17n.org>
21835
21836 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
21837 (x_set_title): Likewise.
21838
218392002-10-25 Juanma Barranquero <lektu@terra.es>
21840
21841 * macgui.h:
21842 * w32gui.h: Remove definition of XColor.
21843
21844 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
21845
218462002-10-24 Kim F. Storm <storm@cua.dk>
21847
21848 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
21849 Callers changed (supply dummy arg).
21850
21851 * lisp.h (get_window_cursor_type): Update prototype.
21852
21853 * w32term.c (x_display_and_set_cursor): Get active_cursor from
21854 get_window_cursor_type to track system caret.
21855
218562002-10-24 Kim F. Storm <storm@cua.dk>
21857
21858 * process.c (Fformat_network_address): New function.
21859 (syms_of_process): Defsubr it.
21860 (list_processes_1): Use it to format :local/:remote address if
f9711de4 21861 service/host is not set; before Emacs would crash in that case.
048addec
JD
21862 (Fmake_network_process): Don't use Ffind_operation_coding_system
21863 to setup coding system if host or service is not set.
21864
218652002-10-23 Juanma Barranquero <lektu@terra.es>
21866
21867 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
21868
21869 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
21870 COLORREF.
21871
21872 * macgui.h:
21873 * w32gui.h: Add definition of XColor.
21874
21875 * macfns.c:
21876 * w32fns.c:
21877 * xfaces.c: Remove definition of XColor.
21878
218792002-10-22 Stefan Monnier <monnier@cs.yale.edu>
21880
21881 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
21882
21883 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
21884 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
21885 window if it is dedicated.
21886 (Fshrink_window): Add preserve_before as was done for enlarge_window.
21887 (Vspecial_display_function): Update docstring.
21888
21889 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
21890 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
21891 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
21892
218932002-10-21 Stefan Monnier <monnier@cs.yale.edu>
21894
21895 * casefiddle.c (casify_region): Don't treat a prefix char as part
21896 of a word when at the beginning.
21897
218982002-10-17 Juanma Barranquero <lektu@terra.es>
21899
21900 * lread.c (syms_of_lread): Fix typos.
21901
219022002-10-17 Dave Love <fx@gnu.org>
21903
21904 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
21905
219062002-10-16 Richard M. Stallman <rms@gnu.org>
21907
21908 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
21909
219102002-10-14 Juanma Barranquero <lektu@terra.es>
21911
21912 * w16select.c (syms_of_win16select): Fix docstring for
21913 `selection-coding-system'.
21914
21915 * w32select.c (syms_of_w32select): Likewise.
21916
219172002-10-14 Stefan Monnier <monnier@cs.yale.edu>
21918
21919 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
21920 a backslash-quoted char.
21921 (scan_lists, scan_sexps_forward): Pacify the compiler.
21922
219232002-10-13 Richard M. Stallman <rms@gnu.org>
21924
21925 * window.c (window_scroll): Set immediate_quit.
21926
21927 * print.c (print): When backquote form is the car of a list,
21928 output in old style. Use old_backquote_output to output all
21929 comma forms inside it in old style too.
21930
21931 * buffer.h (struct buffer): Move `undo_list' down below `name'.
21932
219332002-10-11 Markus Rost <rost@math.ohio-state.edu>
21934
21935 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
21936 batch mode).
21937
21938 * lread.c (Fload): Doc fix (load-suffixes).
21939
219402002-10-10 Steven Tamm <steventamm@mac.com>
21941
21942 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
21943 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
21944 Also switch the default to Qnil from Qt.
21945
219462002-10-08 Kenichi Handa <handa@m17n.org>
21947
21948 * coding.c (code_convert_region): When we need more GAP for
21949 conversion, pay attention to the case that coding->produced is not
21950 greater than coding->consumed.
21951
219522002-10-07 Richard M. Stallman <rms@gnu.org>
21953
21954 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
21955
219562002-10-06 Andrew Choi <akochoi@shaw.ca>
21957
21958 * macmenu.c (mac_menu_show): Add j to count menu items; match
21959 menu_item_selection to it to find selected item.
21960
219612002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21962
21963 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
21964 cases. The correct fix is to pass ReparentNotify to Xt.
21965 The shell widget interprets ConfigureNotify differently depending
21966 on if it has been reparented or not.
21967
219682002-10-05 Markus Rost <rost@math.ohio-state.edu>
21969
21970 * editfns.c (Fformat_time_string): Doc fix.
21971
219722002-10-05 John Paul Wallington <jpw@shootybangbang.com>
21973
21974 * fns.c (Flength): Doc fix.
21975
219762002-10-04 Stefan Monnier <monnier@cs.yale.edu>
21977
21978 * keyboard.c (keyremap): New struct.
21979 (read_key_sequence): Use it: globally replace keytran_foo with
21980 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
21981 keytran_next and fkey_next to just `next'.
21982
219832002-10-04 Steven Tamm <steventamm@mac.com>
21984
21985 * macterm.c (keycode_to_xkeysym_table): Change return to be
21986 treated like an X keysym.
21987
219882002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21989
21990 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
21991 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
21992 This is to also handle x/y changes that occur because of a resize.
21993
219942002-10-02 John Paul Wallington <jpw@shootybangbang.com>
21995
21996 * frame.c (Vdelete_frame_functions): New variable.
21997 (syms_of_frame): Initialize and defvar it.
21998 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
21999 it when frame's `tooltip' parameter is non-nil.
22000
22001 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
22002
22003 * w32fns.c (x_create_tip_frame): Likewise.
22004
22005 * macfns.c (x_create_tip_frame): Likewise.
22006
220072002-09-30 Kenichi Handa <handa@m17n.org>
22008
22009 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
22010 -1 before calling ccl_driver.
22011
22012 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
22013 Only when it is non-nil, handle composition sequence.
22014 (setup_coding_system) <0>: Don't force composition handling.
22015
14a56a1b 22016 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
048addec
JD
22017
220182002-09-29 Richard M. Stallman <rms@gnu.org>
22019
22020 * search.c (Freplace_match): Adjust match data for the substitution
22021 just made in the buffer.
22022
22023 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
22024 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
22025
220262002-09-27 Richard M. Stallman <rms@gnu.org>
22027
22028 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
22029 (read_char): Use them. Do all exits thru the end of the function.
22030
220312002-09-27 Kenichi Handa <handa@etl.go.jp>
22032
22033 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
22034 is nil.
22035
220362002-09-26 Richard M. Stallman <rms@gnu.org>
22037
22038 * regex.h (__restrict_arr): Don't define if already defined.
22039
22040 * coding.c (run_pre_post_conversion_on_str):
22041 Save and restore Vdeactivate_mark.
22042
220432002-09-26 John Paul Wallington <jpw@shootybangbang.com>
22044
22045 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
22046
220472002-09-26 Kenichi Handa <handa@etl.go.jp>
22048
22049 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
22050 nonzero, try face's family at first. Otherwise try FAMILY at first.
22051 (choose_face_font): If C is a single byte char or latin-1, call
22052 try_font_list with PREFER_FACE_FAMILY 1.
22053
220542002-09-21 Richard M. Stallman <rms@gnu.org>
22055
22056 * window.c (select_window_1): Don't select frame.
22057 Set frame's selected window only when frame itself is selected.
22058 (Fselect_window): Doc fix.
22059
220602002-09-18 Kim F. Storm <storm@cua.dk>
22061
22062 * process.c (make-network-process): Doc fix (there is no
22063 network-server-log-function hook).
22064
220652002-09-18 Richard M. Stallman <rms@gnu.org>
22066
22067 * print.c (print): Clear out the unused parts of Vprint_number_table.
22068 (syms_of_print): Doc fix for `print-number-table'.
22069
22070 * unexelf.c (unexec): Undo previous change.
22071
220722002-09-17 Andreas Schwab <schwab@suse.de>
22073
22074 * m/alpha.h [LINUX]: Don't define DATA_START.
22075
220762002-09-16 Dave Love <fx@gnu.org>
22077
22078 * unexelf.c (unexec): Deal with .got, reinstating change from
22079 25-08-1999.
22080
220812002-09-13 Richard M. Stallman <rms@gnu.org>
22082
22083 * s/sol2-6.h (UNEXEC): Comment out definition.
22084
22085 * unexsol.c (unexec): Don't downcase first letter of error msg.
22086
22087 * xfaces.c (Fcolor_supported_p): Just one arg is required.
22088
220892002-09-12 Markus Rost <rost@math.ohio-state.edu>
22090
22091 * unexsol.c: Include buffer.h, charset.h, coding.h.
22092
220932002-09-11 Richard M. Stallman <rms@gnu.org>
22094
22095 * unexsol.c: Don't use report_file_error; do it by hand
22096 using dlerror.
22097
22098 * process.c (wait_reading_process_input, both versions):
22099 Before calling turn_on_atimers, call stop_polling.
22100
22101 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
22102
22103 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
22104 we go to too_near_end, call clear_glyph_matrix.
22105 (redisplay_window): After make_cursor_line_fully_visible,
22106 call clear_glyph_matrix and bypass `goto done'.
22107
22108 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
22109 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
22110
221112002-09-10 Richard M. Stallman <rms@gnu.org>
22112
22113 * fileio.c (Fdo_auto_save): Catch error making directory.
22114 Only call push_message if we need to.
22115 At the same time, make an unwind-protect to pop it.
22116 Rename local message_p to old_message_p.
22117 (do_auto_save_make_dir, do_auto_save_eh): New functions.
22118 (do_auto_save_unwind): Don't call pop_message.
22119
22120 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
22121
22122 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
22123
22124 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
22125
22126 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
22127
221282002-09-10 Stefan Monnier <monnier@cs.yale.edu>
22129
22130 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
22131 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
22132 (re_match_2_internal): Be more careful with infinite loops.
22133
221342002-09-10 Kim F. Storm <storm@cua.dk>
22135
22136 * macros.c (end_kbd_macro): New function.
22137 (Fend_kbd_macro): Use it.
22138
22139 * macros.h (end_kbd_macro): Declare extern.
22140
22141 * keyboard.c (Fdiscard_input): If defining keyboard macro,
22142 end and save it instead of discarding it.
22143
221442002-09-09 Markus Rost <rost@math.ohio-state.edu>
22145
22146 * s/sol2-6.h: Fix typo. Add comment.
22147
221482002-09-09 Richard M. Stallman <rms@gnu.org>
22149
22150 * regex.c (regnum_t): Use signed int, not unsigned int.
22151
22152 * s/sol2-6.h: New file.
22153
22154 * s/sol2-5.h (UNEXEC): Definition deleted.
22155
221562002-09-08 Kim F. Storm <storm@cua.dk>
22157
22158 * macros.c (executing_macro_index): Change type to EMACS_INT.
9dd28cae 22159 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
048addec
JD
22160
22161 * macros.h (executing_macro_index): Change type to EMACS_INT.
22162
221632002-09-06 Richard M. Stallman <rms@gnu.org>
22164
22165 * casetab.c (set_case_table): Make canon table point to eqv table.
22166
221672002-09-06 Juanma Barranquero <lektu@terra.es>
22168
22169 * coding.c (syms_of_coding): Fix spacing.
22170
22171 * composite.c (Fcompose_region_internal)
22172 (Fcompose_string_internal): Likewise.
22173
22174 * data.c (Flsh): Likewise.
22175
22176 * fontset.c (Fset_fontset_font): Likewise.
22177
22178 * macfns.c (Fx_server_max_request_size): Likewise.
22179
22180 * w16select.c (syms_of_win16select): Likewise.
22181
22182 * w32select.c (syms_of_w32select): Likewise.
22183
22184 * xselect.c (syms_of_xselect): Likewise.
22185
221862002-09-05 Richard M. Stallman <rms@gnu.org>
22187
22188 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
22189 call EXTEND_RANGE_TABLE and return a proper value.
22190 (set_image_of_range): Don't call set_image_of_range_1
22191 if no TRANSLATE or if range includes all of Latin-1.
22192 Only call it for the Latin-1 part of the range.
22193 For other cases, make two separate ranges,
22194 one for the original specified characters and one for
22195 their case-conversions.
22196
221972002-09-04 Richard M. Stallman <rms@gnu.org>
22198
22199 * s/sol2-5.h (UNEXEC): Use unexsol.o.
22200
22201 * window.c (displayed_window_lines): Correct for one-off bug
22202 in HEIGHT on non-window displays.
22203
22204 * regex.c (set_image_of_range_1): New function.
22205 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
22206 Return a value to indicate running out of memory.
22207 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
22208 (extend_range_table_work_area): New subroutine.
22209 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
22210 Different calling conventions, and used from set_image_of_range{,_1}.
22211 (IMMEDIATE_QUIT_CHECK): Definitions moved.
22212
222132002-09-04 Juanma Barranquero <lektu@terra.es>
22214
22215 * makefile.w32-in: All dependencies updated.
22216
222172002-09-01 Richard M. Stallman <rms@gnu.org>
22218
22219 * unexsol.c: New file.
22220
22221 * xfns.c (Qbox): Declare external, don't define.
22222
22223 * xdisp.c (redisplay_window) <force-start case>:
22224 If point is on semi-visible last line, reposition
22225 it at previous line.
22226
22227 * alloc.c (display_malloc_warning): Use display-warning.
22228 (malloc_warning_1): Function deleted.
22229
22230 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
22231
22232 * lread.c (read1): Handle #! by skipping the line.
22233
222342002-08-31 Richard M. Stallman <rms@gnu.org>
22235
22236 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
22237 Don't include LDFLAGS.
22238 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
22239
222402002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
22241
22242 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
22243 member of x_display_info unless we compile for some window system.
22244
222452002-08-31 Kim F. Storm <storm@cua.dk>
22246
22247 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
22248 (get_window_cursor_type): Don't use them.
22249 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
22250
222512002-08-30 Kenichi Handa <handa@etl.go.jp>
22252
22253 * xdisp.c (get_next_display_element): Fix previous change.
22254
222552002-08-30 Andrew Choi <akochoi@shaw.ca>
22256
22257 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
22258 (expose_window): Use it to fix the display of overlapping
22259 rows (merge code from xterm.c).
22260
22261 * macfns.c (Qbox): Add extern declaration.
22262
222632002-08-30 Juanma Barranquero <lektu@terra.es>
22264
22265 * w32fns.c (Qbox): Make extern.
22266 (syms_of_w32fns): Remove initialization of Qbox.
22267
222682002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
22269
22270 * xfns.c (Fx_open_connection): Fix error message.
22271
222722002-08-30 Kim F. Storm <storm@cua.dk>
22273
22274 The following changes consolidates the handling of the cursor
22275 type in xdisp.c, moving duplicate code and functionality from
22276 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
22277
22278 * frame.h (enum text_cursor_kinds): Consolidated here.
22279 Added DEFAULT_CURSOR value.
22280 (struct frame) <desired_cursor, cursor_width>
22281 <blink_off_cursor, blink_off_cursor_width>: New fields.
22282 Consolidated from output_x, output_w32 and output_mac structs.
22283 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22284 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
22285
22286 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
22287 Variables consolidated here.
22288 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
22289 (Vcursor_in_non_selected_windows): Renamed from
22290 cursor_in_non_selected_windows and changed to Lisp_Object.
22291 (syms_of_xdisp): Define and staticpro new and moved variables.
22292 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
22293 consolidated here. Recognize Qhollow setting.
22294 (set_frame_cursor_types): New function to set frame cursor types
22295 based on the frame parameters.
22296 (get_window_cursor_type): New function to calculate new cursor
22297 type and width for the specified window. Based on duplicated
22298 code consolidated here.
22299 Enhancements: cursor-in-non-selected-windows may be a cursor type,
22300 check buffer-local alternate-cursor-type and blink-cursor-alist
22301 before using built-in blink off methods.
22302
22303 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
22304
22305 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
22306 (get_specified_cursor_type, get_window_cursor_type)
22307 (set_frame_cursor_types): Added prototypes.
22308
22309 * macfns.c (x_specified_cursor_type): Removed.
22310 (x_set_cursor_type): Use set_frame_cursor_types.
22311 (Qbar, Qbox): Removed.
22312 (syms_of_macfns): Don't intern or staticpro them.
22313
22314 * macterm.c (x_specified_cursor_type): Remove prototype.
22315 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22316 (x_display_and_set_cursor): Use get_window_cursor_type.
22317 Remove unused local variables cursor_non_selected, active_cursor.
22318 Redraw cursor if hbar cursor width changes.
22319 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
22320
22321 * macterm.h (enum text_cursor_kinds): Removed.
22322 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
22323 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22324 (FRAME_DESIRED_CURSOR): Macro removed.
22325
22326 * w32fns.c (Vblink_cursor_alist): Removed.
22327 (Qbar, Qhbar, Qbox, Qhollow): Removed.
22328 (syms_of_w32fns): Don't intern, staticpro, or define them.
22329 (x_specified_cursor_type): Removed.
22330 (x_set_cursor_type): Use set_frame_cursor_types.
22331
22332 * w32term.c (x_specified_cursor_type): Remove prototype.
22333 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22334 (x_display_and_set_cursor): Use get_window_cursor_type.
22335 Remove unused local variables cursor_off_state.
22336 Redraw cursor if hbar cursor width changes.
22337 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
22338
22339 * w32term.h (enum text_cursor_kinds): Removed.
22340 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
22341 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22342 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22343 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
22344 (struct w32_display_info) <x_highlight_frame>: Renamed member from
22345 w32_highlight_frame.
22346
22347 * xfns.c (Vblink_cursor_alist): Removed.
22348 (Qbar, Qhbar, Qbox, Qhollow): Removed.
22349 (syms_of_xfns): Don't intern, staticpro, or define them.
22350 (x_specified_cursor_type): Removed.
22351 (x_set_cursor_type): Use set_frame_cursor_types.
22352
22353 * xterm.c (x_specified_cursor_type): Remove prototype.
22354 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22355 (x_display_and_set_cursor): Use get_window_cursor_type.
22356 Remove unused local variables cursor_off_state.
22357 Redraw cursor if hbar cursor width changes.
22358
22359 * xterm.h (enum text_cursor_kinds): Removed.
22360 (struct output_x) <current_cursor, desired_cursor, cursor_width>
22361 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22362 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22363 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
22364 (x_specified_cursor_type): Remove prototype.
22365
223662002-08-28 Richard M. Stallman <rms@gnu.org>
22367
22368 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
22369 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
22370 (Vblink_cursor_alist): New variable.
22371 (syms_of_w32fns): Initialize and defvar it.
22372 (x_specified_cursor_type): Recognize Qbox for filled box.
22373 Exceptions are hollow boxes.
22374 (Qbox, Qhollow): New variables.
22375 (syms_of_w32fns): Initialize and staticpro them.
22376
22377 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
22378 New macros.
22379 (struct w32_output): New fields blink_off_cursor,
22380 blink_off_cursor_width.
22381 (FRAME_CURSOR_WIDTH): New macro.
22382
22383 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
22384 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
22385
22386 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
22387 for bar cursor.
22388
22389 * w32term.c (expose_overlaps): New function.
22390 (expose_window): Use it to fix the display of overlapping rows.
22391
223922002-08-28 Simon Josefsson <jas@extundo.com>
22393
22394 * xfns.c (Fx_open_connection): Improve help when X connection
22395 fails, xhost is insecure and xauth is better.
22396
223972002-08-28 Juanma Barranquero <lektu@terra.es>
22398
22399 * makefile.w32-in: Add missing dependencies on w32term.h and
22400 composite.h.
22401
22402 * emacs.c (USAGE1): Add missing newline.
22403
224042002-08-27 Andrew Choi <akochoi@shaw.ca>
22405
22406 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
22407
224082002-08-27 Richard M. Stallman <rms@gnu.org>
22409
22410 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
22411 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
22412 (Vblink_cursor_alist): New variable.
22413 (syms_of_xfns): Initialize and defvar it.
22414 (x_specified_cursor_type): Recognize Qbox for filled box.
22415 Exceptions are hollow boxes.
22416 (Qbox, Qhollow): New variables.
22417 (syms_of_xfns): Initialize and staticpro them.
22418
22419 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
22420 New macros.
22421 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
22422
22423 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
22424 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
22425
22426 * emacs.c (main): Handle --script.
22427 (USAGE1): Mention --script.
22428 (standard_args): Define sort order for --script.
22429
224302002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
22431
22432 * xdisp.c (redisplay_updating_p): Variable removed.
22433 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
22434 New variables.
22435 (init_iterator): Don't free realized faces if
22436 inhibit_free_realized_faces is set.
22437 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
22438 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
22439 initialize Qinhibit_free_realized_faces.
22440
22441 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
22442 when iterator is adding glyphs to a glyph matrix.
22443
224442002-08-27 Kenichi Handa <handa@etl.go.jp>
22445
22446 * xdisp.c (get_next_display_element): In unibyte case, don't use
22447 octal form for such eight-bit characters that can be converted to
22448 multibyte char.
22449
224502002-08-26 Kim F. Storm <storm@cua.dk>
22451
b6189c3b
KS
22452 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
22453 foreground and background colors. From Joe Buehler.
048addec
JD
22454
224552002-08-26 Miles Bader <miles@gnu.org>
22456
22457 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
22458
224592002-08-25 Andrew Choi <akochoi@shaw.ca>
22460
22461 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
22462 defined instead of MAC_OSX.
22463
22464 * s/darwin.h (select): Define select to sys_select only if
22465 HAVE_CARBON is defined.
22466 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
22467 (DONT_REOPEN_PTY): #def it.
22468
22469 * macterm.c (XTread_socket): Remove code to call
22470 SendEventToEventTarget for keys with command modifiers when
22471 mac_command_key_is_meta is nil.
22472
224732002-08-24 Andreas Schwab <schwab@suse.de>
22474
22475 * eval.c (Fdefvar): Fix last change.
22476
224772002-08-23 Richard M. Stallman <rms@gnu.org>
22478
22479 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
22480 Record variables in load history as (defvar . VAR).
22481 (Fdefvar): Don't record in load history if no initial value.
22482 (Qdefvar): New variable.
22483 (syms_of_eval): Init and staticpro it.
22484
22485 * lread.c (syms_of_lread): Doc fix.
22486 (build_load_history): Use Fmember to see if a definition
22487 is already in the Vload_history element.
22488
22489 * process.c (Fstart_process): Remove /: from program name.
22490
22491 * emacs.c (decode_env_path): Don't add /: if file name handler
22492 has a `safe-magic' property.
22493
22494 * callproc.c (Fcall_process): Remove /: from program name.
22495
224962002-08-23 Stefan Monnier <monnier@cs.yale.edu>
22497
22498 * regex.c (PATFETCH): Remove the translating fetch.
22499 (PATFETCH_RAW): Rename to PATFETCH.
22500 (set_image_of_range): New fun.
22501 (SET_RANGE_TABLE_WORK_AREA): Use it.
22502 (regex_compile): Don't translate the pattern chars so eagerly.
22503 Only do it when inserting an `exactn' bytecode or when handling
22504 a char-range.
22505 (mutually_exclusive_p): Avoid empty statement.
22506
225072002-08-22 Kim F. Storm <storm@cua.dk>
22508
22509 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
22510 end up on a partially visible line; this reverts a specific part
22511 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
22512 display error which has been reported several times now.
22513 However it introduces the problem that changes was supposed to fix.
22514 See my comments in the source if you want to debug this further.
22515
225162002-08-20 Kenichi Handa <handa@etl.go.jp>
22517
22518 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22519
225202002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
22521
22522 * msdos.c (croak): Add `void' to definition.
22523
c1380aa6 22524 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
22525 Don't define them, they are defined in msdos.c.
22526
22527 * mem-limits.h [MSDOS]: Declare etext.
22528
22529 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
22530 `const' since CORRECT_DIR_SEPS modifies its target.
22531
225322002-08-19 Kim F. Storm <storm@cua.dk>
22533
2fb0ce67 22534 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
22535 KEEP-RECORD to avoid clearing lossage when we just want to clear
22536 the current key sequence (kmacro needs this).
22537
225382002-08-19 Kenichi Handa <handa@localhost>
22539
22540 * composite.c (run_composition_function): Call FUNC if it is fboundp.
22541
22542 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
22543 cons, return Qnil.
22544
225452002-08-17 Richard M. Stallman <rms@gnu.org>
22546
22547 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
22548
22549 * sysdep.c [!VMS]: Include sys/files.h.
22550
22551 * editfns.c (save_restriction_restore): Defend from unchained marker.
22552
22553 * buffer.c (overlays_at): Handle extending vec uniformly.
22554 (overlays_in): Handle extending vec from length 0 as in overlays_at.
22555
225562002-08-15 Andrew Choi <akochoi@shaw.ca>
22557
22558 * mac.c (init_mac_osx_environment): New function.
22559
22560 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
22561
225622002-08-14 Kim F. Storm <storm@cua.dk>
22563
22564 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
22565 executing macro before appending to it (when used from Lisp).
22566 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
22567 which is called prior to each iteration of macro (for kmacro.el).
22568 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
22569
22570 * lisp.h (Fexecute_kbd_macro): Update prototype.
22571
22572 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
22573
225742002-08-14 Kenichi Handa <handa@etl.go.jp>
22575
22576 * xselect.c (QUTF8_STRING): New variable.
22577 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
22578 (x_atom_to_symbol): Likewise.
22579 (x_get_local_selection): New argument local_request. If it is
22580 nonzero, call handler_fn with the second arg nil.
22581 (x_handle_selection_request): Call x_get_local_selection with
22582 local_request 0.
22583 (lisp_data_to_selection_data): Don't encode the string here.
22584 (Fx_get_selection_internal): Call x_get_local_selection with
22585 local_request 1.
22586 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
22587
22588 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
22589
22590 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
22591
225922002-08-13 Richard M. Stallman <rms@gnu.org>
22593
22594 * minibuf.c (Fminibufferp): New function.
22595 (syms_of_minibuf): Defsubr it.
22596 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
22597
225982002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
22599
22600 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
22601
226022002-08-12 Richard M. Stallman <rms@gnu.org>
22603
22604 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
22605 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
22606 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
22607 already.
22608
22609 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
22610
226112002-08-11 Andrew Choi <akochoi@shaw.ca>
22612
22613 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
22614 (Vmac_pass_command_to_system): New variable.
22615 (Vmac_pass_control_to_system): New variable.
22616 (do_mouse_moved): Check wp with is_emacs_window.
22617 (XTread_socket): Check window_ptr with is_emacs_window.
22618 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
22619 events back to Mac Toolbox for processing, depending on values of
22620 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
22621 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
22622 Vmac_pass_control_to_system.
22623
226242002-08-10 Kenichi Handa <handa@etl.go.jp>
22625
22626 * coding.c (unencodable_char_position): New function.
22627 (Funencodable_char_position): New function.
22628 (syms_of_coding): Defsubr Funencodable_char_position.
22629
226302002-08-10 Andrew Choi <akochoi@shaw.ca>
22631
22632 * mac.c (sys_select) [MAC_OSX]: New function.
22633
22634 * macterm.c (MakeMeTheFrontProcess): New function.
22635 (mac_initialize): Call MakeMeTheFrontProcess.
22636
22637 * s/darwin.h: Define select to sys_select.
22638
226392002-08-09 Richard M. Stallman <rms@gnu.org>
22640
22641 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
22642
226432002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
22644
22645 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
22646 end of the buffer.
22647
88fde92a 226482002-08-08 Ken Raeburn <raeburn@gnu.org>
048addec
JD
22649
22650 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
22651
22652 * puresize.h (BASE_PURESIZE): Increase to 910000.
22653
226542002-08-08 Kenichi Handa <handa@etl.go.jp>
22655
22656 * coding.c (Ffind_operation_coding_system): For write-region, if
22657 VISIT is a filename, make it the target.
22658
226592002-08-07 Richard M. Stallman <rms@gnu.org>
22660
22661 * alloc.c (mark_object): Detect long lists for debugging.
22662 (mark_object_loop_halt): New variable.
22663
22664 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
22665
22666 * data.c (Fmake_variable_frame_local): Doc fix.
22667
226682002-08-01 David Ponce <david@dponce.com>
22669
22670 * w32menu.c (local_heap, local_alloc, local_free): New macros.
22671 (malloc_widget_value, free_widget_value)
22672 (w32_free_submenu_strings): Use them.
22673
22674 (push_submenu_start, push_submenu_end, push_left_right_boundary)
22675 (push_menu_pane, push_menu_item, single_keymap_panes)
22676 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
22677 (single_submenu, set_frame_menubar)
22678 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
22679
22680 (Fx_popup_menu): Don't show pop up menu until preceding one is
22681 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
22682
22683 * w32menu.c: Changes adapted from xmenu.c
22684 (set_frame_menubar): First parse all submenus,
22685 then make widget_value trees from them.
22686 Don't allocate any widget_value objects
22687 until we are done with the parsing.
22688 (parse_single_submenu): New function.
22689 (digest_single_submenu): New function.
22690 (single_submenu): Function deleted, replaced by those two.
22691
226922002-08-04 Andrew Choi <akochoi@shaw.ca>
22693
22694 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
22695 returns a valid window pointer before proceeding for keyDown and
22696 autoKey events.
22697
226982002-08-03 Andrew Choi <akochoi@shaw.ca>
22699
22700 * macterm.c (USE_CARBON_EVENTS): New macro.
22701 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
22702 (x_iconify_frame): Call CollapseWindow.
22703 (Vmac_reverse_ctrl_meta): New variable.
22704 (Vmac_wheel_button_is_mouse_2): New variable.
22705 (init_mac_drag_n_drop): New function.
22706 (mac_do_receive_drag): New function.
22707 (mac_handle_service_event): New function.
22708 (init_service_handler): New function.
22709 (mac_to_emacs_modifiers): New function.
22710 (mac_event_to_emacs_modifiers): New function.
22711 (mac_get_mouse_btn): New function.
22712 (mac_convert_event_ref): New function.
22713 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
22714 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
22715 mac_get_mouse_btn.
22716 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
22717
22718 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
22719 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
22720 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
22721 TOOL_BAR_EVENT for MAC_OS as well.
22722 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
22723 as for WINDOWS_NT.
22724 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
22725
22726 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
22727
227282002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
22729
22730 * xdisp.c (forward_to_next_line_start): Fix a condition that
22731 lead to a newline being skipped.
22732
227332002-08-02 Andrew Choi <akochoi@shaw.ca>
22734
22735 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
22736
227372002-08-01 Richard M. Stallman <rms@gnu.org>
22738
22739 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
22740
227412002-07-31 Andrew Choi <akochoi@shaw.ca>
22742
22743 * macfns.c: #undef init_process before #define-ing it.
22744
22745 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
22746 HAVE_CARBON is defined.
22747
227482002-07-31 Richard M. Stallman <rms@gnu.org>
22749
22750 * xmenu.c (set_frame_menubar): First parse all submenus,
22751 then make widget_value trees from them.
22752 Don't allocate any widget_value objects
22753 until we are done with the parsing.
22754 (parse_single_submenu): New function.
22755 (digest_single_submenu): New function.
22756 (single_submenu): Function deleted, replaced by those two.
22757
227582002-07-30 Juanma Barranquero <lektu@terra.es>
22759
22760 * w32proc.c (syms_of_ntproc): Fix docstring of
22761 `w32-get-true-file-attributes'.
22762
227632002-07-28 Richard M. Stallman <rms@gnu.org>
22764
22765 * s/hpux8.h (HPUX8): Define this before including hpux.h.
22766 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
22767
22768 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
22769
22770 * keyboard.c (make_lispy_event):
22771 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
22772 Explicitly clear up_modifier in event->modifiers.
22773
227742002-07-27 Richard M. Stallman <rms@gnu.org>
22775
22776 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
22777
22778 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
22779 for bar cursor.
22780
227812002-07-26 Kenichi Handa <handa@etl.go.jp>
22782
22783 * coding.c (detect_coding_iso2022): While checking a byte sequence
22784 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
22785 it in the normal loop.
22786
227872002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
22788
22789 * xterm.c (expose_overlaps): New function.
22790 (expose_window): Use it to fix the display of overlapping rows.
22791
22792 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
22793
227942002-07-23 Ken Raeburn <raeburn@gnu.org>
22795
22796 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
22797 since it only depends on XUINT.
22798
22799 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
22800 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
22801 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
22802 Macros deleted.
3947677c 22803
77d1daf2
AS
22804 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
22805 its value over other approaches.
22806 * sysdep.c (start_of_data): Don't define the function if a macro
22807 form has been defined.
8a8e19a3 22808
048addec
JD
228092002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
22810
22811 * xdisp.c (redisplay_updating_p): New variable.
22812 (init_iterator): Don't free realized faces when
22813 redisplay_updating_p is set.
22814 (redisplay_internal): Set redisplay_updating_p while updating
22815 the display.
22816
228172002-07-23 Richard M. Stallman <rms@gnu.org>
22818
22819 * editfns.c (Fmessage): Treat "" like nil.
22820
228212002-07-23 Kenichi Handa <handa@etl.go.jp>
22822
22823 * xdisp.c (face_before_or_after_it_pos):
22824 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22825
228262002-07-22 Juanma Barranquero <lektu@terra.es>
22827
22828 * callproc.c (init_callproc) [DOS_NT]:
22829 Initialize Vshared_game_score_directory to nil.
22830 (syms_of_callproc) [DOS_NT]: Likewise.
22831
228322002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
22833
22834 * xdisp.c (display_line): Replace an abort with xassert.
22835
228362002-07-21 Richard M. Stallman <rms@gnu.org>
22837
22838 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
22839 and END_UNCHANGED when setting buffer_unchanged_p.
22840 Use current_matrix_up_to_date_p to decide whether to use
22841 try_cursor_movement.
22842
22843 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
22844
22845 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
22846
22847 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
22848 Set to nil if dir does not exist.
22849 (syms_of_callproc): Init unconditionally and simply.
22850
22851 * buffer.c (Fbuffer_list): Doc fix.
22852
228532002-07-21 Ken Raeburn <raeburn@gnu.org>
22854
22855 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
22856
22857 * buffer.c (mmap_realloc): When shrinking, make sure number of
22858 pages to unmap is rounded towards zero.
22859
22860 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
22861 (XSETINT): Deleted.
22862
22863 * m/att3b.h (XINT): Don't define.
22864 (VALBITS, VALMASK, XTYPE): Deleted.
22865 (DATA_SEG_BITS): Define.
22866 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
22867 ARRAY_MARK_FLAG): Deleted.
22868 (DATA_SEG_BITS): Define.
22869 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
22870 (DATA_SEG_BITS): Define.
22871
228722002-07-20 Richard M. Stallman <rms@gnu.org>
22873
22874 * print.c (print_error_message): New args CONTEXT and CALLER.
22875 Calls changed.
22876
22877 * lisp.h (print_error_message): Declare new args.
22878
22879 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
22880 and CONTEXT to print_error_message, don't print them here.
22881 For a Quit, don't use Vsignaling_function.
22882 Call message_log_maybe_newline.
22883
22884 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
22885
228862002-07-20 Kim F. Storm <storm@cua.dk>
22887
22888 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
22889
228902002-07-19 Ken Raeburn <raeburn@gnu.org>
22891
22892 * bytecode.c (struct byte_stack): Pointers into byte string now
22893 point to const.
22894 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
22895 const.
22896 * charset.h (BCOPY_SHORT): Source pointer now points to const.
22897 * coding.c (encode_eol, detect_coding, detect_eol):
22898 (decode_coding, encode_coding, detect_coding_system):
22899 Source strings now treated as const.
22900 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
22901 modify Lisp string contents.
22902 * coding.h (decode_coding, encode_coding, detect_coding,
22903 detect_eol): Declarations updated.
22904 * composite.c (compose_chars_in_text): Treat Lisp string contents
22905 as const.
22906 * dispnew.c (safe_bcopy): Source pointer now points to const.
22907 * lisp.h (STRING_COPYIN): New macro.
22908 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
22909 (internal_with_output_to_temp_buffer): Declarations updated.
22910 * print.c (temp_output_buffer_setup):
22911 (internal_with_output_to_temp_buffer): Buffer name argument is now
22912 pointer to const.
22913 * sound.c (struct sound_device): Function pointer field "write"
22914 buffer argument now points to const.
22915 (vox_write): Buffer argument points to const.
22916 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
22917 contents as const.
22918 * sysdep.c (emacs_write): Buffer pointer now const.
22919 * term.c (encode_terminal_code): Buffer pointer now const.
22920 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
22921 (x_face_list_fonts, x_update_menu_appearance):
22922 (hash_string_case_insensitive): Treat Lisp string contents as const.
22923
229242002-07-19 Juanma Barranquero <lektu@terra.es>
22925
048addec
JD
22926 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
22927
22928 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
22929 (Ffile_name_as_directory): Fix argument name in docstring.
22930 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
22931
229322002-07-18 Richard M. Stallman <rms@gnu.org>
22933
22934 * data.c (Fdefalias): Doc fix.
22935
229362002-07-17 Dave Love <fx@gnu.org>
22937
22938 * intervals.h (text_property_stickiness): Use P_.
22939
22940 * ccl.c: Remove `emacs' conditionals.
22941 (ccl_backtrace_table): Fix size spec.
22942 (ccl_driver): Fix type errors.
22943
229442002-07-16 Ken Raeburn <raeburn@gnu.org>
22945
22946 * alloc.c (xstrdup, make_string, make_unibyte_string)
22947 (make_multibyte_string, build_string): String pointer args now
22948 point to const.
22949 * charset.c (find_charset_in_text, c_string_width):
22950 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
22951 * fileio.c (report_file_error):
22952 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
22953 (count_combining_before, count_combining_after, insert_1_both):
22954 (insert, insert_and_inherit, insert_string):
22955 (insert_before_markers, insert_before_markers_and_inherit):
22956 * lread.c (intern, oblookup, hash_string):
22957 * minibuf.c (temp_echo_area_glyphs):
22958 * search.c (fast_c_string_match_ignore_case):
22959 * sysdep.c (emacs_open, set_file_times):
22960 * xfaces.c (xstricmp):
22961 * xdisp.c (store_frame_title, string_char_and_length):
22962 (message_dolog, message2, message2_nolog, set_message): Likewise.
22963 (set_message_1): Cast message string argument to const pointer.
22964 * editfns.c (general_insert_function): Insertion function now
22965 takes pointer to const for input data.
22966 * charset.h (find_charset_in_text, c_string_width):
22967 (parse_str_as_multibyte): Declarations updated.
22968 * dispextern.h (xstricmp): Declaration updated.
22969 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
22970 (count_size_as_multibyte, count_combining_before):
22971 (count_combining_after, insert_1, insert_1_both, message_dolog):
22972 (insert, insert_and_inherit, insert_before_markers)
22973 (insert_before_markers_and_inherit, set_message, message2):
22974 (message2_dolog, build_string, make_string, make_unibyte_string):
22975 (make_multibyte_string, intern, oblookup, report_file_error):
22976 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
22977 (emacs_open, xstrdup): Declarations updated.
22978 * systime.h (set_file_times): Declaration updated.
22979
22980 * charset.c (find_charset_in_text, lisp_string_width): Use const
22981 for pointer to lisp string data.
22982 * charset.h (FETCH_STRING_CHAR_ADVANCE):
22983 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
22984 * coding.c (Ffind_coding_systems_region_interval):
22985 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
22986 (Fmake_directory_internal, Fdelete_directory):
22987 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
22988 * fontset.c (font_family_registry, fs_query_fontset):
22989 (list_fontsets):
22990 * frame.c (Fframe_parameter):
22991 * keyboard.c (cmd_error_internal):
22992 * keymap.c (Fdescribe_buffer_bindings):
22993 * lread.c (complete_filename_p, openp):
22994 * minibuf.c (Fminibuffer_complete_word):
22995 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
22996 (face_before_or_after_it_pos, next_element_from_string):
22997 (get_overlay_arrow_glyph_row, display_mode_element):
22998 (decode_mode_spec_coding):
22999 * xterm.c (same_x_server): Likewise.
23000
23001 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
23002 settings of non-existent fields.
23003
23004 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
23005 copy a lisp value.
23006
23007 * lread.c (Fintern_soft): Use string macros instead of
23008 Lisp_String fields.
23009 * keyboard.c (echo_char, parse_modifiers_uncached):
23010 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
23011 * textprop.c (validate_interval_range, interval_of): Likewise.
23012
23013 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
23014
23015 * charset.h (FETCH_STRING_CHAR_ADVANCE)
23016 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
23017 XSTRING()->size_byte.
23018
23019 * lisp.h (SDATA, SREF): Produce rvalue.
23020 (SSET): New macro.
23021 * alloc.c (make_event_array): Use SSET for storing into a string.
23022 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
23023 a string.
23024 * casefiddle.c (casify_object): Use SSET.
23025 * charset.h (FETCH_STRING_CHAR_ADVANCE)
23026 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
23027 address of string contents.
23028 * data.c (Faref): Use SDATA.
23029 (Faset): Use SDATA, SSET.
23030 * dired.c (directory_files_internal): Use SSET.
23031 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
23032 (Fread_file_name): Use SREF, SSET.
23033 * fns.c (concat): Use SSET.
23034 (concat, Fdelete): Use SDATA.
23035 * insdel.c (insert_from_string_1): Use SDATA.
23036 * keyboard.c (Fevent_convert_list): Use SREF.
23037 * lread.c (Fload): Use SDATA, SSET.
23038 * macfns.c (validate_x_resource_name): Use SSET.
23039 * process.c (status_message): Use SSET.
23040 * search.c (wordify): Use SDATA.
23041 (Freplace_match): Use SREF.
23042 * w32fns.c (validate_x_resource_name): Use SSET.
23043 * xfns.c (validate_x_resource_name): Use SSET.
23044 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
23045
230462002-07-16 Richard M. Stallman <rms@gnu.org>
23047
23048 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
23049
23050 * xdisp.c (reconsider_clip_changes):
23051 Don't test prevent_redisplay_optimizations_p.
23052 (redisplay_internal): Test prevent_redisplay_optimizations_p
23053 along with clip_changed in some cases.
23054 (try_window_id): Likewise.
23055 (redisplay_window): New local var buffer_unchanged_p.
23056
23057 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
23058
23059 * process.c (create_process): Test USG_SUBTTY_WORKS.
23060 (process_send_signal): Clean up handling of GID.
23061 Detect errors in ioctls meant to set GID.
23062
23063 * window.c (temp_output_buffer_show):
23064 Don't set prevent_redisplay_optimizations_p.
23065
230662002-07-15 Juanma Barranquero <lektu@terra.es>
23067
23068 * eval.c (Fdefvaralias): Add docstring argument.
23069
230702002-07-15 Ken Raeburn <raeburn@gnu.org>
23071
23072 * lisp.h (STRING_INTERVALS): Produce rvalue.
23073 (STRING_SET_INTERVALS): New macro.
23074 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
23075 * fns.c (Fstring_as_multibyte): Likewise.
23076 * intervals.c (balance_possible_root_interval, delete_interval)
23077 (create_root_interval, copy_intervals_to_string): Likewise.
23078 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
23079 instead of 0.
23080
230812002-07-14 Ken Raeburn <raeburn@gnu.org>
23082
23083 * lisp.h (STRING_SET_CHARS): New macro.
23084 (SCHARS, SBYTES): Produce rvalues.
23085 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
23086 * fns.c (concat): Likewise.
23087 * lread.c (read_vector): Likewise.
23088
3419757d 23089 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 23090 (STRING_SET_UNIBYTE): New macro.
3419757d 23091 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
23092 length of -1) changed to use STRING_SET_UNIBYTE.
23093 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
23094 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
23095 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
23096 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
23097 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
23098 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
23099 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
23100 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
23101 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
23102 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
23103 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
23104 STRING_BYTES or indirection changed to SCHARS, SBYTES,
23105 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
23106 unchanged for now.
23107
231082002-07-13 Kim F. Storm <storm@cua.dk>
23109
23110 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
23111
231122002-07-12 Richard M. Stallman <rms@gnu.org>
23113
23114 * fileio.c (Fwrite_region): Doc fix.
23115
23116 * print.c (print_error_message): Don't handle Vsignaling_function here.
23117
23118 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
23119 (command_loop_1): Avoid certain actions after memory-full error.
23120
23121 * eval.c (Fsignal): Don't call cancel_hourglass.
23122 For a memory-full error, don't call Vsignal_hook_function
23123 and don't set Vsignaling_function.
23124
23125 * process.c (process_send_signal): Add abort call.
23126
231272002-07-11 Markus Rost <rost@math.ohio-state.edu>
23128
23129 * keymap.c (Fkey_binding): Fix typo.
23130
231312002-07-11 Richard M. Stallman <rms@gnu.org>
23132
23133 * alloc.c (Vmemory_full): New variable.
3419757d 23134 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
23135 Uses changed.
23136 (syms_of_alloc): Defvar them.
23137 (memory_full, buffer_memory_full): Set Vmemory_full.
23138
23139 * lisp.h (Vmemory_full): Add declaration.
23140 (current_column, indented_beyond_p): Change declaration.
23141
23142 * indent.c (last_known_column): Declare as double, not float.
23143 (current_column, current_column_1, string_display_width)
23144 (position_indentation): Return `double'.
23145 (indented_beyond_p): Arg `column' is `double'. Callers changed.
23146
23147 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
23148 (back_to_previous_visible_line_start)
23149 (reseat_at_next_visible_line_start, next_element_from_buffer):
23150 Use `double', not `float', when calling indented_beyond_p.
23151
3419757d 23152 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
23153
23154 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
23155
231562002-07-11 Juanma Barranquero <lektu@terra.es>
23157
23158 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
23159 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
23160 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
23161 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
23162 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
23163 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
23164
231652002-07-10 Juanma Barranquero <lektu@terra.es>
23166
d814862a
JB
23167 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
23168 All callers changed.
048addec
JD
23169
231702002-07-09 Stefan Monnier <monnier@cs.yale.edu>
23171
23172 * data.c (Fdefalias): Add an optional `docstring' argument.
23173 (set_internal, Fsetq_default): Use XCAR/XCDR.
23174
23175 * composite.c (HASH_VALUE, HASH_KEY):
23176 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
23177
231782002-07-09 Kenichi Handa <handa@etl.go.jp>
23179
23180 * callproc.c (Fcall_process): Fix previous change.
23181
231822002-07-07 Stefan Monnier <monnier@cs.yale.edu>
23183
23184 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
23185 Add support for hash-tables.
23186 (Ftry_completion): Return t even if the string appears multiple times.
23187
23188 * fns.c (Fnconc): Use XCDR.
23189 (Fprovide): Use CONSP and XCDR.
23190 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
23191 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
23192 (Fmake_hash_table): Accept `:size nil'.
23193 (Fmakehash): Delete: moved to subr.el.
23194 (syms_of_fns): Don't defsubr makehash.
23195
23196 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
23197 (HASH_TABLE_SIZE): Move from fns.c.
23198
231992002-07-07 Richard M. Stallman <rms@gnu.org>
23200
23201 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
23202 Instead just return 0 when there is something to be done.
23203 (try_scrolling): If make_cursor_line_fully_visible returns 0,
23204 retry scrolling as if cursor were off the bottom.
23205 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
23206 return CURSOR_MOVEMENT_MUST_SCROLL.
23207 (redisplay_window): If make_cursor_line_fully_visible returns 0,
23208 go to try_to_scroll.
23209
23210 * buffer.c (Fbuffer_local_value): Store current value into its binding
23211 so we get the up-to-date value for the binding that is loaded.
23212
23213 * eval.c (Fdefmacro): Doc fix.
23214
232152002-07-05 Dave Love <fx@gnu.org>
23216
23217 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
23218 correctly.
23219
23220 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
23221 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
23222 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
23223 CCL_LookupCharConstTbl.
23224 (syms_of_ccl): Defvar translation-hash-table-vector.
23225
232262002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23227
23228 * xdisp.c: Remove unused variable `face'.
23229
232302002-07-04 Juanma Barranquero <lektu@terra.es>
23231
23232 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
23233 obsolescence information.
23234
232352002-07-03 Andrew Choi <akochoi@shaw.ca>
23236
23237 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
23238 pattern. Search cache first.
23239 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
23240 for Japanese font.
23241 (XLoadQueryFont): Use it.
23242
232432002-07-02 Richard M. Stallman <rms@gnu.org>
23244
23245 * keymap.c (Fdefine_key): Doc fix.
23246
23247 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
23248
232492002-07-02 Juanma Barranquero <lektu@terra.es>
23250
23251 * keymap.c (syms_of_keymap): Fix typo.
23252
232532002-07-01 Andrew Choi <akochoi@shaw.ca>
23254
23255 * s/darwin.h: Define POSIX_SIGNALS.
23256
23257 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
23258 and FSRefMakePath to convert FSSpec returned with Apple Event to
23259 Posix pathname.
23260 (mac_initialize) [TARGET_API_MAC_CARBON]:
23261 Call init_required_apple_events and disable the `Quit' menu item
23262 provided automatically by the Carbon Toolbox.
23263
232642002-07-01 Dave Love <fx@gnu.org>
23265
23266 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23267 for K&R.
23268
23269 * xterm.c: Fix prototype for K&R.
23270
23271 * term.c (costs_set): Declare static, non-initialized for pcc.
23272
232732002-07-01 Richard M. Stallman <rms@gnu.org>
23274
23275 * keyboard.c (timer_last_idleness_start_time): New variable.
23276 (timer_start_idle): Set that.
23277 (read_key_sequence): Use that to reset timer_idleness_start_time
23278 to previous value.
23279
23280 * window.c (Frecenter): With arg, set optional_new_start.
23281
23282 * xdisp.c (redisplay_internal): Make optional_new_start really work.
23283
23284 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
23285 buffer for completion.
23286
232872002-06-29 Ken Raeburn <raeburn@gnu.org>
23288
23289 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
23290
232912002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23292
23293 * keyboard.c (readable_filtered_events): New function that filters
23294 FOCUS_IN_EVENT depending on parameter.
23295 (readable_events): Calls readable_filtered_events, not filtering
23296 FOCUS_IN_EVENT.
23297 (get_filtered_input_pending): New function, filtering parameter passed
23298 to readable_filtered_events.
23299 (get_input_pending): Calls get_filtered_input_pending, not filtering
23300 FOCUS_IN_EVENT.
23301 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
23302 FOCUS_IN_EVENT.
23303
23304 * xterm.h (struct x_output): Add focus_state.
23305
23306 * xterm.c (x_focus_changed): New function.
23307 (x_detect_focus_change): New function.
23308 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
23309 EnterNotify and LeaveNotify to track X focus changes.
23310
233112002-06-28 Andreas Schwab <schwab@suse.de>
23312
23313 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
23314
233152002-06-27 Kim F. Storm <storm@cua.dk>
23316
52eb0373 23317 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
23318 (mode_line_string_face_prop): New variables.
23319 (store_mode_line_string): New function.
23320 (display_mode_element): Use store_mode_line_string to
23321 add mode-line string elements to mode_line_string_list
23322 when mode_line_string_list is non-nil.
23323 (Fformat_mode_line): Now returns propertized string by
23324 default. New arg NO-PROPS to ignore properties.
23325 (decode_mode_spec): Only add two dashes for %- in propertized
23326 mode-line string.
23327 (syms_of_xdisp): Init and staticpro mode_line_string_list.
23328
233292002-06-27 Stefan Monnier <monnier@cs.yale.edu>
23330
23331 * minibuf.c (minibuffer_completion_contents): Add return type.
23332
233332002-06-27 Juanma Barranquero <lektu@terra.es>
23334
23335 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
23336
233372002-06-26 Juanma Barranquero <lektu@terra.es>
23338
23339 * fileio.c (read_file_name_cleanup): Add missing return.
23340
233412002-06-26 Richard M. Stallman <rms@gnu.org>
23342
23343 * window.c (Frecenter): Don't set force_start flag.
23344
23345 * minibuf.c (do_completion, Fminibuffer_complete_word)
23346 (Fminibuffer_completion_help): Complete just the text before point.
23347 (minibuffer_completion_contents): New function.
23348
23349 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
23350
23351 * frame.c (frames_bury_buffer): Function deleted.
23352
233532002-06-25 Miles Bader <miles@gnu.org>
23354
23355 * callint.c (Fcall_interactively): When checking to see if doprnt hit
23356 the end of callint_message, allow for a terminating '\0'.
23357
233582002-06-24 Juanma Barranquero <lektu@terra.es>
23359
52eb0373 23360 * w32select.c: Include composite.h.
048addec
JD
23361
23362 * w16select.c: Likewise.
23363
233642002-06-24 Kenichi Handa <handa@etl.go.jp>
23365
23366 * callproc.c (Fcall_process): If code detection is necessary,
23367 call detect_coding directly here.
23368
23369 * coding.c (detect_eol): Preserve coding->cmp_data.
23370
23371 * w16select.c (Fw16_get_clipboard_data):
23372 * w32fns.c (w32_to_x_font):
23373 * w32select.c (Fw32_get_clipboard_data):
23374 * xselect.c (selection_data_to_lisp_data):
23375 * xterm.c (XTread_socket): Disable composition handling.
23376
233772002-06-24 Stefan Monnier <monnier@cs.yale.edu>
23378
23379 * print.c (temp_output_buffer_setup): Kill all local variables.
23380
233812002-06-22 Stefan Monnier <monnier@cs.yale.edu>
23382
23383 * lread.c (Fread): Remove redundant and imprecise declaration.
23384
23385 * xfns.c (check_x_display_info): Use check_x_frame.
23386
23387 * .gdbinit (xprintsym): Use the new `xname' field.
23388 (xsymbol): Use it.
23389
233902002-06-22 Jason Rumney <jasonr@gnu.org>
23391
23392 * w32fns.c (file_dialog_callback): New function.
23393 (Fx_file_dialog): Allow selecting directories as well as files.
23394
233952002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23396
23397 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 23398 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
23399
234002002-06-17 Andrew Choi <akochoi@shaw.ca>
23401
23402 * macterm.c (mac_scroll_area): Set foreground and backcolor to
23403 black and white before scrolling. Restore frame background and
23404 foreground color after scrolling.
23405 (do_window_update): Call XClearWindow before calling expose_frame.
23406 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
23407 FRAME_FOREGROUND_PIXEL of frame.
23408
23409 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
23410 test Mac command key as <ALT> key.
23411
234122002-06-17 Stefan Monnier <monnier@cs.yale.edu>
23413
23414 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
23415
23416 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
23417 Lookup keys in function-key-map immediately so that key-translation-map
23418 can be applied earlier.
23419 Remove function_key_possible and key_translation_possible, replaced
23420 by checking `keytran_start < t'.
23421
23422 * .gdbinit (xsymbol): Use the new `xname' field.
23423
234242002-06-17 Andrew Choi <akochoi@shaw.ca>
23425
23426 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
23427 test Mac command key as <ALT> key.
23428
23429 * mac.c (do_applescript): Call initialize_applescript if necessary
23430 when first called. Dispose of result_desc only when there is no error.
23431 (Fdo_applescript): Use %d format specifier instead of %ld.
23432
234332002-06-16 Andrew Choi <akochoi@shaw.ca>
23434
23435 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
23436 of FrontWindow for cases keyDown and autoKey.
23437
23438 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
23439 Vdefault_fontset to Monaco with mac-roman coding.
23440
23441 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
23442 init_process before and after inclusion of Carbon/Carbon.h, resp.
23443
23444 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
23445 cursor_gc.
23446 (add_font_name_table_entry): New function.
23447 (init_font_name_table): Use add_font_name_table_entry; add italic,
23448 bold, and bold-italic entries for truetype fonts.
23449
23450 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
23451 for Mac too.
23452 (try_font_list) [MAC_OS]: If no font matches given registry, try
23453 fonts with any registry matching face_family.
23454 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
23455
23456 * s/darwin.h: If autoconf detects the Ncurses library, define
23457 LIBS_TERMCAP to -lncurses to use it.
23458
234592002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
23460
23461 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
23462
234632002-06-15 Richard M. Stallman <rms@gnu.org>
23464
23465 * window.c (Fset_window_configuration): Explicitly preserve
23466 the point value that new_current_buffer had at the start.
23467
234682002-06-14 Juanma Barranquero <lektu@terra.es>
23469
23470 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
23471 Fix typos.
23472
234732002-06-14 Kim F. Storm <storm@cua.dk>
23474
23475 * insdel.c (insert_1_both, insert_from_string_1)
23476 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
23477 insert happened in the end_unchanged region. Otherwise, the
23478 redisplay may be confused and duplicate the last line in the
23479 buffer [seen after save-buffer when require-final-newline==t].
23480
234812002-06-13 Jason Rumney <jasonr@gnu.org>
23482
23483 * w32.c (init_environment): Remove EMACSLOCKDIR.
23484 (stat): Swap _S_IFDIR and _S_IFREG.
23485
234862002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23487
23488 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
23489 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
23490 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
23491 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
23492 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
23493 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
23494 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
23495 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
23496 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
23497 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
23498 SELECTION_REQUEST_EVENT, selection_clear_event to
23499 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
23500 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
23501 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
23502 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
23503 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
23504 no_event to NO_EVENT.
23505
235062002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23507
23508 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
23509
235102002-06-12 Stefan Monnier <monnier@cs.yale.edu>
23511
23512 * intervals.c (textget): Don't forget to `return'.
23513 (lookup_char_property): Use XCAR/XCDR.
23514
235152002-06-12 Juanma Barranquero <lektu@terra.es>
23516
23517 * xdisp.c (Fformat_mode_line): Fix typo.
23518
235192002-06-12 Kim F. Storm <storm@cua.dk>
23520
23521 * xdisp.c (Fformat_mode_line): New function.
23522 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
23523 (store_frame_title_char, store_frame_title): Use unconditionally.
23524 (init_xdisp): Defsubr Fformat_mode_line.
23525 Initialize frame_title_buf etc. unconditionally.
23526
235272002-06-11 Stefan Monnier <monnier@cs.yale.edu>
23528
23529 * keyboard.c (read_key_sequence):
23530 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
23531 things through those maps after downcasing events.
23532 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
23533 applies after function-key-map.
23534 Make sure that keytran can be done in the middle in the sequence.
23535 Be careful not to throw away events past the one we downcase.
23536
23537 * lread.c (read_integer): Remove unused var `tem'.
23538 (read1): Fix int/Lisp_Object mixup.
23539
23540 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
23541
235422002-06-11 Richard M. Stallman <rms@gnu.org>
23543
23544 * keyboard.c (readable_events): Ignore any number of
23545 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
23546
235472002-06-09 Miles Bader <miles@gnu.org>
23548
23549 * xfaces.c (Ftty_supports_face_attributes_p): New function.
23550 (parse_rgb_list, tty_lookup_color): New functions.
23551 (tty_defined_color): Use `tty_lookup_color' to do all the work.
23552 (color_distance, Fcolor_distance): New functions.
23553 (TTY_SAME_COLOR_THRESHOLD): New macro.
23554 (Qtty_color_standard_values): New variable.
23555 (syms_of_xfaces): Initialize new vars & functions.
23556
235572002-06-08 Colin Walters <walters@verbum.org>
23558
23559 * textprop.c (Vchar_property_alias_alist): New variable.
23560 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
23561
23562 * intervals.c (lookup_char_property): New function for looking up
23563 overlay and text properties, created from textget.
23564 (textget): Use it.
23565
23566 * intervals.h (lookup_char_property): Declare.
23567 (Vchar_property_alias_alist): Declare.
23568
23569 * buffer.c (Foverlay_get): Use lookup_char_property.
23570
235712002-06-07 Sam Steingold <sds@gnu.org>
23572
23573 * xselect.c (lisp_data_to_selection_data): Fix last change:
23574 *data_ret is not a Lisp string, while unibyte_string is.
23575
235762002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
23577
23578 * xselect.c (lisp_data_to_selection_data): Fix last change:
23579 set size_ret.
23580
235812002-06-07 Andreas Schwab <schwab@suse.de>
23582
23583 * m/amdx86-64.h: New file.
23584
235852002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
23586
23587 * fns.c (Fstring_make_unibyte): Doc fix.
23588
23589 * xselect.c (lisp_data_to_selection_data): If the requested type
23590 is STRING, call string_make_unibyte to encode the selected text
23591 as a string.
23592
23593 * window.c (Fset_window_hscroll): Doc fix.
23594
235952002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23596
23597 * fileio.c (choose_write_coding_system):
23598 Call select-safe-coding-system properly.
23599
236002002-06-03 Richard M. Stallman <rms@gnu.org>
23601
23602 * xdisp.c (message_with_string): Error if STRING is not a string.
23603
23604 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
23605
23606 * fileio.c (choose_write_coding_system): Pass FILE arg to
23607 Vselect_safe_coding_system_function.
23608
236092002-06-03 Ken Raeburn <raeburn@gnu.org>
23610
23611 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
23612
236132002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
23614
23615 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
23616 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
23617 * keymap.c (describe_command): Likewise.
23618 * minibuf.c (read_minibuf): Likewise.
23619
23620 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
23621 Cast `current_column' return value to int.
23622 (back_to_previous_visible_line_start)
23623 (reseat_at_next_visible_line_start, next_element_from_buffer):
23624 Cast `indented_beyond_p' 3rd arg to float.
23625
23626 * indent.c (last_known_column): Now a float.
23627 (current_column_1, position_indentation, current_column)
23628 (string_display_width): Return float.
23629 (Fcurrent_column): Cast `current_column' return value to int.
23630 (Fcurrent_indentation): Cast `position_indentation' retval to int.
23631 (indented_beyond_p): Third arg now a float.
23632 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
23633
23634 * lisp.h (current_column): Now returns float.
23635 (indented_beyond_p): 3rd arg now a float.
23636
236372002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
23638
23639 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
23640 is Qcompound_text_with_extensions.
23641
23642 * xselect.c (lisp_data_to_selection_data): Always set selection
23643 type as string if x_encode_text returns streingp non-NULL.
23644
23645 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
23646
236472002-05-30 Richard M. Stallman <rms@gnu.org>
23648
23649 * window.c (Fset_window_configuration): Correct the handling
23650 of point in current buffer, to work with multiple windows.
23651
236522002-05-29 Colin Walters <walters@verbum.org>
23653
23654 * lread.c (Fread_from_string): Don't depend on order of evaluation
23655 for C function parameters.
23656
236572002-05-28 Richard M. Stallman <rms@gnu.org>
23658
23659 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
23660 way for blinked-off state and for a nonselected window.
23661
23662 * window.c (window_scroll_pixel_based): Don't call Fbolp;
23663 instead, see if the new start pos is at beginning of line.
23664
23665 * fileio.c (Fwrite_region): If START is a string, don't
23666 make any annotations.
23667
23668 * eval.c (syms_of_eval): Doc fix.
23669
236702002-05-28 Colin Walters <walters@debian.org>
23671
23672 * emacs.c (USAGE1): Add --no-splash.
23673 (standard_args): Ditto.
23674
236752002-05-28 Colin Walters <walters@gnu.org>
23676
23677 * lread.c (readchar_count): New variable.
23678 (readchar): Increment it.
23679 (unreadchar): Decrement it.
23680 (read_multibyte): Decrement it.
23681 (Vread_with_symbol_positions): New variable.
23682 (Vread_symbol_positions_list): New variable.
23683 (read_internal_start): New function, created from Fread and
23684 Fread_from_string. Handle Vread_symbol_positions_list and
23685 Vread_with_symbol_positions.
23686 (readevalloop, Fread, Fread_from_string): Use it.
23687 (read1): Use readchar_count to add symbol positions to
23688 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
23689 (syms_of_lread): DEFVAR_LISP and initialize them.
23690
23691 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
23692 (substitute_object_recurse, substitute_object_in_subtree)
23693 (substitute_in_interval): Prototype.
23694 (read_multibyte): Return c if it's less than zero.
23695
236962002-05-28 Kim F. Storm <storm@cua.dk>
23697
23698 * fileio.c (Fread_file_name_internal): Added brute-force
23699 speed up for using predicate file-directory-p.
23700
237012002-05-28 Kim F. Storm <storm@cua.dk>
23702
23703 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
23704 New variables.
23705 (syms_of_fileio): DEFVAR_LISP them.
23706 (read_file_name_cleanup): New unwind function.
23707 (Fread_file_name_internal): Only return completions satifying
23708 Vread_file_name_predicate. Temporarily unwind protect and rebind
23709 default-directory while checking completions against the predicate.
23710 (Fread_file_name): Added PREDICATE argument. Specbind it to
23711 Vread_file_name_predicate during completion.
23712 Call Vread_file_name_function to read the file name if non-nil.
23713
23714 * lisp.h (Fread_file_name): Now has 6 args.
23715
23716 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
23717 predicate for Fread_file_name when reading directory name.
23718 Supply Qnil for predicate in other calls to Fread_file_name.
23719
237202002-05-26 Miles Bader <miles@gnu.org>
23721
23722 * term.c (tty_capable_p): New function.
23723 * dispextern.h (tty_capable_p): New function declaration.
23724 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
23725 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
23726
237272002-05-23 Stefan Monnier <monnier@cs.yale.edu>
23728
23729 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
23730 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
23731 (Vwrite_region_annotate_functions): Docstring fix.
23732
237332002-05-23 Kim F. Storm <storm@cua.dk>
23734
23735 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
23736 phys_cursor's hpos is overwritten. This is still not completely
23737 correct, as it doesn't really make sense to use hpos at all to
23738 get the cursor glyph (as that is relative to the width of the
23739 characters on the line, which may have changed during the update).
23740
237412002-05-22 Jason Rumney <jasonr@gnu.org>
23742
23743 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
23744 Lisp_Object.
23745 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
23746 Use modified enumfont_t struct.
23747
23748 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
23749
23750 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
23751 Handle the `hbar' cursor type.
23752 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
23753
23754 * w32fns.c (Qhbar): New variable.
23755 (x_specified_cursor_type): Use it.
23756
237572002-05-21 Ken Raeburn <raeburn@gnu.org>
23758
23759 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
23760 now, when the address is needed.
23761
237622002-05-21 Colin Walters <walters@gnu.org>
23763
23764 * Makefile.in (shortlisp): Add font-core.el.
23765
237662002-05-20 Richard M. Stallman <rms@gnu.org>
23767
23768 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
23769
23770 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
23771 equivalent key bindings here.
23772
237732002-05-20 Ken Raeburn <raeburn@gnu.org>
23774
23775 Change symbol structure to contain a lisp object for the symbol
23776 name:
23777 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
23778 object field named "xname".
23779 (SYMBOL_NAME): New macro.
23780 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
23781 name field.
23782 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
23783 (mark_object, gc_sweep): Use symbol xname field and XSTRING
23784 instead of name field.
23785 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
23786 SYMBOL_NAME instead of XSYMBOL and name field.
23787 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
23788 instead of XSYMBOL and name field.
23789 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
23790 and SYMBOL_NAME instead of XSYMBOL and name field.
23791 * coding.c (Fread_coding_system, code_convert_region1)
23792 (code_convert_string1, code_convert_string_norecord)
23793 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
23794 XSYMBOL and name field.
23795 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
23796 (Fmake_variable_buffer_local, Fmake_local_variable)
23797 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
23798 of XSYMBOL and name field.
23799 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
23800 XSYMBOL and name field.
23801 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
23802 instead of XSYMBOL and name field.
23803 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
23804 XSYMBOL and name field.
23805 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
23806 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23807 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
23808 instead of XSYMBOL and name field.
23809 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
23810 (parse_modifiers, apply_modifiers, Fevent_convert_list)
23811 (parse_solitary_modifier, Fexecute_extended_command):
23812 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23813 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
23814 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
23815 of XSYMBOL and name field.
23816 (describe_command, describe_translation): Use SYMBOL_NAME and
23817 assignment instead of XSYMBOL and name field and XSETSTRING.
23818 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
23819 instead of XSYMBOL and name field.
23820 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
23821 name field and XSETSTRING.
23822 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23823 of XSYMBOL and name field.
23824 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
23825 assignment instead of XSYMBOL and name field and XSETSTRING.
23826 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
23827 XSTRING instead of XSYMBOL and name field.
23828 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
23829 and XSTRING instead of XSYMBOL and name field.
23830 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
23831 and XSTRING instead of XSYMBOL and name field.
23832 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
23833 XSTRING instead of XSYMBOL and name field.
23834 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23835 of XSYMBOL and name field.
23836 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
23837 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23838
238392002-05-19 Ken Raeburn <raeburn@gnu.org>
23840
23841 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
23842 and XCDR real rvalues in most configurations.
23843
23844 * buffer.c (fix_overlays_in_range, fix_overlays_before):
23845 Don't take the address of the cdr part of a cons cell; instead, track
23846 the parent cell and call XSETCDR, or set the variable for the head
23847 of the list if we haven't started down the list yet.
23848
238492002-05-19 Richard M. Stallman <rms@gnu.org>
23850
23851 * doc.c (reread_doc_file): Don't ask for confirmation.
23852
238532002-05-18 Jason Rumney <jasonr@gnu.org>
23854
23855 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
23856 (xbm_load_image): Use it.
23857 (xbm_load): Ditto.
23858 (xbm_read_bitmap_data): Reverted to xfns.c version.
23859 From David Ponce <david@dponce.com>.
23860
238612002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
23862
23863 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
23864 2.02 and later.
23865
238662002-05-16 Juanma Barranquero <lektu@terra.es>
23867
23868 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
23869
238702002-05-15 Stefan Monnier <monnier@cs.yale.edu>
23871
23872 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
23873 meaningful test.
23874 (read_char_minibuf_menu_prompt): Fix typo.
23875
238762002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
23877
23878 * eval.c (Fcommandp): Doc fix.
23879
238802002-05-13 Stefan Monnier <monnier@cs.yale.edu>
23881
23882 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
23883 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
23884 (Fset_keymap_parent): Gcpro a bit more.
23885 (access_keymap): Gcpro around meta_map call and around the main loop.
23886 (get_keyelt): Gcpro when following indirect references.
23887 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
23888 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
23889 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
23890 Remove useless ad-hoc remap code.
23891
238922002-05-13 Richard M. Stallman <rms@gnu.org>
23893
23894 * search.c (search_buffer): Give up boyer moore search if inverse
23895 translation change charset_base.
23896
238972002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
23898
23899 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
23900 characters is carried over from the previous block of text, adjust
23901 coding->produced to account for the extra character.
23902
239032002-05-11 Andreas Schwab <schwab@suse.de>
23904
23905 * coding.c (intersection): Keep the elements of the returned list
23906 in the same order as in the first list.
23907
239082002-05-11 Kim F. Storm <storm@cua.dk>
23909
3419757d 23910 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
23911 only update cmm_size if realloc actually succeeds.
23912 Testing with initial size of 2 elements revealed that using
23913 realloc on GNU/Linux would cause a random trap in xmalloc
23914 later on, so I rewrote the code to use malloc/bcopy/free instead
23915 of realloc.
23916
239172002-05-10 Jason Rumney <jasonr@gnu.org>
23918
23919 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
23920
239212002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
23922
23923 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
23924 parens, to ensure correct evaluation order.
23925
239262002-05-10 Kim F. Storm <storm@cua.dk>
23927
23928 * keymap.c (Vemulation_mode_map_alists): New variable.
23929 (syms_of_keymap): DEFVAR_LISP it.
23930 (current_minor_maps): Process keymap alists in that list before
23931 minor-mode-overriding-map-alist and minor-mode-map-alist.
23932
239332002-05-09 Richard M. Stallman <rms@gnu.org>
23934
23935 * search.c (Freplace_match): Doc fix.
23936
239372002-05-09 Kim F. Storm <storm@cua.dk>
23938
23939 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23940 Enlarge cursor rectangle drawn around image with non-zero relief.
23941
23942 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
23943 Enlarge cursor rectangle drawn around image with non-zero relief.
23944
23945 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23946 Enlarge cursor rectangle drawn around image with non-zero relief.
23947
239482002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
23949
23950 * xselect.c (lisp_data_to_selection_data): Don't set selection
23951 type if comes from the Lisp object's car. If the selection
23952 contains a pure ASCII text, always return QSTRING as its type.
23953
239542002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23955
23956 * mac.c (mac-cut-function): Doc fix.
23957
239582002-05-05 Richard M. Stallman <rms@gnu.org>
23959
23960 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
23961
239622002-05-04 Jason Rumney <jasonr@gnu.org>
23963
23964 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
23965 for event-click-count.
23966
23967 * process.c (init_process): Only add server subfeature if we can
23968 use non-blocking I/O.
23969
239702002-05-04 Andrew Choi <akochoi@shaw.ca>
23971
23972 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
23973 repeatedly.
23974
239752002-05-03 Jason Rumney <jasonr@gnu.org>
23976
23977 * process.c (Fmake_network_process): Only support server sockets
23978 when we can make them non-blocking.
23979
23980 * s/ms-w32.h (HAVE_SELECT): Define.
23981
23982 * w32.h (FILE_NDELAY): New flag.
23983
23984 * w32.c (sys_getpeername, fcntl): New functions.
23985 (_sys_read_ahead): Temporarily block on non-blocking sockets.
23986
2d4713aa 23987 * w32proc.c: Include sys/file.h.
048addec
JD
23988
239892002-05-03 Colin Walters <walters@verbum.org>
23990
23991 * callproc.c (Vgame_score_directory): Renamed to
23992 Vshared_game_score_directory.
23993
239942002-04-30 Richard M. Stallman <rms@gnu.org>
23995
23996 * s/gnu.h [emacs]: Include stdio.h.
23997 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
23998
23999 * eval.c (do_autoload): Error if called while preparing to dump.
24000
24001 * fns.c (Frequire): Error if need to load while preparing to dump.
24002
240032002-04-28 Colin Walters <walters@verbum.org>
24004
24005 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
24006 Default to "~/.emacs.d/games".
24007
240082002-04-29 Stefan Monnier <monnier@cs.yale.edu>
24009
24010 * lread.c (openp): Change arg exec_only to predicate.
24011 (build_load_history): Use XCAR/XCDR.
24012 (Flocate_file_internal): New fun.
24013 (syms_of_lread): Defsubr it.
24014 (Fload): Update call to openp.
24015
24016 * lisp.h (openp): Update prototype.
24017
24018 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
24019 * w32proc.c (sys_spawnve):
24020 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
24021 * w32.c (check_windows_init_file):
24022 * sound.c (Fplay_sound_internal):
24023 * process.c (Fstart_process):
24024 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
24025 * mac.c (run_mac_command):
24026 * emacs.c (init_cmdargs):
24027 * callproc.c (Fcall_process): Update call to openp.
24028
24029 * textprop.c (remove_properties): Don't use XCAR without CONSP.
24030
24031 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
24032
240332002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24034
24035 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
24036 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
24037
240382002-04-28 Richard M. Stallman <rms@gnu.org>
24039
24040 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
24041
24042 * eval.c (Fcommandp): New arg for_call_interactively.
24043 * lisp.h (Fcommandp): Declare new arg.
24044
240452002-04-28 Jason Rumney <jasonr@gnu.org>
24046
24047 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
24048
24049 * w32.c (stat, fstat): Use file index information to generate
24050 inodes for directories where available.
24051
240522002-04-26 Andrew Choi <akochoi@shaw.ca>
24053
24054 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
24055 [HAVE_CARBON]: Include Mac object files.
24056
24057 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
24058 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
24059 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
24060 MAC_OSX, and MAC_OS instead of macintosh.
24061
24062 * editfns.c [MAC_OS8]: Include stdio.h.
24063
24064 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
24065
24066 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
24067 Apple Monaco.
24068
78819ebb 24069 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
24070 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
24071 calling select.
24072
24073 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
24074
24075 * tparam.c [MAC_OSX]: Don't define BC and UP.
24076
24077 * config.in [HAVE_CARBON]: Add.
24078
24079 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
24080 Move here from mac/src and mac/inc.
24081
24082 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
24083
240842002-04-26 Gerd Moellmann <gerd@gnu.org>
24085
24086 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
24087 Compute phys_cursor_width from the x position returned
24088 by x_draw_glyhs, which is cheaper.
24089 (x_display_and_set_cursor): Compute the buffer-local value
24090 of `cursor-in-non-selected-windows' only when needed.
24091
240922002-04-25 Gerd Moellmann <gerd@gnu.org>
24093
24094 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
24095 cursor on a stretch glyph has a width that depends on
24096 x_stretch_cursor_p.
24097
240982002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24099
24100 * abbrev.c (abbrev-start-location): Doc fix.
24101
24102 * indent.c (Fvertical_motion): Fix last change.
24103
241042002-04-25 Gerd Moellmann <gerd@gnu.org>
24105
24106 * indent.c (Fvertical_motion): Move to the start of the line
24107 containing PT before moving up or down.
24108
241092002-04-24 Gerd Moellmann <gerd@gnu.org>
24110
24111 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
24112 case of writing a whole row, more or less analogous to the case of
24113 writing only parts of a row.
24114
24115 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
24116 0 for NO_CURSOR.
24117
24118 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
24119
241202002-04-23 Colin Walters <walters@verbum.org>
24121
24122 * buffer.c (syms_of_buffer): Doc fix.
24123
241242002-04-23 Gerd Moellmann <gerd@gnu.org>
24125
24126 * xterm.c (notice_overwritten_cursor): Handle the special case
24127 of the cursor being in the first blank non-text line at the
24128 end of a window.
24129
24130 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
24131 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
24132 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
24133 bar cursors only, to make phys_cursor_width contain what its name
24134 suggests.
24135 (notice_overwritten_cursor): Consider the cursor image erased if
24136 the output area intersects the cursor image in y-direction.
24137
241382002-04-23 Simon Marshall <simon@gnu.org>
24139
24140 * xfns.c (x_set_mouse_color): Change default for cross_cursor
24141 to XC_hand2.
24142
241432002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24144
24145 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
24146
241472002-04-22 Kim F. Storm <storm@cua.dk>
24148
24149 * textprop.c (remove_properties): Fixed trap for malformed plist.
24150
241512002-04-22 Richard M. Stallman <rms@gnu.org>
24152
24153 * cmds.c (Fend_of_line): Handle intangible text in mid line.
24154
24155 * window.c (make_window): Initialize height_fixed_p,
24156 last_cursor_off_p, and p->cursor_off_p slots.
24157
241582002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24159
24160 * fns.c (use-dialog-box): Doc fix.
24161
241622002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24163
24164 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
24165 variables `row', `i' and `area'.
24166 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
24167 toolkit library.
24168
241692002-04-19 Stefan Monnier <monnier@cs.yale.edu>
24170
24171 * xfaces.c (clear_font_table): Don't free the default font of
24172 a frame even if it's on another display.
24173 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
24174 that could be Qt.
24175
241762002-04-19 Juanma Barranquero <lektu@terra.es>
24177
24178 * indent.c (Fmove_to_column): Remove unused local variable
24179 `next_boundary_byte'.
24180 (current_column_1): Likewise.
24181
241822002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
24183
24184 * msdos.c (Qhbar): New variable.
24185 (syms_of_msdos): Intern and staticpro it.
24186 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
24187 cursor type.
24188
241892002-04-19 Dave Lambert <dlambert@acm.org>
24190
24191 Theses change implement an underscore-like (`hbar') cursor.
24192
24193 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
24194
24195 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
24196 Handle the `hbar' cursor type.
24197 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
24198
24199 * xfns.c (Qhbar): New variable.
24200 (syms_of_xfns): Intern and staticpro it.
24201 (x_specified_cursor_type): Handle `hbar' cursor.
24202
24203 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
24204 not defined.
24205
242062002-04-18 Richard M. Stallman <rms@gnu.org>
24207
24208 * textprop.c (remove_properties): New arg LIST allows scanning
24209 either a list or a plist.
24210 (interval_has_some_properties_list): New function, like
24211 interval_has_some_properties using list instead of plist.
24212 All callers changed.
24213 (Fremove_list_of_text_properties): New function.
24214 (syms_of_textprop): Defsubr it.
24215
242162002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
24217
24218 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
24219
242202002-04-17 Juanma Barranquero <lektu@terra.es>
24221
24222 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
24223
242242002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
24225
24226 * window.c (coordinates_in_window): Don't report on margin area
24227 if its width is zero.
24228
242292002-04-16 Jason Rumney <jasonr@gnu.org>
24230
24231 * w32fns.c (Fx_file_dialog): Decode file name before using.
24232
24233 * w32term.c (construct_drag_n_drop): Likewise.
24234
242352002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
24236
24237 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
24238 store load-history in pure space.
24239
24240 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
24241
242422002-04-16 Stefan Monnier <monnier@cs.yale.edu>
24243
24244 * xterm.c (Qlatin_1, Qutf_8): New vars.
24245 (syms_of_xterm): Initialize them.
24246 (XTread_socket): Eliminate incorrect optimization that tried to avoid
24247 decoding the output of X*LookupString.
24248 Always use latin-1 to decode the output of XLookupString.
24249 Try Xutf8LookupString if XmbLookupString failed.
24250
24251 * region-cache.c (new_region_cache): Use BEG.
24252
242532002-04-16 Gerd Moellmann <gerd@gnu.org>
24254
24255 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
24256 configuration files.
24257 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
24258 returns 0.
24259
242602002-04-15 Andreas Schwab <schwab@suse.de>
24261
24262 * config.in: Regenerated using autoheader.
24263
24264 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
24265 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
24266 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
24267 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
24268 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
24269 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
24270 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
24271 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
24272 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
24273 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
24274 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
24275 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
24276 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
24277 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
24278 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
24279 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
24280 STACK_DIRECTION, now set by autoconf.
24281
242822002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24283
24284 * dispnew.c (marginal_area_string): Sort arguments.
24285
24286 * dispextern.h (marginal_area_string): Add prototype.
24287
242882002-04-13 Richard M. Stallman <rms@gnu.org>
24289
24290 * fileio.c (Finsert_file_contents):
24291 Don't call temp_output_buffer_setup--do just part, by hand.
24292
24293 * coding.c (run_pre_post_conversion_on_str):
24294 Don't call temp_output_buffer_setup--do just part, by hand.
24295
24296 * keyboard.c (command_loop_1): Don't call start_hourglass
24297 or cancel_hourglass when executing a macro.
24298
24299 * marker.c (count_markers): New function.
24300
24301 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
24302 grow without limit. Move recently used elements to the front.
24303
243042002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
24305
24306 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
24307
243082002-04-12 Gerd Moellmann <gerd@gnu.org>
24309
24310 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
24311 rows marginal areas.
24312 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
24313 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
24314
24315 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
24316
243172002-04-12 Dave Love <fx@gnu.org>
24318
24319 * dispnew.c (marginal_area_string): New.
24320
24321 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
24322 (Qleft_margin, Qright_margin): Declare.
24323 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
24324
24325 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
24326 note_mode_line_highlight and extended.
24327
24328 * keyboard.c (Qleft_margin, Qright_margin): Declare.
24329 (make_lispy_event): Deal with mouse events in margins.
24330
243312002-04-12 Stefan Monnier <monnier@cs.yale.edu>
24332
24333 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
24334
24335 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
24336 than deactivating the mark if tmm is set to `lambda'.
24337 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
24338 Use a single event for HELP_EVENT.
24339 (Fexecute_extended_command): Save last_point_position.
24340
243412002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24342
24343 * lisp.h (Fpropertize): Add prototype.
24344
24345 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
24346
243472002-04-10 Colin Walters <walters@verbum.org>
24348
24349 * config.in: Add HAVE_SHARED_GAME_DIR.
24350
52eb0373 24351 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
24352 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
24353
243542002-04-10 Richard M. Stallman <rms@gnu.org>
24355
24356 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
24357
243582002-04-09 Stefan Monnier <monnier@cs.yale.edu>
24359
24360 * minibuf.c (read_minibuf): Use empty_string.
24361 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
24362 Short-circuit the search as soon as it "failed".
24363 (Fall_completions): Allow lambda forms and lists of strings for alist.
24364 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
24365 when require_match is nil.
24366 (Ftest_completion): Rename from `test_completion' and export to elisp.
24367 Call the predicate also when alist is a list.
24368 Obey Vcompletion_regexp_list.
24369 (do_completion, Fminibuffer_complete_and_exit): Use it.
24370 (Fassoc_string): Rename from `assoc_for_completion'.
24371 Allow list of strings as well and export to elisp.
24372
243732002-04-08 Stefan Monnier <monnier@cs.yale.edu>
24374
24375 * puresize.h (BASE_PURESIZE): Increase to 900KB.
24376
243772002-04-08 Juanma Barranquero <lektu@terra.es>
24378
24379 * w32.c (sys_accept): Don't hide variable `s'.
24380
243812002-04-05 Gerd Moellmann <gerd@gnu.org>
24382
24383 * callint.c (Fcall_interactively): Use INTEGERP instead of
24384 NUMBERP for checking Vhistory_length.
24385
243862002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24387
24388 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
24389 Doc fix to reflect it.
24390
243912002-04-04 Richard M. Stallman <rms@gnu.org>
24392
24393 * xdisp.c (display_mode_element): New arg RISKY.
24394 Disregard text props found or specified within a variable
24395 that isn't marked risky-local-variable.
24396 (Qrisky_local_variable): New variable.
24397 (syms_of_xdisp): Init and staticpro it.
24398
243992002-04-04 Stefan Monnier <monnier@cs.yale.edu>
24400
24401 * undo.c (record_point): New fun.
24402 (record_delete, record_insert): Use it.
24403
244042002-04-03 Juanma Barranquero <lektu@terra.es>
24405
24406 * doc.c (Fdocumentation): Add missing parentheses.
24407 (Fdocumentation_property): Likewise.
24408
244092002-04-03 Stefan Monnier <monnier@cs.yale.edu>
24410
24411 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
24412 data is 0, just return nil.
24413
244142002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
24415
24416 * msdos.c (syms_of_msdos): Fix last change with
24417 mouse_autoselect_window.
24418
244192002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24420
24421 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
24422 mouse_autoselect_window.
24423
244242002-04-02 Stefan Monnier <monnier@cs.yale.edu>
24425
24426 * keyboard.c (make_lispy_event): Handle unknown keysyms together
24427 with system-specific keysyms. Use it also for unknown function keys.
24428
24429 * doc.c (reread_doc_file): Return whether reload was attempted.
24430 (Fdocumentation, Fdocumentation_property): Don't try to reload
24431 if the doc is 0 and only ask once.
24432
24433 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
24434
244352002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
24436
24437 * keyboard.c (read_char): If the event was Qselect_window,
24438 restore timer_idleness_start_time to its previous value.
24439
24440 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
24441
244422002-04-01 Stefan Monnier <monnier@cs.yale.edu>
24443
24444 * region-cache.c (new_region_cache): Use BEG.
24445
24446 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
24447 Use BEG and BEG_BYTE.
24448
24449 * doc.c (get_doc_string): Return nil if the location is wrong.
24450 (reread_doc_file): New fun.
24451 (Fdocumentation, Fdocumentation_property):
24452 Call it if get_doc_string fails.
24453 (Fsnarf_documentation): Make it work for a dumped Emacs.
24454
24455 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
24456 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
24457
24458 * charset.c (Fstring): Allow 0 arguments.
24459
24460 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
24461
24462 * process.c (DATAGRAM_CONN_P, list_processes_1)
24463 (Fprocess_datagram_address, Fset_process_datagram_address)
24464 (Fset_network_process_options, server_accept_connection):
24465 Fix some int/Lisp_Object confusions (thank you union types).
24466
244672002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24468
24469 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
24470
24471 * w32term.c: Likewise.
24472 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
24473
24474 * keyboard.c (Qselect_window): New symbol.
24475 (head_table): Use it.
24476 (keys_of_keyboard): Bound select-window event to handle-select-window.
24477 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
24478
24479 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
24480 (last_window): New variable.
24481 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
24482 (note_mouse_movement): Remove reimplemented code in #if 0.
24483 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
24484 Emacs windows.
24485
24486 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
24487
244882002-03-31 Gerd Moellmann <gerd@gnu.org>
24489
24490 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
24491 Callers changed.
24492
244932002-03-30 Richard M. Stallman <rms@gnu.org>
24494
24495 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
24496 loop whenever it stops making progress.
24497
24498 * widget.c (set_frame_size): Don't call change_frame_size.
24499
245002002-03-30 Gerd Moellmann <gerd@gnu.org>
24501
24502 * dispnew.c (direct_output_for_insert):
24503 Call mark_window_display_accurate.
24504
245052002-03-29 Jason Rumney <jasonr@gnu.org>
24506
24507 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
24508
245092002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
24510
24511 * Makefile.in (lread.o): Depend on coding.h.
24512
24513 * lread.c (openp, Fload): Encode the file name before passing it
24514 to `stat', `access', and `emacs_open'.
24515 (openp): GCPRO the encoded file name. Don't recompute Lisp
24516 strings unnecessarily.
24517
245182002-03-29 Kim F. Storm <storm@cua.dk>
24519
24520 * fns.c (Flax_plist_put): Doc fix.
24521
245222002-03-28 Miles Bader <miles@gnu.org>
24523
24524 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
24525
245262002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24527
24528 * process.c (set-network-process-options): Add usage.
24529 (make-network-process): Doc fix.
24530
245312002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
24532
24533 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
24534
245352002-03-26 Richard M. Stallman <rms@gnu.org>
24536
24537 * fns.c (Fsubstring_no_properties): New function.
24538 (Flax_plist_get, Flax_plist_put): New functions.
24539 (syms_of_fns): defsubr them.
24540
24541 * xdisp.c (update_menu_bar): Test only update_mode_lines;
24542 don't test or alter w->update_mode_line.
24543
24544 * window.c (Fdisplay_buffer): Doc fix.
24545
245462002-03-24 Richard M. Stallman <rms@gnu.org>
24547
24548 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
24549
245502002-03-24 Gerd Moellmann <gerd@gnu.org>
24551
24552 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
24553 (Fdefmacro): Handle `(declare ...)'.
24554 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
24555 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
24556
245572002-03-24 Jason Rumney <jasonr@gnu.org>
24558
24559 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
24560 (xbm_file_p): Add prototypes.
24561 (xbm_format, xbm_image_p): Sync with xfns.c.
24562 (reflect_byte): New function.
24563 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
24564 (xbm_load_image): Create bitmaps with a depth of 1.
24565 (init_xfns): Enable XBM images.
24566
245672002-03-23 Jason Rumney <jasonr@gnu.org>
24568
24569 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
24570 correctly. Do not pass up_modifier to keyboard buffer.
24571
24572 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
24573
245742002-03-22 Stefan Monnier <monnier@cs.yale.edu>
24575
24576 * Makefile.in (bootstrapclean): New target.
24577 (bootstrap-temacs, bootstrap-doc): Remove.
24578 (bootstrap-emacs): Use a bog-standard `temacs'.
24579 Don't bother to build a DOC file.
24580
24581 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
24582
24583 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
24584 in temacs even if !CANNOT_DUMP.
24585 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
24586
24587 * alloc.c (check_pure_size): Only output a warning.
24588
245892002-03-22 Jason Rumney <jasonr@gnu.org>
24590
24591 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
24592 supported.
24593
24594 * w32term.c (zv_bits): Declare as short, for word alignment.
24595 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
24596 (syms_of_w32term): Define x-use-underline-position-properties.
24597
24598 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
24599 (clear_image_cache): Block input, fix logic, clear matrices in
24600 all frames that share this cache.
24601
246022002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
24603
24604 * emacs.c (main): Update the Copyright year in the blurb printed
24605 by "emacs --version".
24606
24607 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
24608
24609 * xterm.c (XTread_socket): If XK_ISO_Lock and
24610 XK_ISO_Last_Group_Lock are defined, handle keysyms between
24611 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
24612
246132002-03-21 Kim F. Storm <storm@cua.dk>
24614
24615 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
24616 menu-bar bindings in keymap and local-map properties _are_ used.
24617 But try keymap property first in accordance with 2002-01-03 patch.
24618 Added comment describing why this is not always reliable.
24619 (tool_bar_items): Ditto for tool-bar.
24620
246212002-03-21 Jason Rumney <jasonr@gnu.org>
24622
24623 * w32fns.c (x_clear_image_1): Disable color table code.
24624
246252002-03-21 Kim F. Storm <storm@cua.dk>
24626
24627 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
24628 removed the wrong version of the DEFUN macro; fixed it.
24629
24630 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
24631 Fmember rather than Fmemq).
24632 (Fprovide): Check that subfeatures is a list.
24633
24634 * process.c (QCfeature, QCdatagram): Removed variables.
24635 (QCtype, Qdatagram): New variables.
24636 (network_process_featurep): Removed function.
24637 (Fmake_network_process): Removed :feature check.
24638 Use :type 'datagram instead of :datagram t to create a datagram
24639 socket. This allows us to add other connection types (e.g. raw
24640 sockets) later in a consistent manner.
24641 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
24642 supported subfeatures for feature make-network-process.
24643 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
24644 Intern and staticpro QCtype and Qdatagram.
24645 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
24646
9dd28cae 24647 * xfns.c (QCtype): Remove duplicate declaration and
048addec
JD
24648 initialization (is now declared in process.c).
24649
9dd28cae 24650 * w32fns.c (QCtype): Remove duplicate declaration and
048addec
JD
24651 initialization (is now declared in process.c).
24652
246532002-03-21 Richard M. Stallman <rms@gnu.org>
24654
24655 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
24656 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
24657 when jumping to `fail' to avoid undoing reg changes in the
24658 last iteration of the loop.
24659 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
24660
24661 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
24662 Depend on process.h.
24663
246642002-03-20 Jason Rumney <jasonr@gnu.org>
24665
24666 Most of the following changes are still conditional on HAVE_IMAGES
24667 which is not set by default on Windows.
24668
24669 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
24670
24671 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
24672 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
24673 (four_corners_best, x_clear_image_1, x_clear_image)
24674 (x_alloc_image_color, postprocess_image)
24675 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
24676 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
24677 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
24678
24679 * w32gui.h (struct XImage): Define.
24680
24681 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
24682 extract mouse co-ordinates.
24683
246842002-03-20 Jason Rumney <jasonr@gnu.org>
24685
24686 * w32.c (init_winsock): Dynamically load new server and UDP
24687 socket functions.
24688 (socket_to_fd): New function.
24689 (sys_socket): Use it.
24690 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
24691 (sys_recvfrom, sys_sendto): New wrapper functions.
24692
24693 * process.c (QCfamily, QCfilter): Remove duplicate declaration
24694 and initialization.
24695
24696 * makefile.w32-in (LIBS): Remove $(WSOCK32).
24697
246982002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
24699
24700 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
24701 Don't use "sun" as a variable, it's a predefined constant on Sun
24702 machines.
24703
247042002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24705
24706 * bytecode.c (Fbyte_code): Revert last change.
24707
247082002-03-19 Kim F. Storm <storm@cua.dk>
24709
24710 * makefile.w32-in (LIBS): Add $(WSOCK32).
24711 From David Ponce <dponce@voila.fr>.
24712
247132002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24714
24715 * process.c (wait_reading_process_input): Move variables `pname'
24716 and `pnamelen' down where they are used.
24717
24718 * bytecode.c (Fbyte_code): Discard unused computed value to
24719 prevent gcc warning.
24720
24721 * lisp.h (Fplist_member): Add prototype.
24722
247232002-03-18 Kim F. Storm <storm@cua.dk>
24724
24725 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
24726 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
24727
24728 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
24729 Remove explicit GNU_LINUX settings for datagram support.
24730
247312002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24732
24733 * process.c (Fmake_network_process): Remove unused variable `sa'.
24734 Doc fix. Add usage:.
24735 (set_socket_options): Remove unused variables `optnum' and `opttype'.
24736
247372002-03-17 Richard M. Stallman <rms@gnu.org>
24738
24739 * xdisp.c (cursor_type_changed): New variable.
24740 (redisplay_internal): Redisplay all windows if cursor_type_changed.
24741 Clear it when clearing windows_or_buffers_changed.
24742 (try_cursor_movement, redisplay_window, try_window_id)
24743 (try_window_reusing_current_matrix): Test cursor_type_changed
24744 along with windows_or_buffers_changed.
24745
24746 * window.h (cursor_type_changed): New variable.
24747
24748 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
24749 not update_mode_lines, and always set it to 1.
24750
24751 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
24752 if no frames needed redrawing.
24753
247542002-03-17 Kim F. Storm <storm@cua.dk>
24755
24756 The following changes add support for network server processes,
24757 datagram connections, and local (unix) sockets.
24758
24759 * process.h (struct Lisp_Process): New member log.
24760 Doc fix: Member command used to indicate stopped network process.
24761 Doc fix: Member childp contains plist for network process.
24762 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
24763
24764 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
9dd28cae 24765 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
647b07d1
AS
24766 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
24767 variables.
048addec
JD
24768 (NETCONN1_P): New macro.
24769 (DATAGRAM_SOCKETS): New conditional symbol.
24770 (datagram_address): New array.
24771 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
24772 (status_message): Use concat3.
647b07d1
AS
24773 (Fprocess_status): Add `listen' status to doc string. Return
24774 `stop' for a stopped network process.
048addec
JD
24775 (Fset_process_buffer): Update contact plist for network process.
24776 (Fset_process_filter): Ditto. Don't enable input for stopped
24777 network processes. Server must listen, even if filter is t.
24778 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
24779 New functions.
24780 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
24781 (Fprocess_contact): Added KEY argument. Handle datagrams.
24782 (list_processes_1): Optionally show only processes with the query
24783 on exit flag set. Dynamically adjust column widths. Omit tty
647b07d1
AS
24784 column if not needed. Report stopped network processes. Identify
24785 server and datagram network processes.
048addec
JD
24786 (Flist_processes): New optional arg `query-only'.
24787 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
24788 (conv_lisp_to_sockaddr, set_socket_options)
647b07d1
AS
24789 (network_process_featurep, unwind_request_sigio): New helper
24790 functions.
048addec
JD
24791 (Fprocess_datagram_address, Fset_process_datagram_address):
24792 (Fset_network_process_options): New lisp functions.
24793 (Fopen_network_stream): Removed. Now defined in simple.el.
647b07d1
AS
24794 (Fmake_network_process): New lisp function. Code is based on
24795 previous Fopen_network_stream, but heavily reworked with new
24796 property list based argument list, support for datagrams, server
24797 processes, and local sockets in addition to old client-only
24798 functionality.
048addec
JD
24799 (server_accept_connection): New function.
24800 (wait_reading_process_input): Use it to handle incoming connects.
24801 Do not enable input on a new connection if process is stopped.
647b07d1
AS
24802 (read_process_output): Handle datagram sockets. Use 2k buffer for
24803 them.
048addec 24804 (send_process): Handle datagram sockets.
647b07d1
AS
24805 (Fstop_process, Fcontinue_process): Apply to network processes. A
24806 stopped network process is indicated by setting command field to t.
048addec
JD
24807 (Fprocess_send_eof): No-op if datagram connection.
24808 (Fstatus_notify): Don't read input for a stream server socket or a
24809 stopped network process.
24810 (init_process): Initialize datagram_address array.
24811 (syms_of_process): Intern and staticpro new variables, defsubr new
24812 functions.
24813
248142002-03-16 Jason Rumney <jasonr@gnu.org>
24815
24816 * w32fns.c (w32_to_all_x_charsets): Return correct type in
24817 startup case.
24818
248192002-03-16 Richard M. Stallman <rms@gnu.org>
24820
24821 * xdisp.c (redisplay_internal, redisplay_windows):
24822 Use list_of_error to call internal_condition_case_1.
24823 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
24824 so as to catch all errors with no possibility of debugger redisplay.
24825 (list_of_error): New variable.
24826 (syms_of_xdisp): Init and staticpro it.
24827
24828 * print.c (print_object): Delete `\ ' from printed rep of frame.
24829
248302002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
24831
24832 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
24833 until its implementation is fixed.
24834
248352002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24836
24837 * xfns.c (png_load): Remove unused variable `gamma_str'.
24838
248392002-03-14 Richard M. Stallman <rms@gnu.org>
24840
24841 * xfns.c (x_real_positions): Handle failure in XQueryTree.
24842
248432002-03-14 Miles Bader <miles@gnu.org>
24844
24845 * intervals.c (adjust_for_invis_intang): New function.
24846 (set_point_both): Use `adjust_for_invis_intang' to do most of the
24847 work for dealing with invisible+intangible regions. Do so before
24848 and after both forward and backward movements, to handle both
24849 front-sticky and rear-sticky cases.
24850 * textprop.c (text_property_stickiness): Function moved here from
24851 `editfns.c'.
24852 * intervals.h (text_property_stickiness): New declaration.
24853 * editfns.c (char_property_eq): Function removed.
24854 (text_property_stickiness): Function moved to `textprop.c'.
24855
248562002-03-13 Jason Rumney <jasonr@gnu.org>
24857
24858 * config.in: Add STRFTIME_NO_POSIX2.
24859
24860 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
24861 and %OX when underlying strftime does not.
24862
248632002-03-13 Stefan Monnier <monnier@cs.yale.edu>
24864
24865 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
24866 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
24867 line) to avoid annoying flicker.
24868 (xm_scroll_callback): Get rid of the now unnecessary kludge.
24869 (XTread_socket): Mark it static.
24870
24871 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
24872
248732002-03-13 Kim F. Storm <storm@cua.dk>
24874
24875 * puresize.h (BASE_PURESIZE): Increase to 775000.
24876
248772002-03-12 Juanma Barranquero <lektu@terra.es>
24878
24879 * editfns.c (syms_of_editfns): Fix typo.
24880
248812002-03-12 Gerd Moellmann <gerd@gnu.org>
24882
24883 * xsmfns.c: Include stdio.h because termhooks.h needs it.
24884 Include termopt.h for interrupt_input.
24885
248862002-03-11 Andreas Schwab <schwab@suse.de>
24887
24888 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
24889
248902002-03-11 Gerd Moellmann <gerd@gnu.org>
24891
24892 * xterm.c (note_mouse_movement): Put code for
24893 x_autoselect_window_p in #if 0.
24894
24895 * lread.c (Fload): Don't assume that message_with_string uses the
24896 string it is given like a C string.
24897
248982002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
24899
78819ebb 24900 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 24901
52eb0373 24902 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
24903 x_session_have_connection.
24904 (x_initialize): Add call to x_session_initialize.
24905
24906 * termhooks.h (enum event_kind): Add save_session_event.
24907
24908 * keyboard.c: Add Emacs event save_session_event.
24909
24910 * emacs.c (main): Add call to syms_of_xsmfns.
24911
78819ebb 24912 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
24913
24914 * config.in: Add HAVE_X_SM.
24915
24916 * Makefile.in (LIBXT): Add -lSM -lICE
24917 if HAVE_X_SM and not USE_X_TOOLKIT.
24918 (XOBJ): New file xsmfns.c added.
24919
24920 * xsmfns.c: New file for X session management.
24921
249222002-03-09 Jason Rumney <jasonr@gnu.org>
24923
24924 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
24925 read-only when setting modified time.
24926
249272002-03-08 Gerd Moellmann <gerd@gnu.org>
24928
24929 * xdisp.c (move_it_vertically_backward): At the end of the function,
24930 when moving forward by lines, treat terminal frames specially.
24931
24932 * keyboard.c (echo_char): Make sure to add a separator between
24933 keys even if echo_dash hasn't been called.
24934
24935 * xdisp.c: Use new string macros.
24936 (update_echo_area): Pass number of bytes to message3 instead of
24937 number of chars.
24938 (set_message_1): Don't access a string's size_byte directly.
24939 (decode_mode_spec_coding): Use number of bytes of eoltype string
24940 instead number of chars.
24941
24942 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
24943
249442002-03-08 Juanma Barranquero <lektu@terra.es>
24945
24946 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
24947 24-bit.
24948
249492002-03-06 Jason Rumney <jasonr@gnu.org>
24950
24951 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
24952
249532002-03-06 Gerd Moellmann <gerd@gnu.org>
24954
24955 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
24956 (cancel_echoing, echo_length, echo_truncate): Changed to
24957 work with new kboard definition.
24958 (echo_now): Use message3_nolog instead of message2_nolog.
24959
24960 * alloc.c (mark_kboards): Mark echo_string.
24961
24962 * keyboard.h (ECHOBUFSIZE): Removed.
24963 (struct kboard): Member echoptr removed, member echobuf renamed
24964 to echo_string.
24965
24966 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
24967 message3 instead of message2 to display the message using STRING's
24968 text properties.
24969
249702002-03-05 Andreas Schwab <schwab@suse.de>
24971
24972 * xdisp.c (hscroll_margin): Change to EMACS_INT.
24973
249742002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
24975
24976 * frame.c (default-frame-alist): Explain that setting it doesn't
24977 affect existing frames.
24978
249792002-03-05 Stefan Monnier <monnier@cs.yale.edu>
24980
24981 * indent.c (skip_invisible): Fix my brain fart.
24982
24983 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
24984
249852002-03-04 Stefan Monnier <monnier@cs.yale.edu>
24986
24987 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
24988 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
24989 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
24990 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
24991 and variables to use EMACS_INT instead of just int.
24992
24993 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
24994
249952002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
24996
24997 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
24998 environment, pass it down with corrected value.
24999
250002002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25001
25002 * lread.c (read_filtered_event): Do not call start_hourglass
25003 before returning.
25004
250052002-03-04 Juanma Barranquero <lektu@terra.es>
25006
25007 * w32term.c (x_display_and_set_cursor): Fix typo.
25008
250092002-03-03 Richard M. Stallman <rms@gnu.org>
25010
25011 * fileio.c (Fmake_temp_name): Doc fix.
25012
250132002-03-03 Gary Wong <gtw@gnu.org>
25014
25015 * termcap.c [!emacs]: Replace ospeed for building standalone
25016 libtermcap, for binary compatibility.
25017
25018 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
25019
250202002-03-03 Richard M. Stallman <rms@gnu.org>
25021
25022 * xrdb.c (file_p): Rename arg `path' to `filename'.
25023
25024 * abbrev.c (Fexpand_abbrev): Increment plist as use count
25025 only if it is an integer.
25026
25027 * xfns.c (png_load): Set screen_gamma based on f->gamma.
25028 If png_get_sRGB gives an answer, call png_set_gamma
25029 using the default image gamma value.
25030
25031 * lread.c (read1): When reading from a file, default string to
25032 multibyte only if it has some multibyte characters.
25033
25034 * print.c (print_object): Output multibyte chars 128...255
25035 using \x even if ! print_escape_multibyte.
25036
25037 * xdisp.c (display_mode_element): Move the places where
25038 bytepos, charpos, this, and lisp_string are set.
25039 Use lisp_string to set bytepos.
25040
25041 * xdisp.c (redisplay_internal):
25042 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
25043
25044 * xdisp.c (display_mode_element): Merge properties specified with
25045 :propertize onto those that come with the string.
25046
250472002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
25048
25049 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
25050 automatic-hscrolling. Users changed.
25051 <hscroll-margin>: Renamed from automatic-hscroll-margin.
25052 Users changed.
25053 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
25054
250552002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
25056
25057 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
25058
250592002-03-02 Kim F. Storm <storm@cua.dk>
25060
25061 * window.c (Fminibuffer_selected_window): New function.
25062 (syms_of_window): Defsubr it.
25063
250642002-03-01 Kim F. Storm <storm@cua.dk>
25065
25066 * window.h (struct window): New member phys_cursor_width.
25067
25068 * window.c (make_window, replace_window): Init phys_cursor_width.
25069
25070 * xterm.c (x_display_and_set_cursor): Blink box cursor using
25071 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
25072
25073 * w32term.c (x_display_and_set_cursor): Blink box cursor using
25074 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
25075
25076 * lisp.h (GCPRO6): New macro.
25077
25078 * process.c (Fopen_network_stream): Use GCPRO6.
25079
250802002-03-01 Kim F. Storm <storm@cua.dk>
25081
25082 * process.c (Qconnect, Qfailed): New variables.
25083 (syms_of_process): Intern and staticpro them.
25084 (Fprocess_status): Document connect and failed return values.
25085 [NON_BLOCKING_CONNECT]: New conditional.
25086 (connect_wait_mask, num_pending_connects): New variables.
25087 (status_message): Convert Qfailed status.
25088 (Fopen_network_stream): Added support for non-blocking connect.
25089 New optional args: filter, sentinel, non_blocking. Doc updated.
25090 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
25091 (deactivate_process): Handle pending non-blocking connect.
25092 (wait_reading_process_input): Poll for status of non-blocking
25093 connects. Exec sentinel directly when connect succeeds.
25094 (status_notify): Don't read process output if not yet connected.
25095
250962002-02-28 Kim F. Storm <storm@cua.dk>
25097
9dd28cae 25098 * window.c (minibuf_selected_window): Renamed from
048addec
JD
25099 Vminibuf_selected_window. Users changed.
25100 (syms_of_window): Staticpro it.
25101
251022002-02-26 Kim F. Storm <storm@cua.dk>
25103
25104 The following changes add a new Vminibuf_selected_window variable
25105 which is similar to Vminibuf_scroll_window, but which is only set
25106 on entry to the minibuffer (from a non-minibuffer window):
25107
9dd28cae 25108 * window.c (Vminibuf_selected_window): New variable.
048addec
JD
25109 (struct save_window_data): New member minibuf_selected_window.
25110 (Fset_window_configuration): Restore Vminibuf_selected_window.
25111 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
25112 Set minibuf_scroll_window member to nil if minibuf_level is 0.
25113 (compare_window_configurations): Compare minibuf_selected_window.
25114
9dd28cae 25115 * window.h (Vminibuf_selected_window): Declare extern.
048addec
JD
25116
25117 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
25118 entry to minibuffer or on entry from a non-minibuffer window.
25119
25120 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
25121 Vminibuf_selected_window instead of Vminibuf_scroll_window.
25122
25123 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
25124 instead of Vminibuf_scroll_window when deciding in which window
25125 the region should be highlighted. Consequently, the region remains
25126 highlighteded even when a completion buffer is also displayed.
25127
251282002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
25129
25130 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
25131
25132 * xselect.c (Qcompound_text_with_extensions): Renamed from
25133 Qcompound_text_no_extensions.
25134 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
25135
251362002-02-26 Juanma Barranquero <lektu@terra.es>
25137
25138 * w32proc.c (syms_of_ntproc): Doc fix.
25139
251402002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25141
25142 * intervals.h: Include "dispextern.h" unconditionally.
25143
251442002-02-24 Jason Rumney <jasonr@gnu.org>
25145
25146 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
25147 and disp-table.elc.
25148 (lisp): Add emacs-lisp/backquote.elc.
25149
251502002-02-24 Kim F. Storm <storm@cua.dk>
25151
3419757d 25152 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
25153 The validation of the event type was too strict as it didn't
25154 allow string events; buffer names are used in bindings for
25155 menu-bar-select-buffer (see `menu-bar-update-buffers').
25156
251572002-02-23 Kim F. Storm <storm@cua.dk>
25158
25159 The following changes rework my patch of 2002-02-06 which
25160 added command remapping by entering the commands directly into
25161 the keymaps. Now, command remapping uses an explicit `remap'
25162 prefix in the keymaps, i.e. [remap COMMAND].
25163
25164 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 25165 (is_command_symbol): Remove function.
048addec
JD
25166 (Fdefine_key): No longer accept a symbol for KEY.
25167 Added validation of [remap COMMAND] argument for KEY.
25168 The DEF is no longer required to be a symbol when remapping a command.
25169 (Fremap_command): New function to remap command through keymaps.
25170 (Flookup_key): Perform command remapping initiated by
25171 Fremap_command directly for speed.
25172 (Fkey_binding): Use Fremap_command for command remapping.
25173 (where_is_internal): Handle new command remapping representation.
25174 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
25175 staticpro them. Defsubr Fremap_command.
25176
25177 * keymap.h (Fremap_command): Declare extern.
25178 (is_command_symbol): Remove extern.
25179
25180 * keyboard.c (command_loop_1): Use Fremap_command for command
25181 remapping; now try command remapping for all symbols.
25182
251832002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
25184
25185 * coding.h (run_pre_post_conversion_on_str): Add prototype.
25186
251872002-02-23 Jason Rumney <jasonr@gnu.org>
25188
25189 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
25190 on the string before encoding it.
25191 (Fw32_get_clipboard_data): Run post-read-conversion on the string
25192 after decoding it.
25193
25194 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
25195
251962002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25197
25198 * w32term.c (enter_timestamp): Remove unused static variable to
25199 prevent warning.
25200
25201 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
25202
252032002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
25204
25205 * w16select.c (Fw16_get_clipboard_data): Fix last change.
25206
25207 * xselect.c (selection_data_to_lisp_data): Fix last change.
25208
252092002-02-22 Jason Rumney <jasonr@gnu.org>
25210
25211 * w32term.h (struct w32_output): New member menu_command_in_progress.
25212
25213 * w32menu.c (menubar_selection_callback): Free the menu and
25214 clear the menu_command_in_progress flag.
25215
25216 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
25217 (menu_free_timer): New variable.
25218 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
25219 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
25220 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
25221 menu command is in progress.
25222 <WM_COMMAND>: Set the menu_command_in_progress flag.
25223 Kill any menu_free_timer that is running.
25224
25225 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
25226 Call ExtTextOutA rather than ExtTextOut.
25227
252282002-02-22 Eli Zaretskii <eliz@gnu.org>
25229
25230 * puresize.h (BASE_PURESIZE): Increase to 755000.
25231
252322002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
25233
25234 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
25235 on the string before encoding it.
25236 (Fw16_get_clipboard_data): Run post-read-conversion on the string
25237 after decoding it.
25238
252392002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
25240
9dd28cae 25241 Support for ICCCM Extended Segments in X selections:
048addec
JD
25242
25243 * xselect.c <Qcompound_text_no_extensions>: New variable.
25244 (syms_of_xselect): Intern and staticpro it.
25245 (selection_data_to_lisp_data): Run post-read-conversion on decoded
25246 selection text.
25247 (lisp_data_to_selection_data): If next-selection-coding-system is
25248 compound-text-no-extensions, set the type of selection to be
25249 compound-text.
25250
25251 * xterm.h (x_encode_text): Update prototype.
25252
25253 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
25254 callers changed. If SELECTIONP is non-zero, run the
25255 pre-write-conversion function before encoding the selection text.
25256
252572002-02-21 Kim F. Storm <storm@cua.dk>
25258
25259 * frame.c (syms_of_frame): Change mouse-highlight default to t.
25260
25261 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
25262 Correct composing of language-change event.
25263
252642002-02-20 Kim F. Storm <storm@cua.dk>
25265
25266 * keyboard.c (menu_bar_items): Don't include keymap or local-map
25267 bindings at PT when building menu (the menu is not updated often
25268 enough for this to work reliable).
25269 (tool_bar_items): Likewise.
25270 (current_active_maps): Removed unused (and buggy) function.
25271
252722002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25273
25274 * xfns.c (gif_load): Use correct width and height for GIF images.
25275
252762002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
25277
25278 * floatfns.c (Fatan): Accept an optional second arg and call
25279 atan2 if passed 2 args.
25280
252812002-02-18 Jason Rumney <jasonr@gnu.org>
25282
25283 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
25284
252852002-02-17 Jason Rumney <jasonr@gnu.org>
25286
25287 * w32term.c (x_autoselect_window_p): New variable.
25288 (syms_of_w32term): DEFVAR_BOOL and initialize it.
25289 (note_mouse_movement): Use it.
25290
25291 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
25292
25293 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
25294
25295 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
25296 New variables.
25297 (syms_of_w32fns): Intern and staticpro them.
25298 (x_frame_parms) <"fullscreen">: New parameter.
25299 (x_fullscreen_move, x_set_fullscreen): New functions.
25300 (x_set_frame_parameters): Support Qfullscreen.
25301 (x_real_positions): Save x/y_pixels_diff frame params.
25302 (x_figure_window_size): Support full-screen frames.
25303 (Fx_create_frame): Default the fullscreen parameter.
25304
25305 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
25306 (x_fullscreen_adjust): New functions.
5e1a6e32 25307 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
048addec
JD
25308 fullscreen. Call x_check_fullscreen_move, and set the
25309 want_fullscreen member of output_data.w32
25310 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
25311
25312 * w32term.h: New enum for FULLSCREEN_* constants.
25313 (struct w32_output): New members want_fullscreen, x_pixels_diff,
25314 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
25315 (x-fullscreen-adjust): New prototype.
25316
253172002-02-17 Kim F. Storm <storm@cua.dk>
25318
52eb0373 25319 * frame.c (Vmouse_highlight): New variable.
048addec
JD
25320 (syms_of_frame): DEFVAR_LISP it.
25321
52eb0373 25322 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 25323
048addec 25324 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 25325
048addec
JD
25326 * xterm.c (disable_mouse_highlight): Removed variable.
25327 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
5e1a6e32 25328 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
048addec
JD
25329 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
25330 and on after keyboard input.
25331 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 25332
048addec 25333 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 25334
048addec 25335 * msdos.c (disable_mouse_highlight): Removed variable.
5e1a6e32 25336 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
048addec
JD
25337 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
25338 (internal_terminal_init): Initialize mouse_face_hidden.
25339 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
25340 and on after keyboard input.
4f1b1854 25341
048addec 25342 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 25343
048addec
JD
25344 * w32term.c (disable_mouse_highlight): Removed variable.
25345 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
5e1a6e32 25346 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
048addec
JD
25347 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
25348 and on after keyboard input.
25349 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 25350
048addec 253512002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 25352
048addec
JD
25353 * msdos.c (last_mouse_window): New variable.
25354 (dos_rawgetc): Fix last change--if the mouse is in the same window
25355 as recorded in last_mouse_window, don't select this window.
5cb6905d 25356
048addec 25357 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 25358
048addec
JD
25359 * msdos.c (x_autoselect_window_p): New variable.
25360 (syms_of_msdos): Defvar it.
25361 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
25362 which the last mouse movement occured, unless it is already selected.
437dfb9f 25363
048addec
JD
25364 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
25365 New variables.
25366 (syms_of_xdisp): DEVFAR them.
25367 (hscroll_window_tree): Use automatic_hscroll_margin and
25368 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 25369
048addec 253702002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 25371
048addec
JD
25372 * xterm.c (x-autoselect-window): New variable.
25373 (note_mouse_movement): Use it.
9f696a00 25374
048addec 25375 * keyboard.c: Do not include "systime.h" twice.
d57966d7 25376
048addec 253772002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 25378
bfa02563 25379 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 25380
048addec 25381 * alloc.c (NSTATICS): Increase to 1280.
74779f52 25382
048addec 253832002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 25384
048addec 25385 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 25386
048addec
JD
25387 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
25388 (Vx_super_keysym): New variables.
25389 (syms_of_xterm): DEFVAR_LISP them.
25390 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
25391 variables to determine which keys to use for the various modifiers.
a474d59c 25392
048addec 253932002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 25394
9dd28cae 25395 * window.c (Vmode_line_in_non_selected_windows): Removed.
048addec
JD
25396 (mode_line_in_non_selected_windows): New variable.
25397 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 25398
048addec
JD
25399 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
25400 Use mode_line_in_non_selected_windows.
25401 (mode_line_in_non_selected_windows): Declare extern.
25402 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 25403
048addec 254042002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 25405
048addec
JD
25406 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
25407 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
25408 (Fclear_this_command_keys): Doc fixes.
2d10309f 25409
048addec
JD
25410 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
25411 (update_face_from_frame_parameter): Increment face_change_count
25412 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 25413
048addec
JD
25414 * xdisp.c (QCpropertize): New variable.
25415 (mode_line_proptrans_alist): New variable.
25416 (display_mode_element): New arg PROPS; all calls changed.
25417 Implement this, for strings.
25418 Handle literal output of strings by sharing the
25419 main-line code for strings, using local var `literal'.
25420 Handle :propertize feature.
25421 (syms_of_xdisp): Initialze and staticpro QCpropertize and
25422 mode_line_proptrans_alist.
0b1e6b54 25423
048addec 254242002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 25425
9dd28cae 25426 * window.c (Vmode_line_in_non_selected_windows): New variable.
048addec 25427 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 25428
048addec
JD
25429 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
25430 (CURRENT_MODE_LINE_FACE_ID): Use it.
25431 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 25432
048addec
JD
25433 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
25434 to get mode line face.
e17144de 25435
048addec 254362002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 25437
048addec
JD
25438 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
25439 variables; cus-start.el doesn't need them anymore.
44368f8f 25440
048addec 254412002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 25442
048addec
JD
25443 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
25444 reduction. This fixes a display problem where stray newlines were
25445 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 25446
048addec 254472002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 25448
048addec 25449 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 25450
048addec 25451 * xdisp.c (display_mode_lines): Fix last change.
453c5510 25452
048addec 254532002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 25454
048addec
JD
25455 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
25456 match each other.
25457 (w32_load_system_font): Prevent Cleartype fonts from loading.
25458 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 25459
048addec 254602002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 25461
048addec
JD
25462 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
25463 (CURRENT_MODE_LINE_HEIGHT): Use it.
25464 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 25465
048addec
JD
25466 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
25467 (pos_visible_p, handle_face_prop): Likewise.
25468 (display_mode_lines): Likewise, but for the real selected window.
25469 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 25470
048addec
JD
25471 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
25472 in non-selected windows.
25473 (realize_basic_faces): Realize it.
25474 (syms_of_term): Intern and staticpro it.
308dd672 25475
048addec 254762002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 25477
048addec
JD
25478 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
25479 Changed mail addresses to emacs-devel@gnu.org.
308dd672 25480
048addec 254812002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 25482
048addec
JD
25483 * fileio.c (Fsubstitute_in_file_name): If the file name includes
25484 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 25485
048addec 25486 * floatfns.c (Fround): Doc fix.
3c1e6b46 25487
048addec 254882002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 25489
048addec 25490 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 25491
048addec 254922002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 25493
048addec 25494 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 25495
048addec 254962002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 25497
048addec
JD
25498 * keymap.c (where_is_internal): Only check whether definition is
25499 remapped if it fulfills is_command_symbol.
0065bb74 25500
048addec 255012002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 25502
048addec 25503 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 25504
048addec 25505 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 25506
048addec 255072002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 25508
048addec
JD
25509 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
25510 defining command remapping. Doc updated.
25511 (Flookup_key): Remap command through keymap if KEY is a symbol.
25512 (is_command_symbol): New function.
25513 (Fkey_binding): Use it. New optional argument NO-REMAP.
25514 Doc updated. Callers changed. Perform command remapping via
25515 recursive call unless that arg is non-nil.
25516 (where_is_internal): New argument no_remap. Callers changed.
25517 Call recursively to find original key bindings for a remapped
25518 comand unless that arg is non-nil.
25519 (Fwhere_is_internal): New optional argument NO-REMAP.
25520 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 25521
048addec 25522 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 25523 (is_command_symbol): Add prototype.
0d8466cc 25524
048addec
JD
25525 * keyboard.c (Vthis_original_command): New variable.
25526 (syms_of_keyboard): DEFVAR_LISP it.
25527 (command_loop_1): Set it, and perform command remapping.
15fff01d 25528
048addec 255292002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 25530
048addec 25531 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 25532
048addec 255332002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 25534
048addec 25535 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 25536
048addec 255372002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 25538
048addec 25539 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 25540
048addec 255412002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 25542
048addec 25543 * filelock.c (S_ISLNK): Define if not defined.
3a232704 25544
048addec 255452002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 25546
048addec 25547 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 25548
048addec
JD
25549 * lread.c (read1): Redesign strategy for force_multibyte and
25550 force_singlebyte. Now is_multibyte records whether read_buffer
25551 is multibyte. Encountering any multibyte character makes it so.
4e02881b 25552
048addec 255532002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 25554
048addec
JD
25555 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
25556 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 25557
048addec 255582002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 25559
048addec
JD
25560 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
25561 latter never being defined on GNU/Linux.
749f499f 25562
048addec 255632002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 25564
048addec
JD
25565 * xfaces.c (realize_default_face): Don't set the weight and slant of
25566 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 25567
048addec 255682002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 25569
048addec
JD
25570 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
25571 Call cancel_hourglass unconditionally.
d0fd26dd 25572
048addec
JD
25573 * eval.c (Fsignal): Remove duplicated declaration of
25574 the variable `display_hourglass_p'.
b4c45162 25575
048addec 255762002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 25577
048addec 25578 * editfns.c (region_limit): Nicer error message.
c95eaa61 25579
048addec
JD
25580 * coding.c (decode_composition_emacs_mule):
25581 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 25582
048addec
JD
25583 * callint.c (check_mark): New arg to specify clearer error message.
25584 Callers changed.
c95eaa61 25585
048addec 255862002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 25587
048addec 25588 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 25589
048addec 255902002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 25591
048addec
JD
25592 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
25593 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
25594 Fix doc-strings.
c95eaa61 25595
048addec 255962002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 25597
048addec 25598 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 25599
048addec
JD
25600 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
25601 and scroll_up_aggressively.
c95eaa61 25602
048addec 256032002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 25604
048addec 25605 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 25606
048addec 256072002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 25608
048addec
JD
25609 * textprop.c (Fnext_property_change, Fnext_single_property_change)
25610 (Fprevious_property_change, Fprevious_single_property_change):
25611 Stay within the narrowed-buffer boundaries.
e2c3786a 25612
048addec 256132002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 25614
048addec
JD
25615 * term.c (Ftty_display_color_cells): New function.
25616 (syms_of_term): Defsubr it.
25617 (Ftty_display_color_cells, Ftty_display_color_p): Change the
25618 argument name to DISPLAY. Doc fix.
bf794306 25619
048addec
JD
25620 * dispextern.h: Add prototype for set_tty_color_mode and
25621 tty_setup_colors.
bf794306 25622
048addec 256232002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 25624
048addec
JD
25625 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
25626 If region left to draw is not what was expected, mark the frame as
25627 garbaged.
62582985 25628
048addec
JD
25629 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
25630 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 25631
048addec 256322002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 25633
048addec
JD
25634 * w32term.c (x_update_window_begin): Only hide caret if
25635 w32_use_visible_system_caret is set.
25636 (x_update_window_end): Only show caret if
25637 w32_use_visible_system_caret is set.
25638 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 25639
048addec 25640 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 25641
048addec 256422002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 25643
048addec
JD
25644 * unexelf.c (unexec): Define n so as to cause compilation error
25645 for the code where people have often written n instead of nn.
1e9a6186 25646
048addec 25647 * .gdbinit (hookpost-run): Defined.
1e9a6186 25648
048addec 256492002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 25650
048addec 25651 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 25652
048addec 256532002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 25654
048addec
JD
25655 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
25656 if fullscreen is being set.
7c75be36 25657
048addec 256582002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 25659
048addec
JD
25660 * minibuf.c (Fminibuffer_contents)
25661 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
25662 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 25663
048addec 256642002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 25665
048addec 25666 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 25667
048addec 256682002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 25669
048addec
JD
25670 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
25671 height before comparison.
25672 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 25673
048addec 256742002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 25675
048addec
JD
25676 * w32term.c (w32_system_caret_width): Remove.
25677 (w32_use_visible_system_caret): New user flag.
25678 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
25679 Windows reports a screen reader running.
25680 (x_update_window_begin): Hide the system caret.
25681 (x_update_window_end): Show the system caret.
25682 (x_display_and_set_cursor): Don't draw a cursor when
25683 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 25684
048addec
JD
25685 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
25686 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
25687 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
25688 the user requests it. Use system default width when creating.
25689 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 25690
048addec
JD
25691 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
25692 New window messages.
905cc05a 25693
048addec 256942002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 25695
048addec 25696 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 25697
048addec 256982002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 25699
048addec 25700 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 25701
048addec 257022002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 25703
048addec 25704 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 25705
048addec 257062002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 25707
048addec
JD
25708 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
25709 that Windows returns. If a double check fails, try to guess how
25710 ExtTextOut is going to act.
4d0fa4f3 25711
048addec
JD
25712 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
25713 in place of stricmp.
25714 (w32_list_synthesized_fonts): Removed.
25715 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
25716 (struct enumfont_t): New element; list.
25717 (enum_font_cb2): List all style and charset variations of a font.
25718 (Fw32_select_font): New optional argument; include_proportional.
25719 Exclude vertical fonts. Exclude proportional fonts unless
25720 include_proportional is non-nil.
25721 (w32_enable_synthesized_fonts): Change to a boolean.
25722 (Fw32_send_sys_command): Doc fix.
493faf20 25723
048addec 257242002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 25725
048addec
JD
25726 * dispnew.c (update_frame): Move the variable `tem' to the block
25727 where it is used.
4971e491 25728
048addec 257292002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 25730
048addec
JD
25731 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
25732 call to face-set-after-frame-default.
4971e491 25733
048addec 257342002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 25735
048addec
JD
25736 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
25737 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 25738
048addec 257392002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 25740
048addec
JD
25741 * window.c (enlarge_window): When exceeding size of parent,
25742 directly delete all the siblings instead of trying to resize it.
201c831a 25743
048addec 257442002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 25745
048addec 25746 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 25747
048addec 257482002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 25749
048addec 25750 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 25751
048addec 257522002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 25753
048addec
JD
25754 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
25755 is invisible. This can happen if cursor is on top line of a
25756 window, and we switch to a buffer with a header line.
d77fbc16 25757
048addec 25758 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 25759
048addec 257602002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 25761
048addec
JD
25762 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
25763 `dont_resize' only when used.
61e3b944 25764
048addec 25765 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 25766
048addec 257672002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 25768
048addec
JD
25769 * xdisp.c (display_mode_element): When computing charpos, depend
25770 on multibyteness of elt, not the text in field.
8af01033 25771
048addec 257722002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 25773
048addec
JD
25774 * buffer.c (Fkill_all_local_variables):
25775 Increment `update_mode_lines' only once.
7363986a 25776
048addec 257772002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 25778
048addec
JD
25779 * lisp.h (adjust_after_replace_noundo)
25780 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 25781
048addec 25782 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 25783
048addec 257842002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 25785
048addec
JD
25786 Support for the --color command-line argument and tty-color-mode
25787 frame parameter:
f1a85b89 25788
048addec
JD
25789 * term.c (tty_default_color_capabilities, tty_setup_colors)
25790 (set_tty_color_mode): New functions.
25791 (term_init): Call tty_default_color_capabilities.
25792 (Qtty_color_mode_alist): New variable.
25793 (syms_of_term): Intern and staticpro it.
f1a85b89 25794
048addec
JD
25795 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
25796 frames.
25797 (do_switch_frame): For termcap frames, switch the tty
25798 color mode as specified by the frame's parameters.
25799 (Qtty_color_mode): New variable.
25800 (syms_of_frame): Intern and staticpro it.
3a62677f 25801
048addec
JD
25802 * emacs.c (USAGE2): Add the --color option.
25803 (standard_args): Ditto.
72244db2 25804
048addec
JD
258052002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
25806
25807 * xterm.h (struct x_output): New members want_fullscreen,
25808 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
25809 y_pixels_outer_diff.
25810 New enum for FULLSCREEN_* constants.
25811 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
25812 is NULL.
25813 (x_fullscreen_adjust): Add prototype.
3a62677f 25814
048addec
JD
25815 * emacs.c (USAGE2): Add the new full-screen arguments.
25816 (standard_args): Ditto.
3a62677f 25817
048addec
JD
25818 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
25819 New variables.
25820 (syms_of_xfns): Intern and staticpro them.
25821 (x_frame_parms) <"fullscreen">: New parameter.
25822 (x_fullscreen_move, x_set_fullscreen): New functions.
25823 (x_set_frame_parameters): Support for Qfullscreen.
25824 (x_real_positions): More accurate computation of the frame position.
25825 (x_figure_window_size): Support full-screen frames.
25826 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 25827
048addec
JD
25828 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
25829 (XTread_socket) <Expose>: Call x_check_fullscreen.
25830 <ConfigureNotify>: Don't resize to fullscreen.
25831 Call x_check_fullscreen_move, and set the want_fullscreen member of
25832 output_data.x.
3a62677f 25833
048addec 258342002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 25835
048addec
JD
25836 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
25837 for mice with more than 3 buttons.
b8523839 25838
048addec
JD
25839 * w32term.c (parse_button): New parameter xbutton. Callers changed.
25840 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 25841
048addec
JD
25842 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
25843 (syms_of_w32fns): DEFVAR_BOOL it.
25844 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 25845
048addec 258462002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 25847
048addec 25848 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 25849
048addec 258502002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 25851
048addec 25852 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 25853
048addec 258542002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 25855
048addec
JD
25856 * .gdbinit (xbuffer): Remove address operator since data is now a
25857 pointer.
c93674bb 25858
048addec 258592002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 25860
048addec 25861 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 25862
048addec 25863 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 25864
048addec 258652002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 25866
048addec
JD
25867 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
25868 when checking for multiple frames.
91175673 25869
048addec 258702002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 25871
048addec
JD
25872 * window.c (delete_window): Rewrite the code for changing the
25873 selected window to handle the case where WINDOW is not a leaf.
91175673 25874
048addec 258752002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 25876
048addec
JD
25877 * process.c (send_process): Set src_multibyte to 1 after the call
25878 top setup_coding_system, not before the call.
e0fead5d 25879
048addec 258802002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 25881
048addec 25882 * xmenu.c (set_frame_menubar, xmenu_show):
5e1a6e32 25883 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 25884
048addec
JD
25885 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
25886 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 25887
048addec 258882002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 25889
048addec 25890 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 25891
048addec 25892 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 25893
048addec 25894 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 25895
048addec 258962002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 25897
048addec
JD
25898 * insdel.c (make_gap_larger): Make sure buffer size does not
25899 overflow range of int.
62854fe2 25900
048addec 259012002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 25902
048addec
JD
25903 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
25904 OVERLAPS_P.
656f46bb 25905
048addec 25906 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 25907
048addec
JD
25908 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
25909 to the left or to the right of the pointer, put it against
25910 the left screen edge.
25911 (x_frame_parms): Add missing braces around initializer.
036e218d 25912
048addec
JD
25913 * w32term.c (x_setup_relief_colors): Don't compute an image's
25914 background color if it doesn't have a Pixmap.
25915 (notice_overwritten_cursor): Don't depend on
25916 output_cursor and updated_area. Compare pixel coordinates with
25917 window's cursor pixel coordinates.
25918 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25919 Call notice_overwritten_cursor with new arg list.
25920 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25921 unconditionally.
25922 (x_draw_image_relief): Use predefined macro instead of
25923 constant when the value of `tool_bar_button_relief' is negative.
036e218d 25924
048addec 25925 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 25926
048addec 259272002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 25928
048addec 25929 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 25930
048addec 259312002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 25932
048addec
JD
25933 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
25934 (Fkey_binding): Try the `keymap' property map first.
25935 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
25936 minor mode bindings.
90647b07 25937
048addec 259382002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 25939
3419757d 25940 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 25941
048addec 259422002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 25943
048addec
JD
25944 * keyboard.c (read_key_sequence): Handle the keymap property
25945 before minor mode maps.
9fbc32aa 25946
048addec
JD
25947 * editfns.c (Fformat): Update thissize from field_width
25948 based on the actual width, in the string case.
036e218d 25949
048addec 259502002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 25951
048addec
JD
25952 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
25953 when used as truth value to prevent gcc warnings.
9fbc32aa 25954
048addec
JD
25955 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
25956 * w32proc.c: Include <config.h>.
9fbc32aa 25957
048addec 259582002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 25959
048addec
JD
25960 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
25961 not EMACS_INT, to make them compatible with DEFVAR_INT.
25962 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 25963
048addec 259642002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 25965
048addec
JD
25966 * print.c (print_object): Test print_escape_nonascii only for
25967 unibyte strings.
25968 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
25969 when outputting to a multibyte buffer.
9fbc32aa 25970
048addec 259712001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 25972
048addec
JD
25973 * print.c (print_object): In multibyte string, use hex escapes.
25974 Use octal only for unibyte strings.
25975 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 25976
048addec
JD
25977 * lread.c (read_escape): New arg BYTEREP for reporting whether
25978 escape forces unibyte or multibyte.
25979 (read1): When reading a string, take note of that info.
0142178a 25980
048addec 259812001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 25982
048addec
JD
25983 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
25984 comparison to test lisp value returned by Fget.
d4824a5d 25985
048addec 259862001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 25987
048addec 25988 * lisp.h (max_specpdl_size): Add declaration.
b1356234 25989
048addec 25990 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 25991
048addec
JD
25992 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
25993 Handle modifier bits. Correct typo in error message.
99e380ee 25994
048addec 259952001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 25996
048addec
JD
25997 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
25998 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
25999 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26000 Update calls to Fdefine_abbrev.
26001 (write_abbrev): Update for changed data format.
26002 Don't list "system" abbrevs.
26003 (Fexpand_abbrev): Update use count with new data format.
26004 (describe_abbrev): Update for changed data format.
26005 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 26006
048addec 26007 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 26008
048addec 26009 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 26010
048addec
JD
26011 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
26012 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 26013
048addec
JD
26014 * keymap.c (Flookup_key): Error message if key has wrong data type.
26015 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
26016 (exclude_key): New variable.
59a86c99 26017
048addec 260182001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 26019
048addec
JD
26020 * xterm.c (x_setup_relief_colors): Don't compute an image's
26021 background color if it doesn't have a Pixmap.
eb77a5f4 26022
048addec
JD
26023 * xterm.c (notice_overwritten_cursor): Don't depend on
26024 output_cursor and updated_area. Compare pixel coordinates with
26025 window's cursor pixel coordinates.
26026 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
26027 Call notice_overwritten_cursor with new arg list.
26028 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
26029 unconditionally.
eb77a5f4 26030
048addec
JD
26031 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
26032 height of the cursor line to the amount to scroll.
eb77a5f4 26033
048addec 260342001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 26035
048addec
JD
26036 * intervals.c (set_point_both): The position after an invisible,
26037 intangible character is not an acceptable stopping point.
bb313871 26038
048addec 260392001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 26040
048addec
JD
26041 * window.c (enlarge_window): In new preserve_before code, convert
26042 CURBEG from lisp object to integer before doing arithmetic.
6052529b 26043
048addec 260442001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 26045
048addec 26046 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 26047
048addec 260482001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 26049
048addec
JD
26050 * keyboard.c (record_char): Ignore duplicate help-echo events only
26051 separated by mouse-movement. When tracking mouse, only record
26052 first and last mouse-movement event in same window.
26053 Don't record mouse-movement events in keyboard macros.
3ce081f5 26054
048addec 260552001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 26056
048addec
JD
26057 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
26058 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 26059
048addec
JD
26060 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
26061 instead of Fstring_as_unibyte.
9fabb2f5 26062
048addec 260632001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 26064
048addec 26065 The following changes remove mocklisp support:
9fabb2f5 26066
048addec 26067 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 26068
048addec
JD
26069 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
26070 `Qmocklisp' and `Qmocklisp_arguments'.
26071 Remove prototype of syms_of_mocklisp.
2fa0eedf 26072
048addec 26073 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 26074
048addec
JD
26075 * callint.c: Do not include mocklisp.h.
26076 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 26077
048addec
JD
26078 * eval.c: Remove variables `Qmocklisp_arguments',
26079 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
26080 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
26081 Do not test for mocklisp case.
26082 (Fwhile): Remove unused variable `tem'.
26083 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 26084
048addec 26085 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 26086
048addec 26087 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 26088
048addec 26089 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 26090
048addec 260912001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 26092
048addec
JD
26093 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
26094 to the left or to the right of the pointer, put it against
26095 the left screen edge.
6108b49c 26096
048addec 260972001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 26098
048addec
JD
26099 * Makefile.in (distclean): Remove .gdbinit if we are building
26100 outside the source tree.
5eea19a4 26101
048addec 261022001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 26103
048addec 26104 * w32.c (emacs_root_dir): New function.
5eea19a4 26105
048addec 26106 * msdos.c (emacs_root_dir): New function.
5eea19a4 26107
048addec
JD
26108 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
26109 of the current drive as the fallback for default_directory.
438e57dd 26110
048addec
JD
26111 * dired.c (file_name_completion): Run the elements of
26112 completion-ignored-extensions through ENCODE_FILE.
438e57dd 26113
048addec
JD
26114 * lisp.h (scmp): Remove prototype, since it's now a static
26115 function private to dired.c.
c88e5347 26116
048addec 261172001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 26118
048addec
JD
26119 * dired.c (scmp): Function moved from minibuf.c.
26120 Delete multibyte handling--used only on encoded strings.
59ce1461 26121
048addec 26122 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 26123
048addec 26124 * fns.c (merge): Add QUIT call.
59ce1461 26125
048addec 261262001-12-18 Dave Love <fx@gnu.org>
8727d588 26127
048addec
JD
26128 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
26129 language/georgian.el.
8727d588 26130
048addec 261312001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 26132
048addec
JD
26133 * Makefile.in (lisp, shortlisp): Synchronize with changes to
26134 lisp/Makefile.in:DONTCOMPILE.
cc63037e 26135
048addec 261362001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 26137
048addec
JD
26138 * xdisp.c (window_box_height): Do not return negative values.
26139 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 26140
048addec 26141 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 26142
048addec 26143 * term.c (keys): Likewise.
deece6f5 26144
048addec 26145 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 26146
048addec 261472001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 26148
048addec
JD
26149 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
26150 patch (COMPOSING_P, not COMPOSING).
28ff4293 26151
048addec 261522001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 26153
048addec 26154 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 26155
048addec
JD
26156 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
26157 before calling decode_coding.
9b46de40 26158
048addec 26159 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 26160
048addec
JD
26161 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
26162 instead of only for COMPOSITION_DISABLED.
9b46de40 26163
048addec 261642001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 26165
048addec 26166 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 26167
048addec 26168 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 26169
048addec
JD
26170 * buffer.h (struct buffer): New field `display_error_modiff'.
26171 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 26172
048addec 26173 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 26174
048addec
JD
26175 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
26176 Call redisplay_window, but not if display_error_modiff field says no.
26177 (redisplay_window_error): New function.
26178 (displayed_buffer): New variable.
26179 (redisplay_internal, redisplay_windows): Call the new functions
26180 instead of redisplay_window directly.
2cd23960 26181
048addec 261822001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 26183
048addec 26184 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 26185
048addec 261862001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 26187
048addec 26188 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 26189 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 26190 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 26191
048addec 261922001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 26193
048addec
JD
26194 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
26195 parameter have a numeric value all the time.
f6fa0866 26196
048addec 26197 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 26198
048addec 261992001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 26200
048addec 26201 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 26202
048addec
JD
26203 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
26204 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 26205
048addec 262062001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 26207
048addec
JD
26208 * xdisp.c (move_it_vertically_backward): Change heuristic
26209 for the case that we didn't move far enough initially.
91c153e2 26210
048addec
JD
26211 * window.c (Frecenter): Simplify computation in the case of window
26212 system frames and ARG < 0; use window_box_height.
65b7d3e7 26213
048addec 262142001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 26215
048addec
JD
26216 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
26217 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 26218
048addec 262192001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 26220
048addec
JD
26221 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
26222 arg is negative.
be676094 26223
048addec 262242001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 26225
048addec
JD
26226 * m/hp800.h: Split the __hpux conditional into the parts
26227 that are right for GNU/Linux too and the parts that are not.
26228 Use the former if GNU_LINUX.
26229 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 26230
048addec 26231 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 26232
048addec 262332001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 26234
048addec
JD
26235 * macros.c, msdos.c, w16select.c: Change doc-string comments to
26236 `new style' [w/`doc:' keyword].
032a857d 26237
048addec 262382001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 26239
048addec
JD
26240 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
26241 before using.
b6270150 26242
048addec 262432001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 26244
048addec
JD
26245 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
26246 keyword].
98cbb9fa 26247
048addec 262482001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 26249
048addec 26250 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 26251
048addec 26252 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 26253
048addec 262542001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 26255
048addec 26256 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 26257 Add comment to explain where the struct came from.
048addec
JD
26258 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
26259 (add_menu_item): Process pop-up menus first to avoid memory leak.
26260 (add_menu_item, w32_menu_display_help): Use `help' field as
26261 Lisp_Object.
26262 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 26263
048addec 262642001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 26265
048addec 26266 * COPYING: Moved back.
fa336b91 26267
048addec
JD
26268 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
26269 Add parentheses around && within ||.
077907d4 26270
048addec 26271 * indent.c (compute_motion): Likewise.
aa2af83a 26272
048addec 26273 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 26274
048addec
JD
26275 * coding.c (setup_coding_system, shrink_encoding_region)
26276 (Fdecode_sjis_char): Likewise.
60a653f1 26277
048addec 262782001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 26279
048addec
JD
26280 * xdisp.c (display_mode_element): Don't read past end of string if
26281 it ends with '%'.
60a653f1 26282
048addec
JD
26283 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
26284 can hold.
60a653f1 26285
048addec
JD
26286 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
26287 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
26288 type changed to Lisp_Object.
26289 (syms_of_data): DEFVAR_LISP them.
60a653f1 26290
048addec 262912001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 26292
048addec
JD
26293 * callproc.c (init_callproc): Set Vdata_directory based on the source
26294 location whenever Emacs was run uninstalled.
60a653f1 26295
048addec 262962001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 26297
048addec
JD
26298 * config.in (HAVE_WORKING_VFORK): New #undefs.
26299 * process.c (create_process):
26300 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
26301 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
26302 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
26303 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
26304 * m/intel386.h (HAVE_VFORK): Likewise.
26305 * m/mips-siemens.h (HAVE_VFORK): Likewise.
26306 * m/mips.h (HAVE_VFORK): Likewise.
26307 * s/freebsd.h (vfork): Remove #define.
26308 * s/lynxos.h (HAVE_VFORK): Remove #undef.
26309 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 26310
048addec 263112001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 26312
048addec
JD
26313 * s/hpux10.h (random): Add undef.
26314 (HAVE_RANDOM): Define it just once.
60a653f1 26315
048addec 263162001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26317
048addec 26318 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 26319
048addec 263202001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 26321
048addec
JD
26322 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
26323 scroll bars of the frame before deleting the frame itself. If the
26324 frame has a widget, delete the frame with XtDestroyWidget, and do
26325 not call XDestroyWindow before that.
60a653f1 26326
048addec 263272001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 26328
048addec 26329 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 26330
048addec 26331 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 26332
048addec 263332001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 26334
048addec
JD
26335 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
26336 excessively large.
60a653f1 26337
048addec
JD
26338 * insdel.c (make_gap_larger): New function.
26339 (make_gap_smaller): New function.
26340 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
26341 Call make_gap_smaller if arg is negative.
60a653f1 26342
048addec 263432001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26344
048addec
JD
26345 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
26346 Pass a dummy argument when calling interrupt_signal.
26347 (parse_menu_item): Mark disabled items before checking for empty def.
26348 (read_char_minibuf_menu_prompt): Make safety more visible.
26349 (read_key_sequence): Add a `first_unbound' variable.
26350 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
26351 unbound prefix as soon as we can detect it.
60a653f1 26352
048addec
JD
26353 * doc.c (Fsnarf_documentation): Add prototype.
26354 (get_doc_string): Handle negative arguments.
26355 (Fdocumentation): Use AREF and ASIZE.
26356 Move the calls to get_doc_string to a single place.
26357 Don't confuse an interactive-spec for a docstring reference.
26358 (Fdocumentation_property): Take advantage of the fact that
26359 get_doc_string now ignores the sign of the docstring position.
60a653f1 26360
048addec 26361 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 26362
048addec 263632001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 26364
a64387ee 26365 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 26366
048addec 263672001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 26368
048addec
JD
26369 * xterm.c (x_draw_image_relief): Use predefined macro instead of
26370 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 26371
048addec 263722001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 26373
048addec
JD
26374 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
26375 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 26376
048addec 26377 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 26378
048addec 263792001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26380
048addec 26381 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 26382
048addec 263832001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 26384
048addec 26385 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 26386
048addec 263872001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 26388
f63fd14e 26389 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 26390
048addec
JD
26391 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
26392 [!WM_MOUSELEAVE]: Define.
60a653f1 26393
048addec
JD
26394 * w32menu.c (current_popup_menu, get_menu_item_info):
26395 (set_menu_item_info): New vars.
26396 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
26397 (w32_menu_show): Set current_popup_menu.
26398 (add_menu_item): Allocate new strings for owner-drawn menu items
26399 and help strings.
26400 Use owner-draw for disabled menu items again.
26401 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
26402 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 26403
048addec
JD
26404 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
26405 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
26406 <WM_EXITMENULOOP>: Free menu strings.
26407 <WM_MOUSELEAVE>: Stop tracking mouse.
26408 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 26409
048addec
JD
26410 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
26411 and mouse face.
60a653f1 26412
048addec 264132001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 26414
048addec
JD
26415 The following changes add left-fringe and right-fringe
26416 frame parameters to adjust fringe widths, or remove one or
26417 both fringes.
60a653f1 26418
048addec
JD
26419 * frame.h (struct frame): Remove trunc_area_pixel_width and
26420 trunc_area_cols fields.
26421 (Qleft_fringe, Qright_fringe): Declare.
26422 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 26423
048addec
JD
26424 * frame.c (Qleft_fringe, Qright_fringe): New vars.
26425 (syms_of_frame): Initialize them.
60a653f1 26426
048addec
JD
26427 * window.c (coordinates_in_window): Handle separate left and right
26428 fringe widths.
60a653f1 26429
048addec
JD
26430 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
26431 and fringe_cols fields.
26432 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
26433 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
26434 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
26435 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
26436 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
26437 (x_compute_fringe_widths): Add prototype.
60a653f1 26438
048addec
JD
26439 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
26440 fill fringe evenly with small dashes.
f63fd14e 26441 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
26442 clip the new ZV bitmap to avoid jitter between rows.
26443 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
26444 background. Don't draw fringe bitmaps if fringe width is zero.
26445 (x_compute_fringe_widths): New function.
26446 (x_new_font, x_set_window_size_1): Use it.
60a653f1 26447
048addec
JD
26448 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
26449 (x_set_frame_parameters): Process `font' parameter before other
26450 parameters as fringe widths depend on it.
26451 (x_set_fringe_width): New function.
26452 (x_figure_window_size): Use x_compute_fringe_widths.
26453 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
26454 parameters.
60a653f1 26455
048addec
JD
26456 * widget.c (set_frame_size): Use x_compute_fringe_widths.
26457 (EmacsFrameSetCharSize): Ditto.
60a653f1 26458
048addec
JD
26459 * w32term.h: Merged changes from xterm.h.
26460 * w32term.c: Merged changes from xterm.c.
26461 * w32fns.c: Merged changes from xfns.c.
60a653f1 26462
048addec 264632001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 26464
048addec 26465 * COPYING: Removed.
60a653f1 26466
048addec 264672001-11-29 Dave Love <fx@gnu.org>
60a653f1 26468
048addec
JD
26469 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
26470 extra extra slot.
26471 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 26472
048addec 264732001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 26474
048addec
JD
26475 * fileio.c (file-name-coding-system)
26476 (default-file-name-coding-system): Doc fix (links to referenced
26477 variables added).
60a653f1 26478
048addec 264792001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26480
048addec
JD
26481 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
26482 Add dummy uses of gcproN variables.
60a653f1 26483
048addec
JD
26484 * category.c (describe_category, describe_category_1)
26485 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
26486 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 26487
048addec 264882001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 26489
048addec 26490 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 26491
048addec
JD
26492 * Makefile.in (lispdir): New variable, referring to build dir.
26493 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 26494
048addec 264952001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 26496
048addec
JD
26497 * w32menu.c (w32_menu_display_help): Actually add the new argument
26498 OWNER.
60a653f1 26499
048addec 265002001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 26501
048addec
JD
26502 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
26503 menu items. From David Ponce <dponce@wanadoo.fr>.
26504 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
26505 conditionally.
f63fd14e 26506 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 26507 help event in the owner frame's keyboard buffer.
60a653f1 26508
048addec
JD
26509 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
26510 (Fx_show_tip): Don't subtract last width from row width.
26511
26512 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
26513 (w32_read_socket): Use EQ to compare frames.
60a653f1 26514
048addec 265152001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 26516
048addec
JD
26517 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
26518 OVERLAPS_P.
60a653f1 26519
048addec 265202001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 26521
048addec
JD
26522 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
26523 `gcpro3' and `gcpro4'.
60a653f1 26524
048addec 26525 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 26526
048addec 265272001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26528
048addec 26529 * ccl.c: Use AREF and ASIZE.
60a653f1 26530
048addec 265312001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26532
048addec
JD
26533 * lisp.h (run_hook_list_with_args): Remove.
26534 (LIST_END_P): Fix call to wrong_type_argument.
26535 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 26536
048addec 265372001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26538
048addec
JD
26539 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
26540 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 26541
048addec
JD
26542 * eval.c: Use AREF and ASIZE.
26543 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 26544
048addec
JD
26545 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
26546 which match the end of the file-name.
26547 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
26548 is not a valid env var, but leave it as is instead.
60a653f1 26549
048addec
JD
26550 * keymap.c (access_keymap): Handle t bindings like nil bindings.
26551 Make nil bindings in char-tables transparent.
26552 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 26553
048addec 265542001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 26555
048addec
JD
26556 * textprop.c (set_text_properties_1): Allow START, END in either order.
26557 Do nothing if range is empty.
60a653f1 26558
048addec 26559 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 26560
048addec
JD
26561 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
26562 (clean): Not here.
60a653f1 26563
048addec 265642001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26565
048addec
JD
26566 * textprop.c (set_text_properties_1): Clearly mark that the
26567 interval should not be empty.
60a653f1 26568
048addec
JD
26569 * intervals.c (graft_intervals_into_buffer):
26570 Don't call set_text_properties_1 on an empty interval.
60a653f1 26571
048addec 265722001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 26573
048addec 26574 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 26575
048addec
JD
26576 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
26577 don't lose the data in it.
60a653f1 26578
048addec 265792001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 26580
048addec 26581 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 26582
c62aec78 26583 * buffer.c (Fkill_buffer): Likewise.
60a653f1 26584
c62aec78 26585 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 26586
048addec 265872001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26588
048addec 26589 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 26590
048addec 265912001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 26592
048addec
JD
26593 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
26594 Niemitalo <kon@iki.fi>.
60a653f1 26595
048addec 265962001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 26597
048addec 26598 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 26599
048addec
JD
26600 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
26601 (Fx_show_tip): Block input during frame creation.
26602 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 26603
048addec 266042001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 26605
048addec
JD
26606 * lread.c (Fload): Detect recursive load error for more than 3
26607 nestings of the same file.
26608 (Vrecursive_load_depth_limit): Variable deleted.
26609 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 26610
048addec 266112001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 26612
048addec
JD
26613 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
26614 mouse position if either left or top is not specified.
60a653f1 26615
048addec
JD
26616 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
26617 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
26618 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
26619 (my_create_tip_window): Assign tip_window.
26620 (x_create_tip_frame): Use same defaults as X.
26621 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 26622 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 26623
048addec
JD
26624 * w32term.c (x_after_update_window_line): Doc fix.
26625 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
26626 frames.
26627 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 26628
048addec
JD
26629 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
26630 for all Windowed systems.
60a653f1 26631
048addec 266322001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 26633
048addec
JD
26634 * msdos.c (IT_clear_screen): If the frame's faces are not yet
26635 realized, use the initial screen colors to clear the screen.
60a653f1 26636
048addec 266372001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 26638
048addec
JD
26639 * textprop.c (Fset_text_properties): Remove unused variables
26640 `unchanged', `prev_changed', `s' and `len'.
60a653f1 26641
048addec
JD
26642 * search.c (Freplace_match): Remove unused variable `inslen'.
26643
26644 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
26645
266462001-11-22 Jason Rumney <jasonr@gnu.org>
26647
26648 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
26649 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
26650 (my_create_tip_window): New function.
26651 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
26652 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
26653
266542001-11-20 Jason Rumney <jasonr@gnu.org>
26655
26656 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
26657 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
26658
26659 * w32fns.c (Vw32_system_coding_system): Remove.
26660 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
26661
266622001-11-19 Stefan Monnier <monnier@cs.yale.edu>
26663
26664 * fileio.c (Fwrite_region): Move choose_write_coding_system to
26665 after build_annotations.
26666
26667 * syntax.c (describe_syntax): Add dummy arg.
26668 (describe_syntax_1): Update call to describe_vector.
26669
26670 * category.c (describe_category): Add dummy arg.
26671 (describe_category_1): Update call to describe_vector.
26672
26673 * keymap.c (Fdescribe_vector): Add `describer' parameter.
26674 (describe_command, describe_translation): Add dummy second param.
26675 (describe_map): Call elt_describer with two arguments.
26676 (describe_vector_princ): Add `fun' parameter.
26677 Call it instead of the hardcoded `princ'.
26678 (describe_vector): Add arg `args'.
26679 Pass it as a new second argument to elt_describer.
60a653f1 26680
048addec 26681 * keymap.h (describe_vector): Update prototype.
60a653f1 26682
048addec
JD
26683 * frame.c: Don't include keymap.h any more.
26684 (keys_of_frame): Remove.
60a653f1 26685
048addec 26686 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 26687
048addec 26688 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 26689
048addec 266902001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 26691
048addec
JD
26692 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
26693 if defined, 0 otherwise.
26694 (MAP_FAILED): Define if not defined and use it to test mmap failure.
26695 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 26696
048addec 266972001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 26698
048addec 26699 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 26700
048addec 267012001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 26702
048addec
JD
26703 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
26704 (x_draw_bar_cursor): If the background color of the glyph under
26705 the cursor equals the frame's cursor color, use the glyph's
26706 foreground color for drawing the bar cursor.
26707 (x_after_update_window_line): Clear internal border in different
26708 circumstances.
26709 (w32_set_vertical_scroll_bar): Check for width and height > 0.
26710 (w32_draw_relief_rect): Correct relief by 1 pixel.
26711 (x_set_glyph_string_background_width):
26712 Set extends_to_end_of_line_p if the row's fill_line_p is set and
26713 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
26714 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
26715 if cursor_in_non_selected_windows is false.
26716 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
26717 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
26718 Notice if cursor gets overwritten.
26719 (notice_overwritten_cursor): Renamed from
26720 note_overwritten_text_cursor. Rewritten to take glyph widths
26721 into account, and to take X positions as parameters.
26722 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
26723 around call to x_draw_glyphs.
26724 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
26725 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
26726 color to use for image glyph reliefs.
26727 (x_draw_image_relief): Accept zero tool_bar_button_relief.
26728 (glyph_rect): Remove unused variable `area'.
60a653f1 26729
048addec
JD
26730 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
26731 some items.
26732 (x_set_internal_border_width): Set frame garbaged when window
26733 doesn't exist yet.
26734 (Fx_create_frame): Accept zero tool_bar_button_relief.
26735 (x_clear_image_1, four_corners_best, image_background)
26736 (image_background_transparent): New functions.
26737 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
26738 (gs_format): Add `:background' entry.
26739 (lookup_image): Set IMG's background color if specified.
26740 (pbm_load, xbm_load_image, png_load): Set IMG's background field
26741 when appropriate.
26742 (x_clear_image_1): Reset `background_valid' and
26743 `background_transparent_valid' fields.
26744 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
26745 calculating it here. Set IMG's background_transparent field.
26746 (enum xpm_keyword_index): Add XPM_BACKGROUND.
26747 (enum png_keyword_index): Add PNG_BACKGROUND.
26748 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
26749 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
26750 (enum gif_keyword_index): Add GIF_BACKGROUND.
26751 (enum gs_keyword_index): Add GS_BACKGROUND.
26752 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
26753 Pre-calculate image background color where necessary.
26754 (x_create_x_image_and_pixmap, xbm_load, gs_load):
26755 Use display info's n_cbits entry for screen depth.
26756 (Fx_show_tip): Remove unused variables `buffer', `top',
26757 `left', `max_width' and `max_height'.
60a653f1 26758
048addec 26759 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 26760
048addec 267612001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 26762
048addec 26763 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 26764
048addec 267652001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 26766
048addec 26767 * frame.c (Fframe_live_p): Doc fix.
60a653f1 26768
048addec 267692001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 26770
048addec
JD
26771 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
26772 (message_dolog_marker3): New static variables hold three markers.
26773 (syms_of_xdisp): Initialize and staticpro them.
26774 (message_dolog): Use message_dolog_marker1..3 instead of
26775 allocating markers each time. Unchain them when done.
60a653f1 26776
048addec 267772001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 26778
048addec 26779 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 26780
048addec 267812001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 26782
048addec 26783 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 26784
048addec 267852001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 26786
048addec 26787 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 26788
048addec 267892001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 26790
048addec 26791 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 26792
048addec 267932001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 26794
048addec
JD
26795 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
26796 with invalid position.
60a653f1 26797
048addec 267982001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 26799
048addec 26800 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 26801
048addec
JD
26802 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
26803 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
26804 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 26805
048addec 26806 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 26807
048addec 268082001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26809
048addec
JD
26810 * fileio.c (build_annotations): Split off the tail.
26811 (build_annotations_2): New fun. Extracted from build_annotations.
26812 (Fwrite_region): Split the call to build_annotations into two
26813 calls to build_annotations and build_annotations_2.
077907d4 26814
048addec 268152001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 26816
048addec
JD
26817 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
26818 clear_waiting_for_input with argument.
1756e2fb 26819
048addec 26820 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 26821
048addec 26822 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 26823
048addec 26824 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 26825
048addec 26826 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 26827
048addec 268282001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 26829
048addec
JD
26830 * fileio.c (choose_write_coding_system): New fun, extracted
26831 from Fwrite_region.
26832 (Fwrite_region): Use it.
fa336b91 26833
048addec
JD
26834 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
26835 (funcall_lambda, run_hook_with_args): Make static and add prototype.
26836 (ml_apply, find_handler_clause): Add prototype.
fa336b91 26837
048addec 268382001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 26839
048addec 26840 * config.in: Add #undef HAVE_COFF_H.
fa336b91 26841
048addec
JD
26842 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
26843 Required for ISC 4.1.
fa336b91 26844
048addec 268452001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 26846
52eb0373 26847 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 26848 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 26849
048addec 268502001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 26851
048addec
JD
26852 The following changes are made to clean up the various internal
26853 references to the fringes to actually use the term `fringe' for
26854 them. Previously, they were called `flags areas', `bitmap areas',
26855 `left/right side of windows', or implicitly as `flags' or
26856 `bitmaps':
fa336b91 26857
048addec 26858 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 26859 Comments fixed. Use renamed symbols.
06e8f738 26860
f63fd14e 26861 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 26862
048addec
JD
26863 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
26864 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
26865 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 26866
048addec 26867 * msdos.c: Comment fix.
9ce647f4 26868
048addec 26869 * w32fns.c: Use renamed symbols.
9b784ab8 26870
f63fd14e 26871 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
26872 (fringe_bitmap_type): Renamed from bitmap_type.
26873 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26874 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
26875 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 26876
f63fd14e 26877 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
26878 (fringes_extra): Renamed from flags_areas_extra.
26879 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26880 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26881 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26882 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26883 (FRAME_X_LEFT_FRINGE_WIDTH):
26884 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26885 (FRAME_X_RIGHT_FRINGE_WIDTH):
26886 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 26887
048addec 26888 * widget.c: Use renamed symbols.
9f7e52b4 26889
f63fd14e 26890 * window.c: Comment fixes. Use renamed symbols.
048addec 26891 (coordinates-in-window-p): Doc fix.
fa336b91 26892
f63fd14e 26893 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 26894
048addec 26895 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 26896
048addec 26897 * xfns.c: Use renamed symbols.
89512fcd 26898
f63fd14e 26899 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
26900 (fringe_bitmap_type): Renamed from bitmap_type.
26901 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26902 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
26903 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 26904
f63fd14e 26905 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
26906 (fringes_extra): Renamed from flags_areas_extra.
26907 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26908 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26909 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26910 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26911 (FRAME_X_LEFT_FRINGE_WIDTH):
26912 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26913 (FRAME_X_RIGHT_FRINGE_WIDTH):
26914 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
26915
269162001-11-15 Jason Rumney <jasonr@gnu.org>
26917
26918 * w32menu.c (add-menu-item): Make help_echo and radio buttons
26919 work for most menu items. From David Ponce
26920 <david.ponce@wanadoo.fr>.
26921
269222001-11-15 Gerd Moellmann <gerd@gnu.org>
26923
26924 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
26925 Some x_set_* function expect to be called even if old and new
26926 value are equal.
26927
26928 * xdisp.c (build_desired_tool_bar_string): Accept zero
26929 tool_bar_button_relief.
26930
26931 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
26932
26933 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
26934
26935 * xterm.c (x_draw_bar_cursor): If the background color of the
26936 glyph under the cursor equals the frame's cursor color, use
26937 the glyph's foreground color for drawing the bar cursor.
26938
26939 * dispnew.c (direct_output_forward_char): Fix character/byte
26940 position comparison.
7d18891d 26941
048addec 269422001-11-15 Miles Bader <miles@gnu.org>
d2936d21 26943
048addec
JD
26944 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
26945 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
26946 Update arguments to find_field.
26947 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
26948 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
26949 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
26950 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 26951
048addec 269522001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 26953
048addec 26954 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 26955
048addec
JD
26956 * dispextern.h (image_background, image_background_transparent):
26957 Conditionalize on HAVE_X_WINDOWS.
7d18891d 26958
048addec 269592001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 26960
048addec 26961 * print.c (Fprin1_to_string): Doc fix.
7d18891d 26962
048addec 26963 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 26964
048addec 26965 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 26966
048addec 26967 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 26968
048addec 26969 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 26970
048addec 26971 * eval.c (syms_of_eval): Doc fix.
7d18891d 26972
048addec 26973 * coding.c (syms_of_coding): Doc fix.
7d18891d 26974
048addec 26975 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 26976
048addec 26977 * dispnew.c (syms_of_display): Doc fix.
9474c847 26978
048addec 26979 * category.c (Fget_unused_category): Doc fix.
9474c847 26980
048addec 26981 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 26982
048addec 269832001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 26984
048addec 26985 * print.c (prin1, print): Doc fix.
e3059a5d 26986
048addec 269872001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 26988
048addec
JD
26989 * fontset.h: Remove declarations of variables
26990 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 26991
048addec
JD
26992 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
26993 `Vclip_large_size_font'.
eae936e2 26994
048addec 269952001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 26996
048addec 26997 * w32fns.c: Doc fix.
ddb67bdc 26998
048addec 269992001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 27000
048addec 27001 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 27002
048addec 27003 * fns.c: Doc fix.
6e1b91d7 27004
048addec 27005 * emacs.c: Doc fix.
1c1d3d69 27006
048addec 27007 * coding.c: Doc fix.
1c1d3d69 27008
048addec
JD
27009 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
27010 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
27011 `new style' [w/`doc:' keyword].
b6f4c7ba 27012
048addec 270132001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 27014
048addec
JD
27015 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
27016 LeaveNotify events. Only FocusIn and FocusOut do that now.
27017 (x_display_and_set_cursor): Do display hollow cursors in active
27018 minibuffer windows when they are not selected.
b6f4c7ba 27019
048addec 270202001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 27021
048addec 27022 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
27023 * w32term.c: Change doc-string comments to `new style'
27024 [w/`doc:' keyword]. Doc fixes.
a89f435d 27025
048addec
JD
27026 * w32fns.c: Don't define max.
27027 (Fx_open_connection): Only execute once.
a4cd0cd7 27028
048addec 270292001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 27030
048addec
JD
27031 * ccl.c: Change macros to use do-while block instead of if-else.
27032 Use braces to follow GNU Coding Standards.
eafb659a 27033
048addec 270342001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 27035
048addec 27036 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 27037
048addec 27038 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 27039
048addec
JD
27040 * insdel.c (replace_range): Use adjust_markers_for_replace
27041 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 27042
78819ebb 27043 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 27044
048addec
JD
27045 * textprop.c (set_text_properties_1): New subroutine
27046 broken out of set_text_properties.
27047 (set_text_properties): Use set_text_properties_1.
91823618 27048
048addec
JD
27049 * intervals.c (graft_intervals_into_buffer):
27050 Use set_text_properties_1 to clear out properties.
91823618 27051
048addec
JD
27052 * search.c (Freplace_match): Use replace_range to insert
27053 and delete. Don't request property inheritance from
27054 surrounding text.
86928dfb 27055
048addec 270562001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 27057
048addec 27058 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 27059 vertical fonts. Allow them if face name is explicitly specified.
048addec 27060 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 27061
048addec 270622001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 27063
048addec
JD
27064 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
27065 instead of malloc/free.
a78e0303 27066
048addec 270672001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 27068
048addec
JD
27069 * xfaces.c (merge_face_vectors): Use braces to follow GNU
27070 Coding Standards.
27071 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 27072
048addec 27073 * buffer.c (Fbury_buffer): Likewise.
0c99b139 27074
048addec 27075 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 27076
048addec
JD
27077 * coding.c (encode_coding): Use precomputed value of `src'.
27078 (encode_coding): Remove unused variable `src_end'.
27079 (code_convert_region): Remove unused variables `count'.
830ddd77 27080
048addec 270812001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 27082
048addec
JD
27083 * w32term.c (x_display_and_set_cursor): Do not move system caret
27084 if cursor_glyph is NULL.
55c6d645 27085
048addec 270862001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 27087
048addec 27088 * keymap.c (access_keymap): Fix compilation error.
5de38842 27089
048addec 270902001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 27091
048addec 27092 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 27093
048addec 270942001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 27095
048addec
JD
27096 * intervals.c (graft_intervals_into_buffer):
27097 Remove #ifdef'd-out code.
27098 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 27099
048addec
JD
27100 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
27101 code (eval-current-buffer).
27102 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 27103
048addec 271042001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 27105
048addec 27106 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 27107
048addec 271082001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 27109
048addec 27110 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 27111
048addec
JD
27112 * keyboard.c (make_lispy_event): Check integerness and fix
27113 Lisp_Object/int mixup.
17893c65 27114
048addec 271152001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 27116
048addec 27117 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 27118
048addec
JD
27119 * fontset.c (fontset_font_pattern): Remove unused variable
27120 `family_registry'.
d5360cc7 27121
048addec 27122 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 27123
048addec 271242001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 27125
048addec 27126 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 27127
048addec
JD
27128 * buffer.c (Fkill_buffer): Don't delete auto save file
27129 if buffer is modified.
d9d54213 27130
048addec 271312001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 27132
048addec
JD
27133 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
27134 CHECK_NUMBER_CDR.
b116830b 27135
048addec 271362001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 27137
048addec 27138 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 27139
048addec 271402001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 27141
048addec 27142 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 27143
048addec 271442001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 27145
048addec 27146 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 27147
048addec 271482001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 27149
048addec
JD
27150 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
27151 the program image directly.
982f6c7e 27152
048addec 271532001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 27154
048addec 27155 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 27156
048addec 271572001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 27158
048addec
JD
27159 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
27160 and CHECK_BUFFER.
d31053f9 27161
048addec
JD
27162 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
27163 (record_char): Likewise.
d31053f9 27164
048addec
JD
27165 * keyboard.c (make_lispy_event): Don't insist a drag event must
27166 move to a different buffer position. Instead, check for moving at
27167 least double_click_fuzz.
982f6c7e 27168
048addec 27169 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 27170
048addec 27171 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 27172
048addec
JD
27173 * indent.c (current_column_1, Fmove_to_column): Separate the code
27174 for display-table glyphs from the code for buffer text, to fix
27175 bugs in the former.
830047fd 27176
048addec 271772001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 27178
048addec
JD
27179 * buffer.c (Fbuffer_local_value): New function.
27180 (syms_of_buffer): Defsubr it.
2df5238c 27181
048addec
JD
27182 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
27183 value of `cursor-in-non-selected-windows'.
4e397688 27184
048addec
JD
27185 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
27186 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
27187 (syms_of_xdisp): Initialize it.
48b0f3ae 27188
048addec 271892001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 27190
048addec 27191 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 27192
048addec
JD
27193 * coding.c: Change doc-string comments to `new style' [w/`doc:'
27194 keyword].
3ecaf7e5 27195
048addec
JD
27196 * eval.c (top_level_value, top_level_set): Remove commented and
27197 #ifdef'd-out code.
27198 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 27199
048addec 272002001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 27201
048addec 27202 * xfns.c: Include unistd.h, if it exists.
8db2e33b 27203
048addec 27204 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 27205
048addec 27206 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 27207
048addec 272082001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 27209
048addec
JD
27210 * lisp.h (CHECK_STRING_CAR): New macro.
27211 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
27212 treating XCAR and XCDR as lvalues.
27213 (openp): Use CHECK_STRING_CAR.
27214 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 27215
048addec 272162001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 27217
048addec
JD
27218 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
27219 (SIGMASKTYPE): Define.
1b1acc13 27220
048addec 27221 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 27222
048addec 272232001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 27224
048addec
JD
27225 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
27226 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
27227 Fix typos in comments.
6cb16f95 27228
048addec
JD
27229 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
27230 and #ifdef'd-out code.
27231 Fix and reindent comments.
6cb16f95 27232
048addec 27233 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 27234
048addec
JD
27235 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
27236 argument `i' in macros.
6cb16f95 27237
048addec
JD
27238 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
27239 `i' in macros.
7e9d3c2f 27240
048addec
JD
27241 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
27242 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
27243 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
27244 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
27245 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
27246 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
27247 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
27248 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
27249 in macros.
7e9d3c2f 27250
048addec
JD
27251 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
27252 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
27253 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
27254 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
27255 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
27256 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
27257 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
27258 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
27259 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
27260 (remove unused second argument).
7e9d3c2f 27261
048addec 272622001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 27263
048addec
JD
27264 * syntax.c (describe_syntax): New wrapper.
27265 (Finternal_describe_syntax_value): Rename from describe_syntax.
27266 Don't insert space at front and \n at the end.
27267 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 27268
048addec
JD
27269 * regex.c (re_wctype): Try to fix some warnings.
27270 (regcomp, regexec): Don't forget the __restrict.
9ba48103 27271
048addec 272722001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 27273
048addec 27274 * textprop.c (Fget_char_property): Doc fix.
9ba48103 27275
048addec 272762001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 27277
048addec 27278 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 27279
048addec 27280 * data.c (Fsetq_default): Ditto.
c22e59e1 27281
048addec 27282 * callint.c (Finteractive): Ditto.
9271ed2c 27283
048addec 272842001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 27285
048addec
JD
27286 * macros.c: Don't include keymap.h any more.
27287
272882001-11-01 Richard M. Stallman <rms@gnu.org>
27289
27290 * data.c (Fmake_local_variable): Doc fix.
27291
27292 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
27293 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 27294
048addec 27295 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
27296 bindings along with or instead of the buffer local map.
27297 Make the overriding maps override what they should.
27298
f00691a3 272992001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
27300
27301 * window.c (grow_mini_window): Fix typo in comment.
27302
27188d11
GM
273032001-11-01 Gerd Moellmann <gerd@gnu.org>
27304
7b49b9d2
GM
27305 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
27306 (XTset_vertical_scroll_bar): Likewise.
27307
43f7c3ea
GM
27308 * xfns.c (x_build_heuristic_mask): Use four_corners_best
27309 instead of IMAGE_BACKGROUND.
c22e59e1 27310
b350c2e5
GM
27311 * xfns.c (four_corners_best): Reindent.
27312
c22e59e1 27313 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
27314 Handle :box so that it is possible to specify sexprs.
27315
bf00d461
EZ
273162001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
27317
27318 * s/hpux11.h: New file.
27319
f00691a3 273202001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 27321
2b209b97
PJ
27322 * emacs.c (USAGE1): Show command line option --no-window-system
27323 instead of --no-windows in usage.
27324 (standard_args): Rename --no-windows to --no-window-system.
27325 (bug_reporting_address): Follow Emacs coding conventions.
27326
9dbc9081
PJ
27327 * eval.c (Fcommandp): Doc fix.
27328 Change doc-string comments to `new style' [w/`doc:' keyword].
27329
4e10df59
PJ
27330 * frame.c (Fframe_live_p): Doc fix.
27331
27332 * buffer.c (selective-display-ellipses): Doc fix.
27333
dd387b25
GM
273342001-10-31 Gerd Moellmann <gerd@gnu.org>
27335
fe957e65
GM
27336 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
27337
dd387b25
GM
27338 * xfaces.c (realize_x_face): If C is not a single-byte character,
27339 set the face's colors_copied_bitwise_p instead of the defaulted_p
27340 members which have a different meaning.
27341 (free_face_colors): Do nothing for a face whose colors have been
27342 copied bitwise.
27343
c22e59e1 27344 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 27345
f00691a3 273462001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 27347
687784e8
PJ
27348 * marker.c, mocklisp.c: Change doc-string comments to `new style'
27349 [w/`doc:' keyword].
2e1280f8 27350
b9d9a9b9
GM
273512001-10-31 Gerd Moellmann <gerd@gnu.org>
27352
27353 * fns.c (require_unwind): Return Lisp_Object.
27354
f00691a3 273552001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 27356
fa1361cb
PJ
27357 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
27358 (last-input-char): Revert doc-string to be the same as the
27359 doc-string of `last-input-event'.
27360
6c465a15 27361 * xdisp.c: Fix typos in comments.
48400103 27362
eafa3196
GM
273632001-10-31 Gerd Moellmann <gerd@gnu.org>
27364
27365 * window.c (grow_mini_window): Handle case that the root
27366 window is already smaller than the nominal mininum height.
27367
747d3f2a
SM
273682001-10-30 Stefan Monnier <monnier@cs.yale.edu>
27369
bf9bb76f
SM
27370 * emacs.c (main): Don't call keys_of_macros any more.
27371
27372 * lisp.h (keys_of_macros): Remove.
27373
27374 * macros.c (keys_of_macros): Remove.
27375
747d3f2a
SM
27376 * xfaces.c (Fface_attribute_relative_p): Declare args.
27377
5e905a57
JR
273782001-10-30 Jason Rumney <jasonr@gnu.org>
27379
27380 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
27381 (enum_font_cb2): Ignore fonts with vertical orientation.
27382
3a426197
RS
273832001-10-30 Richard M. Stallman <rms@gnu.org>
27384
27385 * keyboard.c (Finput_pending_p): Doc fix.
27386
a742d646
GM
273872001-10-30 Gerd Moellmann <gerd@gnu.org>
27388
259cf6bc
GM
27389 * xterm.c (x_after_update_window_line): Don't run the code
27390 clearing in borders for rows whose visible height is 0.
27391
3f99f948
GM
27392 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
27393 resized_p flag is set. If not set, use the much less flickering
27394 method previously used.
27395
27396 * dispnew.c (change_frame_size_1): Set frame's resized_p.
27397
27398 * frame.h (struct frame) <resized_p>: New member.
27399
b4a3be43
GM
27400 * lread.c (to_multibyte): Ensure read_buffer is at least twice
27401 as large as the number of bytes to convert.
747d3f2a 27402
a742d646
GM
27403 * lread.c (to_multibyte): New function.
27404 (read1): Use it.
27405
cacbb9e9
EZ
274062001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
27407
27408 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
27409
99cb6b2f
GM
274102001-10-30 Gerd Moellmann <gerd@gnu.org>
27411
327f42ee 27412 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
27413 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
27414 if the row's fill_line_p is set and drawing the last glyph with
27415 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 27416
99cb6b2f
GM
27417 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
27418
8e8223e2
SM
274192001-10-29 Stefan Monnier <monnier@cs.yale.edu>
27420
27421 * xmenu.c: Include coding.h and charset.h.
27422 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
27423 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
27424 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
27425 Explicitly set wv->help. Use `TRUE' rather than `True'.
27426 (menu_help_callback): Use empty_string.
27427
27428 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
27429 (Fx_popup_dialog): Explicitly init f.
27430 (w32_menu_display_help): Use empty_string.
27431
4d083a8f
RS
274322001-10-29 Richard M. Stallman <rms@gnu.org>
27433
b2304472
RS
27434 * fns.c (Frequire): Detect recursive try to require the same
27435 feature 3 or more levels deep, and get error.
27436 (require_unwind): New subroutine.
27437 (require_nesting_list): New variable.
27438 (syms_of_fns): Init and staticpro it.
27439
4d083a8f
RS
27440 * print.c (print_object): Clarify indication of insertion type.
27441
2fe41216
EZ
274422001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
27443
90480000
EZ
27444 * coding.c (syms_of_coding): Document that locale-coding-system is
27445 used for decoding input on X.
27446
2fe41216
EZ
27447 * window.c (Fscroll_left, Fscroll_right): Doc fix.
27448
f00691a3 274492001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
27450
27451 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
27452 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
27453
60ebcfe8
GM
274542001-10-29 Gerd Moellmann <gerd@gnu.org>
27455
9a7bdceb
GM
27456 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
27457 use NO_CURSOR if cursor_in_non_selected_windows is false.
27458
3f08fcd2
GM
27459 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
27460 the slant attribute if FRAME is t.
27461
0ccfdad2
GM
27462 * xfns.c (x_set_internal_border_width): Set frame garbaged
27463 when X window doesn't exist yet.
27464
ef253080
GM
27465 * xterm.c (x_after_update_window_line): Clear internal border
27466 in different circumstances.
b116830b 27467
60ebcfe8
GM
27468 * xterm.c (XTread_socket) <KeyPress>: Don't use
27469 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
27470 <handa@etl.go.jp>.
27471
73d25f9c
EZ
274722001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
27473
27474 * m/ibms390.h: New file. From Adam Thornton
27475 <athornton@sinenomine.net>.
27476
cac1daf0
GM
274772001-10-28 Gerd Moellmann <gerd@gnu.org>
27478
053b3256 27479 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 27480
cac1daf0
GM
27481 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
27482 a loop counter.
27483
f00691a3 274842001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 27485
f9711de4 27486 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 27487
4707d2d0
PJ
27488 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
27489 keyword].
27490 Fix typos in comments.
b116830b 27491
d883731c
PJ
27492 * emacs.c (bug_reporting_address): New function.
27493 Use it when displaying usage message.
27494
04012254
PJ
27495 * minibuf.c (read_minibuf): Remove unused external declaration of
27496 variable `Qread_only'.
27497
13b1a09c
PJ
27498 * keymap.c (access_keymap): Remove unused variable `charset'.
27499
5bbf4378
MB
275002001-10-28 Miles Bader <miles@gnu.org>
27501
27502 * xfaces.c (merge_face_heights): Handle TO being relative as well.
27503 Remove #ifdef'd-out code.
27504 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
27505 (syms_of_xfaces): Initialize them.
27506
1ce1e4ee
JR
275072001-10-27 Jason Rumney <jasonr@gnu.org>
27508
27509 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
27510 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
27511 position using the system caret.
27512
27513 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
27514 (w32_system_caret_height, w32_system_caret_x)
27515 (w32_system_caret_y): New variables for tracking system caret.
27516 (w32_initialize): Initialize them.
c2d53558 27517 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 27518
c2d53558
SM
27519 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
27520 New messages types.
1ce1e4ee
JR
27521
27522 * w32term.c (note_mouse_highlight): Clear old help_echo.
27523
f00691a3 275242001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 27525
bb4600a4
PJ
27526 * xterm.c: Fix typo in a comment.
27527
7db35a48
PJ
27528 * emacs.c: Fix typos in comments.
27529 Remove unnecessary spaces.
27530 Change doc-string comments to `new style' [w/`doc:' keyword].
27531 (USAGE2): Fix typos in usage string.
27532
a7248e4f
PJ
27533 * xterm.c: Fix typo in a comment.
27534
52eb0373 27535 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
27536 emacs.c.
27537
62725a92
GM
275382001-10-27 Gerd Moellmann <gerd@gnu.org>
27539
798dbe1f 27540 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 27541 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
27542 farther backward when target_y was not reached.
27543
62725a92
GM
27544 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
27545 Display errno only if non-zero.
27546 (sound_warning): New function.
27547 (vox_configure): Don't treat failing to set sample rate as error.
27548 (various places): Improve error messages.
27549
d4e34d24
EZ
275502001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
27551
944e6f60
EZ
27552 * fileio.c (Faccess_file): Run the argument filename through
27553 Fexpand_file_name, before using it.
27554
d4e34d24
EZ
27555 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
27556 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
27557
38d2af0c
GM
275582001-10-26 Gerd Moellmann <gerd@gnu.org>
27559
da80a8d5
GM
27560 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
27561
38d2af0c
GM
27562 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
27563 Fix clearing in the case of scroll bars on the right.
c2d53558 27564
45de4a6f 275652001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
27566
27567 * w32gui.h (XImage): Add a dummy typedef.
27568
fbd5ceb2
GM
275692001-10-26 Gerd Moellmann <gerd@gnu.org>
27570
c2d53558 27571 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 27572
b23236fb
EZ
275732001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
27574
27575 * frame.c (Fframe_parameter): Fix last change.
27576
5d991fc4
EZ
27577 * fileio.c: Revert last change (which removed old commented-out
27578 version of expand-file-name). Add a comment that explains why
27579 this old version should not be removed.
27580
879eadc3
GM
275812001-10-25 Gerd Moellmann <gerd@gnu.org>
27582
75700ff2
GM
27583 * frame.c (Fframe_parameter): Fix a bug whereby some
27584 ``artificial'' frame parameters, like `minibuffer' were not
27585 obtained by calling Fframe_parameters.
27586
dfe92a6a
GM
27587 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
27588 cursor differently.
27589
879eadc3
GM
27590 * xdisp.c (move_it_vertically_backward): Compute line height
27591 differently. Add heuristic to try to be more compatible to 20.x.
27592
e1010ebe
SM
275932001-10-25 Stefan Monnier <monnier@cs.yale.edu>
27594
d73a471b
SM
27595 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
27596
d6da5a06
GM
27597 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
27598 boolean.
e1010ebe 27599
f66bd220
MB
276002001-10-25 Miles Bader <miles@gnu.org>
27601
27602 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
27603 BG is a pointer to a structure, not a structure.
27604 (gif_format, png_format): Add missing commas.
27605
d436d538
RS
276062001-10-24 Richard M. Stallman <rms@gnu.org>
27607
27608 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 27609 (syms_of_xfaces): Defsubr it.
d436d538 27610
f00691a3 276112001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
27612
27613 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
27614 variable `area'.
27615
f00691a3 276162001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 27617
c2d53558 27618 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 27619
e2a57b34
MB
276202001-10-25 Miles Bader <miles@gnu.org>
27621
27622 * dispextern.h (struct image): Add `background',
27623 `background_valid', and `background_transparent' fields.
27624 (image_background, image_background_transparent): New declarations.
27625 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
27626 * xfns.c (image_background, image_background_transparent)
27627 (four_corners_best): New functions.
c2d53558 27628 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
27629 (gs_format): Add `:background' entry.
27630 (lookup_image): Set IMG's background color if specified.
27631 (pbm_load, xbm_load_image, png_load): Set IMG's background field
27632 when appropriate.
27633 (x_clear_image_1): Reset `background_valid' and
27634 `background_transparent_valid' fields.
27635 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
27636 calculating it here. Set IMG's background_transparent field.
27637 (enum xpm_keyword_index): Add XPM_BACKGROUND.
27638 (enum png_keyword_index): Add PNG_BACKGROUND.
27639 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
27640 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
27641 (enum gif_keyword_index): Add GIF_BACKGROUND.
27642 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 27643 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
27644 Pre-calculate image background color where necessary.
27645 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
27646 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
27647 color to use for image glyph reliefs.
27648
b547b6e8
GM
276492001-10-24 Gerd Moellmann <gerd@gnu.org>
27650
d9e3b8c6
GM
27651 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
27652 in full-width rows.
c2d53558 27653
b547b6e8
GM
27654 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
27655 Fix clearing of area not covered by scroll bar.
27656
f00691a3 276572001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 27658
52eb0373 27659 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 27660 and `real_start'.
c2d53558 27661 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
27662 (glyph_rect): Remove unused variable `area'.
27663
76cb5e06
GM
276642001-10-24 Gerd Moellmann <gerd@gnu.org>
27665
bdbdebff 27666 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
27667
27668 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
27669 (row_containing_pos): Take additional argument DY.
27670 Treat rows ending in middle of char differently.
62e33982
GM
27671 (display_line): Handle tabs on window systems differently.
27672
27673 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
27674 with additional argument.
27675
27676 * dispextern.h (row_containing_pos): Adjust prototype.
27677
76cb5e06
GM
27678 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
27679 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
27680 (try_window_id, try_window_reusing_current_matrix)
27681 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 27682 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 27683
f00691a3 276842001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 27685
c9e60620
PJ
27686 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
27687 gnuemacs).
27688 (HAVE_BOXES): Fix typo in comment.
27689 (push_menu_pane): Fix typo in comment.
27690
52eb0373 27691 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
27692 of `Qwhen'.
27693 (single_display_prop_string_p): Remove unused local declarations
27694 of `Qwhen' and `Qmargin'.
27695 (string_buffer_position): Remove unused variable `around'.
27696 (store_frame_title): Remove unused variable `width'.
27697
15c565ac
PJ
27698 * window.c: Don't define max.
27699 (coordinates_in_window): Remove unused variable `uy'.
27700
a8818eb9
PJ
27701 * widget.c: Don't define max.
27702
996fee11
PJ
27703 * process.c: Don't define max.
27704 (create_process): Remove unused variable `buffer'.
27705
496e1a5b
GM
277062001-10-23 Gerd Moellmann <gerd@gnu.org>
27707
c2d53558 27708 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 27709
5905ae8b
EZ
277102001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
27711
27712 * xfaces.c (Finternal_set_lisp_face_attribute)
27713 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
27714 frame is on a windowed display.
27715
24db49fb
GM
277162001-10-23 Gerd Moellmann <gerd@gnu.org>
27717
c2d53558
SM
27718 * dispnew.c (sync_window_with_frame_matrix_rows):
27719 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
27720 of marginal areas.
27721
c2d53558 27722 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 27723
f0487f05
EZ
277242001-10-23 Andreas Schwab <schwab@suse.de>
27725
27726 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
27727 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
27728
f0a48a01
GM
277292001-10-23 Gerd Moellmann <gerd@gnu.org>
27730
c2d53558 27731 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
27732 REAL_END. Notice if cursor gets overwritten.
27733 (notice_overwritten_cursor): Take X positions as parameters.
27734 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
27735 around call to x_draw_glyphs.
27736
f00691a3 277372001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 27738
fc11dff0
PJ
27739 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
27740 instead of C) and usage.
a50a10a0 27741
fc11dff0
PJ
27742 * editfns.c (char-to-string): Fix argument names (use CHAR instead
27743 of C) and usage.
a50a10a0
PJ
27744
27745 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
27746 `left', `max_width' and `max_height'.
27747
8738febd
GM
277482001-10-23 Gerd Moellmann <gerd@gnu.org>
27749
27750 * xdisp.c (display_line): For a tab continued to the next line,
27751 set row's ends_in_middle_of_char_p.
27752
653c329b
GM
277532001-10-22 Gerd Moellmann <gerd@gnu.org>
27754
27755 * xdisp.c (display_line): Fix computation of continuation lines
27756 width for TABs.
27757
f00691a3 277582001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 27759
7ba51063
PJ
27760 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
27761 `Qlaplace'.
27762
f958c5ac
PJ
27763 * fileio.c: Remove unused code.
27764
eb360291
MB
277652001-10-22 Miles Bader <miles@gnu.org>
27766
27767 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
27768 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
27769 Remove `DOC_STRINGS_IN_COMMENTS' cases.
27770
98515cf0
JR
277712001-10-21 Jason Rumney <jasonr@gnu.org>
27772
27773 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
27774
93026d88
EZ
277752001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
27776
27777 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
27778 (Finsert_string): Avoid the multi-line string literals warning.
27779
c9a95b79
MB
277802001-10-22 Miles Bader <miles@gnu.org>
27781
27782 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
27783 (Fdocumentation): Don't use it.
27784 (syms_of_doc): Don't initialize it.
27785
27786 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
27787 * print.c (Fwith_output_to_temp_buffer): Likewise.
27788 * window.c (Fsave_window_excursion): Likewise.
c2d53558 27789 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 27790 (Fsave_restriction): Likewise.
c2d53558
SM
27791 * eval.c (Frun_hooks, Frun_hook_with_args)
27792 (Frun_hook_with_args_until_failure)
27793 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
27794 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
27795 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
27796 (Funwind_protect, Fcondition_case): Likewise.
27797 * coding.c (Ffind_operation_coding_system): Likewise.
27798 * keyboard.c (Ftrack_mouse): Likewise.
27799
a3b10252
MB
278002001-10-21 Miles Bader <miles@gnu.org>
27801
c2d53558 27802 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
27803 (Fmake_hash_table): Add usage: string to doc string.
27804 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 27805 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
27806 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
27807 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
27808 (Fml_prefix_argument_loop): Likewise.
27809
f00691a3 278102001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 27811
c2d53558 27812 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 27813
c6f73eec
PJ
27814 * sysdep.c (init_sys_modes): Change doc-string comments to `new
27815 style' [w/`doc:' keyword].
27816
27817 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
27818 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
27819 comments to `new style' [w/`doc:' keyword].
27820
3cf3436e
JR
278212001-10-21 Jason Rumney <jasonr@gnu.org>
27822
27823 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
27824
c169b8f1
JR
27825 * w32term.c (remember_mouse_glyph): New function.
27826 (w32_mouse_position): Use it.
27827 (note_mouse_movement): If the mouse moved off the glyph, remember
27828 its new position.
c2d53558 27829
4fdd691b
JR
27830 * w32term.h (struct w32_output): Correct spelling of x_compatible.
27831 (w32_display_info): Add mouse_face_overlay.
27832
c169b8f1
JR
27833 * w32term.c (notice_overwritten_cursor): Renamed from
27834 note_overwritten_text_cursor. Rewritten to take glyph widths into
27835 account.
27836 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
27837 (fast_find_string_pos): New function.
27838 (fast_find_position): Return the correct vpos. Add parameter
27839 STOP. In the final row, stop before glyphs having STOP as object.
27840 Don't consider glyphs that are not from a buffer.
27841 (fast_find_position) [0]: Add a presumably more correct version
27842 for after 21.1.
27843 (expose_window_tree, expose_frame): Don't compute intersections here.
27844 (expose_window): Do it here instead.
27845 (expose_window_tree, expose_window, expose_line): Return 1 when
27846 overwriting mouse-face.
27847 (expose_window): If W is the window currently being updated, mark
27848 the frame garbaged.
27849 (expose_frame): If mouse-face was overwritten, redo it.
27850 (x_use_underline_position_properties): New variable.
27851 (syms_of_xterm): DEFVAR_BOOL it.
27852 (x_draw_glyph_string): Add comment to use it in future.
27853 (x_draw_glyph_string): Restore clipping after drawing box.
27854 Fix a computation of the underline position.
27855 (w32_get_glyph_string_clip_rect): Minor cleanup.
27856 (x_fill_stretch_glyph_string): Remove an assertion.
27857 (x_produce_glyphs): Don't convert multibyte characters
27858 to unibyte characters in unibyte buffers.
27859 (cursor_in_mouse_face_p): New function.
27860 (x_draw_stretch_glyph_string): Use it to choose a different GC
27861 when drawing a cursor within highlighted text. Don't draw
27862 background again if it has already been drawn.
27863 (x_draw_glyph_string_box): Don't draw a full-width
27864 box just because the glyph row's full_width_p flag is set.
27865 (x_draw_glyphs): Fix computation of rightmost x for
27866 full-width rows.
27867 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
27868 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 27869 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
27870 (x_update_window_end): Handle overwritten mouse face
27871 also for tool bar windows.
27872 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
27873 DRAW is DRAW_IMAGE_RAISED.
27874 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
27875 actually redrawn. Make the function static.
27876 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
27877 optimize away highlighting if we pass over that same overlay again.
27878 (note_mouse_highlight): Call mouse_face_overlay_overlaps
27879 to detect a case where we have to highlight a different region
27880 despite not having left the currently highlighted region.
27881 Set mouse_face_overlay in the x_display_info. Avoid changing the
27882 mouse pointer shape when show_mouse_face has already done it, or
27883 there is no need. Handle mouse-face and help-echo in strings.
27884 (glyph_rect): New function.
27885 (w32_mouse_position): Use it to raise the threshold for mouse
27886 movement event generation.
27887 (w32_initialize_display_info): Initialize the x_display_info's
27888 mouse_face_overlay.
27889 (w32_set_vertical_scroll_bar): Don't clear a zero height
27890 or width area.
27891 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
27892 a widget to zero height.
27893
3cf3436e 27894 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 27895 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
27896 equivalents in menu_items.
27897 (w32_menu_show): Don't overwrite an item's name with its key
27898 description in case the description is a multibyte string.
27899 (single_submenu): Some cleanup.
27900
27901 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
27902 (postprocess_image): New function.
27903 (lookup_image): Call it for all image types except PostScript.
27904 (x_kill_gs_process): Call postprocess_image.
27905 (tiff_error_handler, tiff_warning_handler): New functions.
27906 (tiff_load): Install them as handlers.
27907 (x_kill_gs_process): Recognize if someone has cleared the image
27908 cache under us.
27909 (valid_image_p): Protect better against invalid image
27910 specifications. Previous code could signal an error.
27911 (Fx_hide_tip, Fshow_tip): Doc fix.
27912 (Fv_max_tooltip_size): New variable.
27913 (syns_of_xfns): DEFVAR_LISP it.
27914 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 27915 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
27916 window_width. Use a maximum tooltip size specified by
27917 Vx_max_tooltip_size, if that has valid contents.
27918 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
27919 Make sure the tooltip is completely visible.
27920 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
27921 (Fx_create_frame): Adjust the frame's height for presence
27922 of the tool bar before calling x_figure_window_size.
27923 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
27924 when the window gets smaller.
27925 (x_set_foreground_color): Set frame's cursor_pixel.
27926 (x_set_foreground_color, x_set_background_color): Cleaned up.
27927 (x_set_font): Handle case of x_new_fontset returning the same name
27928 as before, although there was a change in fontsets.
27929
386ca361
MB
279302001-10-21 Miles Bader <miles@gnu.org>
27931
c2d53558 27932 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
27933 (Flogxor): Add usage: string to doc string.
27934 * charset.c (Fstring): Likewise.
27935 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
27936 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
27937
f00691a3 279382001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 27939
03be2694
PJ
27940 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
27941
27942 * alloc.c: Reindent DEFUNs with doc: keywords.
27943
27944 * abbrev.c (Finsert_abbrev_table_description): Reindent.
27945
14ff1ee0
PJ
27946 * frame.c: Change doc-string comments to `new style' [w/`doc:'
27947 keyword].
27948
2f147815 27949See ChangeLog.9 for earlier changes.
6922b018
KH
27950
27951;; Local Variables:
49b3bd82 27952;; coding: iso-2022-7bit
33462dfa 27953;; add-log-time-zone-rule: t
6922b018 27954;; End:
2a34a036 27955
aaef169d 27956 Copyright (C) 2001, 2002, 2003, 2004, 2005,
4e6835db 27957 2006, 2007 Free Software Foundation, Inc.
7f6d64f8
GM
27958
27959 This file is part of GNU Emacs.
27960
27961 GNU Emacs is free software; you can redistribute it and/or modify
27962 it under the terms of the GNU General Public License as published by
27963 the Free Software Foundation; either version 2, or (at your option)
27964 any later version.
27965
27966 GNU Emacs is distributed in the hope that it will be useful,
27967 but WITHOUT ANY WARRANTY; without even the implied warranty of
27968 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27969 GNU General Public License for more details.
27970
27971 You should have received a copy of the GNU General Public License
27972 along with GNU Emacs; see the file COPYING. If not, write to the
27973 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
27974 Boston, MA 02110-1301, USA.
ab5796a9
MB
27975
27976;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4