(read_minibuf): Clear out all other minibuffer windows.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b20de1cd
RS
12005-12-31 Richard M. Stallman <rms@gnu.org>
2
3 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
4
b5871831
EZ
52005-12-31 Eli Zaretskii <eliz@gnu.org>
6
7 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
8
c26ec07f
LT
92005-12-30 Luc Teirlinck <teirllm@auburn.edu>
10
11 * textprop.c (set_text_properties): Reword description of return value.
12 Return Qnil if caller wants to remove all text properties from a
13 string and the string already has no intervals.
14
0db017c0
SM
152005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
16
17 * term.c (visible_cursor): New boolean var.
18 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
19 visible_cursor.
20 (syms_of_term): Export the new var as "visible-cursor".
21
fc8dc7cf
EZ
222005-12-30 Eli Zaretskii <eliz@gnu.org>
23
24 * .gdbinit: Tell users not to worry about GDB warnings that some
25 functions do not exist in the binary.
26
82a80058
AS
272005-12-30 Andreas Schwab <schwab@suse.de>
28
29 * process.c (Fnetwork_interface_info): Correctly terminate the
30 loop over ifflag_table.
31
c36238ee
RS
322005-12-29 Richard M. Stallman <rms@gnu.org>
33
d11db2c8
RS
34 * lread.c (readevalloop): Test for reading a whole buffer
35 before actually reading anything. Handle all cases, including
36 START = END = nil and an already-narrowed buffer.
37 Convert END to a marker if it is a number.
38
c36238ee
RS
39 * keymap.c (describe_map): Put sparse map elements into an array,
40 sort them, then output a sequence of identical bindings on one line.
41 (struct describe_map_elt): New data type.
42 (describe_map_compare): New function.
43
82bc1fd6
JD
442005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
45
46 * gtkutil.c (xg_get_file_with_chooser): Changed message shown
47 in file chooser.
48
fe5195e8
RS
492005-12-27 Richard M. Stallman <rms@gnu.org>
50
6281e1e8
RS
51 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
52 not the current one.
53
54 * minibuf.c (Fminibuffer_message): Doc fix.
55 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
56
fe5195e8
RS
57 * eval.c (do_autoload): Ignore elements of Vautoload_queue
58 where car is not symbol.
59
0d9fb289
KH
602005-12-27 Kenichi Handa <handa@m17n.org>
61
62 * charset.c (lisp_string_width): Check multibyteness of STRING.
63
ff9c9c59
JD
642005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
65
66 * xfns.c: x_show_hidden_files, new variable.
67 (syms_of_xfns): Defvar it.
68
69 * gtkutil.c (xg_toggle_visibility_cb): New function.
70 (xg_get_file_with_chooser): Add toggle hidden files and a message
71 to the new file chooser dialog. Show hidden files if
72 x_show_hidden_files is non-zero.
73
d7504d5c
RS
742005-12-26 Richard M. Stallman <rms@gnu.org>
75
76 * keyboard.h: Undo previous change.
77
78 * Makefile.in (undo.o): Undo previous change.
79
80 * undo.c: Undo previous change.
81
0ad017ce
LT
822005-12-26 Luc Teirlinck <teirllm@auburn.edu>
83
403c00a5
LT
84 * keyboard.h: extern last_point_position_window.
85
0ad017ce
LT
86 * undo.c: include keyboard.h.
87
403c00a5 88 * Makefile.in (undo.o): Depend on keyboard.h.
0ad017ce 89
91e25f5e
RS
902005-12-26 Richard M. Stallman <rms@gnu.org>
91
d7504d5c
RS
92 * commands.h (last_point_position_window): Declare.
93
91e25f5e
RS
94 * undo.c: Depend on window.h.
95 (record_point): Save old point from the correct window.
96
97 * keyboard.c (last_point_position_window): New variable.
98 (command_loop_1): Set last_point_position_window.
99 (syms_of_keyboard): Init it.
100
101 * Makefile.in (undo.o): Depend on window.h.
102
cad1051b
RS
1032005-12-25 Richard M. Stallman <rms@gnu.org>
104
105 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
106 to undo a `provide'.
107
108 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
109
d52c26e9
KB
1102005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
111
112 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
113 define for FreeBSD on this platform.
114
14af1e44
YM
1152005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
116
117 * macterm.h (TYPE_FILE_NAME): New define.
118 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
119
120 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Add
121 prototypes. Make static.
122 (mac_aedesc_to_lisp): Initialize err to noErr.
123 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
124 (init_coercion_handler): New functions.
125 (Fmac_coerce_ae_data): Use coercion of Apple event data for
126 translation from/to file names.
127
128 * macterm.c: Don't include sys/param.h.
129 (init_coercion_handler): Add extern.
130 [MAC_OS8] (main): Call init_coercion_handler.
131 (mac_initialize) [MAC_OSX]: Likewise.
132 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
133 Apple event data for translation from/to file names.
134
135 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
136
137 * image.c [MAC_OS] (find_image_fsspec): Likewise.
138
bab3eee1
EZ
1392005-12-23 Martin Rudalics <rudalics@gmx.at> (tiny change)
140
141 * insdel.c (insert, insert_and_inherit, insert_before_markers)
142 (insert_before_markers_and_inherit): Make sure FROM is correct
143 when `after-change-functions' are called.
144
90f2e16b
JD
1452005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
146
147 * xfns.c (Fx_uses_old_gtk_dialog): New function.
148
149 * gtkutil.c (xg_uses_old_file_dialog): New function.
150 (xg_get_file_name): Use xg_uses_old_file_dialog.
151
152 * gtkutil.h: Declare xg_uses_old_file_dialog.
153
0ee01fff
RS
1542005-12-22 Richard M. Stallman <rms@gnu.org>
155
156 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
157
b73e4d84
YM
1582005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
159
160 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
161
162 * macgui.h (XCharStruct): Remove member `valid_p'.
163 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
164 (XCharStructRow): New typedef.
165 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID): New
166 macros.
167 (struct MacFontStruct): Add member `bounds'. Remove member
168 `per_char'. All uses for QuichDraw Text fonts are changed to
169 `bounds.per_char'. ATSUI font bounds are represented as an array
170 `bounds.rows' of XCharStructRow's, each of which consists of a
171 bitmap of valid entries and an array of char bounds.
172
173 * macterm.c (mac_per_char_metric): Add prototype.
174 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
175 (mac_query_char_extents): New function.
176 (x_per_char_metric): Use it.
177 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
178 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Use
179 mac_per_char_metric instead of x_per_char_metric.
180 (mac_text_extents_16): New function.
181 (mac_compute_glyph_string_overhangs): Use it.
182 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
183
a425bd03
SM
1842005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
185
186 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
187 (Fminibuffer_completion_help): Remove duplicates before display.
188
aa0b0cd9
KL
1892005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
190
da3863b5 191 * print.c (print_preprocess): Don't lose print_depth levels while
aa0b0cd9
KL
192 iterating.
193
5a61ec18
YM
1942005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
195
196 * macmenu.c (Qmac_apple_event): Add extern.
197 (set_frame_menubar, mac_menu_show keymp_panes)
198 (single_keymap_panes, list_of_panes, list_of_item)
199 (single_menu_item): Add argument types to prototypes.
200 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
201 (struct skp): New struct (from xmenu.c).
202 (single_keymap_panes, single_menu_item, list_of_panes)
203 (list_of_item): Sync with xmenu.c.
204 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
205 POSITION if it is mac-apple-event event.
206 (menubar_selection_callback): Don't use menu_command_in_progress.
207 (set_frame_menubar): First parse all submenus, then make
208 widget_value trees from them. Don't allocate any widget_value
209 objects until we are done with the parsing.
210 (parse_single_submenu, digest_single_submenu): New functions.
211 (single_submenu): Function deleted, replaced by those two.
212 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
213 create or dispose of EventHandlerUPP. Install hander to all submenus.
214 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
215 instead of ENCODE_SYSTEM.
216 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
217 integer values.
218 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
219 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
220 format menu item string. Don't use NULL for integer value.
221
222 * macterm.h (struct mac_output): Remove unused member
223 menu_command_in_progress.
224
3bdba51d
JL
2252005-12-20 Juri Linkov <juri@jurta.org>
226
227 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
228 position is non-nil, else set it to nil.
229
230 * macmenu.c (Fx_popup_menu): Add `else' to set
231 Vmenu_updating_frame to nil only if position is nil.
232
233 * w32menu.c (Fx_popup_menu): Add `else' to set
234 Vmenu_updating_frame to nil only if position is nil.
235
d6a90a49
YM
2362005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
237
238 * keyboard.c (make_lispy_event): Drag-and-drop items are now
239 stored in member `args' of struct input_event.
240
241 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
242
243 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
244 stored in member `args' of struct input_event.
245
246 * w32term.c (construct_drag_n_drop): Likewise.
247
248 * macterm.c (mac_do_receive_drag): Likewise.
249 (x_use_underline_position_properties): Undo 2005-07-13 change.
250 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
251 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
a425bd03
SM
252 (mac_pass_command_to_system, mac_pass_control_to_system):
253 New boolean variables renamed from Lisp_Object ones
d6a90a49 254 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
a425bd03
SM
255 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
256 All uses changed.
d6a90a49
YM
257 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
258 Make them user options.
a425bd03
SM
259 (mac_handle_command_event, mac_store_services_event):
260 Call create_apple_event_from_event_ref without 5th argument.
d6a90a49
YM
261 (backtranslate_modified_keycode): Mask off modifier keys that are
262 mapped to some Emacs modifiers before passing it to KeyTranslate.
263 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
264 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
265 Fix docstrings of `mac-*-modifier'.
266
267 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
a425bd03
SM
268 (do_applescript): Change argument types to Lisp_Object.
269 All uses changed.
d6a90a49
YM
270
271 * macterm.h (create_apple_event_from_event_ref): Remove 5th
272 argument from extern.
273
20d1c5c5
DN
2742005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
275
276 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
277 the answer, return `lambda', not nil.
278
abeb5855
EZ
2792005-12-17 Eli Zaretskii <eliz@gnu.org>
280
281 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
282 enclosed in $(ARGQUOTE)s should not be split between two lines, as
283 that will break with GNU Make >3.80, when sh.exe is used and
284 arg quoting is with '..'.
285
6b8dfbf7
CY
2862005-12-17 Chong Yidong <cyd@stupidchicken.com>
287
288 * print.c (print_preprocess): Just signal an error if print_depth
289 is exceeded.
290
d912b87a
EZ
2912005-12-17 Eli Zaretskii <eliz@gnu.org>
292
293 * .gdbinit: Set a breakpoint on w32_abort.
294
2a502a32
JL
2952005-12-16 Juri Linkov <juri@jurta.org>
296
297 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
298 created from minibuffer_completion_contents.
299 (minibuffer_completion_contents): Remove.
300 (do_completion, Fminibuffer_complete_word)
301 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
302 with Fminibuffer_completion_contents.
303 (syms_of_minibuf): Add Sminibuffer_completion_contents.
304 (Fdisplay_completion_list): Doc fix.
305 (display_completion_list_1): Use `nil' for second arg of
306 `Fdisplay_completion_list'.
307
bf63eb69
JD
3082005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
309
310 * xfns.c (compute_tip_xy): Handle negative dx and dy.
311
a425bd03 312 * w32fns.c (compute_tip_xy): Ditto.
bf63eb69 313
a425bd03 314 * macfns.c (compute_tip_xy): Ditto.
bf63eb69 315
9b98e161
CY
3162005-12-14 Chong Yidong <cyd@stupidchicken.com>
317
318 * print.c (print_preprocess): Go to a deeper print_depth to avoid
319 print_object loop.
320
89aa725a
KH
3212005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
322
323 * coding.c (code_convert_region_unwind): GCPRO arg.
324
3b006f5b
JD
3252005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
326
57134802
JD
327 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
328 i.e. dy is offset from top of frame instead of bottom.
329
330 * macfns.c (compute_tip_xy): Ditto.
331
332 * w32fns.c (compute_tip_xy): Ditto.
333
3b006f5b
JD
334 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
335 (xg_get_image_for_pixmap, xg_create_frame_widgets)
336 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
337
338 * xmenu.c (menubar_selection_callback): Do nothing if the callback
339 is for an unselected radio menu item.
340
2cb33a98
RS
3412005-12-11 Richard M. Stallman <rms@gnu.org>
342
343 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
344
345 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
346
347 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
348 (Flookup_key): Doc fix.
349 (syms_of_keymap) <function-key-map>: Doc fix.
350
351 * fns.c (Frequire): Treat evaluating from a source file
352 like loading the file.
353
354 * floatfns.c (Flog): Doc fix.
355
356 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
357 when we change the buffer.
358
d7d1f75e
JL
3592005-12-11 Juri Linkov <juri@jurta.org>
360
361 * minibuf.c (display_completion_list_1):
362 Call `minibuffer_completion_contents' instead of using `nil' as
363 second arg of `Fdisplay_completion_list'.
364 (keys_of_minibuf): Unbind SPC in
365 Vminibuffer_local_filename_completion_map (see also related
366 change on 2005-12-06).
367
ac8fcf0f
YM
3682005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
369
370 * emacs.c (main) [MAC_OS8]: Undo previous change.
371
372 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
373 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
374
4b3eb407
YM
3752005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
376
377 * Makefile.in (macselect.o): Depend on keymap.h.
378
379 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
380 syms_of_macselect.
381
382 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
383 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
384
385 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
386 (syms_of_keyboard) [MAC_OS]: Initialize it.
387 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
388
389 * mac.c (Qundecoded_file_name): New variable.
390 (syms_of_mac): Initialize it.
391 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
a425bd03 392 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4b3eb407
YM
393 (Fmac_coerce_ae_data): New defun.
394 (syms_of_mac): Defsubr it.
395
396 * macselect.c: Include keymap.h.
397 (mac_ready_for_apple_events): New variable.
398 (Vmac_apple_event_map, Qmac_apple_event_class)
399 (Qmac_apple_event_id): New variables.
400 (syms_of_macselect): Initialize them.
401 (Qundefined, mac_store_apple_event): Add externs.
402 (struct apple_event_binding): New struct.
403 (find_event_binding_fun, find_event_binding)
404 (mac_find_apple_event_spec, defer_apple_events)
405 (mac_handle_apple_event, init_apple_event_handler)
406 (copy_scrap_flavor_data): New functions.
407 (Fmac_process_deferred_apple_events): New defun.
408 (syms_of_macselect): Defsubr it.
409 (mac_store_services_event): Fix extern.
410 (mac_handle_service_event): Don't allocate Lisp objects during
411 asynchronous input processing. Use mac_store_services_event
412 instead of mac_store_application_menu_event.
413
414 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
415 (Qpreferences): Remove variables.
416 (syms_of_macterm) : Don't initialize them.
417 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
418 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
419 (init_required_apple_events, do_ae_open_application)
420 (do_ae_print_documents, do_ae_open_documents)
421 (do_ae_quit_application): Remove functions and prototypes.
422 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
423 (mac_find_apple_event_spec): Add externs.
424 (mac_store_application_menu_event): Remove function.
425 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
426 (mac_handle_command_event): Create Apple event from Carbon event.
427 Use mac_store_apple_event instead of mac_store_application_menu_event.
428 [MAC_OSX] (mac_store_services_event): Likewise.
429 (struct SelectionRange, SelectionRange): Remove struct and typedef.
430 [MAC_OS8] (main): Call init_apple_event_handler instead of
431 init_required_apple_events.
432 (mac_initialize) [MAC_OSX]: Likewise.
433 [!USE_CARBON_EVENTS] (mac_wait_next_event): Use
434 mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
435
436 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp): Add
437 externs.
438 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
439 (Fmac_get_preference): Add EXFUN.
440
441 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
442 event.
443
e358e052
RS
4442005-12-09 Richard M. Stallman <rms@gnu.org>
445
446 * xfns.c (Fx_create_frame): Reinstate previous change.
447
9ea74bfb
EZ
4482005-12-09 Eli Zaretskii <eliz@gnu.org>
449
450 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
451 GDB to the abort dialog.
452
84fdb82c
KS
4532005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
454
455 * indent.c (Fvertical_motion): Force move if starting on
456 stretch glyph.
457
2fda6977
RS
4582005-12-08 Richard M. Stallman <rms@gnu.org>
459
2663a204
RS
460 * lread.c (read_escape) <\s>: Don't treat strings specially.
461
2fda6977
RS
462 * xfns.c (Fx_create_frame): Comment out previous change.
463
225c13a5
KL
4642005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
465
466 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
467 when needed.
468
da8ec671
SM
4692005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
470
471 * minibuf.c (keys_of_minibuf): Just unbind SPC in
472 Vminibuffer_local_filename_completion_map rather than forcing it
473 explicitly to the same binding as the global map.
474
88fde92a
KR
4752005-12-06 Ken Raeburn <raeburn@gnu.org>
476
477 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP
478 argument.
479 * bytecode.c (Fbyte_code): Likewise.
480 * fileio.c (internal_delete_file, Fread_file_name_internal):
481 Likewise.
482 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
483 * undo.c (truncate_undo_list): Likewise.
484
fa0d4d0c
RS
4852005-12-05 Richard M. Stallman <rms@gnu.org>
486
487 * window.c (enlarge_window): Eliminate arg preserve_before.
488 Assume it is 0. All callers changed.
489 (Fenlarge_window, Fshrink_window): Likewise.
490
5a98616e
EZ
4912005-12-02 Eli Zaretskii <eliz@gnu.org>
492
493 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
494 fit below.
495
1dbacb90
JD
4962005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
497
498 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
499
500 * xfns.c (x_real_positions): int ign => unsigned int.
501 (xg_set_icon_from_xpm_data): Remove unused variable err.
502 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
503 to remove compiler warning.
504 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
505
0a79da1b
EZ
5062005-12-02 David Reitter <david.reitter@gmail.com>
507
508 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
509 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
510 and Vminibuffer_local_must_match_filename_map keymaps.
511 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
512
513 * keymap.c (Vminibuffer_local_filename_completion_map)
514 (Vminibuffer_local_must_match_filename_map): New variables.
515 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
516 parent to be Vminibuffer_local_completion_map and
517 Vminibuffer_local_must_match_map, respectively.
518
519 * commands.h (Vminibuffer_local_filename_completion_map)
520 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
521
e67a1dea
SM
5222005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
523
524 * window.c (Fset_window_configuration): Don't accidentally copy the
525 window-point of one window to another.
526
6ad0f04d
KL
5272005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
528
7854b2a3 529 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6ad0f04d 530
4269a2fd
KS
5312005-11-30 Kim F. Storm <storm@cua.dk>
532
533 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
534 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
535 passing it to `emacs_write'.
536
96013ba9
SM
5372005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
538
539 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
540
161ef3be
RS
5412005-11-27 Richard M. Stallman <rms@gnu.org>
542
543 * window.c (adjust_window_trailing_edge): New function.
544 (Fadjust_window_trailing_edge): New function.
96013ba9 545 (syms_of_window): Defsubr it.
161ef3be
RS
546 (window_deletion_count): New variable.
547 (delete_window): Update window_deletion_count.
548
02b1a164
EZ
5492005-11-26 Eli Zaretskii <eliz@gnu.org>
550
551 * minibuf.c (syms_of_minibuf): Mention the extension of
552 `completion-auto-help's meaning by complete.el.
553
07908aec
EZ
5542005-11-26 Henrik Enberg <henrik.enberg@telia.com>
555
96013ba9 556 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
07908aec
EZ
557 Handle :inherit property as a lisp expression.
558
b9c7cbf9
YM
5592005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
560
561 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
562 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
563 Qsuper, and Qmodifier_value.
564 (Vmac_control_modifier, Vmac_option_modifier)
565 (Vmac_command_modifier, Vmac_function_modifier)
566 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
567 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
568 (Vmac_charset_info_alist): Doc fixes.
569
2c012c41
YM
5702005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
571
572 * emacs.c (main) [MAC_OSX]: Change working directory to home
573 directory if `-psn_*' option is specified.
574
575 * mac.c (DECODE_UTF_8): Remove macro.
576 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
577 created from cfstring_to_lisp.
578 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
579 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
580
581 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
582 Add prototype.
583
88fde92a 5842005-11-21 Ken Raeburn <raeburn@gnu.org>
d7c0be75
KR
585
586 * keymap.c (shadow_lookup): Use make_number to pass a number to
587 Fsubstring.
588
17c1971a
JL
5892005-11-21 Juri Linkov <juri@jurta.org>
590
591 * puresize.h (BASE_PURESIZE): Increment to 1180000.
592
0268cef3
CY
5932005-11-20 Chong Yidong <cyd@stupidchicken.com>
594
96013ba9
SM
595 * xfaces.c (Finternal_set_lisp_face_attribute):
596 Use :ignore-defface for new frame defaults when `unspecified' is
0268cef3
CY
597 supplied.
598 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
67d23e01
CY
599 (merge_face_vectors): Don't do :ignore-defface overwriting here.
600 (Finternal_merge_in_global_face): Do it here.
0268cef3 601
dd949173
JL
6022005-11-20 Juri Linkov <juri@jurta.org>
603
604 * charset.c (invalid_character): Use Lisp-readable syntax
605 for octal and hex. Reorder decimal, octal and hex values.
606
76986433
NR
6072005-11-20 Nick Roberts <nickrob@snap.net.nz>
608
609 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
610 this type is recognised when debugging.
611
603add2d
AS
6122005-11-19 Andreas Schwab <schwab@suse.de>
613
614 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
615 Lisp_Cons and Lisp_Float.
616
125ce9ec
YM
6172005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
618
619 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
620 New variable.
96013ba9 621 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
125ce9ec
YM
622 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
623 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
624 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
625
2ff10663
CY
6262005-11-17 Chong Yidong <cyd@stupidchicken.com>
627
96013ba9 628 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
fe45ad15 629
2ff10663
CY
630 * xfaces.c (Qignore_defface): New variable.
631 (syms_of_xfaces): Provide `:ignore-defface'.
632 (IGNORE_DEFFACE_P): New macro.
05338727
CY
633 (check_lface_attrs, lface_fully_specified_p)
634 (Finternal_set_lisp_face_attribute)
96013ba9
SM
635 (Fface_attribute_relative_p, Fmerge_face_attribute):
636 Handle Qignore_defface as a possible value.
2ff10663
CY
637 (merge_face_vectors): The merged face is `unspecified' if the
638 mergee specifies `:ignore-defface'.
639
c01f0ed3
SM
6402005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
641
642 * lread.c (readevalloop): Add missing GCPROs.
643
786a43d6
CY
6442005-11-16 Chong Yidong <cyd@stupidchicken.com>
645
9f7b984b
CY
646 * xfns.c (xg_set_icon_from_xpm_data): New function.
647
c01f0ed3
SM
648 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
649 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
786a43d6
CY
650
651 * xterm.c (x_bitmap_icon): Use the xpm if available.
652
653 * image.c (x_create_bitmap_from_xpm_data): New function.
54188d8f 654 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
786a43d6 655
8ab84823
LT
6562005-11-15 Luc Teirlinck <teirllm@auburn.edu>
657
658 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
659
3671718b
NR
6602005-11-16 Nick Roberts <nickrob@snap.net.nz>
661
662 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
663
28a099a4
AS
6642005-11-15 Andreas Schwab <schwab@suse.de>
665
666 * lisp.h (struct Lisp_Cons): Make cdr a union.
667 (XCDR_AS_LVALUE): Adjust.
668 (struct Lisp_Float): Make data a union.
669 (XFLOAT_DATA): Adjust.
670
671 * alloc.c (free_float): Make free list chaining aliasing-safe.
672 (make_float): Likewise.
673 (free_cons): Likewise.
674 (Fcons): Likewise.
675 (check_cons_list): Likewise.
676 (Fmake_symbol): Likewise.
677 (allocate_misc): Likewise.
678 (free_misc): Likewise.
679 (gc_sweep): Likewise.
680
308a6607
YM
6812005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
682
fc09d07f
YM
683 * mac.c (HASHKEY_QUERY_CACHE): New define.
684 (xrm_create_database, xrm_q_put_resource): Empty query cache.
685 (xrm_get_resource): Use query cache.
686
308a6607
YM
687 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
688 inhibit_window_system is set.
689
29b585db
YM
6902005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
691
692 * macgui.h (USE_CG_TEXT_DRAWING): New define.
693 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
694 and cg_glyphs.
695
696 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
697 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
698 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
699 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
700 not used and font substitution never occurs for ASCII and Latin-1
701 characters.
702 (XLoadQueryFont): Maximum and minimum metrics are now those among
703 ASCII characters.
704 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
705 height adjustments for Courier, Helvetica, and Times.
706
707 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
708
b02e3f7b
ST
7092005-11-11 David Reitter <david.reitter@gmail.com>
710
dff79d04
ST
711 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
712 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
713 Vmac_control_modifier / mac-control-modifier,
714 Vmac_option_modifier / mac-option-modifier,
715 Vmac_command_modifier / mac-command-modifier.
716 (mac_to_emacs_modifiers): Use the new style modifier
c01f0ed3
SM
717 variables. Return UInt32 (modifiers are longs now.)
718 (backtranslate_modified_keycode): New function (refactoring).
719 (XTread_socket): Use new modifier variables and refactored function.
720 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
721 no dedicated meta key. Not in use anyway.)
b02e3f7b
ST
722 (convert_fn_keycode): Map Fn-keys to their original keycode
723 using a table (english keyboard only).
b02e3f7b 724
6a77a9f5
KS
7252005-11-11 Kim F. Storm <storm@cua.dk>
726
ab4d879e
KS
727 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
728 Add post hook to "backtrace" to always dump lisp call stack to
729 increase chance of people sending it to us when reporting bugs.
730
8c41220c
KS
731 * doc.c (Fsubstitute_command_keys): Doc fix.
732
6a77a9f5
KS
733 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
734
735 * xdisp.c (handle_stop): Skip overlay string handling if
736 ignore_overlay_strings_at_pos_p is set.
737 (set_iterator_to_next): At end of display vector, set
738 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
739 string, so we skip those overlay strings at current pos.
740
19a9c3b7
LH
7412005-11-10 Lars Hansen <larsh@soem.dk>
742
743 * fileio.c (file-regular-p): Doc fix.
744
932954d1
KS
7452005-11-10 Kim F. Storm <storm@cua.dk>
746
747 * alloc.c (valid_lisp_object_p): New function to validate that
748 an object is really a valid Lisp_Object.
749
750 * lisp.h (valid_lisp_object_p): Add prototype.
751
752 * print.c (safe_debug_print): New function to be called from gdb
753 to print Lisp objects; use valid_lisp_object_p to avoid crashing
754 if user tries to print something which is not a Lisp object.
755
756 * .gdbinit (pp, pp1): Use safe_debug_print.
757 (pv, pv1): New commands to print value of a lisp variable.
758
78e5988d
NR
7592005-11-10 Nick Roberts <nickrob@snap.net.nz>
760
761 * .gdbinit (pp1): New user-defined function.
762
f56a5bd8
YM
7632005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
764
765 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
766
767 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
768 related variables for dumped executable.
769
770 * unexmacosx.c (unexec_write_zero): New function.
771 (copy_data_segment): Clear uninitialized local variables in
772 statically linked libraries.
773
774 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
775
58b6f884
JL
7762005-11-09 Juri Linkov <juri@jurta.org>
777
778 * keymap.c (shadow_lookup): If Flookup_key returns a number,
779 call it again with a sub-key-sequence, and if its return value
780 is non-nil (sub-key is bound), return nil.
781
1f5f957a
KS
7822005-11-08 Kim F. Storm <storm@cua.dk>
783
784 * process.c (Fsignal_process): Recognize signal names with and
785 without SIG prefix, e.g. SIGHUP and HUP.
786
787 * search.c (search_buffer): No need to initialize base_pat.
788
20b69789
SM
7892005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
790
791 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
792 Don't abuse the `mini' arg. Use the `obj' arg instead.
793
7353f169
KS
7942005-11-04 Kim F. Storm <storm@cua.dk>
795
796 * xdisp.c (show_mouse_face): Clear mouse face to eol.
797
1f7b1131
DN
7982005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
799
800 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
801 font-lock.elc and jit-lock.elc.
802
e082564e
RS
8032005-11-03 Richard M. Stallman <rms@gnu.org>
804
805 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
806 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
807 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
808
809 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
810
811 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
812
49e99345
SM
8132005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
814
815 * window.c (Fdisplay_buffer): Fix last change to not use
816 a dedicated window.
817
8f15921b
KS
8182005-11-01 Kim F. Storm <storm@cua.dk>
819
820 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
821 Instead, rotate the bottom angle bitmap 180 degrees to indicate
822 that the bottom row does not end in a newline.
823
b4235a80
AS
8242005-11-01 Andreas Schwab <schwab@suse.de>
825
826 * unexelf.c (unexec): Handle .plt section in BSS segment.
827
3cbb13c8
SM
8282005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
829
e5f64be2
SM
830 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
831
3cbb13c8
SM
832 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
833 determine whether to consider dedicated windows as well.
834 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
835 (Fdisplay_buffer): Do consider dedicated windows in those cases where
836 we will split the window rather than reuse it.
837 Don't try to use windows on other displays.
838
c94f08ff
DN
8392005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
840
841 * puresize.h (BASE_PURESIZE): Increment to 1170000.
842
edf84ae9
RF
8432005-10-31 Romain Francoise <romain@orebokech.com>
844
845 * macfns.c: Update copyright year.
846 * m/gould.h: Likewise.
847
6f07f649
KS
8482005-10-30 Kim F. Storm <storm@cua.dk>
849
850 * xdisp.c (display_line): Restore it->current_x and call
851 extend_face_to_end_of_line when last glyph doesn't fit on line.
852 (set_glyph_string_background_width): Remove specific tests here
853 to see if face background should extend to end of line. Simplify.
854
4d74a5fc
RS
8552005-10-30 Richard M. Stallman <rms@gnu.org>
856
857 * alloc.c (BYTES_USED): Use uordblks, not arena.
858 (bytes_used_when_reconsidered): New variable.
859 (emacs_blocked_free): Set that.
860
bccfb310
CY
8612005-10-29 Chong Yidong <cyd@stupidchicken.com>
862
863 * alloc.c (emacs_blocked_free): Fix typo.
864
f5b8d5f2
RS
8652005-10-29 Richard M. Stallman <rms@gnu.org>
866
4d74a5fc
RS
867 * data.c (Fmake_variable_frame_local): Doc fix.
868
f5b8d5f2
RS
869 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
870 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
871 controls whether to save and restore mode_line_proptrans_alist.
872 Callers changed.
873 (unwind_format_mode_line): Work with that feature.
874 (redisplay_internal): Don't call prepare_menu_bars if memory full.
875 (move_elt_to_front): New function.
876 (display_mode_element): Use move_elt_to_front.
877 Don't bother munging text props on a null string.
878 Delete obsolete elts from mode_line_proptrans_alist.
879 (decode_mode_spec): Test Vmemory_full, not spare_memory.
685abb98 880 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
f5b8d5f2 881
49e99345
SM
882 * lisp.h (memory_full_cons_threshold): Declare.
883 (internal_lisp_condition_case): Declare.
f5b8d5f2
RS
884
885 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
886 (Fmemory_full_p): Function deleted.
887 (syms_of_alloc): Don't defsubr it.
888 (memory_full_cons_threshold): New variable.
889 (spare_memory): Now a vector of 7 elts.
890 (buffer_memory_full): Don't set Vmemory_full here.
891 (xfree): Don't try to refill here.
892 (emacs_blocked_free): Record BYTES_USED in local var.
893 (memory_full): Now free all the slots in spare_memory.
894 (refill_memory_reserve): Allocate each slot in spare_memory.
895 (init_alloc_once): Call refill_memory_reserve.
896
897 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
898
899 * eval.c (internal_lisp_condition_case): New function.
900 (Fcondition_case): Use internal_lisp_condition_case.
901 (Feval): Test Vmemory_full and memory_full_cons_threshold.
902 (Ffuncall): Likewise.
903
904 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
905
c390e28c
SM
9062005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
907
908 * syntax.c (Fparse_partial_sexp): Fix docstring.
909
ab5d87b3
RF
9102005-10-28 Romain Francoise <romain@orebokech.com>
911
c390e28c 912 * puresize.h (BASE_PURESIZE): Increment to 1130000.
ab5d87b3 913
107fb6c9
RS
9142005-10-28 Richard M. Stallman <rms@gnu.org>
915
916 * xfns.c (syms_of_xfns): Provide `x' as feature.
917
918 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
919
920 * editfns.c (Fformat): Don't include string padding
921 between info[n].start and info[n].end.
922
923 * alloc.c (spare_memory): No longer static.
924 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
925
c390e28c 926 * puresize.h (BASE_PURESIZE): Increment to 1120000.
107fb6c9 927
f351b58b
CY
9282005-10-27 Chong Yidong <cyd@stupidchicken.com>
929
c390e28c 930 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
437610c5 931
f351b58b
CY
932 * fringe.c (update_window_fringes): Handle case where buffer ends
933 with a newline.
934
581e7427
KH
9352005-10-27 Kenichi Handa <handa@m17n.org>
936
937 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
938
9392005-10-24 Kenichi Handa <handa@m17n.org>
940
941 * charset.h (charset_mule_unicode_0100_24ff)
942 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
943 Extern them.
944
945 * charset.c (charset_mule_unicode_0100_24ff)
946 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
947 New variables.
948 (Fsetup_special_charsets): Initialize them.
949
950 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
951 supported Unicode characters.
952
813fa8a8
JR
9532005-10-25 Jason Rumney <jasonr@gnu.org>
954
955 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
956
05f7d868
YM
9572005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
958
959 * image.c [MAC_OS] (image_load_qt_1): Check image size.
960 Use GraphicsImportGetImageDescription instead of
961 GraphicsImportGetNaturalBounds.
962 [MAC_OSX] (image_load_quartz2d): Check image size.
963 [MAC_OS] (xpm_load_image): Likewise.
964
965 * macterm.c (last_mouse_glyph_frame): New var.
966 (note_mouse_movement): Say mouse moved if current frame differs
967 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
968 (XTmouse_position): Set last_mouse_glyph_frame.
969 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
29b585db 970 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
05f7d868
YM
971 Use EndianU16_BtoN.
972 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
973 (x_per_char_metric, XLoadQueryFont)
974 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
975 glyph bounds.
976 (mac_to_x_fontname, mac_do_list_fonts)
977 (mac_initialize_display_info): Change screen resolutions to 72dpi.
978
128e729d
MY
9792005-10-25 Masatake YAMATO <jet@gyve.org>
980
981 * minibuf.c (Fdisplay_completion_list): Small doc fix.
982
59017afb
KS
9832005-10-24 Kim F. Storm <storm@cua.dk>
984
94717db1
KS
985 * xterm.c: Undo 2005-10-23 change.
986 (last_mouse_glyph_frame): New var.
987 (note_mouse_movement): Say mouse moved if current frame differs
988 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
989 (XTmouse_position): Set last_mouse_glyph_frame.
990 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
991 last_mouse_glyph] on mouse up/down event.
992
59017afb
KS
993 * editfns.c (Fcompare_buffer_substrings): Fix last change.
994
7c5ba0d2
SM
9952005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
996
997 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
998
a4b0e228
JD
9992005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1000
1001 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
1002 so tool tips don't interfere with press on tool bar button.
1003
f6a18aa2
RS
10042005-10-23 Richard M. Stallman <rms@gnu.org>
1005
1006 * casetab.c (Fset_case_table): Doc fix.
1007
1008 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
1009 (readevalloop): Compute ENTIRE properly.
1010 (syms_of_lread) <load-history>: Doc fix.
1011
45158e77
RS
10122005-10-21 Richard M. Stallman <rms@gnu.org>
1013
1014 * lread.c (Fload): Simplify gcpro structure.
1015 Gcpro FOUND as well as FILE, but not EFOUND.
1016 Unless preloading, record FOUND instead of FILE in Vload_history.
1017 Rename repeat local FILE to MSG_FILE.
1018 (syms_of_lread) <load-history>: Doc fix.
1019
dfa1cd4d
KH
10202005-10-21 Kenichi Handa <handa@m17n.org>
1021
96664fc0 1022 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 1023
1064a9ea
KS
10242005-10-20 Kim F. Storm <storm@cua.dk>
1025
1026 * buffer.c (clone_per_buffer_values): Remove unused var tem.
1027 (init_buffer): Remove unused vars dotstat, pwdstat.
1028
1029 * ccl.c (check_ccl_update): Remove unused var vp.
1030
1031 * fileio.c (auto_save_error): Call SAFE_FREE.
1032
1033 * fns.c (Fchar_table_range): Remove unused var i.
1034
1035 * minibuf.c (display_completion_list_1): New wrapper function
1036 for Fdisplay_completion_list.
1037 (Fminibuffer_completion_help): Use it.
1038
1039 * term.c (encode_terminal_code): Remove unused var src_start.
1040
1041 * window.c (Fwindow_tree): Remove unused var alist.
1042
1043 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
1044
ce13796f
EZ
10452005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
1046
20b69789 1047 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
ce13796f 1048
ad9c16d3
EZ
10492005-10-20 Olli Savia <ops@iki.fi> (tiny change)
1050
1051 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
1052
26e9d2cf
AS
10532005-10-20 Andreas Schwab <schwab@suse.de>
1054
1055 * minibuf.c (Fdisplay_completion_list): Doc fix.
1056
e50165ec
KS
10572005-10-19 Kim F. Storm <storm@cua.dk>
1058
1059 * image.c (check_image_size): Handle integer Vmax_image_size value
1060 directly as max pixel value. Use default frame size for null frame.
1061 (syms_of_image) <max-image-size>: Describe integer value.
1062
d7b94c98
RF
10632005-10-19 Romain Francoise <romain@orebokech.com>
1064
1065 * emacs.c (main): Update copyright year.
1066
f1f25b99
CY
10672005-10-18 Chong Yidong <cyd@stupidchicken.com>
1068
1069 * image.c (Vmax_image_size): New variable.
1070 (check_image_size): New function.
1071 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
1072 (gif_load, gs_load): Use it.
1073 (lookup_image): Try loading again if previous load failed.
1074 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
1075 to display in, NULL if none.
1076 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
1077 argument.
1078
f42d19a2
RS
10792005-10-18 Richard M. Stallman <rms@gnu.org>
1080
1081 * search.c (Fstring_match): Doc fix.
1082
bcbdafce
YM
10832005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1084
1085 * macterm.c (note_mouse_movement): Use PtInRect.
1086 (XTread_socket): Also ignore mouse motion just before a button
1087 release event. Don't process button release event when mouse is
1088 not grabbed.
1089
f5fab556
MY
10902005-10-16 Masatake YAMATO <jet@gyve.org>
1091
1092 * minibuf.c (Fdisplay_completion_list): Add new optional
e5f64be2 1093 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
1094 to the optional argument during running `completion-setup-hook'.
1095
2ef1363e
YM
10962005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1097
1098 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
1099 Allow nil as argument.
1100 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
1101 for encoding arguments as UTF-16 in native byte order, no BOM.
1102
1103 * macfns.c (Fx_create_frame): Add debugging code.
1104 (Fx_show_tip): Set frame pixel width and height.
1105
1106 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
1107 (FRAME_NORMAL_GC): New macro.
1108 (mac_draw_line, mac_clear_area, mac_clear_window)
1109 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
1110 (mac_draw_image_string, mac_draw_image_string_16): Rename from
1111 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
1112 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
1113 All uses changed.
1114 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
1115 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
1116 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
1117 (mac_draw_string_16, mac_draw_image_string)
1118 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
1119 (mac_scroll_area): Drawing functions now take frame as destination.
1120 All uses changed.
1121 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
1122 (x_draw_fringe_bitmap): Set clipping area in face->gc.
1123
1124 * macterm.h (mac_clear_area): Add extern.
1125
fc5c7550
YM
11262005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1127
1128 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
1129 changes for xterm.c.
1130
1131 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
1132
fed91c38
KH
11332005-10-14 Kenichi Handa <handa@m17n.org>
1134
1135 * search.c (search_buffer): Give up BM search on case-fold-search
1136 if one of a target character has a case-equivalence of different
1137 charset even if that target charcter is an ASCII.
1138
1139 * casefiddle.c (casify_object): Fix for the case that case
1140 conversion change the byte length.
1141
0ea1a8af
KS
11422005-10-14 Kim F. Storm <storm@cua.dk>
1143
1144 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
1145 (handle_one_xevent): Only clear help_echo_string; restore it if
1146 note_mouse_movement didn't record any mouse movement.
1147
1148 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
1149 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
1150
1151 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
1152 (Fposn_at_x_y): Fix calculation of x coordinate.
1153 (Fposn_at_point): Return nil if point is hscrolled out of view.
1154
6e5b2385
AS
11552005-10-13 Andreas Schwab <schwab@suse.de>
1156
1157 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
1158 non-interactive mode.
1159
6de0e1a2
YM
11602005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1161
1162 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
1163
78f3b91f
KS
11642005-10-12 Kim F. Storm <storm@cua.dk>
1165
1166 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
1167
b639c9be
RF
11682005-10-12 Romain Francoise <romain@orebokech.com>
1169
1170 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
1171
76d8f04c
YM
11722005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1173
1174 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
1175 get end of text rows. Obtain header-line/mode-line rows directly.
1176
96013ba9
SM
1177 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
1178 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
621036f9 1179
d76432f5
KS
11802005-10-12 Kim F. Storm <storm@cua.dk>
1181
7a127784
KS
1182 * xdisp.c (remember_mouse_glyph): New generic version based on
1183 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
1184 properly handle all different window areas.
1185
1186 * dispextern.h (remember_mouse_glyph): Add prototype.
1187
1188 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
1189 (note_mouse_movement, XTmouse_position): Use generic
1190 remember_mouse_glyph, add last_mouse_glyph arg.
1191
1192 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
1193 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
1194 (note_mouse_movement, w32_mouse_position): Use generic
1195 remember_mouse_glyph, add last_mouse_glyph arg.
1196
1197 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
1198 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
1199 (XTmouse_position): Adapt to use generic remember_mouse_glyph
1200 instead of pixel_to_glyph_coords.
1201
d76432f5
KS
1202 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
1203 Fix x position for ON_TEXT when left margin width > 0.
1204
55a4ac3e
KS
12052005-10-11 Kim F. Storm <storm@cua.dk>
1206
d76432f5 1207 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
1208
1209 * keyboard.c (make_lispy_position): Fix buffer calculations for
1210 mouse click or movement in right fringe and the margins.
1211
2d4713aa
JB
12122005-10-11 Juanma Barranquero <lekktu@gmail.com>
1213
1214 * image.c (fn_jpeg_stdio_src): Don't define it.
1215 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
1216 (our_common_init_source): Rename from `our_init_source'.
1217 (our_common_term_source): Rename from `our_term_source'.
1218 (our_memory_fill_input_buffer): Rename from
1219 `our_fill_input_buffer'.
1220 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
1221 (jpeg_memory_src): Use the new names.
1222 (struct jpeg_stdio_mgr): New struct.
1223 (JPEG_STDIO_BUFFER_SIZE): New constant.
1224 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
1225 (jpeg_file_src): New functions.
1226 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
1227
71b7a47f
YM
12282005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1229
1230 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
1231 (fm_font_family_alist): New variable.
1232 (syms_of_macterm): Initialize and staticpro it.
1233 (decode_mac_font_name): Replace '-' in family name with '_' if it
1234 occurs just once. Lower family name.
1235 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
1236 All uses changed. Remove argument MF and code conversion for it.
1237 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
1238 to CHARSET. Parse font size. Lower family name. Return integer
1239 value for status of parsing.
1240 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
1241 Don't use Fdowncase because family name is already lowered by
1242 decode_mac_font_name.
96013ba9
SM
1243 (init_font_name_table): Always call decode_mac_font_name.
1244 Add pair of family name and its reference to fm_font_family_alist.
71b7a47f
YM
1245 (mac_clear_font_name_table): Clear fm_font_family_alist.
1246 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
1247 Lookup fm_font_family_alist to get font family reference.
1248 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
1249 name is already lowered by parse_x_font_name.
1250
74051a92
KS
12512005-10-11 Kim F. Storm <storm@cua.dk>
1252
31ab1f05
KS
1253 * xterm.c (glyph_rect): Return 0 if position is outside text area.
1254
74051a92
KS
1255 * keyboard.c (make_lispy_position): Fix buffer position calculation for
1256 mouse click or movement in fringe.
1257
9b909870
JR
12582005-10-10 Jason Rumney <jasonr@gnu.org>
1259
1260 * xterm.c (remember_mouse_glyph): New function.
58af5591 1261 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 1262 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 1263 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 1264
f9e36a6d
JD
12652005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1266
58af5591 1267 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 1268
04bc7945
JB
12692005-10-10 Juanma Barranquero <lekktu@gmail.com>
1270
1271 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
1272 (next_frame, prev_frame, set_term_frame_name): Make static.
1273
1274 * window.c (Fwindow_tree): Fix spelling.
1275
41791a20
RF
12762005-10-09 Romain Francoise <romain@orebokech.com>
1277
1278 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
1279
e313fc07
JD
12802005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1281
58af5591
KS
1282 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
1283 Add options -nb, --no-bitmap-icon.
e313fc07
JD
1284
1285 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
1286
61e62f5f
YM
12872005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1288
1289 * macgui.h (MAX_CLIP_RECTS): New define.
1290 (struct _XGC): New member clip_region.
1291 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
1292 clip_rects.
1293
1294 * macterm.c (GC_CLIP_REGION): New macro.
1295 (saved_port_clip_region): New variable.
1296 (mac_begin_clip, mac_end_clip): New functions.
1297 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
1298 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
1299 (mac_copy_area_with_mask, mac_scroll_area): Use them.
1300 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
1301 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
1302 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
1303 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
1304 rectangles stored in gc.
71b7a47f 1305 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
1306 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
1307 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
1308 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
1309 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
1310 (x_draw_bar_cursor): Use them.
1311 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
1312 get multiple clipping rectangles.
1313
1314 * macterm.h (mac_term_init): Add types to extern.
1315 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 1316 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
1317 scroll_bar_background_pixel in #if 0.
1318 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
1319
1320 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 1321 Add debugging code.
61e62f5f 1322
ef1b4c9e
KS
13232005-10-08 Kim F. Storm <storm@cua.dk>
1324
1325 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
1326
f1010549
KS
13272005-10-07 Kim F. Storm <storm@cua.dk>
1328
1329 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
1330 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
1331 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
1332
c2ded1b7
YM
13332005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1334
1335 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
1336 to for_overlaps. Now occupy 3 bits.
1337 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
1338 (OVERLAPS_ERASED_CURSOR): New defines.
1339 (struct redisplay_interface): Add new OVERLAPS arg to member
1340 fix_overlapping_area.
1341 (x_fix_overlapping_area): Add new OVERLAPS arg.
1342 (get_glyph_string_clip_rects): Add extern.
1343
96013ba9
SM
1344 * dispnew.c (redraw_overlapping_rows):
1345 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
c2ded1b7
YM
1346
1347 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
1348 for_overlaps.
1349 (get_glyph_string_clip_rects): New function created from
f1010549
KS
1350 get_glyph_string_clip_rect. Set clipping rectangles according to the
1351 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
1352 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
1353 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
1354 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 1355 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 1356 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
1357 calculating clipping rectangles later. Call x_fix_overlapping_area
1358 with new OVERLAPS arg to draw only erased cursor area.
f7270128 1359 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 1360 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
1361
1362 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
1363 struct glyph_string to for_overlaps.
1364
a19a0003
RS
13652005-10-04 Richard M. Stallman <rms@gnu.org>
1366
1367 * alloc.c (refill_memory_reserve): Conditionalize the body,
1368 not the function's existence.
1369
abc8ce50
KS
13702005-10-04 Kim F. Storm <storm@cua.dk>
1371
1372 * window.c (window_split_tree): New function.
1373 (Fwindow_split_tree): New defun.
1374 (syms_of_window): Defsubr it.
1375
66533b25
YM
13762005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1377
1378 * macterm.c (mac_invert_rectangle): New function.
1379 (XTflash): Use it.
1380
4156359e
SM
13812005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
1382
4e2f601f
SM
1383 * regex.h (re_char): Don't expose it in the interface.
1384 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
1385
1386 * regex.c (re_char): Move it back here.
1387 (re_set_whitespace_regexp): Change the arg's type to not use it.
1388
4156359e
SM
1389 * keyboard.c (make_lispy_event): If point has moved between down and up
1390 event, make it a drag, not a click, to mirror what
1391 mouse-drag-region expects.
1392
eb27c2ca
DN
13932005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
1394
1395 * lisp.h (fatal): Undo previous change.
1396 * term.c (fatal): Undo previous change.
1397
b059f7d0
RS
13982005-10-01 Richard M. Stallman <rms@gnu.org>
1399
1400 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
1401
21a9a7be
KS
14022005-10-01 Kim F. Storm <storm@cua.dk>
1403
1404 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
1405
ddcb7665
YM
14062005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1407
1408 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
1409
1410 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 1411 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
1412 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
1413 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
1414
1415 * macgui.h (struct _XCharStruct): New member valid_p.
1416 (STORE_XCHARSTRUCT): Set valid_p.
1417 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
1418
1419 * macterm.c (mac_draw_string_common, x_per_char_metric)
1420 (mac_compute_glyph_string_overhangs, init_font_name_table)
1421 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
1422 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
1423 (x_draw_glyph_string_background)
1424 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
1425 XDrawImageString. Always draw background and foreground separately.
1426 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
1427 functions for one-byte chars when using ATSUI-compatible fonts.
1428 (atsu_font_id_hash) [USE_ATSUI]: New variable.
1429 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
1430 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
1431 max_char_or_byte2 more in detail.
1432 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
1433
fa8459a3
DN
14342005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
1435
4156359e 1436 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
1437 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
1438
1439 * unexelf.c (fatal): Fix prototype.
1440
1441 * term.c (fatal): Implement using varargs.
1442
21a9a7be 1443 * regex.c (re_char): Move typedef ...
fa8459a3 1444 * regex.h (re_char): ... here.
4156359e 1445 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
1446
1447 * emacs.c (malloc_set_state): Fix return type.
1448 (endif): Fix type.
1449
1450 * lisp.h (fatal): Add argument types.
1451
1452 * dispextern.h (fatal): Delete prototype.
1453
1454 * systime.h: (make_time): Prototype moved from ...
1455 * editfns.c (make_time): ... here.
1456
1457 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
1458 * dired.c:
1459 * xsmfns.c:
fa8459a3 1460 * process.c: Likewise.
21a9a7be 1461
fa8459a3
DN
1462 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
1463 Add parameter types.
1464 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
1465 (emacs_blocked_free): Change definition to match __free_hook.
1466 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 1467 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 1468
97c3e4cc
RF
14692005-09-30 Romain Francoise <romain@orebokech.com>
1470
1471 * minibuf.c (Fread_buffer): Follow convention for reading from the
1472 minibuffer with a default value. Doc fix.
1473
8ad8c5ce
JL
14742005-09-29 Juri Linkov <juri@jurta.org>
1475
1476 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
1477 Rename argument name `string' to `format-string'.
1478 (Fformat): Doc fix.
1479
64da5759
KS
14802005-09-28 Kim F. Storm <storm@cua.dk>
1481
1482 * image.c (gif_load): Fix size of allocated image buffer
1483 for images where a sub-image may be larger than the image's
1484 total height/width specifications.
1485
eaf92438
YM
14862005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1487
1488 * macgui.h (struct _XCharStruct): Each member now takes short value.
1489
43f15d4a
DN
14902005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
1491
1492 * xfaces.c (lookup_derived_face): Add parameter type.
1493
1494 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
1495
1496 * marker.c (verify_bytepos): Add parameter type.
1497
1498 * process.c (get_operating_system_release): Move prototype ...
1499
1500 * systime.h (get_operating_system_release): ... here.
1501
04bc7945
JB
1502 * xterm.c (handle_one_xevent): Refer to union field to match the
1503 type required by the function definition.
1504 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
1505
1506 * xterm.h: ... here.
1507
1508 * fns.c (internal_equal, seed_random): Fix prototypes.
1509 (internal_equal): Add missing parameter.
1510
c769dcac
RS
15112005-09-25 Richard M. Stallman <rms@gnu.org>
1512
1513 * keyboard.c (update_menu_bindings): Variable deleted.
1514 (syms_of_keyboard): Don't defvar it.
1515 (parse_menu_item): Don't test it.
1516
8dbf19c7
RS
15172005-09-23 Richard M. Stallman <rms@gnu.org>
1518
1519 * editfns.c (Fformat): Explicitly test for end of format string
1520 and don't use `index'.
1521
3480d92b
DN
15222005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
1523
4156359e
SM
1524 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
1525 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
1526
1527 * sysdep.c (get_current_dir_name): Also define if
64da5759 1528 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
1529
1530 * m/ibmrs6000.h: Test for USG5, not USG5_4.
1531
5db60f31
KS
15322005-09-22 Kim F. Storm <storm@cua.dk>
1533
1534 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
1535 (message2): Fix commentary. Ok to use alloca'ed memory.
1536 Still not ok to use Lisp string data (because of GC).
1537 (set_message): Add comment why GC cannot happen.
1538
7c3d233d
YM
15392005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1540
1541 * macterm.c (xlfdpat_block_match_1): Fix assertion.
1542 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
1543 variants for a scalable font multiple times.
1544
acde1152
YM
15452005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1546
1547 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
1548 Setup slave tty options before forking.
1549
52d166e0
JD
15502005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1551
1552 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
1553 positions have been set for the frame (as is done for frames in
1554 special-display-buffer-names).
1555
12d10bc7
KS
15562005-09-19 Kim F. Storm <storm@cua.dk>
1557
1558 * editfns.c (Fformat): Don't scan past end of format string that
1559 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
1560
9f1cf0e3
AS
15612005-09-18 Andreas Schwab <schwab@suse.de>
1562
1563 * window.h (struct window): Remove height_fixed_p, no longer set.
1564
1565 * window.c (make_window): Don't initialize height_fixed_p.
1566 (window_fixed_size_p): Don't use it.
1567
8a658a52
JPW
15682005-09-18 John Paul Wallington <jpw@pobox.com>
1569
1570 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
1571
be9bb408
YM
15722005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1573
1574 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
1575
1576 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
1577 New variables.
1578 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
1579 file selection.
1580
1581 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
1582
cbf223e1
EZ
15832005-09-17 Eli Zaretskii <eliz@gnu.org>
1584
1585 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
1586 (obj): Use XMENU_OBJ, not a literal xmenu.o.
1587
e3f509dd
RF
15882005-09-16 Romain Francoise <romain@orebokech.com>
1589
8ccd3630 1590 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 1591
5c4757d3
RS
15922005-09-15 Richard M. Stallman <rms@gnu.org>
1593
1594 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
1595 (display_mode_element): Instead of `lisp_string' and `this',
1596 record `offset' and increment that.
1597 `last_offset' replaces `last'.
1598
1599 * Makefile.in (XMENU_OBJ): Variable deleted.
1600 (obj): Use xmenu.o unconditionally.
1601 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
1602
1603 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
1604
01978521
KS
16052005-09-15 Kim F. Storm <storm@cua.dk>
1606
1607 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
1608 (reseat_at_next_visible_line_start): Likewise (in xassert).
1609
ccf61795
RF
16102005-09-14 Romain Francoise <romain@orebokech.com>
1611
1612 * fileio.c (write_region_inhibit_fsync): New variable.
1613 (Fwrite_region): Use it to skip call to fsync.
1614 (syms_of_fileio): Initialize it.
1615
2b046a72
KH
16162005-09-14 Kenichi Handa <handa@m17n.org>
1617
24a2b282
KH
1618 * coding.c (code_convert_region_unwind): Argument format changed.
1619 (run_pre_post_conversion_on_str): If pre-write-conversion function
1620 changed the current buffer, delete the new buffer.
1621 (run_pre_write_conversin_on_c_str): Likewise.
1622
2b046a72
KH
1623 * fileio.c (Fexpand_file_name): Check multibyteness of
1624 default_directory.
1625
d008f7b7
KH
16262005-09-13 Kenichi Handa <handa@m17n.org>
1627
1628 * composite.c (compose_chars_in_text): Delete it.
1629
1630 * composite.h (compose_chars_in_text): Delete extern.
1631
2ada8ac5
KS
16322005-09-13 Kim F. Storm <storm@cua.dk>
1633
1634 * print.c (print_error_message): Fix last change.
1635
48c60938
KS
16362005-09-12 Kim F. Storm <storm@cua.dk>
1637
0fdbe302
KS
1638 * composite.c (compose_chars_in_text): Fix setup of `pend'.
1639 Unconditionally reload `ptr' and `pend' after eval.
1640
48c60938
KS
1641 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
1642
1643 * print.c (print_error_message): Pass copy of caller name to
1644 message_dolog.
1645
1646 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
1647
5add1986
KH
16482005-09-12 Kenichi Handa <handa@m17n.org>
1649
1650 * xdisp.c (display_mode_element): Be sure to make variables THIS
1651 and LISP_STRING point into a string data of ELT.
1652
18bb66c7
KS
16532005-09-12 Kim F. Storm <storm@cua.dk>
1654
1655 * editfns.c (Ftranslate_region_internal): Reload `tt' after
1656 signal_after_change that may have GC'ed.
1657 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
1658
1659 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
1660 after insert while runs signal_after_change.
1661
1662 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
1663 declaration to where it is used.
1664
1665 * w32.c (check_windows_init_file): Fix allocation of error buffer.
1666
1667 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
1668 (x_set_name_internal): Call x_encode_text with new FREEP arg to
1669 know if xfree is needed instead of guessing.
1670
1671 * xterm.h (x_encode_text): Remove prototype.
1672
945a75f8
JR
16732005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
1674
1675 * w32term.c (x_bitmap_icon): Load small icons too.
1676
156bdb41
RF
16772005-09-10 Romain Francoise <romain@orebokech.com>
1678
1679 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 1680 and terminal zero. Fix typos.
156bdb41 1681
67b8391b
EZ
16822005-09-10 Eli Zaretskii <eliz@gnu.org>
1683
a17b5ed1
EZ
1684 * buffer.c (init_buffer): Fix error message for failed call to
1685 get_current_dir_name.
1686 (get_current_dir_name): Remove prototype.
1687
1688 * xsmfns.c: (get_current_dir_name): Remove prototype.
1689
96013ba9
SM
1690 * lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
1691 Add prototype.
a17b5ed1 1692
ed326e35 1693 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 1694 Don't #undef NULL after including blockinput.h.
ed326e35 1695
67b8391b
EZ
1696 * config.in: Regenerated.
1697
c187839d
EZ
16982005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
1699
1700 Remove the MAXPATHLEN limitations:
1701
1486d036
EZ
1702 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
1703 New function.
c187839d
EZ
1704
1705 * buffer.c (init_buffer): Use it.
1706
1707 * xsmfns.c (smc_save_yourself_CB): Ditto.
1708
ae8a5689
KS
17092005-09-09 Kim F. Storm <storm@cua.dk>
1710
39cac6b3
KS
1711 * doc.c (Fsubstitute_command_keys): Lookup key binding for
1712 commands that are remapped from some other command.
1713
aeb55c44
KS
1714 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
1715 flag in disabled rows below the window.
1716
ae8a5689
KS
1717 * frame.h (struct frame): New member updated_p.
1718
1719 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
1720 member. Remove local `updated' array and associated variables.
1721
821f6dae
KS
17222005-09-07 Kim F. Storm <storm@cua.dk>
1723
6e5395f2
KS
1724 * xdisp.c (handle_display_prop): Respect overlay window property.
1725
821f6dae
KS
1726 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
1727 Fixes crash reported by YAMAMOTO Mitsuharu.
1728
9655b404
YM
17292005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1730
1731 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
1732 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
1733 (xlfdpat_block_match_1, xlfdpat_match): New functions.
1734 (xlfdpat_block_match): New macro.
1735 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
1736 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
1737 (add_font_name_table_entry): Increase font_name_table_size more
1738 rapidly.
1739 (mac_c_string_match): Remove function.
1740 (mac_do_list_fonts): Use XLFD pattern match instead of regular
1741 expression match.
1742
1743 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
1744
d7ea8b71
RS
17452005-09-03 Richard M. Stallman <rms@gnu.org>
1746
1747 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
1748 (move_it_in_display_line_to): Stop after last char on line even
1749 on a windowing terminal, if that's the specified stop position.
1750
1751 * fns.c (Fsort): Doc fix.
1752
1753 * editfns.c (Fpropertize): Don't insist that properties be symbols.
1754
1550ae60
SM
17552005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
1756
1757 * dired.c (directory_files_internal_unwind, directory_files_internal)
1758 (file_name_completion): Use a Save_Value object rather than a cons of
1759 two 16bit ints to store the DIR*.
1760 (directory_files_internal, file_name_completion): Handle both EINTR and
1761 EAGAIN consistently after `readdir'.
1762
bdb4d6d8
SM
17632005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1764
1550ae60
SM
1765 * intervals.c (update_interval): Add position info in error.
1766
bdb4d6d8
SM
1767 * dispnew.c (window_to_frame_hpos, update_window):
1768 Avoid gcc warning about unused variable `f'.
1769
6bcc3ca4
JR
17702005-08-31 Jason Rumney <jasonr@gnu.org>
1771
1772 * w32menu.c (add_menu_item): If unicode_append_menu returns an
1773 error, revert to using AppendMenu.
1774
07c5948c
YM
17752005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1776
bdb4d6d8
SM
1777 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
1778 All uses changed.
07c5948c
YM
1779 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
1780 cases.
1781 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
1782 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
1783 Use posix_pathname_to_fsspec.
07c5948c
YM
1784 [MAC_OS] (xpm_load_image): Fill in background_transparent field
1785 while we have mask.
1786
1787 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
1788
1789 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
1790
5a774522
SM
17912005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1792
1793 * syntax.c (update_syntax_table): Properly reproduce the special +1
1794 setting of e_property at the end of the buffer when bumping into the
1795 INTERVALS_AT_ONCE limit.
1796
0fb57cc0
EZ
17972005-08-27 Eli Zaretskii <eliz@gnu.org>
1798
1799 * emacs.c (USAGE1): Fix the description of the -Q option.
1800
5a774522
SM
18012005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
1802
1803 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
1804
4e6b8c5a
KS
18052005-08-26 Kim F. Storm <storm@cua.dk>
1806
1807 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
1808 Don't move PT to new window start.
1809
1f98fbb4
YM
18102005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1811
1812 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
1813 ICONIFY/DEICONIFY_EVENT.
1814
5a774522
SM
1815 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
1816 Restore background color.
1f98fbb4
YM
1817 (mac_handle_visibility_change): New function.
1818 (x_make_frame_invisible, x_iconify_frame)
1819 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
1820 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 1821 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
1822 (x_make_frame_visible): Don't reposition window if it is iconified
1823 or asked for visible before. Select and uncollapse window when it
1824 is made visible.
1825 (x_make_frame_invisible): Don't reset x_highlight_frame.
1826 (x_iconify_frame): Likewise. Make invisible frame visible before
1827 it is iconified.
1828 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
1829 (do_window_update): Don't change visibility of invisible frame.
1830
16691d29
JL
18312005-08-22 Juri Linkov <juri@jurta.org>
1832
1833 * term.c (turn_on_face): Check for TS_set_foreground and
1834 TS_set_background depending on standout_mode. Simplify.
1835
7c3f805b
KS
18362005-08-21 Kim F. Storm <storm@cua.dk>
1837
0f467468
KS
1838 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
1839 bitmaps on fully visible rows.
1840
7c3f805b
KS
1841 * fringe.c (update_window_fringes): Replace FORCE_P arg with
1842 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
1843 and return 0.
1844
1845 * xdisp.c (redisplay_window): Call update_window_fringes with
1846 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
1847
40b388f9
RS
18482005-08-20 Richard M. Stallman <rms@gnu.org>
1849
1850 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
1851 (resize_mini_window): Set w->start, and PT, so as to display the tail
1852 end of the buffer, if it doesn't all fit.
1853
581360f0
KS
18542005-08-18 Kim F. Storm <storm@cua.dk>
1855
1856 * xdisp.c (calc_pixel_width_or_height): Use actual display
1857 resolution when available instead of Vdisplay_pixels_per_inch.
1858
0eefa6fb
KS
18592005-08-17 Kim F. Storm <storm@cua.dk>
1860
1861 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
1862
1863 * dispnew.c (buffer_posn_from_coords): Check that target row is
1864 within matrix.
1865
ada192ba
JD
18662005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1867
1868 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
1869 xg_set_frame_icon and call it.
1870
1871 * gtkutil.c (xg_set_frame_icon): New function.
1872
0eefa6fb 1873 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 1874
ab89a403
KS
18752005-08-16 Kim F. Storm <storm@cua.dk>
1876
1877 * dispnew.c (increment_row_positions): Skip non-enabled rows.
1878
1879 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
1880 (Fcurrent_window_configuration): Use VECSIZE macro instead.
1881
8d34b5e1
RS
18822005-08-15 Richard M. Stallman <rms@gnu.org>
1883
1884 * xdisp.c (message3_nolog): Clear echo_message_buffer.
1885
71e37f3c
KS
18862005-08-15 Kim F. Storm <storm@cua.dk>
1887
0781c303
KS
1888 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
1889
71e37f3c
KS
1890 * process.c (deactivate_process, status_notify, read_process_output)
1891 (update_status, status_convert, decode_status, allocate_pty)
1892 (make_process, remove_process, list_processes_1)
1893 (create_process_1, unwind_request_sigio, read_process_output)
1894 (send_process, keyboard_bit_set): Declare static.
1895 (Fdelete_process): Simplify. Pass process to status_notify, so we
1896 don't try to read output from it.
1897 (status_notify): New arg deleting_process--don't try to read
1898 output from that process.
1899
1900 * lisp.h (deactivate_process, status_notify, read_process_output):
1901 Remove prototypes.
1902
0bf14bfd
RS
19032005-08-14 Richard M. Stallman <rms@gnu.org>
1904
bdb4d6d8
SM
1905 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
1906 define_image_type.
0bf14bfd 1907
6c7eb721
JD
19082005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1909
1910 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
1911 (xg_get_image_for_pixmap): Move some code to
1912 xg_get_pixbuf_from_pix_and_mask, and call it.
1913
1914 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
1915
1916 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
1917 to get an GTK icon and set it with GTK functions to avoid having GTK
1918 override an icon set with just X functions.
1919
6e2d14c8
RS
19202005-08-11 Richard M. Stallman <rms@gnu.org>
1921
bdb4d6d8
SM
1922 * image.c (syms_of_image): Init image_types here, and call
1923 define_image_type.
6e2d14c8
RS
1924 (init_image): Not here.
1925
61298e17
RS
19262005-08-09 Richard M. Stallman <rms@gnu.org>
1927
1928 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
1929
1930 * lisp.h (QUIT): Throw t to Vthrow_on_input.
1931
5a9807a8
TTN
19322005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
1933
1934 * floatfns.c (Fexpt): Use floats for negative exponent.
1935
93469010
JD
19362005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1937
1938 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
1939 should not be there, causing menu display errors with GTK 2.6.9.
1940
44edd521
RS
19412005-08-07 Richard M. Stallman <rms@gnu.org>
1942
8b6a9551
RS
1943 * floatfns.c (Fexpt): Undo previous change.
1944
44edd521
RS
1945 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
1946 so it can be used with various state vectors.
1947
1948 * emacs.c (endif): Convert -script into -scriptload.
1949 (standard_args): Add -scriptload. Allow -basic-display with one dash.
1950
1951 * fns.c (syms_of_fns): Add `emacs' to features.
1952
1953 * term.c (set_terminal_modes): If no TS_termcap_modes string,
1954 output newlines to scroll the old screen contents off the screen.
1955
cac87e30
TTN
19562005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
1957
2a205424
TTN
1958 * floatfns.c (Fexpt): Use floats for negative exponent.
1959 Reported by D Goel.
cac87e30 1960
31b7cc74
JB
19612005-08-02 Richard M. Stallman <rms@gnu.org>
1962
1963 * frame.c (Fframe_char_width): Doc fix.
1964
e2b64074
JB
19652005-07-30 Juanma Barranquero <lekktu@gmail.com>
1966
1967 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
1968 Defvar it.
1969
0962822d
JB
19702005-07-28 Juanma Barranquero <lekktu@gmail.com>
1971
1972 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
1973 (my_create_window, my_create_tip_window): Make static.
1974
1975 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
1976 (my_set_foreground_window, my_destroy_window): Make static.
1977
9eff9fe3
PE
19782005-07-26 Paul Eggert <eggert@cs.ucla.edu>
1979
1980 Merge gnulib getopt implementation into Emacs.
1981
1982 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
1983 now part of lib-src.
1984
1c9916a1
SM
19852005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
1986
1987 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
1988
94c7f257
JR
19892005-07-25 Jason Rumney <jasonr@gnu.org>
1990
1991 * w32menu.c (w32_menu_display_help): Suppress tooltip when
1992 navigating menus with the keyboard.
1993
bf0bf758
RS
19942005-07-23 Richard M. Stallman <rms@gnu.org>
1995
1996 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
1997
1998 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
1999 gc_relative_threshold, one by one.
2000
2001 * keyboard.c (read_char): Test gc_cons_threshold.
2002 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
2003
2004 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
2005 gc_relative_threshold, one by one.
2006
2007 * alloc.c (gc_cons_threshold): Not static.
2008 (gc_cons_combined_threshold): Var deleted.
2009 (gc_relative_threshold): New variable.
2010 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
2011 instead of gc_cons_combined_threshold.
2012
1c9916a1 2013 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
2014 (gc_cons_combined_threshold): Declaration deleted.
2015
99f963e4
YM
20162005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2017
2018 * mac.c: Don't include stdlib.h or string.h.
2019 (Fdo_applescript, Fmac_file_name_to_posix)
2020 (Fmac_file_name_to_posix): Doc fixes.
2021 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
2022 (Fmac_code_convert_string): Likewise.
2023 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
2024 if the executable is not contained in a bundle.
2025
2026 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
2027 (gray_width, gray_height): Remove defines.
2028 (gray_bits, gray_bitmap_width, gray_bitmap_height)
2029 (gray_bitmap_bits): Remove variables.
2030 (lispy_function_keys): Remove extern.
2031 (free_frame_menubar): Add extern.
2032 (x_window_to_frame): Remove function.
2033 (unwind_create_tip_frame): Add declaration.
2034 (x_set_name_internal): New function.
2035 (x_set_name, x_set_title): Use it.
2036 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
2037 (Fx_display_pixel_height, Fx_display_planes)
2038 (Fx_display_color_cells, Fx_server_max_request_size)
2039 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2040 (Fx_display_mm_height, Fx_display_mm_width)
2041 (Fx_display_backing_store, Fx_display_visual_class)
2042 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
2043
2044 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2045
bdb4d6d8 2046 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
2047 (Fx_get_selection_internal, Fx_selection_owner_p)
2048 (Fx_selection_exists_p): Doc fixes.
2049 (syms_of_macselect) <selection-converter-alist>: Likewise.
2050
1d256714
JB
20512005-07-21 Juanma Barranquero <lekktu@gmail.com>
2052
2053 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2054
2055 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
2056 (Fccl_execute_on_string): Likewise; add usage info.
2057
2058 * composite.c (Fcompose_region_internal)
2059 (Fcompose_string_internal):
2060 Improve argument/docstring consistency.
2061
2062 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
2063 Fix typos in docstrings.
2064
2065 * textprop.c (Fnext_char_property_change)
2066 (Fprevious_char_property_change): Doc fixes.
2067
2068 * window.c (Fset_window_margins, Fset_window_fringes):
2069 Improve argument/docstring consistency.
2070
2071 * xfaces.c (Finternal_lisp_face_p): Doc fix.
2072
538f78c3
AS
20732005-07-21 Andreas Schwab <schwab@suse.de>
2074
2075 * eval.c (restore_stack_limits): Return a value.
2076
a5b5bf44
JB
20772005-07-20 Juanma Barranquero <lekktu@gmail.com>
2078
2079 * eval.c (Fdefvar): Doc fix.
2080
ae643123
KS
20812005-07-20 Kim F. Storm <storm@cua.dk>
2082
0ed4bf15
KS
2083 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
2084 Use make_save_value to unwind protect stream.
2085
2086 * lread.c (Fload, load_unwind):
2087 Use make_save_value to unwind protect stream.
ae643123 2088
82fc29a1
JB
20892005-07-19 Juanma Barranquero <lekktu@gmail.com>
2090
2091 * eval.c (Fprog2, Fcalled_interactively_p),
2092 (syms_of_eval) <debug-on-quit>: Doc fixes.
2093 (syms_of_eval) <max-specpdl-size>:
2094 (Finteractive_p): Fix typos in docstrings.
2095
73b90087
KS
20962005-07-19 Kim F. Storm <storm@cua.dk>
2097
2098 * w32fns.c (Vx_hand_shape): Variable removed.
2099 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
2100
dfc434d0
KH
21012005-07-19 Kenichi Handa <handa@m17n.org>
2102
bdb4d6d8 2103 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 2104
bcd98331
SM
21052005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
2106
2107 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
2108
2a85a754
KS
21092005-07-18 Kim F. Storm <storm@cua.dk>
2110
2111 * frame.h (struct frame): New member already_hscrolled_p.
2112
2113 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
2114 to avoid redisplay looping hscrolling back and forth ad infinitum.
2115
426179e1
JL
21162005-07-18 Juri Linkov <juri@jurta.org>
2117
2118 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
2119 * keymap.c (Fminor_mode_key_binding):
2120 * macterm.c (mac-emulate-three-button-mouse):
2121 Delete duplicate duplicate words.
2122
9f4a578d
KR
21232005-07-18 Ken Raeburn <raeburn@gnu.org>
2124
2125 * minibuf.c (Ftest_completion): Fix odd syntax in test.
2126
d005338b
YM
21272005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2128
bcd98331 2129 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
2130
2131 * macgui.h (struct _XGC): New struct.
2132 (GC): Use it.
2133 (GCForeground, GCBackground, GCFont): Use X11 mask values.
2134 (XCreateGC, XParseGeometry): Move externs to macterm.h.
2135
bcd98331 2136 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 2137 (XSetFont): Add declaration.
bcd98331
SM
2138 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
2139 Remove functions.
2140 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
2141 New defines.
d005338b
YM
2142 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
2143 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
2144 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
2145 Use them.
d005338b
YM
2146 (mac_erase_rectangle): New function.
2147 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
2148 (x_draw_stretch_glyph_string): Use it.
2149 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
2150 (XSetBackground, XSetFont): Adjust for new GC implementation.
2151 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
2152 (XTset_vertical_scroll_bar): Clear area under scroll bar.
2153
2154 * macterm.h (struct mac_display_info): Change types of
2155 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
2156 (XCreateGC, XParseGeometry): Move externs from macgui.h.
2157
2158 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
2159
9b0c2c56
RS
21602005-07-16 Richard M. Stallman <rms@gnu.org>
2161
2162 * buffer.c (Fmake_overlay): Doc fix.
2163
2e9c1c6d
EZ
21642005-07-16 Eli Zaretskii <eliz@gnu.org>
2165
2166 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
2167 Vw32_valid_locale_ids, and Vw32_valid_codepages.
2168
407289a4
YM
21692005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2170
bcd98331
SM
2171 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
2172 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 2173
e4b477a1
RS
21742005-07-15 Richard M. Stallman <rms@gnu.org>
2175
2176 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
2177
a8613adf
KS
21782005-07-15 Kim F. Storm <storm@cua.dk>
2179
2180 * xdisp.c: Fix redisplay loop in last change.
2181 (IT_POS_VALID_AFTER_MOVE_P): New macro.
2182 (move_it_vertically_backward, move_it_by_lines): Use it.
2183
2d5324c5
JR
21842005-07-14 Jason Rumney <jasonr@gnu.org>
2185
2186 * w32.c (init_environment): Default HOME directory to user's
2187 appdata directory if possible.
2188
3ed70dc4
KS
21892005-07-14 Kim F. Storm <storm@cua.dk>
2190
7b9389b0
KS
2191 * .gdbinit (pitx): Fix output format. Print string charpos.
2192
3ed70dc4
KS
2193 * lread.c (syms_of_lread): Initialize seen_list.
2194
2195 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
2196
2197 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
2198 Staticpro re_match_object.
2199
ef029e5a
YM
22002005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2201
2202 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
2203 dereference.
2204
2205 * macterm.c (mac_window_to_frame): Remove duplicate define.
2206
16ef9c56
KH
22072005-07-14 Kenichi Handa <handa@m17n.org>
2208
2209 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 2210 (code_convert_region): Adjust for the above change.
16ef9c56
KH
2211 (set_conversion_work_buffer): If the work buffer is already in
2212 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 2213 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
2214 (run_pre_write_conversin_on_c_str): Likewise.
2215
098e1273
KS
22162005-07-13 Kim F. Storm <storm@cua.dk>
2217
010b9a45
KS
2218 * xdisp.c (start_display): Don't reseat to next visible line start
2219 if current start position is in a string or image.
2220 (move_it_vertically_backward): Be sure to move out of strings and
2221 images when moving it2 forward.
2222 (move_it_by_lines): When moving forward, move to next buffer
2223 position if we end up in a string or image. When moving backward,
2224 count rows moved over when moving to start of current row in case
2225 row starts in middle of a string or image. Also move further
2226 backward if we end up in a string or image.
bcd98331 2227 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
2228 move backward to set cursor on start of an overlay string.
2229 (cursor_row_p): Row is ok if cursor is at newline from string, but
2230 string starts on this line (so we always position cursor at start
2231 of string).
2232
2233 * indent.c (Fvertical_motion): If start position is on an image,
2234 don't move back if we move too far (that's almost certain to happen).
2235
098e1273
KS
2236 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
2237 row in minibuffer windows.
2238 (try_window): Don't check margins in minibuffer windows.
2239
c229fb15
YM
22402005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2241
2242 * macterm.c: Don't include stdlib.h or composite.h.
2243 (x_use_underline_position_properties, last_mouse_press_frame)
2244 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
2245 (syms_of_macterm, mac_initialize): Don't initialize them.
2246 (waiting_for_input, initial_argv, initial_argc)
2247 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
2248 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
2249 (extra_keyboard_modifiers): Fix type in extern.
2250 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
2251 (x_scroll_bar_report_motion): Add argument types to declaration.
2252 (mac_compute_glyph_string_overhangs): Add declaration.
2253 (disable_mouse_highlight): Remove unused variable.
2254 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
2255 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
2256 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
2257 All callers changed.
c229fb15
YM
2258 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
2259 timestamp.
2260 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
2261 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
2262 only when its width is less than the height.
2263 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
2264 (font_name_table, font_name_table_size, font_name_count):
2265 Make static.
c229fb15
YM
2266 (drag_and_drop_file_list): Remove variable. Previous use is now
2267 local to function.
2268 (do_ae_open_documents): Move DRAG_N_DROP event construction part
2269 from XTread_socket.
bcd98331
SM
2270 (XTread_socket): Consolidate setting of event timestamp.
2271 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
2272 Support extra_keyboard_modifiers.
2273
2274 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
2275 beginning with that for ASCII.
2276
69d05d83
SM
22772005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
2278
2279 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
2280 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
2281 (syms_of_alloc): Declare gc-cons-percentage.
2282
2283 * eval.c (Feval, Ffuncall):
2284 * keyboard.c (read_char):
2285 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
2286
2287 * lisp.h (gc_cons_combined_threshold): Declare.
2288
5c7f9de1
KS
22892005-07-12 Kim F. Storm <storm@cua.dk>
2290
2291 * coding.c (Qprocess_argument):
2292 * coding.h (Qprocess_argument): Remove unused var.
2293
2294 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
2295
c37efb7a
YM
22962005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2297
2298 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
2299 Endian.h.
2300 [!MAC_OSX] (fchmod, fchown): New functions.
2301 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
2302 Use SBYTES and EndianU32_BtoN.
2303 (mac_get_object_from_code): Return 4 byte string even if argument
2304 is 0. Use make_unibyte_string and EndianU32_NtoB.
2305 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
2306 (Fmac_set_file_type): Fix documents and argument declarations.
2307 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
2308
a4429c5b
SM
23092005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
2310
2311 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
2312
a2d7e722
JD
23132005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2314
2315 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
2316 Lucid if X_I18N, font otherwise.
2317
9a4183e9
ST
23182005-07-10 Steven Tamm <steventamm@mac.com>
2319
a4429c5b
SM
2320 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
2321 (Fmac_set_file_type, Fmac_set_file_creator): Add.
2322 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 2323
51f74c37
RS
23242005-07-10 Richard M. Stallman <rms@gnu.org>
2325
2326 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
2327 (syms_of_lread): Set up eval-buffer-list.
2328 (Feval_buffer, Feval_region): Bind eval-buffer-list.
2329
93c7da4c
RS
23302005-07-08 Richard M. Stallman <rms@gnu.org>
2331
2332 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
2333
64af5917
KS
23342005-07-08 Kim F. Storm <storm@cua.dk>
2335
2336 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
2337 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
2338
a96b333c
KS
23392005-07-07 Kim F. Storm <storm@cua.dk>
2340
2341 * window.c (Frecenter): Fix last change (set iarg before use).
2342
dc2204be
RS
23432005-07-06 Richard M. Stallman <rms@gnu.org>
2344
2345 * window.c (Frecenter): When arg is inside the scroll margin,
2346 move it out of the margin.
2347
3fb1d72b
JR
23482005-07-06 Jason Rumney <jasonr@gnu.org>
2349
2350 * w32console.c (initialize_w32_display): Detect when the console
2351 dimensions are insane, and default to 80x25 instead.
a4429c5b 2352 (w32_use_full_screen_buffer): Default to NIL.
3fb1d72b 2353
dd15724d
YM
23542005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2355
2356 * macterm.c (mac_draw_vertical_window_border): Use foreground of
2357 VERTICAL_BORDER_FACE_ID for vertical border line.
2358 (mac_encode_char): Call check_ccl_update in advance.
2359 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
2360 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
2361 Don't assume that font family length is less than 32.
dd15724d
YM
2362 (x_compute_min_glyph_bounds): Make static.
2363 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 2364
68003d6b
LK
23652005-07-04 Lute Kamstra <lute@gnu.org>
2366
dc2204be 2367 * Update FSF's address in GPL notices.
68003d6b 2368
3d393029
RS
23692005-07-03 Richard M. Stallman <rms@gnu.org>
2370
2371 * xdisp.c (try_window): Fix previous change in how it handles
2372 a partially-visible line or one only partly past the margin.
2373
2374 * window.c (window_scroll_pixel_based): Take account
2375 of this_scroll_margin when finding point when scrolling up.
2376
23772005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
2378
2379 * window.c (window_scroll_pixel_based, window_scroll_line_based):
2380 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
2381 (syms_of_window): <scroll-preserve-screen-position>: Doc fix.
2382
d6951bb4
EZ
23832005-07-02 Juri Linkov <juri@jurta.org>
2384
2385 * w32term.c (w32_draw_vertical_window_border): Use foreground of
2386 VERTICAL_BORDER_FACE_ID for vertical border line.
2387
b016179b
EZ
23882005-07-02 Eli Zaretskii <eliz@gnu.org>
2389
2390 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
2391 fchmod so that chmod doesn't get called on MSDOS before the file
2392 is closed.
2393
c2baa2b6
JR
23942005-07-01 Jason Rumney <jasonr@gnu.org>
2395
2396 * w32term.c (cleartype_active): New flag for enabling sub-pixel
2397 workaround.
2398 (w32_initialize): Initialize it.
2399 (w32_native_per_char_metric): Allow a couple of extra pixels when
2400 Cleartype is active.
2401
2402 * w32term.c (w32_initialize): Move check for screen reader here
2403 from syms_of_w32term.
2404
a6d0ae55
JD
24052005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2406
2407 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
2408 is not zero.
2409
711877f3
MY
24102005-07-01 Masatake YAMATO <jet@gyve.org>
2411
a4429c5b 2412 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 2413
63f7ffb3
JL
24142005-06-30 Juri Linkov <juri@jurta.org>
2415
2416 * xdisp.c (x_draw_vertical_border): If left fringe is not present
2417 decrease x coord of vertical border by 1 pixel to not occupy text
2418 area of the right window.
2419
2420 * xterm.c (x_draw_vertical_window_border): Use foreground of
2421 VERTICAL_BORDER_FACE_ID for vertical border line.
2422
2423 * term.c (turn_on_face): In standout mode apply specified
2424 fg to bg, and specified bg to fg (this makes the logic of
2425 inversion on terminal consistent with X).
2426
b26860ad
JB
24272005-06-29 Juanma Barranquero <lekktu@gmail.com>
2428
2429 * eval.c (user_variable_p_eh): New function.
2430 (Fuser_variable_p): Use it. Clarify docstring.
2431 Return t for aliases of user options, nil for alias loops.
2432
3a1f1d79
RS
24332005-06-27 Richard M. Stallman <rms@gnu.org>
2434
2435 * eval.c (Fdefvar): Improve error message.
2436
92de1e01
YM
24372005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2438
2439 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
2440 change.
2441
69410484
JB
24422005-06-27 Juanma Barranquero <lekktu@gmail.com>
2443
2444 * eval.c (Fdefvar): Don't try to set constant symbols.
2445
09352e8f
RS
24462005-06-25 Richard M. Stallman <rms@gnu.org>
2447
a68d870b
RS
2448 * macfns.c (Fx_show_tip): Pass new arg to try_window.
2449
2450 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
2451
2452 * xfns.c (Fx_show_tip): Pass new arg to try_window.
2453
2454 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
2455 (redisplay_window): Handle try_window reporting point in scroll margin.
2456
2457 * dispextern.h (try_window): Declare new arg.
2458
2459 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
2460 Use fchmod to copy the file modes.
2461 (Frename_file): Don't copy UID and GID here;
2462 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
2463
df13531d
RS
2464 * eval.c (call_debugger): Take full care of extending stack limits
2465 to make space for the debugger, and restore the change afterward.
2466 Bind debug-on-error to nil.
2467 (restore_stack_limits): New subroutine.
2468 (Fsignal): Extend specpdl bound along with eval depth bound,
2469 for calling edebug. Don't do either one, for calling debugger.
2470 (find_handler_clause): Don't bind debug-on-error here.
2471 Don't unbind anything either.
2472 Temporarily advance max_specpdl_size for calling
2473 internal_with_output_to_temp_buffer.
2474 (grow_specpdl): Don't alter max_specpdl_size before signaling
2475 an error.
2476 (syms_of_eval) <max-specpdl-size>: Doc fix.
2477
09352e8f
RS
2478 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
2479
90296dd3
EZ
24802005-06-24 Eli Zaretskii <eliz@gnu.org>
2481
2482 * fileio.c (Frename_file): Undo last change: no need to ifdef away
2483 chown on DOS_NT platforms.
2484
2485 * w32.c (sys_chown): New function.
2486
2487 * s/ms-w32.h (chown): New; define to sys_chown.
2488
c4f6ca24
JB
24892005-06-24 Juanma Barranquero <lekktu@gmail.com>
2490
3338c0ad
JB
2491 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
2492 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
2493
9a1505e9 2494 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 2495
528b6abc
RS
24962005-06-23 Richard M. Stallman <rms@gnu.org>
2497
2498 * xdisp.c (get_next_display_element): Finish reversing the tests of
2499 Vnobreak_char_display.
2500
9a1505e9 2501 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 2502 All uses changed.
9a1505e9 2503 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
2504 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
2505
2506 * fileio.c (Frename_file): Preserve owner and group, if possible,
2507 when copying.
2508
1d1c7e75
JB
25092005-06-23 Juanma Barranquero <lekktu@gmail.com>
2510
253b2298
JB
2511 * abbrev.c (Funexpand_abbrev):
2512 * category.c (Fmake_category_set):
2513 * dispnew.c (Fsleep_for, Fsit_for):
2514 * editfns.c (Fsubst_char_in_region):
2515 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
2516 * frame.c (make_frame_without_minibuffer):
2517 * lread.c (read_vector):
2518 * macfns.c (check_x_frame):
2519 * process.c (Fstop_process, Fcontinue_process):
2520 * search.c (Freplace_match):
2521 * syntax.c (Fstring_to_syntax):
2522 * w32fns.c (check_x_frame, check_x_display_info):
2523 * xfaces.c (x_supports_face_attributes_p):
2524 * xselect.c (Fx_own_selection_internal): Follow error conventions.
2525
1d1c7e75
JB
2526 * image.c (fn_png_init_io): Don't define it.
2527 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
2528 (png_read_from_file): New function, based on png_read_from_memory.
2529 (png_load): Use it, instead of fn_png_init_io.
2530
d1fab151
KS
25312005-06-23 Kim F. Storm <storm@cua.dk>
2532
2533 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 2534 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
2535 Add commentary explaining evaporate arg (for internal use only).
2536 (unwind_set_match_data): Add comment on evaporate use.
2537
53abc3bf
MB
25382005-06-22 Miles Bader <miles@gnu.org>
2539
a4429c5b 2540 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
2541 (realize_basic_faces, syms_of_xfaces): Update references to it.
2542 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
2543 to `VERTICAL_BORDER_FACE_ID'.
2544 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
2545
36a3b076
JL
25462005-06-21 Juri Linkov <juri@jurta.org>
2547
2548 * dispextern.h: Add extern Qframe_set_background_mode.
2549
2550 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
2551 Qframe_set_background_mode.
2552
2553 * frame.c (Fmodify_frame_parameters):
2554 Call frame-set-background-mode after changing the background color
2555 on non-window non-dos branch.
2556
23873c96
JB
25572005-06-21 Juanma Barranquero <lekktu@gmail.com>
2558
2559 * fns.c (Fchar_table_range):
2560 * process.c (Fmake_network_process): Fix spellings.
2561
b7d1f38f
KS
25622005-06-20 Kim F. Storm <storm@cua.dk>
2563
2564 * fns.c (Fsort): Doc fix.
2565
b4e49aee
MB
25662005-06-20 Miles Bader <miles@gnu.org>
2567
2568 * xfaces.c (Qvertical_divider): New variable.
2569 (realize_basic_faces): Realize its face.
2570 (syms_of_xfaces): Initialize it.
2571
2572 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
2573
2574 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
2575 window-separator on ttys using `vertical-divider' face by default.
2576
b7da00ba
RS
25772005-06-17 Richard M. Stallman <rms@gnu.org>
2578
a4429c5b
SM
2579 * xdisp.c (get_next_display_element):
2580 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
2581
2582 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
2583 (Ftty_no_underline): New function.
2584 (syms_of_term): defsubr it.
b7d1f38f 2585
b7da00ba
RS
2586 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
2587
2588 * dispnew.c (spec_glyph_lookup_face): New function.
2589 (build_frame_matrix_from_leaf_window): Use it.
2590
2591 * dispextern.h (spec_glyph_lookup_face): Add declaration.
2592
2593 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2594
25952005-06-12 Richard M. Stallman <rms@gnu.org>
2596
2597 * keyboard.c (read_char): After catching a longjmp,
2598 call restore_getcjmp.
2599
289824a3
JB
26002005-06-17 Juanma Barranquero <lekktu@gmail.com>
2601
2602 * xselect.c (lisp_data_to_selection_data): Fix spelling.
2603
95085023
YM
26042005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2605
2606 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
2607 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
2608 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
2609 events.
2610 (XTread_socket): Don't pass keyboard events with the option
2611 modifier to the system when Vmac_command_key_is_meta is nil or
2612 Vmac_option_modifier is non-nil.
2613 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
2614 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
2615 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
2616 handler function.
2617 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
2618 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
2619 handler part to mac_handle_mouse_event.
2620
4a9308b8
JB
26212005-06-14 Juanma Barranquero <lekktu@gmail.com>
2622
2623 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
2624 NEW-ALIAS and BASE-VARIABLE, respectively.
2625
5aa6db57
SM
26262005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
2627
2628 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
2629 (get_phys_cursor_geometry, format_mode_line_unwind_data)
2630 (get_line_height_property, x_produce_glyphs): Remove unused vars.
2631
2632 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
2633
0e0dddda
EZ
26342005-06-13 Eli Zaretskii <eliz@gnu.org>
2635
2636 * w32term.c (x_use_underline_position_properties): New variable.
2637 (x_draw_glyph_string): Remind in a comment to change doc string of
2638 x-use-underline-position-properties if/when underline positioning
2639 is implemented.
2640 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
2641 and initialize it to nil.
2642
7f2b4738
JR
26432005-06-12 Jason Rumney <jasonr@gnu.org>
2644
2645 * w32fns.c (NEWOPENFILENAME): New struct.
2646 (Fx_file_dialog): Use it to trick the system into giving us up to
2647 date dialogs on systems that are documented to support it.
2648 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
2649
a1e8cad6
EZ
26502005-06-12 Eli Zaretskii <eliz@gnu.org>
2651
2652 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
2653 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
2654
099a3eea
EZ
26552005-06-11 Eli Zaretskii <eliz@gnu.org>
2656
2e09fef1
EZ
2657 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
2658 to CreateDIBSection to avoid a compiler warning.
2659 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
2660 warning.
2661 (png_load): Cast return values of fn_png_create_read_struct and
2662 fn_png_create_info_struct, to avoid compiler warnings on W32.
2663 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
2664 to avoid compiler warnings.
2665 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
2666 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
2667 avoid a compiler warning.
2668 (tiff_load): Cast return values of fn_TIFFOpen and
2669 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
2670 to IMAGE_BACKGROUND to avoid a compiler warning.
2671 (gif_load): Cast return values of fn_DGifOpenFileName and
2672 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
2673 IMAGE_BACKGROUND to avoid a compiler warning.
2674 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
2675 before redefining.
2676
099a3eea
EZ
2677 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
2678 the call to CreateDIBSection, to avoid a compiler warning.
2679
d11f8e1a
JR
26802005-06-11 Jason Rumney <jasonr@gnu.org>
2681
2682 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
2683 minibuffer.
2684 * macfns.c (Fx_file_dialog): Likewise.
2685
cd4344a3
EZ
26862005-06-10 Eli Zaretskii <eliz@gnu.org>
2687
2688 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
2689
578c1340
JB
26902005-06-10 Juanma Barranquero <lekktu@gmail.com>
2691
2692 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
2693 * w32fns.c (syms_of_w32fns): Fix spellings.
2694
4162f25f
EZ
26952005-06-10 Eli Zaretskii <eliz@gnu.org>
2696
2697 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
2698 `verbose'; print diagnostic messages only if it is non-zero.
2699 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
2700 in the environment.
2701 (copy_executable_and_dump_data): Print section names with %.8s.
2702
121c59a3
MY
27032005-06-10 Masatake YAMATO <jet@gyve.org>
2704
2705 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
2706 when mouse_face is not given.
121c59a3 2707
c869384d
LT
27082005-06-09 Luc Teirlinck <teirllm@auburn.edu>
2709
2710 * window.c (Fselect_window): Adapt call to Fselect_frame.
2711
2712 * lisp.h: Update EXFUN of Fselect_frame.
2713
2714 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
2715
6ecf436d
LT
2716 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
2717 no_enter.
2718 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
2719 Adapt to above change.
2720
c14ec135
JB
27212005-06-10 Juanma Barranquero <lekktu@gmail.com>
2722
2723 * fns.c (Fmemq, Fmaphash): Doc fixes.
2724
9fed2905
JB
27252005-06-09 Juanma Barranquero <lekktu@gmail.com>
2726
2727 * xfaces.c (Fdisplay_supports_face_attributes_p):
2728 Fix typo in docstring.
2729
427c5b1b
ST
27302005-06-08 Steven Tamm <steventamm@mac.com>
2731
2732 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
2733 used by gcc4 on intel mac.
2734
b7aae902
KS
27352005-06-09 Kim F. Storm <storm@cua.dk>
2736
2737 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
2738 in REUSE list if non-nil; free them if equal to evaporate.
2739 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
2740 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
2741 (restore_search_regs): Rename from restore_match_data. Uses changed.
2742 (unwind_set_match_data): New function.
2743 (record_unwind_save_match_data): New function like save-match-data.
2744
2745 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
2746 (record_unwind_save_match_data): Add prototype.
2747 (restore_search_regs): Rename from restore_match_data.
2748
2749 * composite.c (compose_chars_in_text):
2750 * eval.c (do_autoload):
2751 * macmenu.c (set_frame_menubar):
2752 * process.c (read_process_output, exec_sentinel):
2753 * xmenu.c (set_frame_menubar):
2754 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
2755 * w32menu.c (set_frame_menubar):
2756 Use record_unwind_save_match_data.
2757
547d2b37
RS
27582005-06-08 Richard M. Stallman <rms@gnu.org>
2759
2760 * xdisp.c (get_next_display_element): Alter previous change:
2761 Distinguish Vshow_nonbreak_escape = t or not t.
2762 For t, use escape_glyph once again, as before previous change.
2763 Use space or hyphen for display, instead of the non-ASCII char.
2764 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
2765
2766 * process.c (Fstart_process): Don't touch command_channel_p slot.
2767
99598737 2768 * process.h (struct process): Delete command_channel_p.
547d2b37 2769
602907ae
MY
27702005-06-07 Masatake YAMATO <jet@gyve.org>
2771
5aa6db57
SM
2772 * xdisp.c (note_mode_line_or_margin_highlight):
2773 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 2774 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
2775 is not ON_MODE_LINE nor ON_HEADER_LINE.
2776
8b793bed
KS
27772005-06-07 Kim F. Storm <storm@cua.dk>
2778
2779 * process.c: Improve commentary for adaptive read buffering.
2780
3d031334
SM
27812005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
2782
2783 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
2784 if available.
2785
16d2e704
JD
27862005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2787
5aa6db57
SM
2788 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
2789 New functions for popping down menus on C-g.
16d2e704
JD
2790 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
2791
2792 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
2793 non-static.
2794
9fed2905 2795 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 2796
b6cc2ad0
EZ
27972005-06-06 Eli Zaretskii <eliz@gnu.org>
2798
9a1505e9 2799 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 2800
5aa6db57 2801 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
2802
2803 * w32proc.c (RVA_TO_PTR): New macro.
2804
2805 * w32heap.c (RVA_TO_PTR): No need to #undef now.
2806
2807 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
2808 Depend on w32heap.h.
2809
24e55feb
LT
28102005-06-06 Luc Teirlinck <teirllm@auburn.edu>
2811
2812 * keyboard.c (command_loop_1): Update Vthis_original_command.
2813
ce6e10af
RS
28142005-06-06 Richard M. Stallman <rms@gnu.org>
2815
2816 * xmenu.c (popup_get_selection): Undo previous change.
2817
c476bcb0
JL
28182005-06-06 Juri Linkov <juri@jurta.org>
2819
2820 * xdisp.c (Qno_break_space): New variable.
2821 (syms_of_xdisp): Initialize it.
2822 (get_next_display_element): Add no-break space and soft hypen
2823 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
2824 Use `no-break-space' face for no-break spaces.
2825
5494d7bc
JD
28262005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2827
2828 * window.c (delete_window): Handle the case where a h/vchild has
2829 a h/vchild.
2830
a0c38328
EZ
28312005-06-05 Eli Zaretskii <eliz@gnu.org>
2832
2833 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
2834 call to pfn_setsockopt, cast optval to `const char *'.
2835
91018229
EZ
28362005-06-04 Eli Zaretskii <eliz@gnu.org>
2837
1a8fb426
EZ
2838 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
2839 (open_unc_volume): Cast return value of map_w32_filename, to avoid
2840 compiler warnings.
2841
b6f0a397
EZ
2842 * s/ms-w32.h (fileno): Don't define if already defined.
2843
17a7c5c2 2844 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 2845
91018229
EZ
2846 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
2847
196ac78c
RS
28482005-06-04 Richard M. Stallman <rms@gnu.org>
2849
2850 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
2851
b8987570
JD
28522005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2853
2854 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 2855 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
2856 mac_menu_show Quit:s.
2857 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
2858 a dialog).
2859
555228aa
KS
28602005-06-04 Kim F. Storm <storm@cua.dk>
2861
2862 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
2863
2864 * callproc.c (Fcall_process): Don't use alloca to gradually
2865 increase size of buf, as it effectively uses twice the necessary
2866 space on the stack. Instead, pre-allocate buf of full size, and
2867 gradually increase the read size.
2868
2869 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
2870
2871 * eval.c (unbind_to): Preserve value of Vquit_flag.
2872
2873 * xterm.c (handle_one_xevent): Also ignore mouse motion just
2874 before a button release event.
2875
6312e5f7
JB
28762005-06-03 Juanma Barranquero <lekktu@gmail.com>
2877
2878 * xfaces.c (Finternal_lisp_face_equal_p): Really report
2879 on faces in a frame, if the argument FRAME is non-nil.
2880 Improve argument/docstring consistency.
2881
0493f7be
KS
28822005-06-02 Kim F. Storm <storm@cua.dk>
2883
2884 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
2885 (x_consider_frame_title, Fformat_mode_line): Save offset into
2886 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
2887
89fe657e
KS
28882005-06-01 Kim F. Storm <storm@cua.dk>
2889
2890 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
2891
02a6375c
YM
28922005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2893
2894 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
2895 resolution fields for scalable fonts to 0.
2896
2897 * xfaces.c (build_scalable_font_name): Round pixel size to the
2898 nearest integer.
2899
95d4fad8
KS
29002005-06-01 Kim F. Storm <storm@cua.dk>
2901
2902 * xdisp.c (display_mode_line): Support nested calls to redisplay
2903 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
2904
3c1b433a
SM
29052005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2906
2907 * fileio.c (Finsert_file_contents):
2908 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
2909
13cc7d61
KS
29102005-05-31 Kim F. Storm <storm@cua.dk>
2911
2912 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
2913 (mode_line_noprop_ptr): Rename from frame_title_*.
2914 (store_mode_line_noprop_char): Rename from store_frame_title_char.
2915 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 2916 (mode_line_target): New enum to specify current output target
13cc7d61
KS
2917 for mode line formatting.
2918 (display_mode_element): Test it rather than frame_title_ptr and
2919 mode_line_string_list to determine where output should go.
2920 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
2921 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
2922 (format_mode_line_unwind_data, unwind_format_mode_line):
2923 New functions for unwind protection in mode line formatting.
13cc7d61 2924 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
2925 to support nested calls to format-mode-line and redisplay.
2926 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 2927 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
2928 support nested calls to format-mode-line and redisplay.
2929 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 2930 Don't trim trailing dashes.
13cc7d61
KS
2931 (decode_mode_spec): Don't make infinite number of trailing dashes
2932 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
2933 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
2934 mode_line_string_face_prop, and Vmode_line_unwind_vector.
2935 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
2936 Initialize mode_line_target to MODE_LINE_DISPLAY.
2937
c16b1394
RS
29382005-05-29 Richard M. Stallman <rms@gnu.org>
2939
2940 * buffer.c (Fbuffer_local_value): Call indirect_variable.
2941
edfaeb4e
MY
29422005-05-28 Masatake YAMATO <jet@gyve.org>
2943
2944 * xdisp.c (note_mode_line_or_margin_highlight): Change the
2945 pointer to a hand cursor when hoovering over a mouse-face.
2946
7cf49add
KH
29472005-05-27 Kenichi Handa <handa@m17n.org>
2948
2949 * xterm.c (x_encode_char): Call check_ccl_update in advance.
2950
2951 * ccl.c: Now an element of Vccl_program_table is a vector of
2952 length 4, not 3.
3c1b433a
SM
2953 (ccl_get_compiled_code): New arg idx. Caller changed.
2954 Adjust for the change of Vccl_program_table.
2955 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
2956 (check_ccl_update): New function.
2957 (Fregister_ccl_program): Use ASET to set an element of a vector.
2958 Adjusted for the change of Vccl_program_table.
2959
2960 * ccl.h (struct ccl_program): New member idx.
2961 (check_ccl_update): Extern it.
2962
5e2ad10b
JB
29632005-05-27 Juanma Barranquero <lekktu@gmail.com>
2964
3c1b433a 2965 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
2966 (syms_of_image): Defvar it.
2967 (lookup_image_type): Use it.
2968
5e2ad10b
JB
2969 * buffer.c (Fbuffer_local_value): Make argument name match its use
2970 in docstring.
2971
6e604a9b
JB
29722005-05-26 Juanma Barranquero <lekktu@gmail.com>
2973
2974 * keyboard.c (Frecursive_edit): Fix typo in docstring.
2975 (Fposn_at_x_y): Make argument name match its use in docstring.
2976
59244a3f
LK
29772005-05-26 Lute Kamstra <lute@gnu.org>
2978
2979 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
2980
55ce5058
MY
29812005-05-24 Masatake YAMATO <jet@gyve.org>
2982
2983 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
2984 as loop sentinels.
2985
cb5db137
NR
29862005-05-24 Nick Roberts <nickrob@snap.net.nz>
2987
2988 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
2989 select frame title ("Question"/"Information").
2990 (xdialog_show): Use it.
2991
13dcfc35
NR
2992 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
2993
2994 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
2995
d3393daa
NR
2996 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
2997 a third argument (Qnil).
2998
2999 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
3000
3001 * editfns.c (Fmessage_box): Use "Information" for frame title.
3002
71d4fba1
TTN
30032005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
3004
3005 * termcap.c [VMS]: Include <starlet.h>.
3006
359e4563
MY
30072005-05-23 Masatake YAMATO <jet@gyve.org>
3008
6e604a9b
JB
3009 * xdisp.c (note_mode_line_or_margin_highlight): Add code
3010 for mouse-face. Change the type of the first argument from `window'
3011 to `Lisp_Object'.
359e4563
MY
3012 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
3013 window instead of w.
3014
edceb51c
AS
30152005-05-22 Andreas Schwab <schwab@suse.de>
3016
41c4895c 3017 * process.c (send_process): Move misplaced volatile.
edceb51c 3018
5c213fcc
RS
30192005-05-21 Richard M. Stallman <rms@gnu.org>
3020
3021 * xdisp.c (display_mode_element): If we're processing a list and
3022 padding is specified, put it after the last element.
3023
aa4060b9
EZ
30242005-05-21 Eli Zaretskii <eliz@gnu.org>
3025
3026 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
3027 "superroot" on DOS_NT systems.
3028
a2c9aee6
EZ
30292005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
3030
3031 * process.c (send_process): Restore the SIGPIPE handler if we
3032 catch a SIGPIPE.
3033
09e8eb5b
JB
30342005-05-20 Juanma Barranquero <lekktu@gmail.com>
3035
3036 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
3037 misleading comments).
3038 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
3039
f3fbdb1f
LK
30402005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3041
3042 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
3043 Correct the right value.
3044
639ec765
NR
30452005-05-19 Nick Roberts <nickrob@snap.net.nz>
3046
240d926e 3047 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
3048 post-command-idle-hook and post-command-idle-delay.
3049 (command_loop_1): Don't try to execute post-command-idle-hook.
3050
03d42907
KS
30512005-05-16 Kim F. Storm <storm@cua.dk>
3052
1cb83e13
KS
3053 * xdisp.c (handle_display_prop): Handle empty replacement.
3054 (handle_single_display_spec): Return -1 for empty replacement.
3055
3056 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
3057
03d42907
KS
3058 * .gdbinit (pitx): Print more info about iterator.
3059
0da46b6e
AS
30602005-05-16 Andreas Schwab <schwab@suse.de>
3061
3c1b433a 3062 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 3063
d06ba294
RS
30642005-05-14 Richard M. Stallman <rms@gnu.org>
3065
3066 * xdisp.c (message3): Call cancel_echoing.
3067
3068 * alloc.c (Fmemory_full_p): New function.
3069 (syms_of_alloc): defsubr it.
3070
3071 * process.c (send_process_trap): Unblock SIGPIPE.
3072 (send_process): Reset SIGPIPE handler before reporting error.
3073
90713743
NR
30742005-05-14 Nick Roberts <nickrob@snap.net.nz>
3075
3076 * emacs.c (syms_of_emacs): Fix doc string for system-type.
3077
68780e2a
RS
30782005-05-13 Richard M. Stallman <rms@gnu.org>
3079
3080 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
3081 (Finsert_file_contents): If we read 0 bytes from a special file,
3082 unlock the visited file if we locked it.
3083 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 3084 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 3085
5063dbbf
YM
30862005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3087
3088 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
3089
3c1b433a
SM
3090 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
3091 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
3092 redisplay from being paused by them.
3093
3094 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
3095 [!MAC_OSX] (target_ticks): Remove variable.
3096 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
3097 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
3098 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 3099 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
3100 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
3101 handling using Time Manager routines.
3c1b433a
SM
3102 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
3103 New variables.
5063dbbf
YM
3104 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
3105 (setitimer): New functions.
3106
3107 * macfns.c, macmenu.c: Don't include signal.h.
3108
3109 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
3110 Rename from get_control_part_bound. All callers changed.
3111 (x_scroll_bar_clear): New function.
3112 (x_clear_frame): Use it.
3113 (XTset_vertical_scroll_bar): Don't call Draw1Control.
3114 (x_scroll_bar_handle_click): Change type of second argument from
3115 int to ControlPartCode.
3116 (check_alarm): Remove declaration.
02a6375c
YM
3117 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
3118 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
3119
31202005-05-13 Nozomu Ando <nand@mac.com>
3121
3122 * unexmacosx.c: Include assert.h.
3123 (MACOSX_MALLOC_MULT16): New define.
3124 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
3125 ptr is in unexec regions by checking it is multiple of 16.
3126 (unexec_malloc_header_t): New typedef.
3127 (unexec_malloc, unexec_realloc, unexec_free): Store and use
3128 allocated size information in unexec_malloc_header.
3129
d101bf56
RS
31302005-05-10 Richard M. Stallman <rms@gnu.org>
3131
3132 * xterm.c (noinclude): Add #undef.
3133
3134 * image.c, xfns.c, xmenu.c: Don't include signal.h.
3135
2f60660a
JB
31362005-05-09 Juanma Barranquero <lekktu@gmail.com>
3137
f1701e65
JB
3138 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
3139 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
3140 Doc fixes.
3141
2f60660a
JB
3142 * dired.c (Ffile_name_completion): Make argument name
3143 match its use in docstring.
3144
9f29e806
LT
31452005-05-08 Luc Teirlinck <teirllm@auburn.edu>
3146
3147 * eval.c (Fdefvaralias): Remove any pre-existing
3148 variable-documentation property of the alias.
3149
a790bcd4
TTN
31502005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
3151
3152 * xfns.c (start_hourglass): Do nothing when running on a tty.
3153
d5fb8dab
JB
31542005-05-07 Juanma Barranquero <lekktu@gmail.com>
3155
3156 * fns.c (Fchar_table_range): Fix typos in docstring.
3157
7ec64183
SM
31582005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3159
3160 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
3161
6ff95f1d
EZ
31622005-05-06 Eli Zaretskii <eliz@gnu.org>
3163
2c6b25c7
EZ
3164 * lread.c (Flocate_file_internal): Doc fix.
3165
6ff95f1d
EZ
3166 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
3167
17d28d26
YM
31682005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3169
3170 * macselect.c (x_own_selection): Accept Lisp string as result of
3171 selection converter function.
3172 (x_clear_frame_selections): Don't call x-lost-selection-functions
3173 if Emacs is not owner of the selection.
3174 (Vmac_services_selection): Put variable and initialization in
3175 #ifdef MAC_OSX.
3176 (syms_of_macselect) [MAC_OSX]: Set default value of
3177 Vmac_services_selection to PRIMARY.
3178
7ec64183
SM
3179 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
3180 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
3181 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
3182 (install_scroll_bar_timer, set_scroll_bar_timer)
3183 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
3184 (get_control_part_bound, x_scroll_bar_handle_press)
3185 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
3186 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
3187 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
3188 (scroll_bar_timer_event_posted_p): New variables.
3189 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
3190 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
3191 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
3192 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
3193 Initialize track_top and track_height to nil.
3194 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
3195 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
3196 (XTset_vertical_scroll_bar): Don't make space between scroll bar
3197 and associated window.
3198 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
3199 from window config.
7ec64183
SM
3200 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3201 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
3202 Recalculate them if they are nil.
3203 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
3204 clicked control is a scroll bar.
3205 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
3206 event handler functions. Don't add modifiers to scroll bar click
7ec64183 3207 events. Call scroll bar release handler when window is deactivated.
17d28d26 3208 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
3209 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
3210 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 3211
7ec64183
SM
3212 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3213 New members track_top and track_height.
17d28d26
YM
3214
3215 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
3216 init_process when including sys/select.h.
3217
643b4cf5
LT
32182005-05-05 Luc Teirlinck <teirllm@auburn.edu>
3219
3220 * eval.c (Fdefvaralias): Doc fix.
3221
3222 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
3223
99bda128
KS
32242005-05-05 Kim F. Storm <storm@cua.dk>
3225
3226 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
3227 default value.
3228 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
3229 Fix type of cursor-in-non-selected-windows.
3230
3a3563e9
JD
32312005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3232
3233 * mac.c: #undef init_process so not to conflict with system headers.
3234
0124c5bd
RS
32352005-05-02 Richard M. Stallman <rms@gnu.org>
3236
3237 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
3238
3239 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
3240
3241 * xdisp.c (Vcursor_in_non_selected_windows)
3242 (Qcursor_in_non_selected_windows): Vars deleted.
3243 (syms_of_xdisp): Don't initialize them.
3244 (get_window_cursor_type): Use cursor_in_non_selected_windows
3245 buffer slot.
3246
4b3f161f
KS
32472005-05-02 Kim F. Storm <storm@cua.dk>
3248
e40527dc
KS
3249 * macros.c (executing_kbd_macro_index): Rename from
3250 executing_macro_index. All uses changed.
3251 (executing_kbd_macro_iterations): Rename from
3252 executing_macro_iterations. All uses changed.
3253 (executing_kbd_macro): Rename from executing_macro.
3254 All uses changed.
3255 (syms_of_macros): Rename Lisp var executing-macro-index to
3256 executing-kbd-macro-index.
3257
4b3f161f
KS
3258 * xdisp.c (move_it_in_display_line_to): Fix last change.
3259
4d49edf6
LT
32602005-05-01 Luc Teirlinck <teirllm@auburn.edu>
3261
f6b1b15a
LT
3262 * xmenu.c (Fx_popup_menu): Doc fix.
3263
4d49edf6
LT
3264 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
3265
4a766fe6
JR
32662005-05-02 Jason Rumney <jasonr@gnu.org>
3267
3268 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
3269
c924d3ff
TTN
32702005-05-02 Nozomu Ando <nand@mac.com>
3271
3272 * sysselect.h: Fix typo.
3273
b161ea4e 32742005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 3275
b161ea4e
NR
3276 * charset.c (Fchars_in_region): Remove as obsolete.
3277
d37e919d 32782005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
3279
3280 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 3281 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 3282 glyph.
5c2e5a5e 3283
bec0b768
LT
32842005-05-01 Luc Teirlinck <teirllm@auburn.edu>
3285
3286 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
3287
ebbfa918
RS
32882005-05-01 Richard M. Stallman <rms@gnu.org>
3289
3290 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
3291 If user cancels the menu, quit unless FOR_CLICK.
3292
7ec64183 3293 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
3294 All uses changed.
3295 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
3296 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
3297 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
3298 * commands.h (Vexecuting_kbd_macro): Likewise.
3299
a72c2d97
TTN
33002005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
3301
3302 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
3303
7e995a23
RS
33042005-04-30 Richard M. Stallman <rms@gnu.org>
3305
3306 * fileio.c (Ffind_file_name_handler): Handle the `operations'
3307 property of the file name handler.
3308 (Qoperations): New variable.
3309 (syms_of_fileio): Initialize and staticpro it.
3310
3311 * xdisp.c (set_message_1): Delete xassert.
3312
7a92caf8
YM
33132005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3314
7ec64183 3315 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
3316
3317 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
3318
3319 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
3320 before/after including Carbon.h if there is a working mktime.
3321
5ae91803
KS
33222005-04-28 Kim F. Storm <storm@cua.dk>
3323
3324 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
3325 Fix cyclic alias check. If alias loop is detected, signal
3326 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
3327
d79b6c21
LK
33282005-04-28 Lute Kamstra <lute@gnu.org>
3329
3330 * eval.c (do_autoload): Record only autoloads in the autoload
3331 property of symbols.
3332
8c75afbf
NR
33332005-04-28 Nick Roberts <nickrob@snap.net.nz>
3334
3335 * emacs.c (USAGE1): Add --basic-display and --quick options.
3336
832e294f
KS
33372005-04-27 Kim F. Storm <storm@cua.dk>
3338
3339 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
3340
f03f317a
RS
33412005-04-26 Richard M. Stallman <rms@gnu.org>
3342
c019856e
RS
3343 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
3344 (syms_of_window): Doc fixes.
3345
f03f317a
RS
3346 * indent.c (Fvertical_motion): Undo previous change.
3347
38f60cd9
KH
33482005-04-26 Kenichi Handa <handa@m17n.org>
3349
3350 * fns.c (char_table_range): New function.
3351 (Fchar_table_range): Signal an error if characters in the range
3352 have inconsistent values. Don't check the parent.
3353
87ede5a1
KH
33542005-04-25 Kenichi Handa <handa@m17n.org>
3355
3356 * fontset.c (fontset_set): Fix previous change.
3357
a6390474
RS
33582005-04-24 Richard M. Stallman <rms@gnu.org>
3359
3360 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
3361
7fce7dfe
EZ
33622005-04-24 Eli Zaretskii <eliz@gnu.org>
3363
cf1982d9
EZ
3364 * regex.c (re_search_2, re_match_2_internal): Convert second arg
3365 of RE_TRANSLATE to int, to shut up GCC warnings.
3366
7fce7dfe
EZ
3367 * fileio.c (Fcopy_file): Doc fix.
3368 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
3369 not needed.
3370
49ed33c7
YM
33712005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3372
3373 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
3374 (SOME_MACHINE_OBJECTS): Likewise.
3375 (mac.o): Depend on ccl.h.
3376 (macselect.o): New target.
3377
7ec64183
SM
3378 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
3379 Call syms_of_macselect.
49ed33c7
YM
3380
3381 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
3382
7ec64183 3383 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
3384 (QCLIPBOARD): Remove variable.
3385 (syms_of_mac): Don't initialize it.
3386 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
3387 Remove functions.
3388 (syms_of_mac): Don't defsubr them.
3389 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
3390 (QHFS_plus_D, QHFS_plus_C): New variables.
3391 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3392 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
3393 (cfstring_create_normalized): New functions.
3394 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
3395 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3396
7ec64183
SM
3397 * macterm.c (handling_window_update, terminate_flag):
3398 Remove variables.
3399 (do_window_update, do_ae_quit_application, XTread_socket):
3400 Don't use them.
49ed33c7
YM
3401 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
3402 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
3403 (init_service_handler): Move to macselect.c. Remove declarations.
3404 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
3405 (Qapplication, Qabout): New variables.
3406 (syms_of_mac): Initialize them.
3407 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
3408 (Qperform): New variables.
3409 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 3410 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
3411 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
3412 (mac_store_application_menu_event, init_menu_bar): New functions.
3413 [USE_CARBON_EVENTS] (mac_handle_command_event)
3414 (init_command_handler): New functions.
3415 (mac_handle_window_event): Return noErr on window update event.
3416 (do_ae_quit_application): Call mac_store_application_menu_event.
3417 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
3418 and init_menu_bar.
3419
3420 * macterm.h (x_clear_frame_selections): Add extern.
3421
3422 * macselect.c: New file for selection processing on Mac OS.
3423
469bc679
RS
34242005-04-23 Richard M. Stallman <rms@gnu.org>
3425
3426 * fileio.c (Fcopy_file): New arg MUSTBENEW.
3427 (Frename_file): Pass new arg to Fcopy_file.
3428
3429 * window.c (window_size_fixed): Variable deleted.
3430 (syms_of_window): Initialize window-size-fixed to nil.
3431 But don't DEFVAR window_size_fixed.
3432
d379c558
AS
34332005-04-23 Andreas Schwab <schwab@suse.de>
3434
3435 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
3436 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
3437 use lib64 instead of lib.
3438 (_LP64) [_ARCH_PPC64]: Define if not defined.
3439
007d105b
TTN
34402005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
3441
3442 * s/ms-w32.h (HAVE_PWD_H): Define.
3443
b9c15916
KH
34442005-04-22 Kenichi Handa <handa@m17n.org>
3445
3446 * fns.c (copy_sub_char_table): Explicitly copy the default value
3447 of the sub-chartable.
3448
3449 * fontset.c (fontset_set): When a sub-chartable is created,
3450 explicitly sets the defalt value.
3451
1ba52906
KS
34522005-04-22 Kim F. Storm <storm@cua.dk>
3453
3454 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
3455 (Fsafe_plist_get): Rename to Fplist_get.
3456 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
3457 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
3458
3459 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
3460
3461 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
3462 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3463 Use Fplist_get instead of Fsafe_plist_get.
3464
3465 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
3466
e235145c
MB
34672005-04-21 Miles Bader <miles@gnu.org>
3468
3469 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
3470
766c5349
TTN
34712005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
3472
c164a7e6
TTN
3473 * sysdep.c: Remove reference to defunct vms-pwd.h.
3474 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
3475 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
3476
766c5349
TTN
3477 * config.in: Regenerate.
3478
2b048bf5
KH
34792005-04-20 Kenichi Handa <handa@m17n.org>
3480
3481 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
3482 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
3483 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
3484
3485 * alloc.c (make_sub_char_table): Argument changed to initial
3486 value of the slots.
3487
3488 * data.c (Faref): Handle special slots used as default values of
3489 ascii, eight-bit-control, eight-bit-control. Don't ignore a
3490 default value set for a group of characters.
3491 (Faset): Signal an error if IDXVAL is not a valid character code.
3492 Make a sub-chartable with correct initial value.
3493
3494 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
3495 values for ascii, eight-bit-control, eight-bit-graphic.
3496 Don't call Faref with charset-id.
2b048bf5
KH
3497 (Fset_char_table_default): Document how to treat normal character
3498 argument. Handle special slots used as default values of ascii,
3499 eight-bit-control, eight-bit-control. Make a sub chartable if
3500 necessary.
3501
b0a35939
KH
35022005-04-20 Kenichi Handa <handa@m17n.org>
3503
3504 * search.c (boyer_moore): Fix previous change.
3505
98dde726
KS
35062005-04-19 Kim F. Storm <storm@cua.dk>
3507
3508 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
3509 face unless last visible char and first invisible char have the
3510 same face. Also use default face if saved_face_id is undefined.
3511
327a3376
YM
35122005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3513
3514 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
3515 `full_name'.
3516 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
3517 mac_scriptcode member.
3518
3519 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
3520 (syms_of_mac): Don't initialize them.
3521 (Vmac_charset_info_alist): New variable.
3522 (syms_of_mac): Defvar it.
3523 (create_text_encoding_info_alist): New function.
3524 (decode_mac_font_name, mac_to_x_fontname)
3525 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
3526 code the correspondence among XLFD charsets, Mac script codes, and
3527 Emacs coding systems. Use Vmac_charset_info_alist and result of
3528 create_text_encoding_info_alist instead.
3529 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
3530 routines also on Mac OS Classic.
7ec64183
SM
3531 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
3532 Use add_font_name_table_entry.
327a3376
YM
3533 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
3534 specified. Derive unspecified scalable fields from specified one.
3535 (x_list_fonts): Consider Valternate_fontname_alist.
3536 (kDefaultFontSize): Change value from 9 to 12.
3537 (XLoadQueryFont): Get decoded font family, font face, and charset
3538 from x_font_name_to_mac_font_name. Set full name of loaded font.
3539 (mac_unload_font): Free `full_name' member.
3540 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
3541 NULL. Copy full_name member of struct MacFontStruct to that of
3542 struct font_info.
3543
d0636839
KS
35442005-04-19 Kim F. Storm <storm@cua.dk>
3545
5827e9d4
KS
3546 * xdisp.c (handle_stop): Set saved_face_id to current face if
3547 selective_display_ellipsis_p so ellipsis will be shown in same
3548 face as preceding text.
3549 (setup_for_ellipsis): Don't set saved_face_id here.
3550 (next_element_from_display_vector): Default to saved_face_id.
3551
d0636839
KS
3552 * fns.c (Fsafe_get): New function.
3553 (syms_of_fns): Defsubr it.
3554
3555 * lisp.h (Fsafe_get): EXFUN it.
3556
3557 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
3558 loops in case of bad face property lists. Limit number of face
3559 alias lookups to 10 (in case of face alias loops).
3560
e5c78c9d
KS
35612005-04-18 Kim F. Storm <storm@cua.dk>
3562
3563 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
3564 It replaces the corresponding member from struct window, as a
3565 window may now show multiple overlay arrows.
3566 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
3567
3568 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
3569 Compare overlay_arrow_bitmap than overlay_arrow_p members.
3570
3571 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
3572 rather than from window.
3573 (update_window_fringes): Compare overlay_arrow_bitmap rather than
3574 overlay_arrow_p members.
3575 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
3576 if not default.
3577
3578 * window.h (struct window): Remove member overlay_arrow_bitmap.
3579
3580 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
3581
3582 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
3583 Calls changed. Don't check for overlay-arrow-bitmap property here.
3584 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
3585 fringe is present, return Lisp integer for bitmap (or -1 for default).
3586 Fix value of overlay-arrow-bitmap property to be a symbol, use
3587 lookup_fringe_bitmap to parse it.
3588 (display_line): Change call to overlay_arrow_at_row. Store integer
3589 return value as overlay bitmap in row rather than window.
3590 Only show overlay arrow if row displays text, or if no other overlay
3591 arrow is seen in window (if overlay marker is at point-max).
3592
7d603e3f
TTN
35932005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
3594
3595 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
3596
9942fa0c
LK
35972005-04-18 Lute Kamstra <lute@gnu.org>
3598
3599 * lread.c (Vloads_in_progress): Static.
3600 * fns.c (Vloads_in_progress): Remove extern.
3601 (load_in_progress): Add extern.
3602 (Frequire): Use load_in_progress instead of Vloads_in_progress.
3603
999cdb8f
TTN
36042005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
3605
3606 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
3607
3f4413f8
YM
36082005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3609
3610 * macterm.c (XTread_socket): Don't beep on keyboard input even if
3611 no frame is visible.
3612
60ec7b7e
DN
36132005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3614
3615 * term.c (struct keys): Add support for shifted keys.
3616
a8a1c0ee
RS
36172005-04-16 Richard M. Stallman <rms@gnu.org>
3618
3619 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
3620 (set_message): Call with_echo_area_buffer with WHICH = 0.
3621 (set_message_1): Erase the echo area buffer first thing.
3622 (echo_area_display): Don't clear echo_message_buffer.
3623
f3cf04d3
YM
36242005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3625
3626 * Makefile.in (mac.o): Depend on charset.h and coding.h.
3627
3628 * mac.c: Include charset.h and coding.h.
3629 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 3630 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
3631 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
3632
3633 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
3634
3635 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
3636
3637 * macterm.c (x_autoselect_window_p): Remove variable.
3638 (last_window): New variable.
7ec64183
SM
3639 (XTreassert_line_highlight, x_change_line_highlight):
3640 Remove declarations.
f3cf04d3
YM
3641 (mac_focus_changed, x_detect_focus_change): New functions and
3642 declarations.
3643 (XTextExtents16, front_emacs_window): Remove function.
3644 (mac_focus_frame): New function.
3645 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
3646 (mac_check_for_quit_char): Use it instead of front_emacs_window.
3647 (x_scroll_bar_report_motion): Obtain window from control owner.
3648 (x_make_frame_invisible): Set window manager size hint.
3649 (do_mouse_moved): Remove function.
3650 (XTread_socket): Move its contents here. Generate select-window
3651 event on mouse movement if needed. Use x_detect_focus_change on
3652 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
3653 window rectangle when dnd items are dropped.
3654 Don't activate/deactivate root control.
f3cf04d3
YM
3655 (frame_highlight, frame_unhighlight): Activate/deactivate root
3656 control here.
3657 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
3658
3659 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
3660 New extern.
3661
9e5b2858
LT
36622005-04-15 Luc Teirlinck <teirllm@auburn.edu>
3663
3664 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
3665 (lisp): Use it.
3666 (SOME_MACHINE_LISP): Add tooltip.
3667
42c6741e
YM
36682005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3669
7ec64183
SM
3670 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
3671 Don't include TextEncodingConverter.h.
42c6741e
YM
3672 (mac_system_script_code, Vmac_system_locale): New variables.
3673 (syms_of_mac): Defvar them.
3674 (mac_get_system_locale): New function.
3675
7ec64183
SM
3676 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
3677 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 3678 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
3679 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
3680 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
3681
3682 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
3683 TextEncodingConverter.h.
3684
0614c575
ST
36852005-04-13 Steven Tamm <steventamm@mac.com>
3686
7e26f91b
KS
3687 * macterm.c (syms_of_macterm): Remove redundant definition of
3688 mac-pass-control-to-system.
0614c575 3689
203eb0aa
SM
36902005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3691
3692 * window.c (Fset_window_configuration): Be careful when you choose
3693 among several possible points for the new_current_buffer.
3694
a56e6111
YM
36952005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3696
3697 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
3698 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
3699 (Qlanguage_change) [MAC_OS]: New variable.
3700 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 3701 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
3702
3703 * macterm.c (mac_keyboard_text_encoding)
3704 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
3705 (XTread_socket): Store language-change event if keyboard script change
3706 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 3707 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 3708
7e26f91b 3709 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 3710
6695c528
RS
37112005-04-10 Richard M. Stallman <rms@gnu.org>
3712
3713 * emacs.c (standard_args): Rename --bare-bones to --quick.
3714 Add -D aka --basic-display.
3715
3716 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
3717
18e2d91f
RS
37182005-04-09 Richard M. Stallman <rms@gnu.org>
3719
3720 * keymap.c (where_is_internal): Convert a string used as event type
3721 into "(any string)".
3722
3723 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
3724 * fns.c (Vloads_in_progress): Add extern.
3725 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
3726
37272005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
3728
3729 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
3730
1cf21850
LK
37312005-04-09 Lute Kamstra <lute@gnu.org>
3732
3733 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
3734 within the accessible part of the buffer.
3735
bfd93240
KS
37362005-04-09 Kim F. Storm <storm@cua.dk>
3737
3738 * lread.c (readevalloop): Add args START and END as region in
3739 current buffer to read. Callers changed.
3740 When specified, narrow to this region only when reading,
3741 not during eval. Track next point to read from during eval.
3742 Also restore point to "real" buffer position before eval.
3743 (Feval_region): Don't save excursion and restriction here, and
3744 don't narrow to region. Just pass region to readevalloop.
3745 Note: Point is now preserved even when PRINTFLAG is nil.
3746
9ba27690
KS
37472005-04-08 Kim F. Storm <storm@cua.dk>
3748
3749 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
3750
73f0d996
KS
37512005-04-06 Kim F. Storm <storm@cua.dk>
3752
3753 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
3754
369f76bb
YM
37552005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3756
3757 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
3758 (Fmac_get_preference): Doc fix.
3759
203eb0aa
SM
3760 * macfns.c (Fx_create_frame, x_create_tip_frame):
3761 Add "fontset-mac" to fallback font/fontsets.
369f76bb 3762
2ba613a6
KS
37632005-04-04 Kim F. Storm <storm@cua.dk>
3764
4d5ddddc
KS
3765 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
3766
2ba613a6
KS
3767 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
3768 Call it again after autoload.
3769
1673df2e
JD
37702005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3771
3772 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
3773 mallopt.
3774
3775 * ralloc.c (r_alloc_init): Ditto.
3776
41639988
KH
37772005-04-01 Kenichi Handa <handa@m17n.org>
3778
1cf21850
LK
3779 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
3780 (Vascii_eqv_table): Extern them.
41639988
KH
3781
3782 * casetab.c (set_case_table): If standard is nonzero, setup
3783 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
3784
3785 * search.c (looking_at_1): Use current_buffer->case_canon_table,
3786 not DOWNCASE_TABLE.
3787 (string_match_1): Likewise.
3788 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
3789 Vascii_downcase_table.
3790 (fast_string_match_ignore_case): Likewise.
3791 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
3792 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
3793 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
3794 simple_translate.
3795
6ca53601
SM
37962005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3797
3798 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
3799 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
3800 Use XtNtopShadowPixel and XtNbottomShadowPixel.
3801 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
3802 really work and that breaks with some versions of Xaw3d.
3803
fafbb99d 38042005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
3805
3806 * coding.c (syms_of_coding): Fix previous change.
3807
6ca53601
SM
38082005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
3809
3810 * fileio.c (search_embedded_absfilename): Fix last change.
3811
bf762c98
KH
38122005-03-25 Kenichi Handa <handa@m17n.org>
3813
3814 * coding.c (syms_of_coding): Suggest to use set-coding-category in
3815 the docstring of coding-category-list.
3816
f793f885
KS
38172005-03-31 Kim F. Storm <storm@cua.dk>
3818
3819 * keyboard.c (Qmouse_fixup_help_message): New var.
3820 (syms_of_keyboard): Intern and staticpro it.
3821 (show_help_echo): Apply mouse-fixup-help-message to help string.
3822
c364fe19
KS
38232005-03-30 Kim F. Storm <storm@cua.dk>
3824
3825 * xdisp.c (display_line): Allow multiple overlay arrows in window.
3826
c70a4df6
SM
38272005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3828
3829 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
3830 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
3831 (Ffile_name_absolute_p): Use it.
3832 (search_embedded_absfilename): New fun, extracted from
3833 Fsubstitute_in_file_name. Use file_name_absolute_p.
3834 Free the pw data after use.
3835 (Fsubstitute_in_file_name): Use it.
3836 After cutting a prefix, re-check file-name-handler.
3837
6e7d0438
JR
38382005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
3839
6ca53601 3840 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
3841
3842 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
3843 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
3844
65671706
SM
38452005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
3846
3847 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
3848 Use Fexit_minibuffer.
3849 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
3850
0de4dad4
SM
38512005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3852
781da985
SM
3853 * dired.c (Ffile_attributes): Add a missing gcpro.
3854
0de4dad4
SM
3855 * alloc.c (make_number): The arg can be bigger than `int'.
3856 * lisp.h (make_number): Make prototype more precise.
3857
3858 * process.c, dired.c (Vfile_name_coding_system)
3859 (Vdefault_file_name_coding_system):
3860 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
3861 (Vdefault_file_name_coding_system): Remove unused declarations.
3862
ff18668f
JD
38632005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3864
3865 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
3866 if it failed to pop up (Gnome "show pointer on ctrl" option makes
3867 menus fail to pop up).
3868
0de4dad4 38692005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
3870
3871 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 3872 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 3873
8df0ffbe
KS
38742005-03-22 Kim F. Storm <storm@cua.dk>
3875
3876 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
3877 * dispextern.h (lookup_derived_face): Fix prototype.
3878 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
3879
3880 * xdisp.c (handle_single_display_spec): Derive left-fringe and
3881 right-fringe face from fringe face.
3882
3883 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
3884 Derive face from fringe face.
3885
6ca30ba4
JD
38862005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3887
3888 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
3889
d615870a
DK
38902005-03-22 David Kastrup <dak@gnu.org>
3891
3892 * textprop.c (Fnext_char_property_change)
66347da7 3893 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
3894 (Fnext_single_char_property_change)
3895 (Fprevious_single_char_property_change): Check that limit is a
3896 number in strings.
3897 (Fnext_single_char_property_change): Coerce position to integer.
3898 (Fprevious_single_char_property_change): Same here.
3899
32b939ea
TTN
39002005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
3901
3902 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
3903
6027e473
SM
39042005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3905
3906 * frame.c (Fignore_event): Remove.
3907 (syms_of_frame): Don't defsubr it.
3908
3909 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
3910 redundant `ignore-event'.
3911
730f4d72
EZ
39122005-03-19 Eli Zaretskii <eliz@gnu.org>
3913
3914 * unexec.c (write_segment, unexec): Move these functions to avoid
3915 forward references (which cause errors with "gcc -gcoff").
3916
c7f6afd5
JD
39172005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3918
6027e473 3919 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 3920 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 3921
c7f6afd5
JD
3922 * xrdb.c (x_load_resources): Use different char *helv when I18N
3923 is present.
3924
db328182
KH
39252005-03-17 Kenichi Handa <handa@m17n.org>
3926
66347da7 3927 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 3928
211f2210
SM
39292005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3930
3931 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
3932 Use xic_create_fontsetname even for non-Motif menus.
3933 Don't forget to free the fontsetname.
3934
3935 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
3936
c7bd5d57
RS
39372005-03-17 Richard M. Stallman <rms@gnu.org>
3938
3939 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
3940
3941 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
3942 (Fmake_symbolic_link): Use G to read the new file name.
3943
3944 * callint.c (Finteractive): Document G option.
3945 (Fcall_interactively): Implement G option.
3946
3947 * buffer.c (buffer_lisp_local_variables): New function,
3948 broken out from Fbuffer_local_variables.
3949 (clone_per_buffer_values): Use buffer_lisp_local_variables.
3950
888953f1
SM
39512005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3952
3c916d65
SM
3953 * xfns.c (xic_create_fontsetname): Add `motif' argument.
3954 Always return a freshly allocated string.
3955 (xic_create_xfontset): Adjust call.
3956
3957 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
3958 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
3959 (dump_realized_face): Fix warning.
3960
9f9e5275
SM
3961 * emacs.c (Fkill_emacs): YAILOM.
3962
888953f1
SM
3963 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
3964
48502d68
YM
39652005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3966
3967 * mac.c (HASHKEY_TERMINAL): Remove.
3968 (HASHKEY_MAX_NID): New macro.
3969 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
3970 argument.
888953f1 3971 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
3972 (xrm_create_database, xrm_q_put_resource)
3973 (xrm_merge_string_database, xrm_q_get_resource_1)
3974 (xrm_q_get_resource): Change resource database representation so
3975 that it may not use multiple hash tables for a single database.
3976 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
3977
d5161e8c
SM
39782005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
3979
11a646cd
SM
3980 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
3981
3982 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
3983 locale-coding-system, as was already done for WINDOWSNT.
3984
d5161e8c
SM
3985 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
3986 translation for chars in the 0-255 range.
3987
568b6e41
LK
39882005-03-16 Lute Kamstra <lute@gnu.org>
3989
3990 * floatfns.c (Ffloor): Doc fix.
3991
469fb3cf
YM
39922005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3993
3994 * mac.c: Include macterm.h instead of directly including Carbon.h.
3995 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
3996 (Qarray, Qdictionary): New variables.
3997 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3998 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
3999 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
4000 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
4001 in callback for CFDictionaryApplyFunction.
4002 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
4003 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
4004 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
4005 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
4006 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
4007 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
4008 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 4009 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
4010 (parse_binding, parse_component, parse_resource_name, parse_value)
4011 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
4012 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
4013 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
4014 New functions.
469fb3cf
YM
4015
4016 * macfns.c (mac_get_rdb_resource): Remove function.
4017 (x_get_string_resource): Use xrm_get_resource.
4018
4019 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
4020
4021 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
4022 name_list_element.
4023 (mac_make_rdb): Create resource database from preferences and
4024 argument string.
4025 (mac_term_init): Save resource database to cddr part of
4026 name_list_element.
4027
4028 * macterm.h (xrm_merge_string_database, xrm_get_resource)
4029 (xrm_get_preference_database): Add externs.
4030 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
4031 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
4032 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
4033
4034 * process.c (init_process): Change `#ifdef DARWIN' to `#if
4035 defined (DARWIN) || defined (MAC_OSX)'
4036
4037 * s/darwin.h (DARWIN): Don't define.
4038
6a3fac90
YM
40392005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4040
4041 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
4042 Remove unused variables.
4043 (syms_of_macfns): Don't initialize them. Likewise for
4044 Qface_set_after_frame_default. Defvar and initialize
4045 Vx_window_horizontal_drag_shape.
4046 (x_set_mouse_color): Change mouse pointer shape.
4047 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 4048 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
4049 (hourglass_started): New function (from xfns.c).
4050 (start_hourglass, cancel_hourglass): Put function body in #ifdef
4051 MAC_OSX.
4052 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
4053 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 4054 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
4055
4056 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
4057 Controls.h. Use ThemeCursor instead of CursHandle.
4058
d5161e8c
SM
4059 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
4060 Remove functions and declarations.
4061 (mac_set_colors): Take argument for saving background color.
4062 All callers changed.
6a3fac90
YM
4063 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
4064 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
4065 background color.
4066 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
4067 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
4068 Use SetThemeCursor.
6a3fac90
YM
4069 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
4070 indicator control to the upper-right corner of the window.
4071 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
4072 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
4073 (do_window_update): Update controls after updating content area.
4074 (mac_handle_window_event): Remove unused extern.
4075 (XTread_socket): Check both control handle and control part code
4076 to determine whether a scroll bar is clicked. Activate/deactivate
4077 root control instead of contained scroll bar controls.
4078 (make_mac_terminal_frame): Use ThemeCursor constants.
4079
d5161e8c
SM
4080 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
4081 New member hourglass_control.
6a3fac90 4082 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 4083 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 4084
a7321976
YM
40852005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4086
4087 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 4088 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
4089 laptops, and fn + `enter' on laptops.
4090
f7b758bd
SM
40912005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
4092
4093 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
4094 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
4095 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
4096
4097 * xfns.c (xic_defaut_fontset): New constant.
4098 (xic_create_fontsetname): New function.
4099 Extracted from create_frame_xic. Try to generate a slightly
4100 better fontset.
4101 (xic_create_xfontset): Use it.
4102 (create_frame_xic): Simplify.
4103
dac24db4
SM
41042005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
4105
4106 * fileio.c (Fmake_symbolic_link): Fix last change.
4107
e0402468
RS
41082005-03-11 Richard M. Stallman <rms@gnu.org>
4109
4110 * fileio.c (Frename_file, Fadd_name_to_file)
4111 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
4112 expand the basename of FILE relative to it.
4113
fa815b14
KH
41142005-03-11 Kenichi Handa <handa@m17n.org>
4115
4116 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
4117 before calling setup_coding_system so that autoloading of a coding
4118 system work.
4119
817d354b
JD
41202005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4121
68a505ef
JD
4122 * xfns.c (hourglass_started): New function.
4123
4124 * dispextern.h: Declare hourglass_started.
4125
4126 * keyboard.c (Fexecute_extended_command): Restart hourglass
4127 after call to Fcompleting_read if already started.
4128
817d354b
JD
4129 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
4130 GTK main loop is entered in xterm.c, thus doing the redraw.
4131
b0a6f45c
KS
41322005-03-10 Kim F. Storm <storm@cua.dk>
4133
4134 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
4135
ee5d57b0
KH
41362005-03-08 Kenichi Handa <handa@m17n.org>
4137
4138 * frame.c (x_set_font): Call set_default_ascii_font if an
4139 available font is found.
4140
4141 * fontset.c (set_default_ascii_font): New function.
dac24db4 4142 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
4143
4144 * fontset.h (set_default_ascii_font): Extern it.
4145
f30c4a5c
KS
41462005-03-07 Kim F. Storm <storm@cua.dk>
4147
3fb26a86
KS
4148 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
4149 (clear_image_cache_count): New var.
4150 (redisplay_internal): Don't clear face and image caches in the
4151 middle of redisplay; do it afterwards.
4152
a54595d4
KS
4153 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
4154
f30c4a5c
KS
4155 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
4156 is valid. If not, clear phys_cursor_on_p and return.
4157
3d182f9d
AS
41582005-03-07 Andreas Schwab <schwab@suse.de>
4159
4160 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
4161
85d964de
RS
41622005-03-06 Richard M. Stallman <rms@gnu.org>
4163
4164 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
4165
4166 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
4167 (Feval, Ffuncall): Use CHECK_CONS_LIST.
4168
4169 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
4170
4171 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
4172 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
4173
3ff96c81
JL
41742005-03-05 Juri Linkov <juri@jurta.org>
4175
4176 * emacs.c (USAGE1): Replace Info node name "command arguments"
4177 with "emacs invocation".
4178 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
4179 allow arguments `--color' and `MODE' to be separated by space.
4180 Add --no-blinking-cursor, -nbc.
4181 (standard_args): Add -nbc, --no-blinking-cursor.
4182
64eb0083
TTN
41832005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
4184
4185 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
4186 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
4187 * fileio.c (Fexpand_file_name) [VMS]:
4188 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
4189 * doc.c (munge_doc_file_name) [VMS]: Likewise.
4190 (Fsnarf_documentation): Call munge_doc_file_name.
4191
ad708ae5
TTN
41922005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
4193
4194 * s/vms.h (FILE_SYSTEM_CASE): New macro.
4195 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
4196 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
4197
ba025f6d
YM
41982005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4199
4200 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
4201 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 4202
dac24db4 4203 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
4204
4205 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4206 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 4207 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
4208 (mac_clear_font_name_table): Move extern to macterm.h.
4209
4210 * macfns.c (install_window_handler): Move extern to macterm.h.
4211 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
4212 valid. Don't check !NILP (dir) because it is already checked with
4213 CHECK_STRING.
4214 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 4215 specifying the default location and obtaining the selected filename.
ba025f6d
YM
4216
4217 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4218
2313f861 4219 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
4220 are included via Carbon.h.
4221
dac24db4
SM
4222 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
4223 Define USE_CARBON_EVENTS to 1.
2313f861 4224 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
4225 (x_free_frame_resources): Call remove_window_handler for
4226 non-tooltip windows.
4227 [TARGET_API_MAC_CARBON]: Don't include headers that are included
4228 via Carbon.h.
4229 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
4230 (mac_do_receive_dragUPP): New variables.
4231 (mac_handle_service_event, init_service_handler): Put declarations
4232 and definitions in #ifdef MAC_OSX.
4233 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
4234 drag-and-drop handler functions and register them.
4235 (remove_window_handler): New function.
dac24db4
SM
4236 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
4237 Use fsspec_to_posix_pathname.
ba025f6d
YM
4238 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
4239 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
4240 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
4241 Set default cursors.
ba025f6d
YM
4242 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
4243 init_service_handler or init_quit_char_handler.
4244 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
4245
4246 * macterm.h (install_window_handler, remove_window_handler)
4247 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
4248 (mac_clear_font_name_table): New externs.
ad708ae5 4249
c1558952
TTN
42502005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
4251
4252 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
4253 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
4254 (Fexpand_file_name): Likewise.
4255
fa439170
TTN
42562005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
4257
4258 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
4259 no longer special-case VMS. Add bogus return value.
4260
db2dacf6
KS
42612005-03-02 Kim F. Storm <storm@cua.dk>
4262
4263 * dispextern.h (XASSERTS): Define to 0 if not already defined.
4264 (xassert) [!XASSERTS]: Define dummy version.
4265
0870514c
KS
42662005-03-02 Kim F. Storm <storm@cua.dk>
4267
4268 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
4269 Reported by David Kastrup.
4270
6b640092
KS
42712005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
4272
4273 * xdisp.c (get_next_display_element): Fix control and escape
4274 glyph from display vector.
4275
f4a5a485
SM
42762005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
4277
4278 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
4279
85d964de
RS
42802005-02-27 Richard M. Stallman <rms@gnu.org>
4281
4282 * xdisp.c (fast_find_position): Rename END to BEG.
4283 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
4284
6e8db3ea
JD
42852005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4286
f4a5a485 4287 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
4288 gtk_window_resize and x_wm_set_size_hint.
4289
0f465b55
KS
42902005-02-25 Kim F. Storm <storm@cua.dk>
4291
4292 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
4293
4294 * xdisp.c (init_from_display_pos): Don't read past end of
4295 it->overlay_strings array.
4296
d5fb8dab 42972005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
4298
4299 * buffer.c (syms_of_buffer): Fix typo.
4300
b02c3eed
LK
43012005-02-23 Lute Kamstra <lute@gnu.org>
4302
4303 * buffer.c (Foverlay_buffer): Doc fix.
4304
c8500765
KS
43052005-02-22 Kim F. Storm <storm@cua.dk>
4306
b686dd59
KS
4307 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
4308 and symbol keys in alists and hash tables.
4309
c8500765
KS
4310 * xdisp.c (fast_find_position): Fix search for start of overlay.
4311
81c85b53
KS
43122005-02-21 Kim F. Storm <storm@cua.dk>
4313
4314 * window.c (window_scroll_pixel_based): When scrolling backwards,
4315 handle partial visible line at end of window even when we hit PT.
4316
f4a5a485 43172005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
4318
4319 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
4320
0dd5a842
KS
43212005-02-21 Kim F. Storm <storm@cua.dk>
4322
4323 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
4324 I think those asserts are bogus if buffer contains invisible text
4325 or images.
4326
d5fb8dab 43272005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
4328
4329 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
4330
0fba9f25
KS
43312005-02-20 Kim F. Storm <storm@cua.dk>
4332
4333 * xdisp.c (pos_visible_p): Be sure to move to the specified
4334 position. Always get the full ascent / descent of the
4335 corresponding row, to return reliable rtop and rbot values.
4336 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
4337 Must look one character back, as back_to_previous_line_start
4338 returns position after the newline.
4339 (move_it_vertically_backward): Fix heuristic for when to move further
4340 back in case line_height * 2/3 is larger than window height.
4341 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
4342 as it does not do anything anymore. Add arg current_matrix_p to
4343 use current matrix rather than desired matrix when set.
4344 (try_cursor_movement): Don't scroll to make cursor row fully
4345 visible if cursor didn't move. This avoids unexpected recentering
4346 in case of blinking cursor or accepting process output.
4347 Use current matrix to check cursor row visibility.
4348 (redisplay_window): Fix whether to recenter or move to top in case
4349 cursor line is taller than window height.
4350 (find_first_unchanged_at_end_row): Stop search if we reach a row
4351 which not enabled (instead of abort).
4352
b1c2adc3
KS
43532005-02-18 Kim F. Storm <storm@cua.dk>
4354
c2ee48fb
KS
4355 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
4356 to be nil in a :box attribute value list; customize prints that
4357 as lisp value when no box color is specified.
4358
b1c2adc3
KS
4359 * .gdbinit (pitx, pit): Pretty print display iterator.
4360 (prowx, prow): Pretty print glyph row.
4361 (pcursorx, pcursor): Pretty print a window cursor.
4362 (pwinx, pwin): Pretty print struct window.
4363
f102186f
SM
43642005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4365
4366 * alloc.c (BLOCK_BYTES): Harmless typo.
4367
9b516537
AS
43682005-02-17 Andreas Schwab <schwab@suse.de>
4369
4370 * xfns.c (hack_wm_protocols): Use correct type for last parameter
4371 of XGetWindowProperty to avoid aliasing issues.
4372 (Fx_window_property): Likewise.
4373
4374 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 4375 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
4376
4377 * xterm.c (handle_one_xevent): Use union of struct input_event and
4378 struct selection_input_event to avoid aliasing issues.
4379 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
4380
886b1418
KS
43812005-02-17 Kim F. Storm <storm@cua.dk>
4382
4383 * dispextern.h (enum it_method): New enum.
4384 (GET_FROM_*): Its members.
4385 (struct it): Change member method from function pointer to enum.
4386
4387 * xdisp.c (check_it, init_from_display_pos, handle_stop)
4388 (setup_for_ellipsis, handle_single_display_spec)
4389 (handle_composition_prop, next_overlay_string)
4390 (get_overlay_strings, reseat_1, reseat_to_string)
4391 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
4392 (in_display_vector_p, display_line, get_next_display_element):
4393 Change it->method from function pointer to enum.
4394 (get_next_element): New array to map it->method to function.
4395 (get_next_display_element): Use it.
4396 (set_iterator_to_next): Use switch instead of if/else chain.
4397
99ee2c6a 43982005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
4399
4400 * w32select.c: Summary: Thorough rework to implement Unicode
4401 clipboard operations and delayed rendering.
4402
4403 Drop last_clipboard_text and related code, keep track of
f4a5a485 4404 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
4405
4406 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
4407 (clipboard_owner, modifying_clipboard, cfg_coding_system)
4408 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
4409 (current_coding_system, current_requires_encoding)
f4a5a485
SM
4410 (current_num_nls, current_clipboard_type, current_lcid):
4411 New static variables.
52c7f9ee
JR
4412
4413 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
4414 (render, render_all, run_protected, lisp_error_handler)
4415 (owner_callback, create_owner, setup_config)
f4a5a485
SM
4416 (enum_locale_callback, cp_from_locale, coding_from_cp):
4417 New local functions.
52c7f9ee
JR
4418
4419 (term_w32select, globals_of_w32select): New global functions.
4420
4421 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
4422 clipboard_owner instead. Use delayed rendering and provide
4423 all text formats. Provide CF_LOCALE if necessary.
4424
4425 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
4426 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
4427 available. Force DOS line-ends for decoding.
4428
4429 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
4430
4431 (syms_of_w32select): Init and register new variables.
4432
4433 * w32.h: Add prototypes for globals_of_w32select and
4434 term_w32select. Make the neighboring K&R declarations into
4435 prototypes, too.
4436
4437 * emacs.c: Include w32.h to get function prototypes.
4438 (main): Call globals_of_w32select.
4439
886b1418 4440 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
4441
4442 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
4443
86e61586
KS
44442005-02-16 Kim F. Storm <storm@cua.dk>
4445
4446 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
4447 at end of display vector.
4448
6407f07b
RS
44492005-02-15 Richard M. Stallman <rms@gnu.org>
4450
4451 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
4452 for mode and header lines.
4453
4454 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
4455
4456 * keymap.h (describe_map_tree): Change decl.
4457
4458 * keyboard.c (command_loop_1): Always use safe_run_hooks
4459 to run Qdeferred_action_function.
4460
4461 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
4462 (describe_map, describe_vector): Likewise. When it's 1,
4463 don't omit shadowed bindings, instead mark them as shadowed.
4464
4465 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
4466 for describe_map_tree. Pass 1 for MENTION_SHADOW.
4467
4468 * data.c (Fsetq_default): Allow no arg case.
4469
3bb917bf
KH
44702005-02-14 Kenichi Handa <handa@m17n.org>
4471
4472 * coding.c (encode_coding_string): Always return a unibyte string.
4473 If NOCOPY is nonzero and there's no need of encoding, make STR
4474 unibyte directly.
4475
4476 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
4477 multibyte string, signal an error instead of aborting.
4478
e31d908f
DN
44792005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
4480
4481 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
4482
48e029b6
KS
44832005-02-12 Kim F. Storm <storm@cua.dk>
4484
4485 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
4486
c10bb00a
KS
44872005-02-10 Kim F. Storm <storm@cua.dk>
4488
4489 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
4490 if it moves outside window or it doesn't display text.
4491
9ca0f64a
KS
44922005-02-09 Kim F. Storm <storm@cua.dk>
4493
4494 * undo.c (Fprimitive_undo): Check that undo function does not
4495 switch buffer.
4496
b8d6f4af
JD
44972005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4498
4499 * xselect.c (selection_data_to_lisp_data): For the special case
4500 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
4501 (x_property_data_to_lisp, selection_data_to_lisp_data):
4502 Comment update: data must be array of int for format == 32.
b8d6f4af 4503
3419757d
SM
45042005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4505
4506 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
4507
3a441526
JD
45082005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4509
fc34503b
JD
4510 * xfns.c (Fx_change_window_property): Use long array when format is 32.
4511 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
4512 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
4513 (x_set_tool_bar_lines): Check that width and height is greater than
4514 zero before clearing area.
fc34503b
JD
4515
4516 * xselect.c (x_reply_selection_request): Pass long array to
4517 XChangeProperty so that 64 bit longs are handeled correctly.
4518 (x_get_window_property): If format is 32 and long is bigger than 32
4519 bits convert data from XGetWindowProperty from long array to int array.
4520 (lisp_data_to_selection_data): When the input is a vector and the
4521 format is 32, allocate a long array even if long is bigger than 32 bits.
4522 (x_fill_property_data): Use char, short and long as the man page
4523 for XChangeProperty specifies. This way the data returned is OK for
4524 both 32 and 64 bit machines.
4525 (x_handle_dnd_message): Calculate size correctly even for 64 bit
4526 machines.
4527 (Fx_send_client_event): Undo change from 2005-02-05,
4528 x_fill_property_data now handles that case.
4529
3419757d 4530 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
4531 reason for the approach in the code.
4532
82ec225b
KS
45332005-02-07 Kim F. Storm <storm@cua.dk>
4534
4535 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
4536
ba2c991c
RS
45372005-02-06 Richard M. Stallman <rms@gnu.org>
4538
4539 * eval.c (Frun_hook_with_args)
4540 (Frun_hook_with_args_until_success)
4541 (Frun_hook_with_args_until_failure): Doc fixes.
4542
e120ea40
AS
45432005-02-05 Andreas Schwab <schwab@suse.de>
4544
3419757d 4545 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 4546
31f16913
JD
45472005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4548
4549 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
4550 the longs in a XClientMessageEvent correctly when long is 64 bits.
4551
6082a820
EZ
45522005-02-05 Eli Zaretskii <eliz@gnu.org>
4553
4554 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
4555 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
4556
0e95095b
JD
45572005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4558
4559 * xmenu.c (menubar_selection_callback): Force out GTK buffered
4560 events so the menu event comes after them. This is to prevent sit-for
4561 from exiting on buffered events directly after a menu selection,
4562 lisp code for Help => About Emacs uses sit-for.
4563
4564 * gtkutil.c (create_menus): Connect selection-done event instead of
4565 the deactivate event to deactivate_cb. This will make the last
4566 leave event come before the call to deactivate_cb, so the leave
4567 event does not make sit-for exit after a menu selection.
4568
5bb6a3c1
KS
45692005-02-03 Kim F. Storm <storm@cua.dk>
4570
4571 * dispnew.c (build_frame_matrix_from_leaf_window)
4572 [!GLYPH_DEBUG]: Fix xassert.
4573
4574 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
4575
4576 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4577
e9859e26
YM
45782005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4579
4580 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
4581 the compiling OS version.
4582
4583 * macfns.c (x_create_tip_frame): Likewise.
4584
3419757d 4585 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 4586
4e07258f
RS
45872005-02-03 Richard M. Stallman <rms@gnu.org>
4588
4589 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
4590
4591 * xdisp.c (echo_area_display): Clear echo_message_buffer.
4592
4593 * buffer.c (Fbury_buffer): Doc fix.
4594
4a34b529
ST
45952005-02-02 Steven Tamm <steventamm@mac.com>
4596
7e26f91b 4597 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 4598 xassert being uncondition, but predicate is.
7e26f91b 4599 * dispnew.c (update_window): Fix compile error due to
f6c62d96 4600 xassert being uncondition, but predicate is.
4a34b529 4601
d78f30b8
MB
46022005-02-02 Miles Bader <miles@gnu.org>
4603
4604 * dispextern.h (xassert): Enable unconditionally.
4605
b044278d
KS
46062005-02-02 Kim F. Storm <storm@cua.dk>
4607
4608 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
4609
56072160
KH
46102005-02-02 Kenichi Handa <handa@m17n.org>
4611
4612 * casefiddle.c (casify_object): Enable changing characters of
4613 different byte length.
4614 (casify_region): Fix loop condition, args to replace_range_2, and
4615 update opoint_byte.
4616
f4a5a485 4617 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 4618
5e1674c5
KS
46192005-02-01 Kim F. Storm <storm@cua.dk>
4620
4621 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
4622 stack before calling handle_display_prop.
4623
fb89c330
KS
46242005-01-31 Kim F. Storm <storm@cua.dk>
4625
4626 * undo.c (Qapply): New lisp var.
4627 (syms_of_undo): Intern and staticpro it.
4628 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
4629 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
4630
4631 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
4632
7bf72fa6
JH
46332005-01-30 Jesper Harder <harder@phys.au.dk>
4634
a050b1a9
KS
4635 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
4636 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 4637
03c64f2e
LT
46382005-01-29 Luc Teirlinck <teirllm@auburn.edu>
4639
4640 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 4641 Increase value to 3 Meg.
03c64f2e 4642
49b8b5dc
JD
46432005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4644
4645 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
4646 button events are not received otherwise.
4647
5a92a9eb
RS
46482005-01-29 Richard M. Stallman <rms@gnu.org>
4649
4650 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
4651
4652 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
4653
5c243ee4
SM
46542005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
4655
4656 * keymap.c (access_keymap): YAILOM.
4657
caf533af
KS
46582005-01-27 Kim F. Storm <storm@cua.dk>
4659
4660 * xdisp.c (get_phys_cursor_geometry): New function to calculate
4661 phys cursor position and size for hollow cursor. Position is
4662 aligned with get_glyph_string_clip_rect and ensures that a hollow
4663 cursor is shown, even when the actual glyph is not visible.
4664
4665 * dispextern.h (get_phys_cursor_geometry): Add prototype.
4666
4667 * xterm.c (x_clip_to_row): Ensure y >= 0.
4668 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4669
4670 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4671
4672 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4673
043f7f73
SM
46742005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
4675
4676 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
4677
889f3641
KS
46782005-01-27 Kim F. Storm <storm@cua.dk>
4679
4680 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
4681 glyph, even when row is only partially visible and actual cursor
4682 position is not visible.
4683
29099c2f
RS
46842005-01-24 Richard M. Stallman <rms@gnu.org>
4685
4686 * xterm.c (x_error_quitter): No longer static, and moved after
4687 x_error_handler.
4688
6adb6f01
KS
46892005-01-24 Kim F. Storm <storm@cua.dk>
4690
4691 * xdisp.c (move_it_by_lines): If we move forward after going too
4692 far back, cancel move if end position is same as start position.
4693
4d904fa0
ST
46942005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4695
4696 * dispextern.h (struct glyph_string): New members clip_head and
4697 clip_tail.
6adb6f01 4698
4d904fa0
ST
4699 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
4700 region to the area between clip_head and clip_tail.
4701 (draw_glyphs): Record the area that need to be actually redrawn to
4702 the new variables clip_head and clip_tail when there are
4703 overhangs. Set values of these variables to the corresponding
4704 members in struct glyph_string. Refine x coordinates for
4705 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 4706
4d904fa0
ST
4707 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
4708
4709 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
4710 QDTextBounds.
4711 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 4712 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 4713 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 4714 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 4715
f2417699
KS
47162005-01-24 Kim F. Storm <storm@cua.dk>
4717
6f67f013
KS
4718 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
4719 direction if window height was smaller than next-screen-context-lines.
4720 Now always scroll at least one line in the requested direction.
4721 Ensure that we actually do scroll backwards when requested to do so.
4722
f2417699
KS
4723 * xdisp.c (redisplay_window): Only try to make cursor line fully
4724 visible once (to avoid redisplay loop).
4725
a354b72c
KS
47262005-01-23 Kim F. Storm <storm@cua.dk>
4727
6b3d88f7 4728 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 4729 partially visible rows.
6b3d88f7
KS
4730 (window_scroll_pixel_based): Adapt to that change.
4731
5c20cae2
KS
4732 * window.c (window_scroll_pixel_based): Force moving to next line
4733 if scrolling doesn't move start point, e.g. if looking at tall image.
4734
a354b72c 4735 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
4736 Clear last_height before calling line_bottom_y to get real height.
4737 Fix calculation of y.
a354b72c 4738
d9e7c622
ST
47392005-01-22 Steven Tamm <steventamm@mac.com>
4740
4741 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 4742 (DARWIN): Define.
7e26f91b 4743
d9e7c622
ST
4744 * process.c (init_process): Default process-connection-type to
4745 nil on darwin 6 or less, t if it is 7 or higher. This way the
4746 broken pty behavior is still allowed on darwin 6 for interactive
4747 processes for people that know what they are doing.
4748
d00e399a
KS
47492005-01-22 Kim F. Storm <storm@cua.dk>
4750
4751 * window.c (auto_window_vscroll_p): New boolean.
4752 (syms_of_window): DEFVAR_BOOL it.
4753 (Fpos_visible_in_window_p): Extend return value to include RTOP
4754 and RBOT values if FULLY is nil.
4755 (window_scroll_pixel_based): Adjust vscroll for partially visible
4756 rows if auto_window_vscroll_p is set.
4757 (Fset_window_vscroll): Do nothing if vscroll is not modified.
4758
4759 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
4760 to return number of partially invisible pixels at top and bottom
4761 of the dislay row at POS.
4762
4763 * lisp.h (pos_visible_p): Fix prototype.
4764
f95a20e7
RS
47652005-01-21 Richard M. Stallman <rms@gnu.org>
4766
4767 * fileio.c (Fcopy_file): Doc fix.
4768
eee141ce
JD
47692005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4770
4771 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
4772 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
4773 start of function for older compilers.
4774
6f771c32
RS
47752005-01-20 Richard M. Stallman <rms@gnu.org>
4776
4777 * editfns.c (Fmessage): If arg is "", return "" (as before).
4778
4779 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
4780
4781 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
4782 variable.
4783
a15252fd
ST
47842005-01-20 Steven Tamm <steventamm@mac.com>
4785
043f7f73 4786 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
4787 (init_editfns): Assign new variable operating-system-release
4788 based on call to uname if available.
043f7f73 4789 (get_operating_system_release): Add function to
d00e399a 4790 allow c-level access to operating system release.
a15252fd
ST
4791
4792 * config.h: Regenerated.
4793
043f7f73
SM
4794 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
4795 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
4796 using ptys as '7'.
4797
3d6a4b2d
KS
47982005-01-20 Kim F. Storm <storm@cua.dk>
4799
62fc9b0f
KS
4800 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
4801
c310aca4
KS
4802 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
4803 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
4804
4805 * macterm.c (x_draw_glyph_string_box): Likewise.
4806
4807 * w32term.c (x_draw_glyph_string_box): Likewise.
4808
3d6a4b2d
KS
4809 * indent.c (Fvertical_motion): Temporarily disable selective display.
4810
27c8be45
KS
48112005-01-19 Kim F. Storm <storm@cua.dk>
4812
77db5cf3
KS
4813 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
4814 image property.
4815
27c8be45
KS
4816 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
4817
81f498dc
KS
48182005-01-18 Kim F. Storm <storm@cua.dk>
4819
4820 * xdisp.c (fast_find_position): Backtrack to find first row if
4821 charpos is inside a display overlay that spans multiple lines.
4822
1cdb0707
KH
48232005-01-18 Kenichi Handa <handa@m17n.org>
4824
4825 * coding.c (decode_coding_iso2022): Translate invalid codes if
4826 translation-table is specified.
4827
677159ce
KS
48282005-01-18 Kim F. Storm <storm@cua.dk>
4829
4830 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
4831 change. If handle_display_prop indicates newline is replaced by
4832 image or text, move back to start of relevant overlay or interval
4833 and continue scan from there. Simplify.
4834
977284cc
KS
48352005-01-17 Kim F. Storm <storm@cua.dk>
4836
043f7f73
SM
4837 * dispnew.c (mode_line_string, marginal_area_string):
4838 Fix off-by-one error in search for glyph.
977284cc 4839
e24531b7
KS
48402005-01-16 Kim F. Storm <storm@cua.dk>
4841
4842 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
4843
5ddd7664
ST
48442005-01-16 Steven Tamm <steventamm@mac.com>
4845
043f7f73 4846 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 4847
fc2ff44b
AS
48482005-01-16 Andreas Schwab <schwab@suse.de>
4849
4850 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
4851
50af5100
JD
48522005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4853
4854 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
4855 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
4856
a2d5fca0
JD
48572005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4858
4859 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
4860 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
4861 New flags for readable_events.
043f7f73 4862 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
4863 (tracking_off): Call readable_events and get_input_pending with
4864 flag READABLE_EVENTS_DO_TIMERS_NOW.
4865 (readable_events): Move code from old readable_filtered_events here,
4866 but check new READABLE_EVENTS_* in argument flags instead of previous
4867 two boolean arguments do_timers_now and filter_events.
4868 If we are doing mouse tracking and the mouse moved, return only if
4869 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
4870 (swallow_events): Call get_input_pending with flag
4871 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 4872 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
4873 here. Replace boolean arguments do_timers_now, filter_events with
4874 flags, and pass flags to readable_events. Document new
4875 READABLE_EVENTS_* flags.
4876 (detect_input_pending_ignore_squeezables): New function.
4877 (detect_input_pending_run_timers): Call get_input_pending with flag
4878 READABLE_EVENTS_DO_TIMERS_NOW.
4879 (Finput_pending_p): Call get_input_pending with flags
4880 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
4881
4882 * dispnew.c (update_window, update_frame_1): Replace calls to
4883 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 4884 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
4885 mouse movements.
4886
4887 * lisp.h: Declare detect_input_pending_ignore_squeezables.
4888
42afbcda
ST
48892005-01-15 Steven Tamm <steventamm@mac.com>
4890
e24531b7
KS
4891 * macterm.c (Vmac_use_core_graphics): Declare variable for
4892 mac-allow-anti-aliasing.
4893 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 4894 (mac_draw_string_common): Use core graphics text rendering if
0530c679 4895 mac-allow-anti-aliasing is enabled.
743d0696 4896
42afbcda
ST
4897 * macfns.c (Fx_file_dialog): Save As dialog includes only the
4898 file name in the text box.
4899
9cdd4884
ST
49002005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4901
043f7f73
SM
4902 * macfns.c (x_set_foreground_color, x_set_background_color):
4903 Sync with xfns.c.
9cdd4884
ST
4904 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
4905 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
4906 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
4907
88948d55
KS
49082005-01-14 Kim F. Storm <storm@cua.dk>
4909
4910 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
4911
20d6de82
RS
49122005-01-13 Richard M. Stallman <rms@gnu.org>
4913
4914 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
4915 if Voverriding_terminal_local_map is non-nil.
4916
4917 * keyboard.c (syms_of_keyboard): Doc fix.
4918
f75a592e
KS
49192005-01-13 Kim F. Storm <storm@cua.dk>
4920
4921 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 4922 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 4923
28f94a34
RS
49242005-01-12 Richard M. Stallman <rms@gnu.org>
4925
4926 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
4927 face property for characters that don't specify one.
4928
4929 * fns.c (Frequire): Record in load-history unconditionally.
4930
57a230b1
KS
49312005-01-10 Kim F. Storm <storm@cua.dk>
4932
4933 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
4934
4935 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
4936 Callers changed.
4937 Add support to merge with lisp face id too (if face_name is t).
4938
4939 * xdisp.c (get_next_display_element, next_element_from_display_vector):
4940 Don't lookup lface_id from display table glyphs here; instead use
4941 merge_faces to merge the lisp face id into current face.
4942
8ab2c119
KS
49432005-01-09 Kim F. Storm <storm@cua.dk>
4944
4945 * dispextern.h (struct it): New member dpvec_face_id.
4946 (merge_into_realized_face): Add prototype.
4947
4948 * xfaces.c (merge_into_realized_face): New function. Used to
4949 merge escape-glyph face or face from display table into current face.
4950
4951 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
4952 (syms_of_xdisp): DEFVAR_LISP it.
4953 (escape_glyph_face): Remove var.
4954 (redisplay_window): Don't initialize it.
4955 (setup_for_ellipsis, get_next_display_element):
4956 Set it->dpvec_face_id to -1.
4957 (get_next_display_element): Test Vshow_nonbreak_escape.
4958 Do not setup escape_glyph_face.
4959 Properly merge escape-glyph face or face from display table with
043f7f73
SM
4960 current face for escape and control characters.
4961 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
4962 element of display vector.
4963 (next_element_from_display_vector): If it->dpvec_face_id is set,
4964 use that instead of lface_id from glyph itself.
4965
e0910857
JD
49662005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4967
4968 * xterm.h (struct x_output): New member, toolbar_detached.
4969
4970 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
4971 38.
4972 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
4973 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
4974 (xg_create_tool_bar): Initialize toolbar_detached.
4975 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
4976 toolbar_detached is zero.
4977
ff59904a
JD
49782005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4979
9b85e63d
JD
4980 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
4981 gtk_menu_popup if not for_click, so callbacks for the menu are called.
4982
ff59904a
JD
4983 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
4984 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 4985 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
4986
4987 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 4988 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
4989 XFLOAT_DATA to get extract number from Lisp object.
4990
f9a23a6f
KS
49912005-01-07 Kim F. Storm <storm@cua.dk>
4992
4993 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
4994 Set stop_charpos to current charpos instead of 0.
4995
28f94a34
RS
49962005-01-06 Nick Roberts <nickrob@snap.net.nz>
4997
4998 * xdisp.c (Fformat_mode_line): First arg now required.
4999
a6fffcdc
ST
50002005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5001
5002 * macterm.c (XLoadQueryFont): Correctly handle 0 size
5003 font widths that are returned from some Japanese fonts.
5004
c35b0c6b
KS
50052005-01-06 Kim F. Storm <storm@cua.dk>
5006
5007 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
5008 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
5009 (destroy_fringe_bitmap): Set fringe_faces element to nil.
5010 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
5011 fringe_faces array and init elements to nil.
5012 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
5013 non-persistent face id.
5014 (mark_fringe_data): New function for GC.
5015
5016 * alloc.c (mark_fringe_data): Declare extern.
5017 (Fgarbage_collect): Call mark_fringe_data.
5018
5019 * alloc.c (overrun_check_free): Invalidate freed memory if
5020 XMALLOC_CLEAR_FREE_MEMORY is defined.
5021
e0e76ab9
ST
50222005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5023
5024 * macfns.c: Include sys/param.h.
5025 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
5026 and function.
5027 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
5028 of filename string. Set event callback function when creating
5029 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 5030 of apple event descriptor record if failed to create it.
e0e76ab9
ST
5031
5032 * macterm.c: Include sys/param.h.
5033 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
5034 kEventWindowUpdate.
5035 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
5036 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
5037 of FSSpec from apple event descriptor record.
5038 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
5039 size of filename string.
5040 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
5041 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
5042 file dialog is in action.
043f7f73
SM
5043 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
5044 Reject only when there are no filename items. Set background color
e0e76ab9 5045 before (un)highlighting the window below the dragged items.
2313f861 5046 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 5047
043bc640
KH
50482005-01-05 Romain Francoise <romain@orebokech.com>
5049
5050 * term.c (encode_terminal_code): Fix buffer size computation.
5051
dd496df6
RS
50522005-01-04 Richard M. Stallman <rms@gnu.org>
5053
5054 * xdisp.c (Fformat_mode_line): Doc fix.
5055
026cdede
SM
50562005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5057
5058 * alloc.c (refill_memory_reserve): Move.
5059 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
5060 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
5061
d57c7572
RS
50622005-01-03 Richard M. Stallman <rms@gnu.org>
5063
5064 * window.c (window_scroll_pixel_based): Don't correct preserve_y
5065 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
5066
b14f868c
JR
50672005-01-03 Jason Rumney <jasonr@gnu.org>
5068
5069 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
5070 fontp->space_width to FONT_WIDTH so they are valid.
5071
5072 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 5073 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
5074 their appropriate values.
5075
5076 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5077 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
5078 fontp->space_width.
5079
e169f939
ST
50802005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5081
5082 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
5083 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
5084 metrics for max and min bounds.
5085 (x_load_font): Correctly calculate average font width metrics.
5086
19996af4
RS
50872005-01-02 Richard M. Stallman <rms@gnu.org>
5088
5089 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
5090
42d02da0
JD
50912004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5092
5093 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
5094
1db7dd46
RS
50952004-12-31 Richard M. Stallman <rms@gnu.org>
5096
b437860a
RS
5097 * xdisp.c (setup_for_ellipsis, get_next_display_element):
5098 Set it->ellipsis_p to 1 or 0.
5099 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 5100 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
5101 (cursor_row_p): If PT's at the end of the ellipsis the row
5102 ends within, don't display cursor on this row.
5103
5104 * dispextern.h (struct it): New element ellipsis_p.
5105 (struct glyph_row): New element ends_in_ellipsis_p.
5106
5107 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
5108 position if we're reading from something other than the buffer.
5109
1db7dd46
RS
5110 * window.c (window_scroll_pixel_based): Only look at
5111 Vscroll_preserve_screen_position if the old PT can't be kept.
5112 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5113
1225f637
KS
51142004-12-30 Kim F. Storm <storm@cua.dk>
5115
5116 * xdisp.c (get_line_height_property): New function extracted from
5117 original calc_line_height_property.
5118 (calc_line_height_property): Rework. Handle t and (nil . ratio).
5119 (x_produce_glyphs): Use them to handle line-height and
5120 line-spacing according to new height spec.
5121 (Qtotal): Remove.
33b2f4ea 5122 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 5123
c243063e
KH
51242004-12-30 Kenichi Handa <handa@m17n.org>
5125
5126 * fileio.c (Finsert_file_contents): Don't use
5127 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 5128 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
5129
5130 * fontset.h (struct font_info): New members space_width and
5131 average_width.
5132
5133 * frame.h (struct frame): New member space_width.
5134 (FRAME_SPACE_WIDTH): New macro.
5135
5136 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
5137
5138 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5139 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 5140 fontp->space_width.
043f7f73 5141 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
5142 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
5143
5144 * xdisp.c (x_produce_glyphs): Calculate tab width by
5145 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
5146
456e761b
ST
51472004-12-29 Sanghyuk Suh <han9kin@mac.com>
5148
5149 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 5150 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 5151
188577ce
LT
51522004-12-29 Luc Teirlinck <teirllm@auburn.edu>
5153
5154 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
5155
99ec74b9
RS
51562004-12-29 Richard M. Stallman <rms@gnu.org>
5157
5158 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
5159
30c92fab
ST
51602004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5161
5162 * macfns.c (install_window_handler): Modify extern to return OSErr
5163 value.
5164 (mac_window): Handle return value of install_window_handler.
5165
5166 * macterm.c (reflect_byte): Remove function.
5167 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
5168 Lookup table instead.
5169 (mac_do_font_lists): Simplify calculation of the longest
5170 nonspecial string.
5171 (init_mac_drag_n_drop): Remove function and declaration.
5172 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
5173 init_mac_drag_n_drop.
5174 (mac_do_track_drag): New function and declaration.
5175 (install_window_handler): Return OSErr value.
043f7f73
SM
5176 (install_window_handler) [TARGET_API_MAC_CARBON]:
5177 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 5178 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
5179 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
5180 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 5181
4b982924
DN
51822004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
5183
5184 * coding.c (decode_coding): Fix previous change.
5185
93fdf45f
RS
51862004-12-28 Richard M. Stallman <rms@gnu.org>
5187
5188 * xdisp.c (back_to_previous_visible_line_start):
5189 Don't call handle_display_prop.
5190
5bdca8af
DN
51912004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
5192
5193 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
5194 (decode_coding_emacs_mule, encode_coding_emacs_mule)
5195 (decode_coding_iso2022, encode_designation_at_bol)
5196 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
5197 (decode_coding): Constify arguments and local vars.
5198
33385c6f
JD
51992004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5200
5201 * xmenu.c (popup_get_selection): Only pop down dialogs
5202 on C-g and Escape.
95bdef2e 5203 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
5204 (create_and_show_popup_menu, create_and_show_dialog):
5205 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 5206
b15325b2
ST
52072004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5208
5209 * dispextern.h: Change HAVE_CARBON to MAC_OS.
5210 (struct glyph_string): Likewise.
a2c7e69a 5211
b15325b2
ST
5212 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
5213 mac_initialize.
a2c7e69a 5214
b15325b2
ST
5215 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
5216 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 5217
b15325b2 5218 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 5219
b15325b2
ST
5220 * frame.c (x_set_frame_parameters, x_report_frame_params)
5221 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
5222 (x_set_border_width, Vdefault_frame_scroll_bars):
5223 Change HAVE_CARBON to MAC_OS.
a2c7e69a 5224
b15325b2
ST
5225 * image.c [MAC_OS]: Include sys/stat.h.
5226 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
5227 QuickTimeComponents.h.
a2c7e69a 5228
b15325b2
ST
5229 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
5230 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 5231 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
5232 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
5233 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
5234 (mac_clear_font_name_table): Add extern.
5235 (Fmac_clear_font_name_table): New defun.
5236 (syms_of_mac): Defsubr it.
5237 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
5238 [MAC_OSX] (select_and_poll_event): New function.
5239 [MAC_OSX] (sys_select): Use it.
5240 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
5241 [MAC_OSX && SELECT_USE_CFSOCKET]
5242 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
5243 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
5244 RunLoop for simultaneously monitoring two kinds of inputs, window
5245 events and process outputs, without periodically polling.
a2c7e69a 5246
b15325b2
ST
5247 * macfns.c (mac_initialized): Remove extern.
5248 (stricmp): Put in #if 0. All callers changed to use xstricmp in
5249 xfaces.c.
043f7f73
SM
5250 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
5251 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
5252 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
5253 (mac_get_rdb_resource): New function (from w32reg.c).
5254 (x_get_string_resource): Use it.
5255 (install_window_handler): Add extern.
5256 (mac_window): New function.
043f7f73
SM
5257 (Fx_create_frame): Use it instead of make_mac_frame.
5258 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
5259 (Fx_open_connection, Fx_close_connection): New defuns.
5260 (syms_of_macfns): Defsubr them.
043f7f73
SM
5261 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
5262 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
5263 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
5264 (x_create_tip_frame): Don't call ShowWindow.
5265 (Fx_show_tip): Call ShowWindow.
5266 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
5267 TARGET_API_MAC_CARBON'.
5268 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
5269 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 5270
043f7f73 5271 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
5272 (Window): Typedef to WindowPtr and move outside `#if
5273 TARGET_API_MAC_CARBON'.
5274 (XSizeHints): New struct.
a2c7e69a 5275
b15325b2
ST
5276 * macterm.c (x_update_begin, x_update_end)
5277 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
5278 frame.
5279 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5280 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
5281 (construct_mouse_click): Put in #if 0.
5282 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
5283 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
5284 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
5285 (activate_scroll_bars, deactivate_scroll_bars)
5286 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
5287 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
5288 if the position is neither user-specified nor program-specified.
5289 (x_free_frame_resources): Free size_hints.
043f7f73 5290 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
5291 (mac_clear_font_name_table): New function.
5292 (mac_do_list_fonts): Initialize font_name_table if needed.
5293 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
5294 around mac_do_list_fonts.
5295 (mac_unload_font): New function.
5296 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
5297 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
5298 and definitions with #if TARGET_API_MAC_CARBON.
5299 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
5300 (install_window_handler): Add decl.
5301 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
5302 window. Use UpdateControls. Get the rectangle that should be
5303 updated and restrict the target of expose_frame to it.
043f7f73 5304 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
5305 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
5306 (do_zoom_window): Don't use x_set_window_size.
5307 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
5308 (install_window_handler): New function.
5309 [!USE_CARBON_EVENTS] (mouse_region): New variable.
5310 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
5311 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
5312 GetEventDispatcherTarget inside BLOCK_INPUT.
5313 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
5314 Update mouse_region when mouse is moved.
5315 (make_mac_frame): Remove.
043f7f73
SM
5316 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
5317 Initialize mouse pointer shapes. Change values of f->left_pos and
5318 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
5319 Don't call ShowWindow.
b15325b2
ST
5320 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
5321 Vinvocation_name and Vsystem_name.
5322 (mac_make_rdb): New function (from w32term.c).
5323 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
5324 already been opened. Don't pass argument to
5325 mac_initialize_display_info. Don't set dpyinfo->height/width.
5326 Add entries to x_display_list and x_display_name_list.
5327 (x_delete_display): New function.
5328 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
5329 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
5330
b15325b2
ST
5331 * macterm.h (check_mac): Add extern.
5332 (struct mac_output): New member size_hints.
5333 (FRAME_SIZE_HINTS): New macro.
5334 (mac_unload_font): Add extern.
a2c7e69a 5335
b15325b2 5336 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 5337
1d1c7e75 5338 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 5339
92d2947b
RS
53402004-12-27 Richard M. Stallman <rms@gnu.org>
5341
043f7f73 5342 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
5343 (syms_of_buffer): Don't defsubr it.
5344
5345 * process.c (list_processes_1): Set undo_list instead
5346 of calling Fbuffer_disable_undo.
5347
043f7f73 5348 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 5349 single_display_prop_string_p.
043f7f73 5350 (single_display_spec_intangible_p): Rename from
92d2947b 5351 single_display_prop_intangible_p.
043f7f73 5352 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
5353 Rewritten to be easier to understand.
5354
a2c7e69a 5355 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
5356 and variables get just NAME.
5357
5358 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
5359
5360 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
5361 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
5362 (Qdefvar): Var deleted.
5363 (syms_of_eval): Don't initialze it.
5364
5365 * lread.c (syms_of_lread) <load-history>: Doc fix.
5366
9f6fcdc5
JD
53672004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5368
5369 * xmenu.c (popup_get_selection): Pop down on C-g.
5370 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
5371 pops down menu on C-g.
5372 (xdialog_show): If dialog popped down and no button in the dialog was
5373 pushed, call Fsignal to quit.
5374 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
5375 Fsignal to quit.
5376
1d1c7e75 5377 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
5378
5379 * gtkutil.c (xg_initialize): Install bindings for C-g so that
5380 dialogs and menus pop down.
5381
d8ca23a0
KH
53822004-12-27 Kenichi Handa <handa@m17n.org>
5383
5384 * coding.c (code_convert_region): Fix calculation of `ratio'.
5385
857ae68b
JD
53862004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5387
133c0116
JD
5388 * gtkutil.c (update_frame_tool_bar): Make the value of
5389 tool-bar-button-margin control margins of images in tool bar.
5390
857ae68b
JD
5391 * alloc.c (check_depth): New variable.
5392 (overrun_check_malloc, overrun_check_realloc): Only add
5393 overhead and write check pattern if check_depth is 1 (to handle
5394 recursive calls). Increase/decrease check_depth in entry/exit.
5395 (overrun_check_free): Only check for overhead if check_depth is 1.
5396 Increase/decrease check_depth in entry/exit.
5397
bd55c35c
JD
53982004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5399
5400 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
5401 before touching input_available_clear_time, to avoid accessing it
5402 from multiple threads.
5403
66354420
JR
54042004-12-23 Jason Rumney <jasonr@gnu.org>
5405
5406 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
5407 of JPEG library.
5408
55f4edbc
RS
54092004-12-22 Richard M. Stallman <rms@gnu.org>
5410
5411 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
5412
5413 * lisp.h (Vundo_outer_limit): Fix decl.
5414
5415 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
5416 Uses changed.
5417 (syms_of_undo): Initialize appropriately.
5418 (truncate_undo_list): If it's nil, there's no limit.
5419
7a0ea9e3
KH
54202004-12-22 Kenichi Handa <handa@m17n.org>
5421
5422 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
5423
fda2922a
RS
54242004-12-21 Richard M. Stallman <rms@gnu.org>
5425
5426 * eval.c (unwind_to_catch): Clear immediate_quit.
5427
5428 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
5429 specially as `\ ' and `\-'.
5430
5431 * keyboard.c (kbd_buffer_store_event_hold):
5432 In the code for while-no-input, handle immediate_quit.
5433
5434 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
5435 Call that at the very start.
043f7f73 5436 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
5437 (syms_of_alloc): Don't define undo-limit,
5438 undo-strong-limit and undo-outer-limit here.
5439
5440 * undo.c (truncate_undo_list): Return void.
5441 Take just one argument, the buffer.
5442 Make it current, and inhibit recursive GC.
5443 Access and update the undo list directly; return void.
5444 Refer to the undo...limit variables directly.
5445 Test undo_outer_limit only after counting the whole current command.
5446 When it's exceeded, call the function in undo-outer-limit-function.
5447 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
5448 (Vundo_outer_limit_function): New variable.
5449 (syms_of_undo): Define undo-limit, undo-strong-limit
5450 and undo-outer-limit here, and undo-outer-limit-function.
5451 Doc fixes.
5452
5453 * lisp.h (truncate_undo_list): Update decl.
5454
54552004-12-21 Piet van Oostrum <piet@cs.uu.nl>
5456
5457 * fileio.c (Fread_file_name): Delete duplicates in
5458 file-name-history when history_delete_duplicates is true.
5459
68c69027
ST
54602004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5461
5462 * macterm.c (mac_do_list_fonts): Fix memory leak
5463
134579f2
RS
54642004-12-20 Richard M. Stallman <rms@gnu.org>
5465
5466 * regex.c (re_match_2_internal) <symend, wordend>:
5467 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
5468
fbe6152f
ST
54692004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5470
043f7f73
SM
5471 * macterm.c (endif, x_font_name_to_mac_font_name):
5472 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
5473 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
5474 quickly finding a specific font without needing regexps.
5475
fecad3f6
JD
54762004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5477
333f1b6f
JD
5478 * syssignal.h: Declare main_thread.
5479 (SIGNAL_THREAD_CHECK): New macro.
5480
5481 * keyboard.c (input_available_signal): Move thread checking code
5482 to macro SIGNAL_THREAD_CHECK and call that macro.
5483 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
5484
5485 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
5486
5487 * emacs.c: Define main_thread.
5488 (main): Initialize main_thread.
5489 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
5490 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
5491
5492 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
5493
5494 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
5495
5496 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
5497
043f7f73
SM
5498 * process.c (send_process_trap, sigchld_handler):
5499 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
5500
5501 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
5502
5503 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
5504
fecad3f6
JD
5505 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
5506 returning when xg_ignore_gtk_scrollbar is true.
5507
2a84c6da
KS
55082004-12-14 Kim F. Storm <storm@cua.dk>
5509
5510 * keyboard.c (read_char): Save and restore echo_string when
5511 handling input method.
5512
d9c1ce9d
RS
55132004-12-13 Richard M. Stallman <rms@gnu.org>
5514
5515 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
5516
5517 * keyboard.c (Vthrow_on_input): New variable.
5518 (syms_of_keyboard): Defvar and initialize it.
5519 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
5520
5521 * lisp.h (QUIT): Check for Vthrow_on_input.
5522 (Vthrow_on_input): Declare it.
5523
a6495ed5
KS
55242004-12-13 Kim F. Storm <storm@cua.dk>
5525
5526 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
5527 vector.
5528
24a0e22f
RS
55292004-12-12 Richard M. Stallman <rms@gnu.org>
5530
5531 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
5532
5533 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
5534 (Ftry_completion): Really use outer `zero'; eliminate inner one.
5535
d6d31e57
KH
55362004-12-12 Kenichi Handa <handa@m17n.org>
5537
5538 * term.c (encode_terminal_code): Fix previous change.
5539
6f8ffb88
SM
55402004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
5541
fb6f5cbf
SM
5542 * keyboard.c (handle_async_input): Remove pthread mutex handling.
5543 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
5544
6f8ffb88
SM
5545 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
5546 in macro arguments.
5547
5548 * minibuf.c (Ftry_completion, Fall_completions): Don't use
5549 XFASTINT blindly.
5550
5551 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
5552
c83c9f9d
JD
55532004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5554
2f25767f
JD
5555 * w32term.c (x_calc_absolute_position): Remove calculation of
5556 difference between inner and outer window. Don't subtract difference
5557 for left and top calculations.
5558
c83c9f9d
JD
5559 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
5560 for left and top calculations. Remove call to x_real_positions.
24a0e22f 5561 [Bug report by Drew Adams in November]
c83c9f9d
JD
5562 (x_check_expected_move): Do not set change_gravity to 1 when calling
5563 x_set_offset.
5564
cc1caa4e
RS
55652004-12-08 Richard M. Stallman <rms@gnu.org>
5566
5567 * xdisp.c (get_next_display_element): Use `escape-glyph' for
5568 control chars and escaped octal codes.
5569 (Qescape_glyph): New variable.
5570 (syms_of_xdisp): Initialize it.
5571 (escape_glyph_face): New variable.
5572 (redisplay_window): Initialize it.
5573
e0e30823
RS
55742004-12-07 Paul Eggert <eggert@cs.ucla.edu>
5575
5576 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
5577 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
5578
f415cacd
JD
55792004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5580
cf435f39
JD
5581 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
5582 reset_malloc_hooks.
5583
6f8ffb88
SM
5584 * keyboard.c (handle_async_input, input_available_signal):
5585 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 5586
f415cacd
JD
5587 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
5588
043f7f73 55892004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
5590
5591 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
5592
5593 * config.in: Regenerate.
5594
ded997c1
JD
55952004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5596
453a4f1b
JD
5597 * xmenu.c (Fx_popup_menu): Correct documentation about position.
5598 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
5599 if not given by a mouse click to correspond with x-popup-menu
5600 documentation.
5601
9a38524c
JD
5602 * config.in: Regenerate.
5603
aa477689
JD
5604 * gtkutil.c: Include signal.h and syssignal.h.
5605 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
5606
5607 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
5608 new variables main_thread and alloc_mutex,
5609 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
5610 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
5611 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
5612 (UN)BLOCK_INPUT.
5613 (emacs_blocked_free, emacs_blocked_malloc)
5614 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
5615 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
5616 (reset_malloc_hooks): New function.
5617
5618 * lisp.h: Declare reset_malloc_hooks.
5619
5620 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
5621
5622 * keyboard.c: Conditionally include pthread.h
6f8ffb88 5623 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
5624 thread, block signal, send signal to main thread and return.
5625
ded997c1 5626 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 5627 Set current folder in file chooser if default_filename is a directory.
ded997c1 5628
c72b0edd
SM
56292004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
5630
5631 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
5632 Remove redundant correctness checks.
5633 (regex_compile): Fix up error codes for \{..\} expressions.
5634
c721eee5
RS
56352004-12-05 Richard M. Stallman <rms@gnu.org>
5636
5637 * regex.c (regex_compile): Fix end-of-pattern case for space.
5638
d8f96db8
ST
56392004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5640
6108209e
KS
5641 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
5642 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 5643 crashes with invalid characters.
6108209e
KS
5644 * macmenu.c (add_menu_item): Use it.
5645 * image.c (image_load_quartz2d): Likewise.
5646 * macfns.c (x_set_name, x_set_title): Likewise.
5647 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
5648 creating them each time for labels.
d8f96db8 5649
ab67e8b6
RS
56502004-12-02 Richard M. Stallman <rms@gnu.org>
5651
5652 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
5653 don't use it here.
5654
5655 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
5656 (interactive_p): Skip Scalled_interactively_p frames
5657 like Sinteractive_p frames.
b8217ea6 5658 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
5659
5660 * data.c (Fmake_variable_buffer_local): Doc fix.
5661 (Fmake_local_variable): Doc fix.
5662
5663 * insdel.c (insert_from_string_before_markers)
5664 (insert_from_string): Don't modify buffer on empty insertion.
5665
5666 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
5667
f86bdc80
ST
56682004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5669
5670 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
5671 menu text as UTF8 fails.
5672
1cae6d39
KS
56732004-12-01 Kim F. Storm <storm@cua.dk>
5674
5675 * alloc.c: Add commentary for last change.
5676 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
5677 sizeof(size_t) != 4.
5678 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
5679 Use them. Also clear header and trailer of freed memory.
5680 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
5681 (string_overrun_cookie): Rename from string_overrun_pattern.
5682 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
5683
77ea0764
AS
56842004-12-01 Andreas Schwab <schwab@suse.de>
5685
5686 * lisp.h: Declare string_to_multibyte.
5687
2d5cd4e6
KH
56882004-12-01 Kenichi Handa <handa@m17n.org>
5689
5690 * w32console.c (w32con_write_glyphs): Decide coding here.
5691 Adjusted for the change of encode_terminal_code.
5692
5693 * term.c (encode_terminal_code): Don't make it "static".
5694
25a0994a
KH
56952004-11-30 Kenichi Handa <handa@m17n.org>
5696
19b1f29a 5697 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 5698 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
5699 characters at once, and return a pointer to the result of encoding.
5700 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
5701 (insert_glyphs): Likewise.
5702 (term_init): Initialize encode_terminal_bufsize to 0.
5703
5704 * coding.c (Vcode_conversion_workbuf_name): New variable.
5705 (syms_of_coding): Initialize and staticpro it.
5706 (set_conversion_work_buffer): New function.
5707 (run_pre_post_conversion_on_str): Use it.
5708 (run_pre_write_conversin_on_c_str): New function.
5709
5710 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
5711
fc7a70cc
ST
57122004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5713
5714 * keyboard.c: Don't undef SIGIO
5715 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
5716 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
5717 (macfns.o): Don't depend on ccl.h.
5718 * macfns.c (mac_frame_parm_handlers): Set handlers for
5719 Qleft_fringe and Qright_fringe.
5720 * macterm.c (mac_fill_rectangle_to_pixmap)
5721 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
5722 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
5723 Put in #if 0.
5724 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
5725 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
5726 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
5727 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5728 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
5729 XDrawImageString. Always draw background and foreground separately.
5730 (x_draw_image_foreground): Use clipping instead of computing the
5731 intersection rectangle.
5732 (x_draw_image_glyph_string): Don't draw an image with mask to a
5733 pixmap.
5734 (x_redisplay_interface): Set flush_display_optional member to 0.
5735 (XTread_socket): Correctly reset the TEConverter
5736 object.
5737
fc368889
KS
57382004-11-30 Kim F. Storm <storm@cua.dk>
5739
5740 * lisp.h: New defines to enable buffer overrun checking.
5741 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
5742 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
5743
5744 * alloc.c: Add more checks for buffer overruns.
5745 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
5746 xmalloc_overrun_check_trailer, overrun_check_malloc)
5747 overrun_check_realloc, overrun_check_free): Add.
5748 (GC_STRING_EXTRA, string_overrun_pattern): Add.
5749 (check_sblock, allocate_string_data, compact_small_strings):
5750 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
5751 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
5752 (check_string_free_list): Add.
5753 (allocate_string, sweep_strings): Call check_string_free_list.
5754
5755 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
5756 XMALLOC_OVERRUN_CHECK to avoid crash during load.
5757
0af8cfe1
KS
57582004-11-29 Kim F. Storm <storm@cua.dk>
5759
5760 * fns.c (concat): Use SAFE_ALLOCA.
5761
77220eeb
SM
57622004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
5763
5764 * sysdep.c (emacs_write): Don't use QUIT.
5765
a778cf63
KH
57662004-11-29 Kenichi Handa <handa@m17n.org>
5767
5768 * buffer.c (init_buffer): Set current_buffer->directory to a
5769 multibyte string made by string_to_multibyte.
5770
77220eeb 5771 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 5772
e3177e43
AS
57732004-11-27 Andreas Schwab <schwab@suse.de>
5774
5775 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
5776
5777 * s/gnu-linux.h: Enable no-op gcpros on ia64.
5778 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
5779
77220eeb
SM
5780 * filelock.c (lock_file_1): Call get_boot_time early.
5781 Increase buffer size.
e3177e43 5782
ca5e6fef
EZ
57832004-11-27 Eli Zaretskii <eliz@gnu.org>
5784
5785 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
5786 is not defined.
5787
e2811828
KS
57882004-11-27 Kim F. Storm <storm@cua.dk>
5789
5790 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
5791 marker out of doc string.
5792
7a262394
SM
57932004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
5794
5795 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
5796 which was not mentioned in the log.
5797
f33cc5a9
KS
57982004-11-26 Kim F. Storm <storm@cua.dk>
5799
048bb03f
KS
5800 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
5801 angle bitmaps at top/bottom line.
5802
52eb0373 5803 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
5804 set it when it->method is set to next_element_from_display_vector.
5805 (setup_for_ellipsis): Add LEN argument. Callers changed.
5806 Set it->saved_face_id.
5807 (get_next_display_element): Use loop instead of recursion.
5808 Set it->saved_face_id. Combine duplicate code for ctr chars.
5809 (next_element_from_display_vector): Do not set it->saved_face_id.
5810 (next_element_from_ellipsis): Use setup_for_ellipsis.
5811
670e8906
EZ
58122004-11-26 Eli Zaretskii <eliz@gnu.org>
5813
5814 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
5815 prevent compiler warnings.
5816
275464e7
SM
58172004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
5818
1bf0e604
SM
5819 * keyboard.c (command_loop_1): Print a message describing the key
5820 the user just pressed when this key has no binding.
5821
275464e7
SM
5822 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
5823 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
5824
5825 * lread.c (readchar): Check QUIT when `getc' is interrupted.
5826
261b01c6
RS
58272004-11-24 Richard M. Stallman <rms@gnu.org>
5828
5829 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
5830
5831 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
5832
a5bd504e
KS
58332004-11-24 Kim F. Storm <storm@cua.dk>
5834
5835 * xdisp.c (move_it_in_display_line_to, display_line):
5836 Restore saved_face_id also when truncate-lines or hscrolled.
5837
255e4140
JD
58382004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5839
5840 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
5841 x-use-old-gtk-file-dialog.
5842
5843 * xfns.c: Define x_use_old_gtk_file_dialog.
5844 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
5845 outside ifdef USE_GTK.
5846
cab27d04
SM
58472004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
5848
5849 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
5850 Don't use XFASTINT blindly.
5851
5852 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
5853
5854 * indent.c (skip_invisible): Avoid non-idempotent side-effects
5855 in macro arguments.
5856
5857 * keymap.c (Flookup_key): Check INTEGERP before XINT.
5858
5859 * lread.c (oblookup): Don't use XFASTINT blindly.
5860
5861 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
5862 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
5863
11e0be49
KS
58642004-11-23 Kim F. Storm <storm@cua.dk>
5865
4d721114
KS
5866 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
5867 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
5868
11e0be49
KS
5869 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
5870 signal_p is zero and face name is unknown.
5871 (Fx_list_fonts): Don't signal error in lookup_named_face.
5872 (Fface_font): Signal error in lookup_named_face.
5873 (ascii_face_of_lisp_face): Likewise.
5874
5875 * dispextern.h (lookup_named_face): Fix prototype.
5876
5877 * xdisp.c (handle_single_display_prop): Don't signal error in
5878 lookup_named_face for unknown fringe face name.
5879 (highlight_trailing_whitespace): Don't signal error in
5880 lookup_named_face if trailing-whitespace face unknown.
5881 (calc_line_height_property): Don't signal error in
5882 lookup_named_face if specified face name is unknown.
5883
5884 * fringe.c (update_window_fringes): Show top row indicator if
5885 window has header-line. Don't show arrow at bob and eob
5886 if the boundary indicators are not used.
5887 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
5888
5889 * window.c (set_window_buffer): Clear display_error_modiff.
5890
0960a582
KS
58912004-11-22 Kim F. Storm <storm@cua.dk>
5892
5893 * fringe.c (update_window_fringes): Provide sensible fall-back
5894 value for non-nil indicate-buffer-boundaries setting.
5895
b0e9bb28
MR
58962004-11-22 Markus Rost <rost@ias.edu>
5897
5898 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
5899
d0bce91e
SM
59002004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
5901
5902 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
5903
e1814672
KS
59042004-11-21 Kim F. Storm <storm@cua.dk>
5905
b7fd3518
KS
5906 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
5907
5908 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
5909 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5910
5911 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
5912 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5913
5914 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
5915 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5916
d0bce91e
SM
5917 * xdisp.c (move_it_in_display_line_to, display_line):
5918 Restore saved_face_id if overflow-newline-into-fringe is enabled and
5919 line is continued before or in middle of element from display vector.
f01d4d05 5920
f1a61389
KS
5921 * indent.c (Fvertical_motion): Fix last change. Use another
5922 method to detect if iterator moved too far ahead after reseat.
5923
e1814672
KS
5924 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
5925 expand matrix width for overflow in zero-width area.
5926 (append_glyph, append_composite_glyph, produce_image_glyph)
5927 (append_stretch_glyph): Use it to avoid loop in redisplay.
5928 (note_mode_line_or_margin_highlight): Don't let help-echo from
5929 string override help-echo from image map.
5930
2dafe1c9
LT
59312004-11-20 Luc Teirlinck <teirllm@auburn.edu>
5932
d0bce91e 5933 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
5934 * callint.c (Fcall_interactively): Ditto.
5935
fd6866c8 59362004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
5937
5938 * minibuf.c (Fminibuffer_complete_and_exit):
5939 Fixup the case of the completed value, for case-indep completion.
5940
dedbac89
RS
59412004-11-20 Richard M. Stallman <rms@gnu.org>
5942
fd6866c8
RS
5943 * lisp.h (Fread_from_minibuffer): Add arg in decl.
5944
9d00469f 5945 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 5946 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 5947
dedbac89 5948 * search.c (Vsearch_spaces_regexp):
d0bce91e 5949 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 5950
2f672bb5
TTN
59512004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
5952
5953 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
5954
f31a9a68
RS
59552004-11-19 Richard M. Stallman <rms@gnu.org>
5956
5957 * search.c (Vsearch_whitespace_regexp): New variable.
5958 (syms_of_search): Defvar it.
5959 (compile_pattern_1): Call re_set_whitespace_regexp with it.
5960 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
5961 is non-nil.
6de891db
RS
5962 (struct regexp_cache): New element whitespace_regexp.
5963 (syms_of_search): Initialize whitespace_regexp elements.
5964 (compile_pattern): Compare whitespace_regexp elements.
5965 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
5966
5967 * regex.c (regex_compile): Substitute whitespace_regexp
5968 for spaces, if it is nonzero.
5969 (whitespace_regexp): New variable.
5970 (re_set_whitespace_regexp): New function.
5971
cbc34cb3
KS
59722004-11-19 Kim F. Storm <storm@cua.dk>
5973
5974 * indent.c (Fvertical_motion): Fix last change.
5975
b54a7539
KS
59762004-11-18 Kim F. Storm <storm@cua.dk>
5977
5978 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
5979 Instead, move back again if reseating moves too far ahead.
5980
59812004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
5982
5983 * xdisp.c (message3): Call clear_message.
5984
5ff504fe
KS
59852004-11-17 Kim F. Storm <storm@cua.dk>
5986
5987 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
5988
5ae53dcf
JD
59892004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5990
d0bce91e 5991 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 5992
6abf3a27 5993 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
5994 (x_menu_set_in_use): Also set popup_activated_flag.
5995
5ff504fe 5996 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
5997 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
5998
52eb0373 5999 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 6000
ee31cd78
RS
60012004-11-16 Richard M. Stallman <rms@gnu.org>
6002
6abf3a27
SM
6003 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
6004 Use map-keymap-internal to implement that.
ee31cd78
RS
6005
6006 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
6007
6abf3a27
SM
60082004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
6009
6010 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
6011 a window before using XWINDOW.
6012
6013 * window.c (make_window, Fselect_window, make_dummy_parent)
6014 (save_window_save):
6015 * frame.c (make_frame):
6016 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
6017
6018 * lisp.h (NILP): Use EQ rather than XFASTINT.
6019
b4d61105
KS
60202004-11-16 Kim F. Storm <storm@cua.dk>
6021
6abf3a27 6022 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 6023
b4d61105
KS
6024 * indent.c (Fvertical_motion): Fix last change. Only reseat when
6025 moving backwards.
6026
60272004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
6028
6029 * dispextern.h: Extern reseat_at_previous_visible_line_start.
6030
ab5b02b0
KH
60312004-11-16 Kenichi Handa <handa@m17n.org>
6032
6033 * xdisp.c (display_mode_element): Fix previous change (calculate
6034 end position of substring to display correctly).
6035
c482cf97
KS
60362004-11-16 Kim F. Storm <storm@cua.dk>
6037
6038 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
6039 Reported by Andrew M. Scott.
6040
9f89426b
KS
60412004-11-15 Kim F. Storm <storm@cua.dk>
6042
6043 * fns.c (Fsafe_plist_get): New defun.
6044 (syms_of_fns): Defsubr it.
6045
6046 * lisp.h (Fsafe_plist_get): Add EXFUN.
6047
6048 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
6049 Use Fsafe_plist_get.
6050 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6051 Fix image map element parsing. Use Fsafe_plist_get.
6052
27418463
RS
60532004-11-15 Richard M. Stallman <rms@gnu.org>
6054
6055 * xdisp.c (get_next_display_element): Fix previous change.
6056
a130b901
JD
60572004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6058
ef614e04
JD
6059 * window.c (shrink_windows): Handle special case of one window left
6060 when trying to shrink the final reminder. Grow windows if
6061 total_removed is less than total_shrink.
6062
a130b901
JD
6063 * xmenu.c (pop_down_menu): Remove global variable current_menu,
6064 extract pointer from arg with XSAVE_VALUE.
46303896
KS
6065 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
6066 Construct arg to record_unwind_protect with make_save_value.
a130b901 6067
d9a03ad2
RS
60682004-11-13 Richard M. Stallman <rms@gnu.org>
6069
6070 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
6071 (get_next_display_element): Fix previous change to apply only to \n.
6072
6073 * indent.c (Fvertical_motion): Scan to PT from start of line to
6074 make iterator consistent.
6075
6076 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
6077
b3935289
JD
60782004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6079
6080 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
6081
6082 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
6083 Record unwind with clean_up_file_dialog.
6084
78819ebb
KS
6085 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
6086 Declare.
b3935289
JD
6087
6088 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
6089
af89e871
JD
60902004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6091
457a8155 6092 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 6093 (xg_file_sel_destroy): Remove.
46303896
KS
6094 (xg_file_response_cb, pop_down_file_dialog)
6095 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 6096 New functions.
6abf3a27
SM
6097 (xg_get_file_with_chooser, xg_get_file_with_selection):
6098 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
6099 Move common code to xg_get_file_name. Return widget created.
6100 (xg_get_file_name): Set name, transient for, modal and destroy
6101 with parent here. Connect response signal to xg_file_response_cb,
6102 connect delete-event to gtk_true. Record pop_down_file_dialog
6103 for unwind. Do event loop and call x_menu_wait_for_event in loop.
6104 (xg_create_widget): Make dialogs modal.
6105
af89e871
JD
6106 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
6107 Lisp_Object.
6108 (popup_get_selection): Move unwind protect ...
6109 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6110 Move destroy of widget to pop_down_menu.
6111 (popup_widget_loop): Move unwind protect ...
6112 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6113 Move destroy of widget to pop_down_menu.
6114 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 6115 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
6116 x_mouse_leave and grabbed = 0 to pop_down_menu.
6117
5596fbf1
KS
61182004-11-13 Kim F. Storm <storm@cua.dk>
6119
6120 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
6121 (syms_of_xdisp): DEFVAR_BOOL it.
6122 (make_cursor_line_fully_visible, try_cursor_movement)
6123 (try_window_id): Use it.
6124
b9de078a
KS
61252004-11-12 Kim F. Storm <storm@cua.dk>
6126
381f7091
KS
6127 * dispextern.h (struct glyph_row): New member extra_line_spacing.
6128 (struct it): New member max_extra_line_spacing.
6129 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
6130 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
6131 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
6132 part of last line is only extra line spacing (so the text on the
52eb0373 6133 line is fully visible). Use helper macros.
381f7091
KS
6134 Add W arg (to use them). All callers changed.
6135 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
6136 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
6137
6abf3a27
SM
6138 * window.c (window_scroll_pixel_based, Frecenter):
6139 Use move_it_vertically_backward directly.
381f7091
KS
6140 (Frecenter): Fix calculation of new start pos for negative arg.
6141 Before, the new start pos was sometimes chosen too far back, so
6142 the last line became only partially visible, and thus would be
6143 either only semi-visible or automatically scrolled to the middle
6144 of the window by redisplay.
6145
6146 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
6147 (move_it_vertically_backward): Don't recure to move further back.
6148 (move_it_vertically): Remove superfluous condition.
6149 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 6150 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
6151 (display_tool_bar_line): Clear row->extra_line_spacing.
6152 (try_scrolling): Use move_it_vertically_backward directly.
6153 (redisplay_window): Likewise.
6154 (compute_line_metrics): Set row->extra_line_spacing.
6155 (display_line, display_string): Likewise.
6156 (x_produce_glyphs): Update it->max_extra_line_spacing.
6157
b9de078a
KS
6158 * xmenu.c (pop_down_menu): Return nil.
6159
c3438661
JD
61602004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6161
6162 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 6163 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 6164 to handle timers.
df00f436
JD
6165 (popup_widget_loop): Add argument do_timers.
6166 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
6167 do_timers to popup_widget_loop.
c3438661
JD
6168 (xmenu_show): Call XMenuActivateSetWaitFunction so that
6169 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 6170 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 6171 popup_get_selection.
f1d1cd24
JD
6172 (pop_down_menu): New function.
6173 (popup_get_selection, popup_widget_loop): Unwind protect to
6174 pop_down_menu.
6175 (popup_widget_loop): Add argument widget.
6176 (create_and_show_popup_menu, create_and_show_dialog): Pass new
6177 argument widget to popup_widget_loop.
c3438661 6178
32e2fb04
SM
61792004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6180
6181 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
6182
0faf6806
KS
61832004-11-09 Kim F. Storm <storm@cua.dk>
6184
6185 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
6186 Fix various comments referring to XEvents instead of input events.
6187 (x_queue_event): Fix format strings.
6188 (x_stop_queuing_selection_requests): Likewise.
6189
6190 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
6191 (pint2hrstr): Add extra braces to silence compiler.
6192
6193 * print.c (print_object): Fix format string.
6194
6195 * lread.c (read1): Fix next_char matching.
6196
6197 * lisp.h (Fdelete): Add EXFUN.
6198 (replace_range_2): Add prototype.
6199
6200 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
6201
6202 * intervals.h (NULL_INTERVAL_P): Add separate version when
6203 ENABLE_CHECKING is not defined to silence compiler.
6204 (compare_string_intervals): Add prototype.
6205
6206 * fringe.c (destroy_fringe_bitmap): Fix return type.
6207 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
6208
6209 * emacs.c (Fdump_emacs): Fix format string.
6210
6211 * doc.c: Include <ctype.h>.
6212 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
6213
6214 * data.c (store_symval_forwarding): Remove unused variables.
6215
6216 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
6217
16bf4e32
JD
62182004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6219
6220 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
6221 to ${OLDXMENU}.
6222
cdb805a9
KS
62232004-11-09 Kim F. Storm <storm@cua.dk>
6224
6225 * process.c (Fmake_network_process): Remove kludge for interrupted
6226 connects on BSD. If connect is interrupted, just close socket and
6227 start over rather than sleeping and retry with same socket.
6228
d87a9ab8 62292004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 6230
a8b16c80
JD
6231 * .cvsignore: Add buildobj.lst.
6232
d87a9ab8
JD
6233 * doc.c: New variable Vbuild_files.
6234 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 6235 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
6236 that are in Vbuild_files.
6237 (syms_of_doc): Defvar Vbuild_files.
6238
6239 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
6240 and w32*.o.
6241 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 6242 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
6243
6244 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
6245 is linked.
6246
b6709e77
KS
62472004-11-09 Kim F. Storm <storm@cua.dk>
6248
6249 * fringe.c (update_window_fringes): Update fringe bitmaps if
6250 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
6251 also update previous row to get rid of misc. artifacts.
6252
bae9677d
KS
62532004-11-08 Kim F. Storm <storm@cua.dk>
6254
6255 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 6256 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 6257
3f8ea68c
EZ
62582004-11-08 Eli Zaretskii <eliz@gnu.org>
6259
6260 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
6261 Don't include <sys/time.h> explicitly.
6262 Include <stdio.h> unconditionally, not just on MacOS.
6263
a653f812
KH
62642004-11-08 Kenichi Handa <handa@m17n.org>
6265
6266 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
6267 don't pay attention to '\' before '*'.
6268 (fontset_pattern_regexp): Change the meaning of the second arg.
6269 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
6270 (check_fontset_name): Try NAME as literal at first, and if it
6271 failes, try NAME as pattern.
6272
c37caf9d
JD
62732004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6274
6275 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
6276
b72915a7
AS
62772004-11-07 Andreas Schwab <schwab@suse.de>
6278
78819ebb
KS
6279 * lisp.h (Fmsdos_downcase_filename): Declare.
6280 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
6281 * fileio.c: Likewise.
6282
238a44a8
JD
62832004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6284
6285 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
6286 comparisons with integers instead of Lisp_Object address.
6287 (Fmsdos_set_keyboard): Declare argument allkeys.
6288
6289 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
6290
78819ebb 6291 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
6292 int/Lisp_Object mixup.
6293
6294 * fileio.c: Ditto.
6295
31141c13
ST
62962004-11-06 Steven Tamm <steventamm@mac.com>
6297
6298 * editfns.c: Need to include sys/time.h before resource.h on darwin.
6299
f28c1bd9
RS
63002004-11-06 Richard M. Stallman <rms@gnu.org>
6301
6302 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
6303
6304 * xfaces.c (merge_named_face): GCPRO the face_name in the
6305 named_merge_point struct that we make.
6306 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
6307
6308 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
6309 before deciding whether to inactivate mark.
6310
59dede22
EZ
63112004-11-06 Lars Brinkhoff <lars@nocrew.org>
6312
6313 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
6314 * editfns.c (Fget_internal_run_time): New function.
6315 (syms_of_data): Defsubr it.
6316 * fns.c (sxhash): As far as possible, merge calculation of
6317 hash code for symbols and strings.
59dede22 6318
27540e81
EZ
63192004-11-06 Eli Zaretskii <eliz@gnu.org>
6320
6321 * frame.c (syms_of_frame): Fix the example in the doc string.
6322
df470e3b
JD
63232004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6324
6325 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
6326
6327 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
6328 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 6329
4cc8522c
LT
63302004-11-05 Luc Teirlinck <teirllm@auburn.edu>
6331
6332 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
6333
d4a42098
KS
63342004-11-05 Kim F. Storm <storm@cua.dk>
6335
a8490886
KS
6336 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
6337
d4a42098
KS
6338 * fileio.c (Ffile_modes): Doc fix.
6339 (auto_save_1): Check for Ffile_modes nil value.
6340
36a2b04c
KS
63412004-11-05 Kim F. Storm <storm@cua.dk>
6342
6343 * xselect.c (struct selection_event_queue, selection_queue)
6344 (x_queue_selection_requests, x_queue_event)
6345 (x_start_queuing_selection_requests)
6346 (x_stop_queuing_selection_requests): Add new queue for selection
6347 input events to replace previous XEvent queue in xterm.c.
6348 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
6349 (x_reply_selection_request): Adapt to new queue.
6350 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
6351 (x_handle_selection_request, x_handle_selection_clear): Make static.
6352 (x_handle_selection_event): New function. May queue selection events.
6353 (wait_for_property_change_unwind): Use save_value instead of cons.
6354 Clear property_change_reply_object.
6355 (wait_for_property_change): Abort if already waiting.
6356 Use save_value instead of cons for unwind data.
6357 (x_handle_property_notify): Skip events already arrived, but don't
6358 free them, as "arrived" field is checked by wait_for_property_change,
6359 and it will be freed by unwind or explicit unexpect_property_change.
6360 (x_get_foreign_selection): Add to new queue.
6361 (receive_incremental_selection): Don't unexpect wait_object when done
6362 as it has already been freed by previous wait_for_property_change.
6363
6364 * xterm.h (x_start_queuing_selection_requests)
6365 (x_stop_queuing_selection_requests, x_handle_selection_request)
6366 (x_handle_selection_clear): Remove prototypes.
6367 (x_handle_selection_event): Add prototype.
6368
6369 * xterm.c (handle_one_xevent): Don't queue X selection events
6370 here, it may be too late if we start queuing after we have already
6371 stored some selection events into the kbd buffer.
6372 (struct selection_event_queue, queue, x_queue_selection_requests)
6373 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
6374 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
6375 (x_catch_errors_unwind): Block input around final XSync.
6376
6377 * keyboard.h (kbd_buffer_unget_event): Add prototype.
6378
6379 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
6380 (kbd_buffer_unget_event): New function.
6381 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
6382 and use x_handle_selection_event.
6383 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
6384
9c3ad9e1
JD
63852004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6386
6387 * xselect.c (TRACE3): New debug macro.
6388 (x_reply_selection_request): Use it.
6389 (receive_incremental_selection): In call to TRACE0, the name of
6390 a symbol is in xname.
6391
a33b89de
KS
63922004-11-05 Kim F. Storm <storm@cua.dk>
6393
6394 * fontset.c (fontset_pattern_regexp): Use unsigned char.
6395
a872928c
JD
63962004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6397
88208bb8
JD
6398 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
6399
78819ebb 6400 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
6401
6402 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 6403 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
6404 * xfns.c (syms_of_xfns): ... to here.
6405
a872928c
JD
6406 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
6407 it doesn't start with /.
6408
b912921c
KH
64092004-11-04 Kenichi Handa <handa@m17n.org>
6410
6411 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
6412 treat it as a literal character.
6413
c524d9a6
KS
64142004-11-03 Kim F. Storm <storm@cua.dk>
6415
6416 * .gdbinit (ppt): New function.
6417
8cfd0f36
JD
64182004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6419
a11e1dce
JD
6420 * xterm.c (x_window_to_scroll_bar): Only call
6421 xg_get_scroll_id_for_window if toolkit scroll bars are used.
6422
8cfd0f36
JD
6423 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
6424 of save.
6425
a93563fd
AS
64262004-11-02 Andreas Schwab <schwab@suse.de>
6427
6428 * window.c (Fscroll_right): Fix last change.
6429
2b2d59d8
KS
64302004-11-02 Kim F. Storm <storm@cua.dk>
6431
6432 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
6433
64342004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6435
6436 * callproc.c (Fcall_process): Block input around vfork.
6437
ca28104d
KS
64382004-11-02 Kim F. Storm <storm@cua.dk>
6439
6440 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
6441 (syms_of_eval): Defsubr it.
6442
29bb7127
RS
64432004-11-02 Richard M. Stallman <rms@gnu.org>
6444
6445 * insdel.c (replace_range_2): New function.
6446
6447 * casefiddle.c (casify_region): Handle changes in byte-length
6448 using replace_range_2.
6449
6450 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
6451
b6189c3b 6452 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
6453 Subtract 1 from pos when checking previous newline for invisibility.
6454
6455 * window.c (window_scroll_pixel_based): Update preserve_y
6456 for header line if any.
6457 (Fscroll_left, Fscroll_right): Don't call interactive_p;
6458 use a new second argument instead.
6459
6460 * eval.c (Fcall_interactive_p): New function.
6461 (interactive_p): Don't test INTERACTIVE here.
6462 (Finteractive_p): Doc fix.
6463
6464 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
6465
b6189c3b 64662004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
6467
6468 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 6469 comparing font names.
a3fe4aaf 6470
2a00cdb4
JD
64712004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6472
f9d64bb3
JD
6473 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
6474 Fx_file_dialog if only directories should be read.
6475
6476 * lisp.h: Fx_file_dialog takes 5 parameters.
6477
32e2fb04
SM
6478 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
6479 Add parameter only_dir_p.
f9d64bb3
JD
6480 In Motif version, don't put DEFAULT_FILENAME in filter part of the
6481 dialog, just text field part. Do not add DEFAULT_FILENAME
6482 to list of files if it isn't there.
6483 In GTK version, pass only_dir_p parameter to xg_get_file_name.
6484
32e2fb04
SM
6485 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
6486 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
6487 a save dialog, add option kNavDontConfirmReplacement, change title
6488 to "Enter name", change text for save button to "Ok".
6489
32e2fb04
SM
6490 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
6491 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
6492
6493 * gtkutil.c (xg_get_file_with_chooser)
6494 (xg_get_file_with_selection): New functions, only defined ifdef
6495 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
6496 respectively.
6497 (xg_get_file_name): Add parameter only_dir_p.
6498 Call xg_get_file_with_chooser or xg_get_file_with_selection
6499 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
6500 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
6501
6502 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
6503
2a00cdb4
JD
6504 * config.in: Rebuild (added HAVE_GTK_FILE_*).
6505
f6749d5d
KS
65062004-11-01 Kim F. Storm <storm@cua.dk>
6507
32e2fb04
SM
6508 * process.c (connect_wait_mask, num_pending_connects):
6509 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 6510 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
6511 (IF_NON_BLOCKING_CONNECT): New helper macro.
6512 (wait_reading_process_output): Only declare and use local vars
6513 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 6514
1a99fe1a
JR
65152004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
6516
6517 * w32term.c (x_scroll_run): Delete region objects after use.
6518
fcdb28b4
JD
65192004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6520
495ef86b
JD
6521 * xmenu.c: Add prototypes for forward function declarations.
6522 (popup_get_selection): Remove parameter do_timers, remove call to
6523 timer_check.
32e2fb04
SM
6524 (create_and_show_popup_menu, create_and_show_dialog):
6525 Remove parameter do_timers from call to popup_get_selection.
495ef86b 6526
12e6566a
JD
6527 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
6528 tool_bar_items and assign the result to f->tool_bar_items if
6529 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
6530 tool_bar_items to assignment of result.
6531
fcdb28b4
JD
6532 * atimer.c (alarm_signal_handler): Do not call set_alarm if
6533 pending_atmers is non-zero.
6534
1a1a0c4c
KS
65352004-10-31 Kim F. Storm <storm@cua.dk>
6536
6537 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
6538
a36f1680
JW
65392004-10-28 Will <will@glozer.net>
6540
1d1c7e75 6541 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
6542 key via a 'mac-option-modifier' variable.
6543
32e2fb04 65442004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
6545
6546 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
6547 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
6548 (x_handle_selection_request, x_handle_selection_clear)
6549 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
6550
4f71c13f
RS
65512004-10-28 Richard M. Stallman <rms@gnu.org>
6552
6553 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
6554
6555 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
6556
068f3848
SM
65572004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
6558
6559 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
6560 comment-starter over a 1-char one.
6561
4660a9e3
RS
65622004-10-27 Richard M. Stallman <rms@gnu.org>
6563
6564 * xdisp.c (get_next_display_element): In mode lines,
6565 treat newline and tab like other control characters.
6566
6567 * editfns.c (Fmessage): Doc fix.
6568
6569 * indent.c (vmotion): When moving up, check the newline before.
6570 Make prevline an int, not a Lisp_Object.
6571
233f3db6
KS
65722004-10-27 Kim F. Storm <storm@cua.dk>
6573
6574 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
6575 Only allocate info and discarded tables once.
6576
6577 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
6578 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
6579 (SAFE_FREE): Test it to determine if we need to unwind to free.
6580 Remove size arg. All users changed.
6581 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
6582
1442465d
JD
65832004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6584
6585 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
6586 (xg_destroy_widgets): Rename from remove_from_container.
6587 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
6588 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
6589 instead of remove_from_container.
6590 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
6591 (free_frame_tool_bar): Add comment.
6592
6593 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
6594 is not NULL before strcmp.
6595
c8636435
KS
65962004-10-26 Kim F. Storm <storm@cua.dk>
6597
6598 * callint.c (Fcall_interactively): Add 'U' code to get the
6599 up-event discarded by a previous 'k' or 'K' argument.
6600
5629f29b
DK
66012004-10-26 David Kastrup <dak@gnu.org>
6602
6603 * buffer.c (syms_of_buffer): Fix a few typos.
6604
4f2f546e
JD
66052004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6606
6607 * xsmfns.c: Put empty line between comment and function body.
6608 Use two spaces before comment end.
6609
fc1062f5
KH
66102004-10-25 Kenichi Handa <handa@m17n.org>
6611
6612 * fontset.c (fontset_pattern_regexp): Optimize for the case that
6613 PATTERN is full XLFD.
6614
be13f5e5
KH
66152004-10-24 Kenichi Handa <handa@m17n.org>
6616
6617 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
6618
6619 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
6620 (regex_compile): Return REG_ERANGEX if appropriate.
6621
d0ee2ed3
KH
66222004-10-22 Kenichi Handa <handa@m17n.org>
6623
6624 * editfns.c (Ftranslate_region_internal): New function.
6625 (syms_of_editfns): Defsubr it.
6626
63ea8ea5
JD
66272004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6628
6629 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
6630
9ba27690 66312004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 6632
068f3848
SM
6633 * xterm.h (x_output): New member `xic_base_fontname'.
6634 (FRAME_XIC_BASE_FONTNAME): New macro.
6635 (xic_free_xfontset): Declare.
c27ed90a 6636
068f3848
SM
6637 * xfns.c (xic_create_xfontset): Share fontsets between frames
6638 based on base_fontname.
6639 (xic_free_xfontset): New function.
6640 (free_frame_xic): Use it.
6641 (xic_set_xfontset): Ditto.
c27ed90a 6642
068f3848 6643 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
6644
6645
59508699
JR
66462004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
6647
6648 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
6649
dede2792
JD
66502004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6651
3aca2078
JD
6652 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
6653 XSync.
6654
dede2792
JD
6655 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
6656 New variables and constant.
6657 (main): Calculate heap_bss_diff. If we are dumping and the
6658 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
6659 and exec ourself again.
6660 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
6661 print a warning.
6662
6663 * lastfile.c: Make my_endbss and my_endbss_static available on all
6664 platforms.
6665
6666 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
6667 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
6668
1dc5ba01
LT
66692004-10-19 Luc Teirlinck <teirllm@auburn.edu>
6670
6671 * data.c (Flocal_variable_if_set_p): Doc fix.
6672
950090be
JR
66732004-10-19 Jason Rumney <jasonr@gnu.org>
6674
6675 * w32.c (init_environment): Set emacs_dir correctly when running
6676 emacs from the build directory.
6677
8550b998
RS
66782004-10-19 Richard M. Stallman <rms@gnu.org>
6679
6680 * editfns.c (Fdelete_and_extract_region):
6681 If region is empty, return null string.
6682
08dedea6
JD
66832004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6684
1dc5ba01 6685 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 6686 and canon_width.
068f3848 6687 (xg_frame_cleared): Remove.
08dedea6 6688
068f3848
SM
6689 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
6690 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
6691 (xg_create_scroll_bar): Put an event box widget between
6692 the scroll bar widget and the edit widget.
6693 (xg_show_scroll_bar): Show the parent widget (the event box).
6694 (xg_remove_scroll_bar): Destroy parent (the event box) also.
6695 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
6696 Move the parent (the event box) widget inside the fixed widget.
6697 Move window clear to xterm.c.
6698
068f3848 6699 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 6700
08dedea6 6701 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
6702 (x_scroll_bar_create, XTset_vertical_scroll_bar):
6703 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
6704 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
6705
8550b998 67062004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
6707
6708 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 6709
84338890
JD
67102004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6711
6712 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
6713 gdk_window_clear and move gdk_window_process_all_updates after
6714 clear so events are sent to the X server in correct order.
6715
6e1b0d8c
KH
67162004-10-18 Kenichi Handa <handa@m17n.org>
6717
6718 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
6719 comparing font names.
8550b998 6720 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
6721 (list_fontsets): Likewise.
6722
6723 * search.c (fast_string_match_ignore_case): New function.
6724
6725 * lisp.h (fast_string_match_ignore_case): Extern it.
6726
345e75a8
KS
67272004-10-17 Kim F. Storm <storm@cua.dk>
6728
6729 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
6730 than bitmap if there is not left fringe.
6731 (get_overlay_arrow_glyph_row): Also used on windows system.
6732 (display_line): Display overlay string if no left fringe.
6733
be13cbb7
JR
67342004-10-16 Jason Rumney <jasonr@gnu.org>
6735
6736 * w32fns.c (w32_font_match): Encode font name being matched.
6737
c2e2ede7
RS
67382004-10-16 Richard M. Stallman <rms@gnu.org>
6739
6740 * window.c (Fspecial_display_p): Doc fix.
6741
043f7f73 67422004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
6743
6744 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
6745 Don't ignore menus, because where-is-internal already does it for us.
6746
699a0392
KS
67472004-10-15 Kim F. Storm <storm@cua.dk>
6748
b3c7a89b
KS
6749 * xdisp.c (redisplay_window): Only update fringes and vertical
6750 border on window frames.
699a0392 6751
4e382b0f
AS
67522004-10-14 Andreas Schwab <schwab@suse.de>
6753
6754 * m/ia64.h (DATA_SEG_BITS): Don't define.
6755
329a7be2
KS
67562004-10-14 Kim F. Storm <storm@cua.dk>
6757
6758 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 6759 in some X versions.
329a7be2 6760
982241b1
SM
67612004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
6762
6763 * fns.c (map_char_table): Add missing gcpros.
6764
9238467d
SM
67652004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
6766
6767 * keymap.c (get_keymap): An autoload form is not a keymap.
6768
6769 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
6770
4440e3ca
KS
67712004-10-13 Kim F. Storm <storm@cua.dk>
6772
7cfdabde
KS
6773 * callproc.c (Fcall_process): Simplify handling of display arg.
6774 Resume `display_on_the_fly' once a coding system is determined.
6775
4440e3ca
KS
6776 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
6777
1c8dec6a
KS
67782004-10-12 Kim F. Storm <storm@cua.dk>
6779
6780 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
6781 caller, such as call-process, is not going to poll for input.
6782 (calc_line_height_property): Handle case where it->object is nil.
6783
6784 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
6785
170b174c
KH
67862004-10-12 Kenichi Handa <handa@m17n.org>
6787
9238467d
SM
6788 * xdisp.c (get_next_display_element):
6789 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
6790 chars in octal in unibyte buffer.
6791
b583964c
KS
67922004-10-12 Kim F. Storm <storm@cua.dk>
6793
6794 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
6795 are no ordinary bindings.
6796
29fabd8c
JD
67972004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6798
9238467d 6799 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 6800
c3f4c690
ST
68012004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6802
9238467d
SM
6803 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
6804 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 6805 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
6806 terminal frame.
6807 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
6808 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
6809 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
6810 Make a cancel file-open dialog be like C-g.
9238467d
SM
6811 * mac.c (mktime): Use emacs_mktime.
6812 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
6813 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 6814
9688f9eb
KS
68152004-10-10 Kim F. Storm <storm@cua.dk>
6816
6817 * keyboard.c (timer_resume_idle): New function to resume idle
6818 timer without resetting timers on the idle list.
52eb0373 6819 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
6820 (timer_start_idle, timer_stop_idle): Declare static.
6821 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
6822
6823 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
6824
f7f3a65f
ST
68252004-10-08 Steven Tamm <steventamm@mac.com>
6826
9238467d 6827 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 6828 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 6829 NULL where 0 should be used.
f7f3a65f
ST
6830 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
6831 objc/malloc.h
9238467d 6832 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 6833
3c7d999a
KS
68342004-10-07 Kim F. Storm <storm@cua.dk>
6835
6836 * xdisp.c (redisplay_window): Fix flicker on vertical line between
6837 windows. Update vertical line after drawing window fringes, but
6838 only if actually drawing any bitmaps--or there is no fringe.
6839
6840 * xterm.c (x_update_window_end): Likewise.
6841 * macterm.c (x_update_window_end): Likewise.
6842 * w32term.c (x_update_window_end): Likewise.
6843
6844 * fringe.c (draw_window_fringes): Return value now indicates if
6845 any fringe bitmaps were redrawn (or there are no fringes).
6846
6847 * dispextern.h (draw_window_fringes): Update prototype.
6848
bf06c82f
ST
68492004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6850
6851 * macfns.c (mac_get_window_bounds): Add extern.
6852 (x_real_positions): Use mac_get_window_bounds.
6853
6854 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
6855 xmenu.c (YAILOM).
3c7d999a 6856
bf06c82f
ST
6857 * macterm.c [!MAC_OSX]: Include Windows.h.
6858 (front_emacs_window): Rename from mac_front_window. All uses
6859 changed. Return the frontmost non-tooltip emacs window.
6860 (mac_get_window_bounds): New function.
6861 (x_calc_absolute_position): Use the difference of width and height
6862 between the inner and outer window.
6863 (x_set_offset): Specify window position by the coordinae of the
6864 outer window. Adjust the position if the title bar is completely
6865 outside the screen.
6866 (app_is_suspended, app_sleep_time): Remove unused variables.
6867 (do_app_resume, do_app_suspend): Remove their contents because
6868 window-activate/deactivate events will do the job.
6869 (do_zoom_window): Remove unused variables. Make compliant to the
6870 standard way of zooming. Set f->left_pos and f->top_pos.
6871 (XTread_socket): Don't use argument `expected'. Don't use
6872 FrontWindow to determine the clicked window. Exclude unprocessed
6873 mouseUp cases in the early stage. Add parentheses to fix operator
6874 precedence.
6875 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
6876
4cbbf6b7 68772004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
6878
6879 * config.in: Regenerate.
6880
6881 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
6882 HAVE_EXECSHIELD.
6883
b90ee8b5
JD
68842004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6885
6886 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
6887 a row if Alt or Meta has been found for that row. Also stop scanning
6888 for Keysyms for that row.
6889
904db1a2
KS
68902004-10-04 Kim F. Storm <storm@cua.dk>
6891
0207b8ad
KS
6892 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
6893 to list. Include overlay arrow bitmap in return value.
6894
25f7220c
KS
6895 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
6896 bars with fractional column width. If scroll bar separates two
6897 windows, move it towards the window it belongs to. Only update
6898 the padding area below the scroll bar widget when necessary,
6899 i.e. when scroll bar widget is created, moved, or resized.
6900
562020fe
KS
6901 * xdisp.c (define_frame_cursor1): Do not change frame cursor
6902 while tracking/dragging mouse.
6903 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
6904
37e34af7
KS
6905 * window.c (coordinates_in_window): Relax check for cursor
6906 on vertial border between mode lines.
6907 (Fset_window_fringes): Do not allow negative widths.
6908 (Fset_window_scroll_bars): Likewise.
6909
904db1a2
KS
6910 * .gdbinit (pp): Shorthand for p ARG + pr.
6911 (ff): New command: flush frame updates (X only).
6912
38fe4f64
MA
69132004-10-03 Michael Albinus <michael.albinus@gmx.de>
6914
6915 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
6916
9de36315
KH
69172004-09-30 Kenichi Handa <handa@m17n.org>
6918
07c381ad 6919 * process.c (send_process): Free composition data.
9de36315 6920
07c381ad 6921 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
6922
6923 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
6924 compositions to encode.
6925 (encode_coding_string): Likewise. Free composition data.
6926
d5fb8dab 69272004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
6928
6929 * coding.c (code_convert_region): Free composition data.
9de36315 6930
f2a54fbc
KS
69312004-09-29 Kim F. Storm <storm@cua.dk>
6932
dc5d6435
KS
6933 * fringe.c: Remove limit on number of bitmaps.
6934 (fringe_bitmaps, fringe_faces): Change to pointers.
6935 (max_fringe_bitmaps): New var.
6936 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
6937 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
6938
6939 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
6940 (struct glyph_row): Reorder fringe_bitmap related fields.
6941 (struct it): Likewise.
6942
6943 * w32term.c (fringe_bmp): Change to pointer.
6944 (max_fringe_bmp): New var.
6945 (w32_define_fringe_bitmap): Expand fringe_bmp.
6946 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
6947 (w32_destroy_fringe_bitmap): Likewise.
6948
69492004-09-29 Kim F. Storm <storm@cua.dk>
6950
6951 * fringe.c: Simplify last change.
f2a54fbc
KS
6952 (lookup_fringe_bitmap): New function.
6953 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
6954 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
6955 Keep standard bitmaps in Vfringe_bitmaps.
6956 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
6957 (Fset_fringe_bitmap_face): Likewise.
6958
6959 * dispextern.h (lookup_fringe_bitmap): Add prototype.
6960 (valid_fringe_bitmap_p): Remove prototype.
6961
6962 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
6963
841a8bca
KS
69642004-09-29 Kim F. Storm <storm@cua.dk>
6965
1f2da365
KS
6966 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
6967 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
6968
841a8bca
KS
6969 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
6970
6971 * fringe.c (Vfringe_bitmaps): New variable.
6972 (syms_of_fringe): DEFVAR_LISP it.
6973 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
6974 Change arg to Lisp_Object and fail if not an integer.
6975 (get_fringe_bitmap_name, resolve_fringe_bitmap)
6976 (destroy_fringe_bitmap): New functions.
9238467d
SM
6977 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
6978 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
6979 clear its fringe property.
6980 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
6981 Fdestroy_fringe_bitmap.
6982 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
6983 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
6984 and set fringe property. Signal error if no free slots.
6985 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
6986 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
6987
6988 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
6989 symbols with a fringe property.
6990
4d965590
KS
69912004-09-27 Kim F. Storm <storm@cua.dk>
6992
6993 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
6994 Doc fix. Format may now be a symbol or alist, not a cons.
6995
6996 * fringe.c (update_window_fringes): Handle new formats of
6997 indicate-buffer-boundaries (symbol or alist). No longer
6998 allow a simple cons.
6999 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
7000
e888c2b3
JD
70012004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7002
9238467d 7003 * config.in: Rebuild.
e888c2b3 7004
83f1cb94
JD
70052004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7006
7007 * config.in: Rebuild.
7008
dd3b1d60 7009 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 7010
2c51754c
SM
70112004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
7012
7013 * xterm.c (x_term_init): Work around a bug in some X servers.
7014
3df5f8aa
RS
70152004-09-18 Richard M. Stallman <rms@gnu.org>
7016
557ca2c1
RS
7017 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
7018
3df5f8aa
RS
7019 * xdisp.c (try_window_reusing_current_matrix):
7020 Handle the case where we reach the old displayed text,
7021 out of sync with the old line boundary.
7022
9238467d 70232004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
7024
7025 * fileio.c (Finsert_file_contents): Fix case of replacement in a
7026 narrowed buffer.
7027
bfa02563
KS
70282004-09-14 Kim F. Storm <storm@cua.dk>
7029
a25fe164
KS
7030 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
7031
bfa02563
KS
7032 * xfaces.c (Qface_no_inherit): New var.
7033 (syms_of_xfaces): Intern and staticpro it.
7034 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
7035 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
7036 Don't increment face_change_count when face has non-nil
7037 face-no-inherit property.
7038
126f9c02
SM
70392004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
7040
892a8eb5
SM
7041 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
7042 (Fbyte_code): Remove dead code after `wrong_type_argument'.
7043
126f9c02 7044 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 7045 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 7046
c0ad3b38
KS
70472004-09-12 Kim F. Storm <storm@cua.dk>
7048
7049 * editfns.c (Fformat): Handle format strings with multiple text
7050 properties. Reverse text property list from the format string,
7051 so the positions are in increasing order.
7052
844fc085
JD
70532004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7054
7055 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
7056 x_uncatch_errors so that possible protocol errors are delivered.
7057
b106731c
EZ
70582004-09-10 Eli Zaretskii <eliz@gnu.org>
7059
21065c92
EZ
7060 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
7061 blockinput.h.
7062 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
7063 charset.h, and coding.h
9238467d 7064 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
7065 (term.o): Depend on window.h and keymap.h.
7066 (abbrev.o): Depend on syntax.h.
7067 (callint.o): Depend on keymap.h.
7068 (casefiddle.o): Depend on charset.h and keymap.h.
7069 (category.o): Depend on keymap.h.
7070 (coding.o): Depend on dispextern.h.
7071 (cmds.o): Depend on keyboard.h and keymap.h.
7072 (dispnew.o): Depend on indent.h and intervals.h.
7073 (doc.o): Depend on keymap.h.
7074 (editfns.o): Depend on frame.h.
7075 (emacs.o): Depend on dispextern.h.
7076 (fileio.o): Don't depend on ccl.h.
7077 (filelock.o): Depend on charset.h and coding.h.
7078 (frame.o): Depend on w32term.h and macterm.h.
7079 (insdel.o): Depend on region-cache.h.
7080 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
7081 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
7082 (search.o): Depend on $(INTERVALS_SRC).
7083 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
7084 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
7085 xterm.h, w32term.h, and macterm.h.
7086 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
7087 w32term.h, and macterm.h.
7088 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
7089 region-cache.h, xterm.h, w32term.h, and macterm.h.
7090 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
7091 (data.o): Depend on frame.h.
7092 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
7093 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
7094 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
7095 (intervals.o): Depend on keymap.h.
7096
9238467d
SM
7097 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
7098 Add debugging print-out to termscript.
b106731c 7099
64b7122d
RS
71002004-09-09 Richard M. Stallman <rms@gnu.org>
7101
7102 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
7103
5670531e
RS
71042004-09-08 Richard M. Stallman <rms@gnu.org>
7105
6cb4a892
RS
7106 * window.c (Fset_window_buffer): Doc fix.
7107
5670531e
RS
7108 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
7109
7e388eb7
JL
71102004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
7111
7112 * minibuf.c (history_delete_duplicates): New variable.
7113 (read_minibuf): Use it.
7114 (syms_of_minibuf): Create the corresponding lisp variable.
7115
370e3587
KS
71162004-09-08 Kim F. Storm <storm@cua.dk>
7117
7118 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
7119 overlay just before point.
7120
f844ba4e
LT
71212004-09-07 Luc Teirlinck <teirllm@auburn.edu>
7122
7123 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
7124 * buffer.c (reset_buffer, init_buffer_once):
7125 Handle auto_save_file_format field.
f844ba4e
LT
7126 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
7127 `buffer-auto-save-file-format'.
f844ba4e
LT
7128 * fileio.c: Delete declaration for removed Vauto_save_file_format.
7129 (build_annotations): Adapt to replacement of
7130 `auto-save-file-format' with the new buffer-local variable
7131 `buffer-auto-save-file-format'.
7132 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
7133
f0f90717
JR
71342004-09-07 Jason Rumney <jasonr@gnu.org>
7135
7136 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
7137
9238467d
SM
7138 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
7139 Handle Unicode menu titles.
f0f90717 7140
4e14f66c
KS
71412004-09-07 Kim F. Storm <storm@cua.dk>
7142
7143 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
7144 property from text property or overlay strings at point.
7145
9238467d 71462004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
7147
7148 * xmenu.c (update_submenu_strings): YAILOM.
7149 (set_frame_menubar): Make sure last_i is initialized.
7150
1f06d367
JR
71512004-09-03 Jason Rumney <jasonr@gnu.org>
7152
1806714a 7153 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
7154 (digest_single_submenu): Set lname and lkey in widget_value
7155 instead of name and key.
7156 (update_submenu_strings): New function.
7157 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7158 call update_submenu_strings.
7159
7160 * w32menu.c (globals_of_w32menu): Check for Unicode API.
7161 (digest_single_submenu, w32_menu_show): Encode menu strings as
7162 UTF-8 if Unicode API is available.
7163 (utf8to16): New function.
7164 (add_menu_item): Use it when calling Unicode API.
1806714a 7165
46540080
KS
71662004-09-03 Kim F. Storm <storm@cua.dk>
7167
7168 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
7169 in overlay or text-property strings; set cursor on corresponding
7170 glyph rather than at end of the string.
7171
9277ba61 71722004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 7173
9277ba61 7174 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
7175 set a new one before obtaining the global coordinate.
7176 Use FRAME_MAC_WINDOW.
7177 (x_set_name, x_set_title): Encode title to UTF8.
7178 Use SetWindowTitleWithCFString.
9277ba61
ST
7179 (Fx_server_version): Get correct OS version.
7180
1806714a
SM
7181 * macmenu.c (add_menu_item): Remove unused variable `i'.
7182 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
7183
7184 * macterm.c (x_update_end): Move SetPortWindowPort to inside
7185 BLOCK_INPUT.
7186 (x_set_offset): Use FRAME_MAC_WINDOW.
7187
7188 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
7189 nontext_cursor if it is on a scroll bar.
7190
7191 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
7192 Carbon support.
1806714a
SM
7193 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
7194 Use LIBS_CARBON.
9277ba61 7195
b10daec7
JD
71962004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7197
7198 * xfns.c (x_set_name_internal): New function. Check if we shall call
7199 xfree before ENCODE_UTF_8.
7200 (x_set_name, x_set_title): Call x_set_name_internal.
7201
f7e22385
JR
72022004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
7203
7204 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
7205 reload it.
7206
2bf436c3
JD
72072004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7208
1806714a 7209 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
7210 (single_submenu): Set lname and lkey in widget_value
7211 instead of name and key.
7212 (update_submenu_strings): New function.
7213 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7214 call update_submenu_strings.
7215
2bf436c3
JD
7216 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
7217 instead of name and key.
7218 (update_submenu_strings): New function.
7219 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 7220 call update_submenu_strings.
2bf436c3
JD
7221
7222 * gtkutil.h (_widget_value): Added lname and lkey.
7223
11715f92
ST
72242004-08-30 Steven Tamm <steventamm@mac.com>
7225
7226 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
7227 by using different names for inner loop variables.
7228
5500be54
JD
72292004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7230
059cd329
JD
7231 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
7232 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
7233
5500be54
JD
7234 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
7235 tool bar items is 0.
7236
383418e5
ST
72372004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7238
7239 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
7240 strings in menu items.
7241 (single_submenu): Use ENCODE_MENU_STRING
7242 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
7243 button release isn't passed to event loop
7244 (add_menu_item): Use SetMenuItemWithCFString
7245
6eb3ee72
ST
72462004-08-26 Steven Tamm <steventamm@mac.com>
7247
7248 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
7249 tool-bar/menu click.
7250 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 7251
10b43ac3
JD
72522004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7253
2728b5d0
JD
7254 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
7255
10b43ac3
JD
7256 * xfns.c (x_window_to_frame, x_any_window_to_frame)
7257 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7258 (x_top_window_to_frame): Return 0 if wdesc is None.
7259
2ee3b79e
RS
72602004-08-22 Richard M. Stallman <rms@gnu.org>
7261
7262 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
7263 HAVE_TERMIOS]: If there's no char for this signal, drop through
7264 and use system calls.
7265
7266 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
7267
9a1ba2ea
KS
72682004-08-20 Kim F. Storm <storm@cua.dk>
7269
7270 * process.c (wait_reading_process_output): Rename from
7271 wait_reading_process_input. All uses changed.
7272 (wait_reading_process_output_1): Rename from
7273 wait_reading_process_input_1. All uses changed.
7274
7275 * dispnew.c (Fsleep_for): Remove obsolete code.
7276
295f3b30
KH
72772004-08-20 Kenichi Handa <handa@m17n.org>
7278
7279 * syntax.c (skip_chars): Fix for unibyte case.
7280
27615979
SM
72812004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7282
7283 * syntax.c (char_quoted): Mixup byte/char pos.
7284 (back_comment): Fixup globals in all cases.
7285
00267f94
JD
72862004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7287
7288 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
7289 passing it to gtk_window_set_title.
7290
2439909e
KS
72912004-08-19 Kim F. Storm <storm@cua.dk>
7292
6ba0f14c
KS
7293 * process.c (wait_reading_process_input): Clean up.
7294 Add wait_for_cell, wait_proc, and just_wait_proc args
7295 to avoid overloading `read_kbd' and `do_display' args.
7296 Change read_kbd arg to int. All callers changed.
7297
2439909e
KS
7298 * process.c (process_send_signal): Use CDISABLE.
7299
7300 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
7301
101c421e
KS
73022004-08-18 Kim F. Storm <storm@cua.dk>
7303
7304 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
7305 forward to wait_reading_process_input via DO_DISPLAY arg.
7306 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
7307 object, only process output from that process; also inhibit
7308 running timers if DO_DISPLAY==-2.
7309
c438dc33
KS
73102004-08-17 Kim F. Storm <storm@cua.dk>
7311
7312 * process.c (process_send_signal): Fix last change--use
7313 _POSIX_VDISABLE instead of CVDISABLE when available.
7314
8afc13c6
RS
73152004-08-16 Richard M. Stallman <rms@gnu.org>
7316
7317 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
7318 Set VQUIT and VINTR chars to the standard ones if they are unset.
7319 [AIX]: Don't do that here. And don't force VINTR to standard
7320 when SIGNALS_VIA_CHARACTERS.
7321
c438dc33 7322 * process.c (process_send_signal)
8afc13c6
RS
7323 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
7324 Do nothing if the character is CVDISABLE.
7325
7326 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
7327
c438dc33 7328 * intervals.c (move_if_not_intangible):
8afc13c6
RS
7329 Force POSITION to be between BEGV and ZV.
7330
6dad1714
JPW
73312004-08-14 John Paul Wallington <jpw@gnu.org>
7332
7333 * buffer.c (Frestore_buffer_modified_p): Doc fix.
7334
7335 * fileio.c (Fread_file_name): Doc fix.
7336
7337 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
7338
2bd77330
LT
73392004-08-09 Luc Teirlinck <teirllm@auburn.edu>
7340
7341 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
7342
c90e7e43
LT
73432004-08-08 Luc Teirlinck <teirllm@auburn.edu>
7344
7345 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 7346 Qdisabled_command_hook.
c90e7e43 7347 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 7348 Qdisabled_command_hook.
c90e7e43
LT
7349 (syms_of_keyboard): Ditto.
7350
81909a1a
LT
73512004-08-07 Luc Teirlinck <teirllm@auburn.edu>
7352
7353 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
7354 (syms_of_keymap) <key-translation-map>: Doc fixes.
7355
0cedd530
SM
73562004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
7357
1725a7c9
SM
7358 * window.c (window_list_1): YAILOM.
7359
0cedd530
SM
7360 * fileio.c (make_temp_name): Handle multibyte prefixes.
7361
2515a131
LT
73622004-08-06 Luc Teirlinck <teirllm@auburn.edu>
7363
7364 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
7365 Doc fix.
7366
c8b20fb7
KH
73672004-08-03 Kenichi Handa <handa@m17n.org>
7368
7369 * coding.c (decode_coding_string): Adjust coding->consumed, and
7370 etc. with shrinked_bytes.
7371
fb8b092b
KS
73722004-08-03 Kim F. Storm <storm@cua.dk>
7373
7374 * indent.c (compute_motion): Fix check for full width window
7375 in non-window case. Do not count left truncation glyph on
7376 window systems.
7377
df133612
LT
73782004-08-02 Luc Teirlinck <teirllm@auburn.edu>
7379
7380 * data.c (Finteractive_form): Doc fix.
7381
0f7a93c1
KS
73822004-08-02 Kim F. Storm <storm@cua.dk>
7383
7384 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
7385 properly accounting for continuation glyph on non-window systems.
7386 (Fcompute_motion): Use actual window width if WIDTH is nil, and
7387 actual window width/height if TOPOS is nil, properly accounting for
7388 continuation glyphs on non-window systems, and optional header lines.
7389 (vmotion): Let compute_motion calculate actual window width.
7390
7391 * window.c (window_scroll_line_based): Let compute_motion
7392 calculate actual window width.
7393
f491e1ed
KS
73942004-08-02 Kim F. Storm <storm@cua.dk>
7395
7396 * process.c (read_process_output): Use whole read buffer.
7397 Don't trigger adaptive read buffering on errors.
7398
83f64226
LT
73992004-07-31 Luc Teirlinck <teirllm@auburn.edu>
7400
7401 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
7402
1d1c7e75 7403 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
7404
7405 * callint.c (Fcall_interactively): Doc fix.
7406
8afc13c6
RS
74072004-07-30 Richard M. Stallman <rms@gnu.org>
7408
7409 * abbrev.c (Fexpand_abbrev): Undo previous change.
7410
7c111482
KS
74112004-07-30 Kim F. Storm <storm@cua.dk>
7412
7413 * editfns.c (Fformat): Allocate extra (dummy) element in info.
7414
ee945d08
LT
74152004-07-28 Luc Teirlinck <teirllm@auburn.edu>
7416
7417 * eval.c (Fdefvar, Fdefconst): Doc fixes.
7418
3f911c94
KS
74192004-07-27 Kim F. Storm <storm@cua.dk>
7420
7421 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
7422 we have ensured that the glyph fits on the current line (or returned
7423 MOVE_LINE_CONTINUED otherwise).
7424
f29ff8c7
KS
74252004-07-26 Kim F. Storm <storm@cua.dk>
7426
7427 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
7428 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
7429 if target position is at end of display line but char is not a newline.
7430
81159bb9
RS
74312004-07-25 Richard M. Stallman <rms@gnu.org>
7432
ab431b61
RS
7433 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
7434 instead of ON_VERTICAL_BORDER, when on scroll bar.
7435 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
7436
7437 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
7438
f29ff8c7 7439 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
7440 Take account of FRAME_INTERNAL_BORDER_WIDTH.
7441
7442 * alloc.c (check_cons_list): New function (contents commented out).
7443
fc820cc5
LT
74442004-07-24 Luc Teirlinck <teirllm@auburn.edu>
7445
7446 * xfaces.c (Fcolor_supported_p): Doc fix.
7447
7448 * frame.c (Fselect_frame, Fset_frame_selected_window)
7449 (Fframe_visible_p, Fraise_frame): Doc fixes.
7450
289978b5
LT
74512004-07-24 Richard M. Stallman <rms@gnu.org>
7452
78819ebb 7453 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
7454
7455 * fileio.c (Fwrite_region): Doc fix.
7456
7457 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
7458
7459 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
7460 only when a real abbrev is present.
7461
289978b5
LT
7462 * xfns.c (x_icon_verify): New function.
7463 (Fx_create_frame): Use it.
7464
d5fb8dab 74652004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
7466
7467 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
7468
36f826d4
KS
74692004-07-21 Kim F. Storm <storm@cua.dk>
7470
7471 * window.h (struct glyph_matrix): New members nrows_scale_factor
7472 and ncols_scale_factor.
7473
7474 * window.c (make_window): Initialize nrows_scale_factor and
7475 ncols_scale_factor members.
7476
7477 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
7478 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
7479 (required_matrix_height): Apply nrows_scale_factor.
7480 (required_matrix_width): Apply ncols_scale_factor.
7481
7482 * xdisp.c (display_line): Increment nrows_scale_factor and set
7483 fonts_changed_p if past last allocated row.
7484 (append_glyph, append_composite_glyph, produce_image_glyph)
7485 (append_stretch_glyph): Increment ncols_scale_factor and set
7486 fonts_changed_p if current area is full.
7487
5fc1c546
JD
74882004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7489
7490 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
7491
cb7516e5
LT
74922004-07-19 Luc Teirlinck <teirllm@auburn.edu>
7493
7494 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
7495 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
7496 (Fset_window_start, Fscroll_up, Fscroll_down)
7497 (Fother_window_for_scrolling, Fscroll_other_window)
7498 (Fsave_window_excursion, Fset_window_vscroll)
7499 (syms_of_window) <window-size-fixed>: Doc fixes.
7500
b6189c3b 75012004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
7502
7503 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
7504 ENCODE_SYSTEM for filenames.
7505
bfcf6608
ST
75062004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7507
7508 * mac.c (sys_select): Block input around call to
7509 ReceiveNextEvent to prevent breakage. Correctly handle
7510 blocking on event queue only by calling ReceiveNextEvent
7511 instead of select (since GUI events aren't on an fd).
7512 (sys_read): Remove function
7513 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
7514
e082ac9d
ST
75152004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7516
7517 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 7518 polling instead of 1 sec timeouts (like solaris).
e082ac9d 7519
cb7516e5 7520 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
7521 frame creation.
7522
7523 * keyboard.c: Undef SIGIO on Carbon
7524
7525 * atimer.c (alarm_signal_handler): Call alarm handlers after
7526 scheduling.
7527
7528 * eval.c (Feval): Remove quit_char test
7529
7530 * process.c (wait_reading_process_input): Remove clearing
7531 stdin for select call on process input.
7532
4b9da0fb
LT
75332004-07-18 Luc Teirlinck <teirllm@auburn.edu>
7534
1204e81c
LT
7535 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
7536 capitalization error in docstring.
4b9da0fb 7537
26503ad2
JB
75382004-07-17 Juanma Barranquero <lektu@terra.es>
7539
7540 * keyboard.c (not_single_kboard_state): Do nothing unless
7541 MULTI_KBOARD is defined.
7542
3751eb00
RS
75432004-07-17 Richard M. Stallman <rms@gnu.org>
7544
7545 * window.c (coordinates_in_window): Inside the window but outside
7546 its box to the L or R, return ON_VERTICAL_BORDER.
7547 (window_list_1): Rotate the list to start with WINDOW.
7548
7549 * print.c (print_preprocess): Test for print_depth at limit
7550 before entering in being_printed.
7551
7552 * keyboard.c (not_single_kboard_state): New function.
7553 (stuff_buffered_input): Now no-op only if no SIGTSTP.
7554
7555 * frame.c (Fdelete_frame): If we're in single_bboard_state on
7556 this kboard, and we delete its last frame, go to any_kboard_state.
7557
7558 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
7559
b6189c3b 75602004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
7561
7562 * w32fns.c (Fx_file_dialog): Encode strings in system coding
7563 system before passing them to OS functions for display.
7564
0f6af254
DK
75652004-07-15 David Kastrup <dak@gnu.org>
7566
f9253326
KS
7567 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
7568 Apparently fixes an abort condition.
0f6af254 7569
386c8f42
LT
75702004-07-14 Luc Teirlinck <teirllm@auburn.edu>
7571
7572 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
7573 instead of a cons.
7574
366511da
MB
75752004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
7576
7577 * keyboard.c (echo_dash): Do nothing if there already is a dash
7578 at the end of the echo string.
7579
f85409d3
KS
75802004-07-12 Kim F. Storm <storm@cua.dk>
7581
7582 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
7583 if GC_MARK_STACK.
7584
0ba2e87b
LT
75852004-07-10 Luc Teirlinck <teirllm@auburn.edu>
7586
da38045d
LT
7587 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
7588
0ba2e87b
LT
7589 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
7590 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
7591 (Freplace_buffer_in_windows, Fset_window_buffer)
7592 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
7593 (syms_of_window): Expand docstring of `display-buffer-function'.
7594
5668fbb8
LT
75952004-07-09 Luc Teirlinck <teirllm@auburn.edu>
7596
7597 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
7598 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
7599 that time values of the type (HIGH . LOW) are considered obsolete.
7600
a085bf9d
LT
76012004-07-06 Luc Teirlinck <teirllm@auburn.edu>
7602
669de2fb
LT
7603 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
7604 docstring.
7605
bac66325 7606 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 7607
8e975df9
JPW
76082004-07-06 John Paul Wallington <jpw@gnu.org>
7609
7610 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
7611
fa164e6a
JPW
7612 * fns.c (Fclear_string): Signal an error if STRING is not a string.
7613
2bac9bb1
JD
76142004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7615
7616 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
7617 instead of CGMainDisplayID (only in OSX 10.2 and later).
7618
316ef0dc
JPW
76192004-07-04 John Paul Wallington <jpw@gnu.org>
7620
7621 * fileio.c (read_file_name_completion_ignore_case): New variable.
7622 (syms_of_fileio): Declare and initialise it.
7623 (Fread_file_name): Bind `completion-ignore-case' to respect it.
7624
2a1a35c6
EZ
76252004-07-03 Eli Zaretskii <eliz@gnu.org>
7626
7627 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
7628 for event.x and event.y.
7629
33a72331
KH
76302004-07-01 Kenichi Handa <handa@m17n.org>
7631
7632 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
7633 after getting a new string by pre-write-conversion.
7634
9238467d 76352004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
7636
7637 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
7638 (x_calc_absolute_position): Remove unused var `child'.
7639
7640 * xfaces.c (x_supports_face_attributes_p)
7641 (Fdisplay_supports_face_attributes_p): YAILOM.
7642 (tty_supports_face_attributes_p): Remove unused var `i'.
7643
7644 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
7645 back_unibyte_ok.
7646
7647 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
7648
7649 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
7650
7651 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
7652
f96ec754
AS
76532004-06-30 Andreas Schwab <schwab@suse.de>
7654
7655 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
7656 (Finit_image_library): Pass LIBRARIES through to
7657 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
7658 (lookup_image_type): Pass Qnil as second argument to
7659 Finit_image_library.
7660
78819ebb 7661 * lisp.h (Finit_image_library): Declare.
f96ec754 7662
59feca74 76632004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 7664
31983645
AS
7665 * macterm.c (do_window_activate, do_window_deactivate): Remove.
7666 (XTread_socket): Send mouse button events to the toolbox
7667 dispatcher even when the mouse is grabbed. Don't process window
7668 activate events for non-Emacs windows. Replace function calls to
7669 do_window_activate and do_window_deactivate with their contents.
7670 Reset mouse grabbing status when a window is deactivated.
59feca74 7671
c61278bb
ST
76722004-06-29 Steven Tamm <steventamm@mac.com>
7673
7674 * macterm.c (mac_get_emulated_btn)
7675 (mac_event_to_emacs_modifiers): Fix emulated mouse button
7676 support to correctly mask out modifiers.
7677
c3762cbd
DK
76782004-06-29 David Kastrup <dak@gnu.org>
7679
7680 * search.c (Fset_match_data): Allow buffer before end of list
7681 which can happen if set-match-data is using a pre-consed list.
7682
c61278bb 76832004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
7684
7685 * macterm.c (XTread_socket): Correctly set the frame position
7686 after the window is moved.
7687
74cdfe05
JD
76882004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7689
7690 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
7691 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
7692 (xg_get_image_for_pixmap): Add workaround for monochrome displays
7693 so insensitive and activated icons look ok.
74cdfe05 7694
ef544dc8
JR
76952004-06-27 Jason Rumney <jasonr@gnu.org>
7696
7697 * w32fns.c (file_dialog_callback): Disable edit control if set
7698 to directories only on CDN_INITDONE message.
7699 (Fx_file_dialog): Default to directories only when prompt starts
7700 with "Dired".
7701
7b7990cc
KS
77022004-06-25 Kim F. Storm <storm@cua.dk>
7703
7704 * alloc.c (allocate_misc): Update total_free_markers.
7705 (free_misc): New function.
7706 (safe_alloca_unwind, free_marker): Use it.
7707
7708 * lisp.h (free_misc): Add prototype.
7709
7710 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
7711
d8c379f8
RS
77122004-06-24 Richard M. Stallman <rms@gnu.org>
7713
7714 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
7715 (syms_of_emacs): Lisp variables deleted.
7716
559cdd07
DK
77172004-06-23 David Kastrup <dak@gnu.org>
7718
94939b84
DK
7719 * search.c (Freplace_match): Adjust the match-data more thoroughly
7720 when replacing strings in the buffer.
7721 (Fmatch_data): When INTEGERS is non-nil and the last match was in
7722 a buffer, add the buffer as last element to the match data.
7723 (Fset_match_data): If an additional element of the match-data is a
7724 buffer, restore it to last_thing_searched.
c8d09ad8 7725 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
7726 (restore_match_data): Restore it again.
7727
dce417e7
LT
77282004-06-23 Luc Teirlinck <teirllm@auburn.edu>
7729
7730 * keymap.c (Ftext_char_description): Doc fix.
7731 * doc.c (Fsnarf_documentation): Doc fix.
7732
ef54b2d0
KS
77332004-06-22 Kim F. Storm <storm@cua.dk>
7734
b5bc4d05
KS
7735 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
7736
ef54b2d0
KS
7737 * lisp.h (struct Lisp_Save_Value): New member dogc.
7738 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
7739 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
7740 (SAFE_FREE_LISP): New macro.
7741
7742 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
7743 (make_save_value): Init new dogc member.
7744 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
7745
7746 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
7747 SAFE_FREE_LISP macros.
7748
3d33d993
KS
77492004-06-22 Kim F. Storm <storm@cua.dk>
7750
7751 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
7752 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
7753 in that memory area are unknown to GC. Add comments.
7754
7755 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
7756
5c917f98
KS
77572004-06-21 Kim F. Storm <storm@cua.dk>
7758
7759 * lisp.h (MAX_ALLOCA): Define here.
7760 (safe_alloca_unwind): Add prototype.
7761 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
7762
7763 * alloc.c (safe_alloca_unwind): New function.
7764
7765 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
7766
7767 * charset.c (Fstring): Use SAFE_ALLOCA.
7768
7769 * coding.c (MAX_ALLOCA): Remove define.
7770
7771 * data.c (MAX_ALLOCA): Remove define.
7772 (Faset): Use SAFE_ALLOCA.
7773
7774 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
7775
7776 * fns.c (string_make_multibyte, string_to_multibyte)
7777 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
7778 (MAX_ALLOCA): Remove define.
7779 (Fbase64_encode_region, Fbase64_encode_string)
7780 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
7781 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
7782 memory leak if encoding fails.
7783
7784 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
7785
9a09408e
EZ
77862004-06-21 Eli Zaretskii <eliz@gnu.org>
7787
7788 * print.c (Fwith_output_to_temp_buffer): Doc fix.
7789
376de739
RS
77902004-06-20 Richard M. Stallman <rms@gnu.org>
7791
7792 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
7793
7794 * search.c (match_limit): Cleaner err msg when no match data available.
7795
7796 * window.c (syms_of_window): Doc fix.
7797
7798 * keyboard.c (command_loop_1): Handle values `only' and `identity'
7799 for Vtransient_mark_mode.
7800
7801 * buffer.c (syms_of_buffer): Doc fix.
7802
acd81db9
DK
78032004-06-21 David Kastrup <dak@gnu.org>
7804
7805 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
7806 and unbinding of `case-fold-search' according to
7807 `completion-ignore-case' around calls of string-match and
7808 predicates, respectively. Should give satisfactory performance
7809 in all relevant cases.
7810
f303762d
JD
78112004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7812
95911c74
JD
7813 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
7814 clip_x/y_origin.
7815
a6cb6b78
JD
7816 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
7817
f303762d
JD
7818 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
7819
7820 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
7821 on Mac OSX.
7822
bbdb2684
LT
78232004-06-16 Luc Teirlinck <teirllm@auburn.edu>
7824
7825 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
7826
5ea48b1c
KS
78272004-06-16 Kim F. Storm <storm@cua.dk>
7828
7829 * dispextern.h (Vimage_types): Remove extern.
7830
803aac3e
MB
78312004-06-16 Miles Bader <miles@gnu.org>
7832
7833 * image.c (lookup_image_type): Initialize image type if necessary.
7834
cdc97764
KS
78352004-06-15 Kim F. Storm <storm@cua.dk>
7836
c4a5739c
KS
7837 * xdisp.c (try_cursor_movement): Exclude header line from scroll
7838 margin at top of window.
7839 (try_window_reusing_current_matrix): Calculate proper cursor position
7840 after scrolling up with non-zero scroll margin, as the old cursor
7841 position corresponds to value of PT before executing this command.
7842 (try_window_id): Consider scroll margin at bottom of window too;
7843 otherwise we fail to scroll when hl-line-mode is enabled.
7844
cdc97764
KS
7845 * syntax.c (skip_chars): Only recognize [:class:] when it has the
7846 proper format and class is a lower-case word.
7847
5b166323
JD
78482004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7849
7850 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 7851 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
7852 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
7853 xg_get_gdk_pixmap_and_mask.
cdc97764 7854
5b166323
JD
7855 * xterm.h (struct x_display_info): Typo in comment fixed.
7856
1ebd4f78
JB
78572004-06-14 Juanma Barranquero <lektu@terra.es>
7858
7859 * dispextern.h (Vimage_types): Make it conditional on
7860 HAVE_WINDOW_SYSTEM.
7861
7862 * image.c (Vimage_types): Move from xdisp.c.
7863 (Vimage_type_cache): New variable.
7864 (define_image_type): New argument indicating whether an image
7865 library was loaded; cache loaded status and return t on success,
7866 nil otherwise.
7867 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
7868 (w32_delayed_load): New function to load an image library from a
7869 list of possible filenames.
7870 (init_xpm_functions, init_png_functions, init_jpeg_functions)
7871 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 7872 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
7873 (Finit_image_library): New function, extracted from `init_image'.
7874 Try to initialize an image library on demand and cache whether we
7875 were successful or not.
7876 (syms_of_image): Initialize `Vimage_types' and
7877 `Vimage_type_cache'. Add recognized image types to Vimage_types.
7878 Export `init-image-library'.
7879 (init_image): Remove initialization of all image types, except xbm
7880 and pbm.
7881
7882 * xdisp.c (Vimage_types): Delete (moved to image.c).
7883
904ee128
AS
78842004-06-14 Andreas Schwab <schwab@suse.de>
7885
7886 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
7887 Avoid calling specbind when completion-regexp-list is empty.
7888
092de21d
RS
78892004-06-13 Richard M. Stallman <rms@gnu.org>
7890
7891 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
7892 (re_wctype, re_iswctype, re_wctype_to_bit):
7893 Non-function definitions moved here from regex.c.
1ebd4f78 7894
092de21d
RS
7895 * regex.c (re_wctype, re_iswctype): Function defs longer static.
7896 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
7897 (re_wctype, re_iswctype, re_wctype_to_bit):
7898 Non-function definitions moved to regex.h.
7899
7900 * window.c (Fselect_window): Doc fix.
7901
7902 * syntax.c: Include regex.h.
7903 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
7904 If requested, make a list of classes, then check the scanned
7905 chars for membership in them.
7906 (in_classes): New function.
7907 Doc fix.
7908
7909 * keyboard.c (cmd_error): Don't call any_kboard_state
7910 if inside a recursive edit level.
7911
9ba27690 79122004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
7913
7914 * keyboard.c (command_loop): Call any_kboard_state before
7915 command_loop_2 when at top level.
7916
3ebc0939
AS
79172004-06-13 Andreas Schwab <schwab@suse.de>
7918
cea5d0d4
AS
7919 * print.c (print_object): Always use %ld for printing EMACS_INT.
7920
7921 * keyboard.c (cancel_hourglass_unwind): Return a value.
7922 (modify_event_symbol): Always use %ld for printing EMACS_INT.
7923 (Fexecute_extended_command): Likewise.
7924
7925 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
7926 avoid clashes.
7927 (SYNTAX): Likewise.
7928 (SYNTAX_WITH_FLAGS): Likewise.
7929 (SYNTAX_MATCH): Likewise.
7930
7931 * syntax.c (char_quoted): Avoid warning about undefined operation.
7932 (find_defun_start): Likewise.
7933 (scan_lists): Likewise.
7934 (INC_FROM): Likewise.
7935 (scan_sexps_forward): Likewise.
7936
be8c4ce4
AS
7937 * image.c: Include <ctype.h>.
7938
3ebc0939
AS
7939 * xfaces.c (face_attr_equal_p): Declare parameters.
7940
6fb41b5b
KH
79412004-06-13 Kenichi Handa <handa@m17n.org>
7942
7943 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
7944
fc3095ce
EZ
79452004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
7946
7947 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
7948
66189a40
KH
79492004-06-12 Kenichi Handa <handa@m17n.org>
7950
7951 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
7952 ccl_prog_stack_struct and update it.
7953 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
7954 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
7955 ccl->eof_ic on EOF.
7956 (ccl_debug_hook): New function.
7957 (struct ccl_prog_stack): New member eof_ic.
7958 (ccl_driver): Handle EOF in subrountine call correctly.
7959
79602004-06-11 Kenichi Handa <handa@m17n.org>
7961
a9b43336 7962 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 7963
1da71023
KS
79642004-06-11 Kim F. Storm <storm@cua.dk>
7965
7966 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
7967
e9efcef4
JB
79682004-06-11 Juanma Barranquero <lektu@terra.es>
7969
7970 * keyboard.c (Fposn_at_point): Doc fix.
7971
9b9ceb61
DK
79722004-06-11 David Kastrup <dak@gnu.org>
7973
7974 * search.c (match_limit): Don't flag an error if match-data
7975 exceeding the allocated search_regs.num_regs gets requested, just
7976 return Qnil.
7977
6e87ac8f
MB
79782004-06-08 Miles Bader <miles@gnu.org>
7979
7980 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
7981
0b0dea7b
JB
79822004-06-07 Juanma Barranquero <lektu@terra.es>
7983
7984 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
7985 (Fcurrent_time_string, Fcurrent_time_zone)
7986 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
7987
a0a23346
MB
79882004-06-07 Miles Bader <miles@gnu.org>
7989
08384afd 7990 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
7991 (push_named_merge_point): New function.
7992 (merge_named_face): New function.
7993 (merge_face_ref, face_at_buffer_position, face_at_string_position):
7994 Use `merge_named_face'.
7995 (merge_face_inheritance): Function removed.
c8d09ad8 7996 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
7997 Add new `err_msgs' and `named_merge_points' args. Return error
7998 status. Only print error messages if ERR_MSGS is true. Don't try to
7999 do :inherit attribute validation.
8000 (merge_face_heights): Handle `unspecified' in both directions.
8001 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
8002 Call `merge_face_ref' instead of `merge_face_inheritance'.
8003 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
8004 (compute_char_face, face_at_buffer_position)
8005 (face_at_string_position): Call `merge_face_ref' instead of
8006 `merge_face_vector_with_property'.
8007
12d5b185
KH
80082004-06-07 Kenichi Handa <handa@m17n.org>
8009
8010 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
8011 the necessary places.
8012
2e2d7ee6
KS
80132004-06-07 Kim F. Storm <storm@cua.dk>
8014
8015 * process.c (Fdelete_process): Undo 2004-05-28 change.
8016 Instead, call status_notify also for network process.
8017 (status_message): Use process instead of status as arg.
8018 Give messages "deleted" or "connection broken by remote peer" for
8019 an exited network process.
8020 (status_notify): Change call to status_message.
8021 (read_process_output): Increase readmax to 4096. Do not increase
8022 buffer size for datagram channels (default is now large enough).
8023
fcf0d299
ST
80242004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
8025
8026 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
8027 problem due to newly defined variable.
8028
0722292b
MB
80292004-06-06 Miles Bader <miles@gnu.org>
8030
8031 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
8032 immediately if non-interactive or not initialized.
8033
ddfb8369
RS
80342004-06-05 Richard M. Stallman <rms@gnu.org>
8035
8036 * minibuf.c (Fcompleting_read): Doc fix.
8037
57015754
AS
80382004-06-05 Andreas Schwab <schwab@suse.de>
8039
8040 * macfns.c (x_create_tip_frame): Fix declaration after statement.
8041
23715ea6
JB
80422004-06-05 Juanma Barranquero <lektu@terra.es>
8043
8044 * keymap.c (Fdescribe_vector): Fix docstring.
8045 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
8046
8e330b22
MB
80472004-06-05 Miles Bader <miles@gnu.org>
8048
8049 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
8050 attributes have different values than the default face.
8051
9742a3a6
EZ
80522004-06-04 Eli Zaretskii <eliz@gnu.org>
8053
8054 * xfaces.c (x_supports_face_attributes_p): Make this function
8055 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
8056 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
8057 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 8058
9717e36c
MB
80592004-06-04 Miles Bader <miles@gnu.org>
8060
8061 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
8062 from Ftty_supports_face_attributes_p.
8063 (x_supports_face_attributes_p): New function.
8064 (Ftty_supports_face_attributes_p): Function deleted.
8065 (Fdisplay_supports_face_attributes_p): New function.
8066 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 8067 (face_attr_equal_p): New function.
9717e36c
MB
8068 (lface_equal_p): Use it.
8069
52deb19f
JB
80702004-06-03 Juanma Barranquero <lektu@terra.es>
8071
8072 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
8073 (Vw32_color_map): Fix typo in docstring.
8074 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
8075 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
8076 Make argument names match their use in docstring.
8077
86d373e6
JB
80782004-06-02 Juanma Barranquero <lektu@terra.es>
8079
8080 Work around bugs/problems with MinGW builds of graphics libraries
8081 called from MSVC builds of Emacs.
8082
8083 * image.c (lookup_image): Make pointer to img static.
8084 (png_read_from_memory): Disable "global" optimization.
8085
2fb0ce67
SM
80862004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8087
c8d09ad8
SM
8088 * eval.c (Fcondition_case): Fix usage. Simplify.
8089
2fb0ce67
SM
8090 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
8091
50bf7673
ST
80922004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8093
8094 * macfns.c: Don't include ccl.h.
8095 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
8096 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
8097 TextUtils.h.
c8d09ad8 8098 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
8099 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
8100 display height/width.
8101 (compute_tip_xy, Vx_max_tooltip_size): Declare.
8102 (unwind_create_tip_frame, compute_tip_xy): New functions.
8103 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
8104 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
8105 and last_show_tip_args.
2fb0ce67 8106
50bf7673
ST
8107 * macgui.h [!MAC_OSX]: Include Gestalt.h.
8108 (Cursor, No_Cursor): New defines.
c8d09ad8 8109 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
8110 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
8111
8112 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
8113
8114 * macterm.c: Don't include Gestalt.h.
8115 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
8116 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
8117 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
8118 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
8119 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
8120 (construct_mouse_click, XTmouse_position)
8121 (x_scroll_bar_report_motion, x_calc_absolute_position)
8122 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
8123 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
8124 (note_mouse_movement): Clear the mouse face and reset the pointer
8125 shape when the pointer goes outside the frame without grabbing.
8126 (mac_front_window): New function.
8127 (mac_window_to_frame): New macro.
8128 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
8129 (do_window_activate, do_window_deactivate, do_app_resume)
8130 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
8131 (do_zoom_window, mac_do_receive_drag, XTread_socket)
8132 (mac_check_for_quit_char): Use mac_front_window and/or
8133 mac_window_to_frame.
8134 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
8135 scroll-bar click event.
8136 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
8137 (x_free_frame_resources): Reset tip_window to NULL when it is
8138 disposed of.
50bf7673 8139 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 8140 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
8141 (do_window_update): Don't do anything if the updated window is the
8142 tooltip window.
8143 (do_mouse_moved): Handle mouse movement events here (previously in
8144 XTread_socket). Clear the mouse face if
8145 dpyinfo->mouse_face_hidden is set.
8146 (do_os_event, do_events): Remove (now in XTread_socket).
8147 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
8148 Loop until all the events in the queue are processed.
8149 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
8150 contents of do_os_event and do_events. Remove mouse movement
8151 handling (now in do_mouse_moved). Add the case where
8152 Vmouse_highlight has an integer value.
8153 (NewMacWindow): Remove.
8154 (make_mac_frame): Do what NewMacWindow previously did. Don't do
8155 excess initializations.
8156 (make_mac_terminal_frame): Previous initializations in
8157 make_mac_frame are moved here.
c8d09ad8
SM
8158 (mac_initialize_display_info):
8159 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
8160
8161 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
8162 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
8163
08fd1251
RS
81642004-05-29 Richard M. Stallman <rms@gnu.org>
8165
8166 * lisp.h (truncate_undo_list): Update decl.
8167
8168 * alloc.c (undo_outer_limit): New variable.
8169 (syms_of_alloc): Defvar it.
8170 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
8171
8172 * undo.c (truncate_undo_list): New arg LIMITSIZE.
8173
8174 * alloc.c (lisp_align_malloc): Check for base == 0
8175 regardless of HAVE_POSIX_MEMALIGN.
8176 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
8177
227ef0ff
SM
81782004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8179
8180 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
8181 (marker_blocks_pending_free): Remove.
8182 (Fgarbage_collect): Sweep after cleaning up undo-lists.
8183 Mark the undo lists after claning them up.
8184 Don't free block in marker_blocks_pending_free.
8185 (mark_buffer): Don't mark undo_list.
8186 (gc_sweep): Sweep hash-tables and strings first.
8187 Do free marker blocks that are empty.
8188
034a6113
SM
81892004-05-28 Jim Blandy <jimb@redhat.com>
8190
8191 * regex.c (print_partial_compiled_pattern): Add missing 'break'
8192 after 'case wordend'. For symbeg and symend, print to stderr,
8193 like the other cases.
8194
33594a8d
NF
81952004-05-28 Noah Friedman <friedman@splode.com>
8196
8197 * process.c (Fdelete_process): Do not call remove_process.
8198
ce50a847
SM
81992004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8200
8201 * alloc.c (struct backtrace): Remove.
8202 (Fgarbage_collect): Use the new mark_backtrace.
8203
8204 * eval.c (mark_backtrace): New function.
8205
8206 * minibuf.c (run_exit_minibuf_hook): New function.
8207 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
8208 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
8209
1e8dae36
KS
82102004-05-27 Kim F. Storm <storm@cua.dk>
8211
8212 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
8213 over display properties, e.g. images, that replace buffer text.
8214
846faa3b
KS
82152004-05-25 Kim F. Storm <storm@cua.dk>
8216
8217 * alloc.c (marker_blocks_pending_free): New var.
8218 (gc_sweep): Store free marker blocks on that list.
8219 (Fgarbage_collect): Free them after undo-list cleanup.
8220
8221 * process.c (wait_reading_process_input): Check connect_wait_mask
8222 before actually accepting connection in case it has already been
8223 accepted due to recursion.
8224
b6189c3b 82252004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 8226
ce50a847
SM
8227 * coding.c (Fset_safe_terminal_coding_system_internal):
8228 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 8229
71d5a208
RS
82302004-05-22 Richard M. Stallman <rms@gnu.org>
8231
8232 * alloc.c (Fmake_string): Doc fix.
8233
8234 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
8235 and the alist pairs too.
8236
8237 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
8238
51391fb9
RF
8239 * emacs.c (main): Update copyright year.
8240
71d5a208
RS
8241 * fileio.c (Fread_file_name): Expand DIR if not absolute.
8242
8243 * insdel.c (del_range_2, replace_range): Don't write an anchor
8244 if the gap is empty.
8245
8246 * xdisp.c (try_scrolling): If scroll-up-aggressively or
8247 scroll-down-aggressively is small but positive, put point
8248 near the screen edge.
8249
f63fd14e
JB
82502004-05-22 Juanma Barranquero <lektu@terra.es>
8251
8252 * keymap.c (Fdefine_key): Doc fix.
8253
4d12067c
KS
82542004-05-22 Kim F. Storm <storm@cua.dk>
8255
8256 * alloc.c (struct backtrace): Add debug_on_exit member.
8257 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
8258 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
8259 the removed cons cells.
8260 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
8261 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
8262 any cons cells pointing to unallocated stings.
8263 Do not lisp_free any marker blocks, as there may still be pointers
8264 to them from buffer undo lists at this stage of GC.
8265
8266 * keyboard.c (struct backtrace): Add debug_on_exit member.
8267 (Fcommand_execute): Clear it.
8268
931285e2
LT
82692004-05-20 Luc Teirlinck <teirllm@auburn.edu>
8270
8271 * intervals.c (lookup_char_property): Do not prematurely return nil.
8272
669fa600
SM
82732004-05-19 Jim Blandy <jimb@redhat.com>
8274
8275 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 8276 beginning and end of symbols.
4d12067c 8277
669fa600
SM
8278 * regex.c (enum syntaxcode): Add Ssymbol.
8279 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
8280 (re_opcode_t): New opcodes `symbeg' and `symend'.
8281 (print_partial_compiled_pattern): Print the new opcodes properly.
8282 (regex_compile): Parse the new operators.
ce50a847 8283 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
8284 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
8285 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
8286 (re_match_2_internal): Match symbeg and symend.
8287
8288 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
8289
0d8c2e5c
KS
82902004-05-19 Kim F. Storm <storm@cua.dk>
8291
8292 * .gdbinit (xsymbol): Fix last change.
8293
669fa600
SM
82942004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
8295
8296 * .gdbinit (xprintstr): New fun.
8297 (xstring, xprintsym): Use it.
8298
8299 * w32proc.c (create_child): Use INTMASK.
8300
8301 * alloc.c (Fgarbage_collect): Do all the marking before flushing
8302 unmarked elements of the undo list.
8303
9a6a4c40
DP
83042004-05-18 David Ponce <david@dponce.com>
8305
8306 * print.c (print): Reset print_depth before to call print_object.
8307
f3c4ec74
JR
83082004-05-18 Jason Rumney <jasonr@gnu.org>
8309
8310 * w32console.c: Prefix RIF functions with w32con_ to avoid
8311 namespace clash with functions in term.c and w32term.c.
8312
8313 * w32menu.c (add_menu_item, w32_menu_display_help)
8314 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
8315
0d8c2e5c 8316 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 8317
6be49c3a
EZ
83182004-05-18 Eli Zaretskii <eliz@gnu.org>
8319
4d0b9a0a
EZ
8320 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
8321
6be49c3a
EZ
8322 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
8323 with make_number.
8324 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
8325 with XINT.
8326
0bc90bba
KS
83272004-05-18 Kim F. Storm <storm@cua.dk>
8328
89d19988
KS
8329 * blockinput.h (INPUT_BLOCKED_P): New macros.
8330
8331 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
8332 (Ftop_level): Unblock input if blocked.
8333
0bc90bba
KS
8334 * buffer.h (GET_OVERLAYS_AT): New macro.
8335 * msdos.c (IT_note_mouse_highlight): Use it.
8336 * textprop.c (get_char_property_and_overlay): Use it.
8337 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
8338 * xfaces.c (face_at_buffer_position): Use it.
8339
8340 * print.c (print_object): Increase buf size.
8341
653bd0f6
JR
83422004-05-17 Jason Rumney <jasonr@gnu.org>
8343
8344 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
8345 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
8346 Lisp_Object using i member.
8347 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
8348 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
8349 consistently.
8350
8351 * w32proc.c (create_child): Use make_number instead of masking pid.
8352
8353 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
8354 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
8355 Use EQ to compare Lisp_Objects.
8356 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
8357
8358 * w32term.c (w32_num_mouse_buttons): Rename from
8359 Vw32_num_mouse_buttons and make it an int.
8360
8361 * w32.c (init_environment): Use it.
8362
8363 * w32fns.c (w32_wnd_proc): Likewise.
8364
8365 * w32proc.c (w32_pipe_read_delay): Rename from
8366 Vw32_pipe_read_delay and make it an int.
8367
8368 * w32.c (_sys_read_ahead): Use it.
8369
8370 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
8371
8372 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
8373
8374 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
8375 (key_event): Don't mix Lisp_Object and int.
8376
8377 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
8378
8379 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
8380 modifiers in language change event.
8381
54b53ba7
KS
83822004-05-17 Kim F. Storm <storm@cua.dk>
8383
8384 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
8385 Such objects may be freed markers which still exist on an undo list.
8386
6e86a75d
JB
83872004-05-16 Juanma Barranquero <lektu@terra.es>
8388
8389 * data.c (Fset_default): Make argument names match their use in
8390 docstring.
8391
fc80da24
AS
83922004-05-15 Andreas Schwab <schwab@suse.de>
8393
8394 * emacs.c (gdb_array_mark_flag): Define.
8395 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
8396
c1380aa6
EZ
83972004-05-15 Eli Zaretskii <eliz@gnu.org>
8398
8399 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
8400 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
8401 defined for the MS-DOS build.
8402
89458937
SM
84032004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8404
8405 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
8406
08020f9a
KH
84072004-05-14 Kenichi Handa <handa@m17n.org>
8408
8409 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
8410
a433994a
ST
84112004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8412
8413 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
8414 section to frame.c section.
8415 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 8416 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 8417
a433994a 8418 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 8419
a433994a 8420 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 8421
a433994a
ST
8422 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
8423 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
8424 (XTread_socket): Fix int/Lisp_Object mixup.
8425 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 8426
a433994a
ST
8427 * macterm.h (struct frame, struct face, struct image)
8428 (display_x_get_resource, Fx_display_color_p)
89458937
SM
8429 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
8430 Add prototypes.
a433994a 8431
b51a51b9
KS
84322004-05-14 Kim F. Storm <storm@cua.dk>
8433
8434 * process.c (wait_reading_process_input): Make reentrant.
8435 Make Available and Connecting non-static. Save and restore value
8436 of waiting_for_user_input_p.
8437
2bde1dd8
KS
84382004-05-13 Kim F. Storm <storm@cua.dk>
8439
8440 * keyboard.c (mark_kboards): Don't mark x and y members
8441 that are overloaded in selection request events.
8442
a267ab4d
SM
84432004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8444
8445 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
8446
eb15ce9e
GM
84472004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
8448
8449 * window.c (Fdisplay_buffer, Fsplit_window)
8450 (split-height-threshold): Doc fix.
8451
7fc92635
JB
84522004-05-13 Juanma Barranquero <lektu@terra.es>
8453
8454 * xfaces.c (Ftty_supports_face_attributes_p)
8455 (Finternal_copy_lisp_face): Fix typo in docstring.
8456 (Finternal_get_lisp_face_attribute): Fix docstring.
8457
1ec2a572
JD
84582004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8459
8460 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
8461
ae9292e0
ST
84622004-05-11 Steven Tamm <steventamm@mac.com>
8463
8464 * macfns.c (Fx_create_frame): Default to using tool-bar by
8465 setting tool-bar-lines to 1 in default-frame-alist.
8466
84672004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
8468
8469 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
8470 (xpm_get_color_table_v, xpm_make_color_table_h)
8471 (xpm_put_color_table_h, xpm_get_color_table_h)
8472 (xpm_str_to_color_key, xpm_load_image, xpm_load)
8473 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 8474 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 8475
fe97e8df
ST
84762004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8477
a267ab4d 8478 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
8479 instead of FRAME_X_P
8480
b47e779e
KS
84812004-05-11 Kim F. Storm <storm@cua.dk>
8482
8483 * process.c (read_process_output): Grow decoding_buf when needed;
8484 this could cause a crash in allocate_string and compact_small_strings.
8485
cdc9b845
EZ
84862004-04-29 Jim Blandy <jimb@redhat.com>
8487
8488 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
8489 against proper opcode.
8490
aa7094ba
JB
84912004-05-10 Juanma Barranquero <lektu@terra.es>
8492
8493 * process.c (Fstart_process): Fix docstring.
8494
8495 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
8496 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
8497 (Fsplit_char, Fchar_charset): Make argument names match their use
8498 in docstring.
8499
e109331a
RS
85002004-05-10 Richard M. Stallman <rms@gnu.org>
8501
8502 * print.c (print_preprocess): Use being_printed, loop_count and
8503 halftail to detect overdeep nesting and cyclic cdr chains.
8504
9a28b921
AS
85052004-05-10 Andreas Schwab <schwab@suse.de>
8506
78819ebb 8507 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
8508
8509 * fileio.c (Frename_file): Remove extra argument in call to
8510 Fmake_symbolic_link.
8511
e2c02c1a
KS
85122004-05-10 Kim F. Storm <storm@cua.dk>
8513
8514 * xdisp.c (calc_line_height_property): Use string position when
8515 object is a string.
8516
cfe9d13e
KH
85172004-05-10 Kenichi Handa <handa@m17n.org>
8518
a57e8159
KH
8519 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
8520 inhibit-modification-hooks to t temporarily before calling
8521 Ferase_buffer.
8522
8523 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
8524 inhibit-modification-hooks to t temporarily before calling
8525 Ferase_buffer.
8526
8527 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
8528 inhibit-modification-hooks to t temporarily before calling
8529 Ferase_buffer.
8530
cfe9d13e
KH
8531 * fns.c (count_combining): Delete it.
8532 (concat): Don't check combining bytes.
8533
ceb96489
JR
85342004-05-09 Jason Rumney <jasonr@gnu.org>
8535
8536 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
8537 (globals_of_w32fns): Set it.
8538
b6189c3b 85392004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
8540
8541 * data.c (Fquo): Simplify.
8542
28712a21
JB
85432004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
8544
8545 * data.c (Fquo): If any argument is float, do the computation in
8546 floating point.
8547
0f0af7a8
JB
85482004-05-08 Juanma Barranquero <lektu@terra.es>
8549
88214ef6
JB
8550 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
8551 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
8552 Fix spelling of Emacs on docstring.
8553 (Fset_process_coding_system, Fprocess_coding_system)
8554 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
8555 Make argument names match their use in docstring.
8556 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
8557 Fix docstring.
8558
0f0af7a8
JB
8559 * editfns.c (Finsert_buffer_substring): Make argument names match their
8560 use in docstring.
8561
8562 * syntax.c (Fmodify_syntax_entry): Fix docstring.
8563
2a316a84
ST
85642004-05-07 Steven Tamm <steventamm@mac.com>
8565
8566 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
8567 around call to ReceiveEvent to avoid certain crashes.
8568
85692004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 8570
2a316a84
ST
8571 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
8572 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
8573 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
8574 Save/restore the current graphics port and device handle when
8575 drawing into an offscreen graphics world.
8576
8577 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
8578 (gif_load): Likewise.
8579
ab80314b
JB
85802004-05-07 Juanma Barranquero <lektu@terra.es>
8581
8582 * window.c (Fset_window_buffer): Fix docstring.
8583
70646bb5
TTN
85842004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
8585
8586 * emacs.c (main) [VMS]: Fix var ref.
8587
b6189c3b 85882004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
8589
8590 * data.c (Fsetq_default): Fix docstring.
8591
279d3293
JR
85922004-05-06 Jason Rumney <jasonr@gnu.org>
8593
8594 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
8595 to avoid name clash.
8596
f72b5416
JD
85972004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8598
8599 * fileio.c (barf_or_query_if_file_exists): Use lstat.
8600 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 8601 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 8602
6ab66799
KS
86032004-05-04 Kim F. Storm <storm@cua.dk>
8604
8605 * xdisp.c (Qtotal): New var.
8606 (syms_of_xdisp): Intern and staticpro it.
8607 (calc_line_height_property): New arg total. Set it if
8608 line-spacing property has format (total . VALUE).
8609 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
8610 Handle total line-spacing property.
8611
ab2d724b
JD
86122004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8613
8614 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
8615 "under" scroll bar when size/position changes.
8616
238add5e
JR
86172004-05-03 Jason Rumney <jasonr@gnu.org>
8618
8619 * makefile.nt: Remove.
8620
1644f4e4
EZ
86212004-05-02 Eli Zaretskii <eliz@gnu.org>
8622
a267ab4d
SM
8623 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
8624 Avoid compiler warnings.
05fdbeb8 8625
1644f4e4
EZ
8626 * Makefile.in (region-cache.o): Depend on config.h.
8627
b6189c3b 86282004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
8629
8630 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
8631 with continuation lines, too.
8632
2b98b088
TTN
86332004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
8634
8635 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
8636
d9bf7950
SM
86372004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
8638
8639 * xdisp.c (calc_line_height_property): YAILOM (yet another
8640 int/Lisp_Object mixup).
8641
affa509c
EZ
86422004-05-01 Eli Zaretskii <eliz@gnu.org>
8643
8644 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
8645 undo bad effect of pack(4) in some versions of system headers.
8646
07c07cfe
JR
86472004-05-01 Jason Rumney <jasonr@gnu.org>
8648
8649 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
8650
e71caa4e
KS
86512004-04-30 Kim F. Storm <storm@cua.dk>
8652
8653 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 8654 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
8655
8656 * dispextern.h (struct it): Remove member use_default_face.
8657 Add members override_ascent, override_descent, override_boff.
8658
8659 * xdisp.c (init_iterator): Handle line-spacing float value.
8660 Initialize override_ascent member.
8661 (append_space_for_newline): Reset override_ascent.
8662 Remove use_default_face.
8663 (calc_line_height_property): New function to calculate value of
8664 line-height and line-spacing properties. Look at overlays, too.
8665 Set override_ascent, override_descent, override_boff members when
8666 using another face than the current face. Float values are now
8667 relative to the frame default font, by default; accept a cons
8668 of ratio and face name to specify value relative to a specific face.
8669 (x_produce_glyphs): Use calc_line_height_property.
8670 Use override_ascent etc. when set to handle different face heights.
8671 A negative line-spacing property value is interpreted as a total
8672 line height, rather than inter-line spacing.
8673 (note_mouse_highlight): Allocate room for 40 overlays initially.
8674
0fddae66
SM
86752004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8676
8677 * data.c (Fsubr_name): New fun.
8678 (syms_of_data): Defsubr it.
8679
712d23dc
KS
86802004-04-29 Kim F. Storm <storm@cua.dk>
8681
8682 * xdisp.c (null_glyph_slice): New var.
8683 (append_glyph, append_composite_glyph, append_stretch_glyph):
8684 Use it to initialize glyph slice.
8685
033ad8c6
SM
86862004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
8687
8688 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
8689 (on_hot_spot_p): Make sure we always return a value.
8690 (Flookup_image_map): Remove unused var ix and iy.
8691 (note_mode_line_or_margin_highlight): Remove unused var `image'.
8692
93397360
EZ
86932004-04-27 Eli Zaretskii <eliz@gnu.org>
8694
8695 * msdos.c (init_environment): If one of the TMP... environment
8696 variables is set to a drive letter without a trailing slash,
8697 append a slash.
8698
0c54865e
EZ
86992004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
8700
8701 * editfns.c (lisp_time_argument): Provide externally.
8702
8703 * fileio.c (Fset_file_times): New function.
8704 (syms_of_fileio): Intern and staticpro it.
8705
d3b111bd
KS
87062004-04-27 Kim F. Storm <storm@cua.dk>
8707
07dc1231
KS
8708 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
8709 header line strings.
8710
360fe9d2
KS
8711 * dispextern.h (struct it): New member use_default_face.
8712
d3b111bd
KS
8713 * xdisp.c (Qline_height): New variable.
8714 (syms_of_xdisp): Intern and staticpro it.
8715 (append_space_for_newline): Partially undo 2004-04-25 change;
8716 add default_face_p arg, and restore callers.
8717 Clear it->use_default_face after use.
8718 (x_produce_glyphs): Set default font for ascii char if
8719 it->use_default_font is set. Change line-spacing property to set
8720 just extra line spacing. Handle new line-height property.
8721
0448588b
AS
87222004-04-26 Andreas Schwab <schwab@suse.de>
8723
8724 * print.c (print_object): Print non-ascii characters in bool
8725 vector representation as octal escapes.
8726
8727 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
8728 * print.c (print_object): Use it instead of BITS_PER_CHAR for
8729 bool vectors.
8730 * lread.c (read1): Likewise.
8731 * alloc.c (Fmake_bool_vector): Likewise.
8732 * data.c (Faref, Faset): Likewise.
8733 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
8734 (mapcar1): Likewise.
d3b111bd 8735
536d6baa
ST
87362004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
8737
7e26f91b 8738 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 8739
ae11577a
MB
87402004-04-26 Miles Bader <miles@gnu.org>
8741
8742 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
8743
e198ba87
JB
87442004-04-26 Juanma Barranquero <lektu@terra.es>
8745
8746 * buffer.c (Fpop_to_buffer): Fix docstring.
8747
f3d5f92d 87482004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 8749
f3d5f92d
ST
8750 * lread.c (init_lread): Don't display missing lisp directory
8751 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 8752 may be built without correct installation path.
f3d5f92d 8753
03e35edc
KS
87542004-04-25 Kim F. Storm <storm@cua.dk>
8755
9ff3aa31
KS
8756 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8757
8758 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8759
03e35edc
KS
8760 * xdisp.c (append_space_for_newline): Rename from append_space.
8761 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
8762 (x_produce_glyphs): Handle line-spacing property on newline char.
8763 If value is t, adjust ascent and descent to fit current row height.
8764 If value is an integer or float, set extra_line_spacing to integer
8765 value, or to float value x current line height.
8766
f24814e0
KH
87672004-04-23 Kenichi Handa <handa@m17n.org>
8768
8769 * fontset.c (Finternal_char_font): If POSITION is nil, return
8770 font for displaying CH with the default face.
8771
d814862a
JB
87722004-04-23 Juanma Barranquero <lektu@terra.es>
8773
8774 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
8775
063a45c5
SM
87762004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8777
8778 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
8779 Don't make assumptions about the relative place of i and val.
8780 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
8781
ae7ab2d3
KS
87822004-04-21 Kim F. Storm <storm@cua.dk>
8783
8784 * dispextern.h (struct glyph_slice): New struct.
8785 (struct glyph): New member slice.
8786 (GLYPH_SLICE_EQUAL_P): New macro.
8787 (GLYPH_EQUAL_P): Use it.
8788 (struct glyph_string): New member slice.
8789 (struct it_slice): New struct.
8790 (struct it): New member slice, add member to stack too.
8791 New member constrain_row_ascent_descent_p.
8792 (image_ascent): Add prototype.
8793
8794 * dispnew.c (buffer_posn_from_coords): Return full image width
8795 and height even for image slices (posn is relative to full image).
8796 (marginal_area_string): Adjust x0,y0 for image slice.
8797
8798 * image.c (image_ascent): Add slice arg; calculate ascent for
8799 image slice (or full image).
8800
8801 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
8802 (syms_of_keyboard): Defsubr them.
8803
8804 * lisp.h (pos_visible_p): Fix prototype.
8805
c62aec78 8806 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
8807 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8808 (x_draw_image_foreground, x_draw_image_relief)
8809 (x_draw_image_foreground_1, x_draw_image_glyph_string):
8810 Draw sliced images.
8811
8812 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
8813 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8814 (x_draw_image_foreground, x_draw_image_relief)
8815 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
8816 Draw sliced images.
8817
8818 * w32term.h (image_ascent): Remove prototype.
8819
8820 * window.c (Fpos_visible_in_window_p): Return pixel position if
8821 PARTIALLY arg is non-nil. Simplify. Doc fix.
8822 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
8823 to return/set vscroll in pixels.
8824
8825 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
8826
8827 * xdisp.c (Qslice): New variable.
8828 (syms_of_xdisp): Intern and staticpro it.
8829 (pos_visible_p): Return pixel position in new x and y args.
8830 (init_iterator): Reset it->slice info.
8831 (handle_display_prop): Parse (slice ...) property.
8832 (push_it, pop_it): Save/restore slice info.
8833 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
8834 force repositioning of tall row if window is vscrolled, as that
8835 would reset vscroll.
8836 (append_space): Set it->constrain_row_ascent_descent_p to avoid
8837 increasing row height if row is non-empty.
8838 (fill_image_glyph_string): Copy slice info.
8839 (take_vertical_position_into_account): Simplify.
8840 (produce_image_glyph): Handle iterator slice info, setup glyph
8841 slice info. Do not force minimum line height.
8842 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
8843 do not increase height (ascent/descent) of non-empty row when
8844 adding normal character glyph; instead reduce glyph ascent/descent
8845 appropriately; if row is higher than current glyph, adjust glyph
8846 descent/ascent to reposition glyph within the existing row.
8847 Likewise, when char is newline, only set ascent/descent if row is
8848 currently empty.
8849 (note_mouse_highlight): Handle hotspots with sliced image.
8850
8851 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
8852 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8853 (x_draw_image_foreground, x_draw_image_relief)
8854 (x_draw_image_foreground_1, x_draw_image_glyph_string):
8855 Draw sliced images.
8856
8857 * xterm.h (image_ascent): Remove prototype.
8858
d58f8753
SM
88592004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8860
8861 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
8862
4ce2719d
JPW
88632004-04-20 John Paul Wallington <jpw@gnu.org>
8864
8865 * fns.c (Fassoc, Feql): Fix indentation.
8866
d58f8753 8867 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 8868
95f8c3b9
JPW
88692004-04-19 John Paul Wallington <jpw@gnu.org>
8870
8871 * fns.c (Feql): New function.
d58f8753 8872 (syms_of_fns): Defsubr it.
95f8c3b9 8873
b7e85537
JR
88742004-04-18 Jason Rumney <jasonr@gnu.org>
8875
8876 * w32select.c (Fw32_set_clipboard_data): Get sequence number
8877 after closing the clipboard.
8878
5a72efd4
LT
88792004-04-16 Luc Teirlinck <teirllm@auburn.edu>
8880
8881 * buffer.c (Fbuffer_base_buffer): Doc fix.
8882
20dc8583
KS
88832004-04-17 Kim F. Storm <storm@cua.dk>
8884
60962ec4
KS
8885 * keymap.c (Fkey_description): Add optional PREFIX arg.
8886 Combine prefix with KEYS to make up the full key sequence to describe.
8887 Correlate meta_prefix_char and following (simple) key to describe
8888 as meta modifier. All callers changed.
8889 (describe_map): Rename arg `keys' to `prefix'. Remove local
8890 `elt_prefix' var. Use Fkey_description with prefix instead of
8891 elt_prefix combined with Fsingle_key_description.
8892 (describe_vector): Declare static. Replace arg `elt_prefix' with
8893 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 8894 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
8895 Fsingle_key_description.
8896
8897 * keymap.h (Fkey_description): Fix prototype.
8898 (describe_vector): Remove prototype.
8899
409368b9
KS
8900 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
8901
20dc8583
KS
8902 * image.c (PNG_BG_COLOR_SHIFT): Remove.
8903 (png_load): Fix calculation of transparent background color on X
8904 and W32 platforms.
8905
75c5501b
JB
89062004-04-16 Juanma Barranquero <lektu@terra.es>
8907
8908 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
8909 not too large before computing how much to scroll.
8910
da879ae8
SM
89112004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
8912
8913 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
8914
d01ca4a8
LT
89152004-04-14 Luc Teirlinck <teirllm@auburn.edu>
8916
8917 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
8918 Add hyperlink to Elisp manual to the docstring.
8919
572943b3
SM
89202004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
8921
8922 * callint.c (fix_command): Use XDCR.
8923
5e30a0fb
NR
89242004-04-14 Nick Roberts <nick@nick.uklinux.net>
8925
8926 * window.c (Fget_lru_window): Doc fix.
8927
a27ddfaf
KS
89282004-04-14 Kim F. Storm <storm@cua.dk>
8929
8930 * editfns.c (Fformat): Fix allocation size of precision array.
8931
8932 * dispnew.c (update_window): Only set changed_p if
8933 scrolling_window actually did scroll.
8934 (scrolling_window): Only return 1 if we actually did scroll.
8935
8936 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
8937 height to glyph height when cursor row is not fully visible.
8938 (make_cursor_line_fully_visible): Add FORCE_P arg to return
8939 failure in case row is higher than window. Callers changed.
8940 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
8941 Try to scroll partially visible, higher-than-window cursor row.
8942 (redisplay_window): Always try to scroll partially visible,
8943 higher-than-window cursor row - both initially and again with
8944 centering_position = 0.
8945 Clear desired matrix before retrying with centering_position = 0.
8946
da879ae8
SM
89472004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8948
8949 * syntax.c (scan_lists): Simplify backward string scan.
8950 Fix off-by-one boundary check for string and comment fences.
8951
5fc16e8e
SM
89522004-04-13 Joe Buehler <jbuehler@hekimian.com>
8953
8954 * sheap.c, unexcw.c: New files.
8955
c9aac8e6
LT
89562004-04-12 Luc Teirlinck <teirllm@auburn.edu>
8957
8958 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
8959 base buffer has been killed. Correct the error message if the
8960 base buffer does not exist.
8961
1e88a355
SM
89622004-04-12 Joe Buehler <jbuehler@hekimian.com>
8963
8964 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
8965 Cygwin itself. Add support for Xaw3d scrollbars.
8966
8967 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
8968
8969 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
8970
8971 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
8972 before Cygwin unexec.
8973
8974 * Makefile.in: Link changes for Cygwin unexec() support.
8975
8dbff9a0
AS
89762004-04-12 Andreas Schwab <schwab@suse.de>
8977
8978 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
8979
54dffe35
LT
89802004-04-11 Luc Teirlinck <teirllm@auburn.edu>
8981
8982 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
8983 IGNORE argument equals NAME. Doc fix.
8984
99a72bdf
MY
89852004-04-11 Masatake YAMATO <jet@gyve.org>
8986
1e88a355 8987 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
8988 empty if they are backwards.
8989
40899d7b
SM
89902004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8991
8992 * xfaces.c (face_color_supported_p): Fix compilation without X11.
8993
f8f853de
SM
89942004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
8995
8996 * doc.c (Fsnarf_documentation): Ignore new file name entries.
8997
c953fe1b
KS
89982004-04-06 Kim F. Storm <storm@cua.dk>
8999
661e85c1
KS
9000 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
9001 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
9002
9003 * w32term.c (w32_read_socket): Set mouse_face_hidden after
9004 clearing highlight.
9005
9006 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
9007
9008 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
9009 clearing highlight.
9010
c953fe1b
KS
9011 * indent.c (vmotion): Do not reserve one column for continuation
9012 marks on window frames.
9013
c1994268
EZ
90142004-04-04 Eli Zaretskii <eliz@gnu.org>
9015
9016 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
9017 from GCC.
9018
9f691b0d
SM
90192004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9020
9021 * .gdbinit-union: Remove.
9022
9023 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
9024 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
9025 ($nonvalbits): Remove.
9026 ($valmask): Set it by calling xreload to avoid redundancy.
9027
9028 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
9029 (gdb_emacs_intbits): Remove.
9030
7a8560d7
JD
90312004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9032
9f691b0d 9033 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 9034
3c8111fc
KH
90352004-03-30 Kenichi Handa <handa@m17n.org>
9036
9037 * editfns.c (Fformat): Fix initialization of the array info.
9038
48a0bce4
KS
90392004-03-30 Kim F. Storm <storm@cua.dk>
9040
9041 * xterm.c (x_mouse_click_focus_ignore_position): New var.
9042 (syms_of_xterm): DEFVAR_BOOL it.
9043 (ignore_next_mouse_click_timeout): New var.
9044 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
9045 Use it to filter mouse clicks following focus event.
9046
1cd0066c
KS
90472004-03-29 David Ponce <david@dponce.com>
9048
9049 * callint.c (Fcall_interactively): Fix last change.
9050
adb3b353
SM
90512004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9052
9053 * eval.c (Fcommandp): Simplify.
9054
9055 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
9056 Extend to handle all kinds of functions.
9057
9058 * lisp.h (Finteractive_form): Declare.
9059
9060 * callint.c (Fcall_interactively): Use it.
9061
6fc4c9c9
KS
90622004-03-26 Kim F. Storm <storm@cua.dk>
9063
9064 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
9065 to catch errors in calc_pixel_width_or_height during redisplay.
9066
abdb9b83
MY
90672004-03-26 Masatake YAMATO <jet@gyve.org>
9068
b17856dd 9069 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 9070
b17856dd 9071 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 9072
b17856dd 9073 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 9074
b17856dd 9075 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 9076
e8a84b6c
JD
90772004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9078
b17856dd 9079 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 9080
36a3fd05
RS
90812004-03-19 Richard M. Stallman <rms@gnu.org>
9082
9083 * s/sol2-6.h: Delete previous change.
9084
ab24c127
KS
90852004-03-19 Kim F. Storm <storm@cua.dk>
9086
9087 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
9088 to_charpos corresponds to newline in right fringe. Use local
9089 BUFFER_POS_REACHED_P macro.
9090
992126de
JD
90912004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9092
9093 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
9094 to compile on non-window system.
9095
45dbfc84
KS
90962004-03-19 Kim F. Storm <storm@cua.dk>
9097
9098 * dispextern.h (calc_pixel_width_or_height): Add prototype.
9099
9100 * image.c (Qcenter): Move to xdisp.c.
9101
9102 * xdisp.c (Qcenter): Declare here.
adb3b353 9103 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
9104 (handle_single_display_prop): Allow space display property on all
9105 platforms.
9106 (display_mode_line): Set mode_line_p before displaying line.
9107 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
9108 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 9109 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
9110 width/height. Return width or height for image specs.
9111 (produce_stretch_glyph): Improve handling of :align-to. Is now
9112 relative to left of text area by default, but other base offsets
9113 can be specified -- also for text lines.
9114
9115 * term.c (produce_glyphs): Handle IT_STRETCH.
9116 (produce_stretch_glyph): New function to handle space width and
9117 align-to display properties on non-window systems.
9118
37264101
SM
91192004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9120
9121 * fileio.c (Fread_file_name): Set completion-ignore-case for
9122 case-insensitive systems.
9123
73bc43da
MY
91242004-03-14 Masatake YAMATO <jet@gyve.org>
9125
9126 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
9127 when keymap and cursor are setup.
9128
d5fb8dab 91292004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 9130
b17856dd 9131 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 9132
e4b1b5ab
KS
91332004-03-14 Kim F. Storm <storm@cua.dk>
9134
9135 * dispextern.h (x_find_image_file): Add prototype.
9136
9137 * image.c (x_find_image_file): Make extern.
9138
9139 * xfns.c (x_find_image_file): Remove prototype.
9140
a6eeaa81 91412004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 9142
37264101 9143 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 9144
37264101 9145 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 9146
e69cfac2
RS
91472004-03-12 Richard M. Stallman <rms@gnu.org>
9148
9149 * fns.c (internal_equal): New arg PROPS controls comparing
9150 text properties. All callers changed.
9151 (Fequal_including_properties): New function.
9152 (syms_of_fns): defsubr it.
9153
45034953
KS
91542004-03-12 Kim F. Storm <storm@cua.dk>
9155
9156 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 9157
45034953
KS
9158 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
9159 (image_background, image_background_transparent): Fix prototypes.
9160
37264101 9161 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
9162
9163 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
9164 (x_query_font, x_find_ccl_program, x_set_window_size)
9165 (x_make_frame_visible, mac_initialize, XCreatePixmap)
9166 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9167 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
9168
9169 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
9170 (x_query_font, x_find_ccl_program, x_set_window_size)
9171 (x_make_frame_visible, mac_initialize, XCreatePixmap)
9172 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9173 (mac_draw_line_to_pixmap): Add prototypes.
9174
91752004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9176
9177 * macterm.c (XTread_socket): Fix mouse click on tool bar.
9178
a12d3d87
KS
91792004-03-11 Kim F. Storm <storm@cua.dk>
9180
d3ab1cf1
KS
9181 * dispextern.h: Move image related prototypes from xfns.c section
9182 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
9183 HAVE_X_WINDOWS.
37264101 9184
37de9f51 9185 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 9186 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
9187 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
9188 (GTK_OBJ) [USE_GTK]: New declaration.
9189 (obj): Add $(GTK_OBJ) to list.
9190
d5fb8dab 91912004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 9192
7e26f91b 9193 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
9194
9195 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 9196 defined in image.c.
5243c06a 9197
c0f97789
KS
91982004-03-11 Kim F. Storm <storm@cua.dk>
9199
9200 The following changes consolidates the identical/similar image
9201 support code previously found in xfns.c, w32fns.c, and macfns.c
9202 into a new file image.c.
9203
9204 * makefile.w32-in (OBJ1): Add image.o.
9205 ($(BLD)/image.$(O)): Add dependencies.
9206
9207 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
9208 (image.o): Add dependencies.
37264101 9209
c0f97789
KS
9210 * image.c: New file with consolidated image support code.
9211 (COLOR_TABLE_SUPPORT): New define to control whether
9212 color table support is available (X only).
9213 (Bitmap_Record): Common name for x_bitmap_record,
9214 w32_bitmap_record, and mac_bitmap_record.
9215 (XImagePtr): Common name for pointer to XImage or equivalent.
9216 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
9217 to XImagePtr on X+MAC, and to HDC on W32.
9218 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
9219 (NO_PIXMAP): Common name for "None" or equivalent.
9220 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
9221 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
9222 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
9223 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
9224 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
9225 (XDrawLine): Define on MAC for code sharing.
9226 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
9227 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
9228 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9229 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9230 (x_reference_bitmap, x_create_bitmap_from_data)
9231 (x_create_bitmap_from_file, x_destroy_bitmap)
9232 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9233 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9234 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9235 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9236 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9237 (define_image_type, lookup_image_type, valid_image_p)
9238 (image_error, enum image_value_type, struct image_keyword)
9239 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9240 (make_image, free_image, prepare_image_for_display, image_ascent)
9241 (four_corners_best, image_background, image_background_transparent)
9242 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9243 (make_image_cache, free_image_cache, clear_image_cache)
9244 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9245 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9246 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9247 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
9248 (init_image_func_pointer, image_load_quartz2d)
9249 (struct ct_color, init_color_table, free_color_table)
9250 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9251 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9252 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9253 (x_disable_image, x_build_heuristic_mask)
9254 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9255 (TIFF support, GIF support, Ghostscript support): Consolidate image
9256 code from xfns.c, w32fns.c, and macfns.c.
9257 (syms_of_image): Consolidate image related symbol setup here.
9258 (init_image): Consolidate image related initializations here.
37264101 9259
c0f97789
KS
9260 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
9261 and init_image. Remove call to init_xfns.
9262
37264101
SM
9263 * macterm.h (struct mac_bitmap_record): Add file member.
9264 Not currently used, but simplifies code sharing.
c0f97789
KS
9265
9266 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9267 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9268 (x_reference_bitmap, x_create_bitmap_from_data)
9269 (x_create_bitmap_from_file, x_destroy_bitmap)
9270 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9271 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9272 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9273 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9274 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9275 (define_image_type, lookup_image_type, valid_image_p)
9276 (image_error, enum image_value_type, struct image_keyword)
9277 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9278 (make_image, free_image, prepare_image_for_display, image_ascent)
9279 (four_corners_best, image_background, image_background_transparent)
9280 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9281 (make_image_cache, free_image_cache, clear_image_cache)
9282 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9283 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9284 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9285 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
9286 (init_image_func_pointer, image_load_quartz2d)
9287 (struct ct_color, init_color_table, free_color_table)
9288 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9289 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9290 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9291 (x_disable_image, x_build_heuristic_mask)
9292 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9293 (TIFF support, GIF support, Ghostscript support): Merge with image
9294 code from xfns.c and macfns.c into image.c.
9295 (syms_of_xfns): Move image related symbols to image.c.
9296 (init_external_image_libraries, init_xfns): Remove; initialization
9297 moved to init_image in image.c.
9298
9299 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9300 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9301 (x_reference_bitmap, x_create_bitmap_from_data)
9302 (x_create_bitmap_from_file, x_destroy_bitmap)
9303 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9304 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9305 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9306 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9307 (define_image_type, lookup_image_type, valid_image_p)
9308 (image_error, enum image_value_type, struct image_keyword)
9309 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9310 (make_image, free_image, prepare_image_for_display, image_ascent)
9311 (four_corners_best, image_background, image_background_transparent)
9312 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9313 (make_image_cache, free_image_cache, clear_image_cache)
9314 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9315 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9316 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9317 (struct ct_color, init_color_table, free_color_table)
9318 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9319 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9320 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9321 (x_disable_image, x_build_heuristic_mask)
9322 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9323 (TIFF support, GIF support, Ghostscript support): Merge with image
9324 code from xfns.c and macfns.c into image.c.
9325 (syms_of_xfns): Move image related symbols to image.c.
9326 (init_external_image_libraries, init_xfns): Remove; initialization
9327 moved to init_image in image.c.
9328
9329 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9330 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9331 (x_reference_bitmap, x_create_bitmap_from_data)
9332 (x_create_bitmap_from_file, x_destroy_bitmap)
9333 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9334 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9335 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9336 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9337 (define_image_type, lookup_image_type, valid_image_p)
9338 (image_error, enum image_value_type, struct image_keyword)
9339 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9340 (make_image, free_image, prepare_image_for_display, image_ascent)
9341 (four_corners_best, image_background, image_background_transparent)
9342 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9343 (make_image_cache, free_image_cache, clear_image_cache)
9344 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9345 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9346 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9347 (struct ct_color, init_color_table, free_color_table)
9348 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9349 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9350 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9351 (x_disable_image, x_build_heuristic_mask)
9352 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9353 (TIFF support, GIF support, Ghostscript support): Merge with
9354 w32fns.c and macfns.c image code into image.c.
9355 (syms_of_xfns): Move image related symbols to image.c.
9356 (init_xfns): Remove; initialization moved to init_image in image.c.
9357
9358 * lisp.h (syms_of_image, init_image): Add protoypes.
9359 (init_xfns): Remove prototype.
9360
9361 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9362 (x_reference_bitmap, x_create_bitmap_from_data)
9363 (x_create_bitmap_from_file, x_destroy_bitmap)
9364 (x_create_bitmap_mask): Move prototypes from dispextern.h.
9365 (gamma_correct) [MAC_OS]: Add prototype.
9366
9367 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9368 (x_reference_bitmap, x_create_bitmap_from_data)
9369 (x_create_bitmap_from_file, x_destroy_bitmap)
9370 (x_create_bitmap_mask): Move prototypes to dispextern.h.
9371
6eced09c
KH
93722004-03-09 Kenichi Handa <handa@etlken2>
9373
9374 * coding.c (decode_coding_emacs_mule): Handle insufficent source
9375 correctly.
9376
9a7e95f3
RS
93772004-03-04 Richard M. Stallman <rms@gnu.org>
9378
04a6e76b
RS
9379 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
9380
9a7e95f3
RS
9381 * window.c (Fdisplay_buffer): Doc fix.
9382
9383 * buffer.c (Fpop_to_buffer): Doc fix.
9384
6c2488df
KS
93852004-03-03 Kim F. Storm <storm@cua.dk>
9386
9387 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
9388
d8d95bc7
SM
93892004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
9390
9391 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
9392
357589bf
RS
93932004-03-02 Richard M. Stallman <rms@gnu.org>
9394
9395 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
9396
409949b5
KH
93972004-03-02 Kenichi Handa <handa@m17n.org>
9398
9399 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
9400
d24bc50f
KS
94012004-03-02 Kim F. Storm <storm@cua.dk>
9402
9403 * window.h (struct window): New member overlay_arrow_bitmap.
9404
9405 * window.c (make_window): Initialize overlay_arrow_bitmap.
9406
9407 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
9408 implement and integrate multiple overlay arrows with redisplay.
9409 (syms_of_xdisp): DEFVAR_LISP and initialize it.
9410 (last_arrow_position, last_arrow_string): Replace by properties.
9411 (Qlast_arrow_position, Qlast_arrow_string)
9412 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
9413 (syms_of_xdisp): Intern and staticpro them.
9414 (overlay_arrow_string_or_property, update_overlay_arrows)
9415 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
9416 (overlay_arrow_at_row): New functions for multiple overlay arrows.
9417 (redisplay_internal): Use them instead of directly accessing
9418 Voverlay_arrow_position etc. for multiple overlay arrows.
9419 (mark_window_display_accurate): Use update_overlay_arrows.
9420 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
9421 (try_window_id): Use overlay_arrows_changed_p.
9422 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
9423 (display_line): Use overlay_arrow_at_row to check multiple
9424 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 9425 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
9426 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
9427 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
9428
9429 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
9430 (update_window_fringes): Remove unused code.
9431
c1464661
JR
94322004-03-01 Jason Rumney <jasonr@gnu.org>
9433
9434 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
9435
a64387ee
JB
94362004-03-01 Juanma Barranquero <lektu@terra.es>
9437
9438 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
9439
9440 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
9441
334faa08
JD
94422004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9443
9444 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
9445 how many colors can be displayed.
9446
bb62616f
KH
94472004-03-01 Kenichi Handa <handa@m17n.org>
9448
9449 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
9450 correctly.
9451
0fd16104
KS
94522004-02-28 Kim F. Storm <storm@cua.dk>
9453
9454 * dispnew.c (update_window): Update header line also if there are
9455 no other changes in window (move code after set_cursor label).
9456
9457 * lisp.h (mark_window_display_accurate): Remove prototype.
9458
9459 * window.c (window_loop, Fforce_window_update): Force mode line
9460 updates by setting prevent_redisplay_optimizations_p and
9461 update_mode_lines.
9462
b59dd9c8
JD
94632004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9464
d8d95bc7 9465 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
9466
9467 * xterm.c (x_calc_absolute_position): Call x_real_positions
9468 to get WM window sizes and use those to calculate position.
d8d95bc7 9469 (x_set_offset): Remove code commented out.
b59dd9c8 9470
a874691c
MB
94712004-02-28 Miles Bader <miles@gnu.org>
9472
9473 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
9474
3e0c6482
KS
94752004-02-28 Kim F. Storm <storm@cua.dk>
9476
9477 * keyboard.c (kbd_buffer_store_event_hold): New function to store
9478 an event into kbd fifo, but with special handling of quit event;
9479 a quit event is saved for later, and further events are discarded
9480 until the saved quit event has been processed.
9481 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
9482 (gen_help_event): Store help event in kbd fifo.
9483 (NREAD_INPUT_EVENTS): Remove.
9484 (read_avail_input): Adapt to new read_socket_hook interface.
9485 Remove allocation and initialization of local input_event buffer,
9486 as read_socket_hook stores events directly in fifo. Allocate and
9487 initialize local hold_quit event to handle postponed quit event
9488 (and store it if set by kbd_buffer_store_event_hold).
9489
9490 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
9491 (gen_help_event): Fix prototype.
9492
a64387ee 9493 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 9494 numcharsp args. Add hold_quit arg.
f63fd14e 9495 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
9496 directly in fifo using kbd_buffer_store_event_hold.
9497
9498 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
9499 (read_input_waiting): Adapt to new read_socket_hook interface.
9500 Remove allocation and initialization of local input_event buffer,
9501 as read_socket_hook stores events directly in fifo. Allocate and
9502 initialize local hold_quit event to handle postponed quit event
9503 (and store it if set by kbd_buffer_store_event_hold).
9504
a64387ee 9505 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
9506
9507 * termhooks.h (read_socket_hook): Fix prototype.
9508
9509 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
9510 numcharsp args. Add hold_quit arg.
f63fd14e 9511 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
9512 directly in fifo using kbd_buffer_store_event_hold.
9513
9514 * w32inevt.h (w32_console_mouse_position): Fix prototype.
9515
9516 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
9517 Add hold_quit arg. Rework to use just one, local, inev
9518 input_event. Store inev directly in fifo using
3e0c6482
KS
9519 kbd_buffer_store_event_hold. Update count in one place.
9520 Postpone call to gen_help_event until inev is stored; use new
9521 local do_help for this.
9522 Remove local emacs_event in handing of ButtonPress event; just use
9523 inev instead (so no reason to copy it later).
9524
9525 * xsmfns.c (x_session_check_input): Remove numchars arg.
9526
d8d95bc7
SM
9527 * xterm.c (x_focus_changed, x_detect_focus_change):
9528 Remove numchars arg. Always store event into bufp arg.
9529 Return nothing. Callers changed accordingly.
3e0c6482
KS
9530 (glyph_rect): Simplify.
9531 (STORE_KEYSYM_FOR_DEBUG): New macro.
9532 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
9533 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
9534 (current_hold_quit) [USE_GTK]: Add.
9535 (event_handler_gdk): Adapt to new handle_one_xevent.
9536 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
9537 Add hold_quit arg. Rework to use just one, local, inev
9538 input_event. Store inev directly in fifo using
3e0c6482
KS
9539 kbd_buffer_store_event_hold. Update count in one place.
9540 Postpone call to gen_help_event until inev is stored; use new
9541 local do_help for this.
9542 Simplify handling of keysyms (consolidate common code). Fix bug
9543 where count was updated with nchars instead of nbytes.
9544 Remove local emacs_event in handing of ButtonPress event; just use
9545 inev instead (so no reason to copy it later).
9546 Remove `out' label. Rename label `ret' to `done'; add various
9547 `goto done' to clarify code flow in deeply nested blocks.
9548 (x_dispatch_event): Simplify as handle_one_xevent now calls
9549 kbd_buffer_store_event itself.
f63fd14e 9550 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
9551 arg. Call handle_one_xevent with new arglist. Store event from
9552 x_session_check_input in fifo.
9553 [USE_GTK]: Setup current_hold_quit.
9554 Decrement handling_signal before unblocking input.
9555 (x_initialize) [USE_GTK]: Initialize current_count.
9556
9557 * xterm.h (x_session_check_input): Fix prototype.
9558
e3564461 95592004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 9560
d8d95bc7 9561 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 9562
e3564461
ST
9563 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
9564 macgui.h).
a64387ee 9565
e3564461 9566 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 9567
e3564461
ST
9568 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
9569 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
9570 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
9571 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
9572 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
9573 (Bitmap): Remove typedef.
9574 (Pixmap): Change int to GWorldPtr.
9575
d8d95bc7 9576 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 9577
d8d95bc7
SM
9578 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9579 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
9580 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
9581 long representation.
9582 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
9583 colors used for masks.
9584 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 9585
e3564461
ST
9586 * macfns.c: Include sys/types.h and sys/stat.h.
9587 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
9588 Include QuickTime/QuickTime.h.
9589 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9590 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
9591 functions defined in macterm.c.
9592 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
9593 (ZPixmap): New #define for compatibility with xfns.c.
9594 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9595 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
9596 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
9597 New functions.
e3564461 9598 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
9599 (x_destroy_x_image, unwind_create_frame, x_disable_image)
9600 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
9601 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
9602 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
9603 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
9604 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
9605 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
9606 long mixup.
9607 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
9608 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
9609 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
9610 (x_set_cursor_type, Fxw_color_values, valid_image_p)
9611 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
9612 (x_alloc_image_color, clear_image_cache, lookup_image)
9613 (x_find_image_file, xbm_read_bitmap_file_data)
9614 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
9615 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
9616 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
9617 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
9618 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 9619 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
9620 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
9621 #if 0.
9622 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
9623 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
9624 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
9625 New functions (from xfns.c).
e3564461
ST
9626 (Fx_create_frame): Record unwind_create_frame.
9627 (Fxw_display_color_p): Use dpyinfo->color_p.
9628 (Fx_display_grayscale_p, Fx_display_planes): Don't use
9629 dpyinfo->n_cbits.
9630 (Fx_display_color_cells): Use dpyinfo->n_planes;
9631 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
9632 (Qheuristic, cross_disabled_images, emboss_matrix)
9633 (laplace_matrix): New variables (from xfns.c).
9634 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
9635 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
9636 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
9637 (image_background_transparent): New function (from xfns.c).
9638 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
9639 (image_load_quicktime): Add declaration.
9640 [MAC_OSX] (image_load_quartz2d): Likewise.
9641 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
9642 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 9643 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
9644 (xbm_load_image_from_file, x_laplace_read_row)
9645 (x_laplace_write_row, pbm_read_file): Remove functions.
9646 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
9647 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
9648 (colors_in_color_table): Sync with xfns.c (although not used).
9649 (lookup_rgb_color): Don't lookup color table. Just do gamma
9650 correction.
9651 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
9652 (x_disable_image): New function (from xfns.c).
9653 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
9654 (x_build_heuristic_mask): Sync with xfns.c.
9655 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
9656 (HAVE_PBM): Remove #ifdef.
9657 (pbm_load): Sync with xfns.c. Set img->width and img->height
9658 before IMAGE_BACKGROUND.
d8d95bc7 9659 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
9660 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
9661 Don't enclose with #if HAVE_PNG.
9662 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
9663 symbol _CGImageCreateWithPNGDataProvider is defined.
9664 Otherwise use image_load_quicktime.
e3564461 9665 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
9666 [HAVE_PNG] (png_load): Sync with xfns.c.
9667 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
9668 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
9669 HAVE_JPEG.
9670 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
9671 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
9672 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
9673 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
9674 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
9675 (tiff_image_p, tiff_load): Don't enclose declarations with #if
9676 HAVE_TIFF.
9677 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
9678 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
9679 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
9680 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
9681 New functions (from xfns.c).
e3564461 9682 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 9683 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
9684 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
9685 Don't enclose with #if HAVE_GIF.
9686 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
9687 animated gif. Otherwise use image_load_quicktime.
9688 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
9689 gif_DrawText to avoid conflict with QuickdrawText.h.
9690 [HAVE_GIF] (gif_load): Sync with xfns.c.
9691 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
9692 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
9693 Ghostscript is not supported yet).
9694 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
9695 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
9696 cross_disabled_images (from xfns.c). Remove #if 0 for supported
9697 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
9698 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
9699 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
9700 HAVE_PNG. Call EnterMovies to support animated gifs.
9701 Call init_image_func_pointer to bind a symbol
e3564461 9702 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 9703
d8d95bc7 9704 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
9705 (x_draw_bar_cursor): Sync declaration with xterm.c.
9706 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
9707 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
9708 graphics).
9709 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
9710 (mac_draw_line_to_pixmap, XCreatePixmap)
9711 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
9712 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
9713 New functions.
9714 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
9715 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
9716 Cast bits to char *.
e3564461
ST
9717 (reflect_byte): New function (from w32fns.c).
9718 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
9719 due to byte alignment.
d8d95bc7
SM
9720 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
9721 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
9722 (XSetForeground): Remove static (now used in macfns.c).
9723 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
9724 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
9725 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
9726 (x_draw_glyph_string_box, x_draw_image_foreground)
9727 (x_draw_image_foreground_1, x_draw_image_glyph_string)
9728 (x_draw_stretch_glyph_string, x_draw_glyph_string)
9729 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
9730 Sync with xterm.c.
9731 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
9732 than the xterm.c version when a strictly horizontal or vertical
9733 line is drawn.
9734 (XTset_terminal_window): Add static.
9735 (x_make_frame_visible): Add UNBLOCK_INPUT.
9736 (x_free_frame_resources): New funcion (from xterm.c).
9737 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
9738 occurs in tool bar area.
d8d95bc7
SM
9739 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
9740 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
9741 Initialize image cache.
9742 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
9743 Enclose unused functions with #if 0.
9744 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
9745 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 9746 from a mac font name to an XLFD font name according to its script code.
e3564461 9747 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 9748 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
9749 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
9750 whose name starts with `.'.
9751 (init_font_name_table): Use decode_mac_font_name. Add both
9752 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
9753 of a font is smJapanese.
9754 (mac_do_list_fonts): New function to list fonts that match a given
9755 pattern.
9756 (x_list_fonts, XLoadQueryFont): Use it.
9757 (XLoadQueryFont): Set rbearing field for each variable width
9758 character to avoid needless redraw.
9759 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
9760
446f5f3d
KS
97612004-02-26 Kim F. Storm <storm@cua.dk>
9762
af617d0f
KS
9763 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
9764 as read_socket_hook handler on X aborts if buffer is too small
9765 and W32 handler doesn't always check buffer limit.
9766
446f5f3d
KS
9767 * xdisp.c (handle_single_display_prop): Handle left-fringe and
9768 right-fringe similar to a display margin image. Specifically,
9769 the characters having the fringe prop are no longer shown, and
9770 we use IT_IMAGE/next_element_from_image with image_id = -1 to
9771 do this. Set fringe bitmap face_id in it->face_id.
9772 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
9773 still realize it->face (i.e. the fringe bitmap face).
9774
7d8a0b55
MB
97752004-02-25 Miles Bader <miles@gnu.org>
9776
9777 * xdisp.c (check_it): Check string/string_pos consistency.
9778 (init_iterator): Initialize string-related fields properly.
9779
97802004-02-11 Miles Bader <miles@gnu.org>
9781
9782 * xdisp.c (produce_image_glyph): Force negative descents to zero.
9783
97842004-02-10 Miles Bader <miles@gnu.org>
9785
9786 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
9787 BLOCK_INPUT can be nested, so it doesn't make much sense.
9788
a64387ee 97892004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
9790
9791 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
9792 (xbm_read_bitmap_data): Use unsigned char for image data.
9793
92f5fba2
LT
97942004-02-23 Luc Teirlinck <teirllm@auburn.edu>
9795
9796 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
9797
8565fb3d
JR
97982004-02-22 Jason Rumney <jasonr@gnu.org>
9799
9800 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
9801 correctly over other bitmaps.
9802
a6eeaa81 98032004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
9804
9805 * emacs.c (USAGE1): Split into two halves.
9806 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
9807 (USAGE3): Rename from USAGE2.
9808 (USAGE4): Rename from USAGE3.
f8125c39 9809
4effffca
EZ
98102004-02-21 Juri Linkov <juri@jurta.org>
9811
9812 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
9813 Fix --multibyte. Move --help, --version to USAGE2. Add alias
9814 --file. Fix -f, -l. Sort options. Untabify.
9815 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
9816
923c1e6f
LT
98172004-02-19 Luc Teirlinck <teirllm@auburn.edu>
9818
9819 * category.c (Fdefine_category, Fcategory_docstring)
9820 (Fget_unused_category, Fset_category_table)
9821 (Fcategory_set_mnemonics): Doc fixes.
9822
b0e225fd
KS
98232004-02-20 Kim F. Storm <storm@cua.dk>
9824
9825 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
9826 The following changes are relative to the 2004-01-21 revision.
9827 (NREAD_INPUT_EVENTS): Define as max number of input events to read
9828 in one call to read_socket_hook. Value is 8.
9829 (read_avail_input): Separate and rework handling of read_socket_hook
9830 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
9831 in read_socket_hook case, and repeat if full buffer is read.
9832 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
9833 In non-read_socket_hook case, just use a single input_event, and
9834 call kbd_buffer_store_event on the fly for each character.
9835
b15aa9f9
SM
98362004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9837
9838 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
9839 Remove unused `gu' alternative.
9840
83c9aa95
AS
98412004-02-19 Andreas Schwab <schwab@suse.de>
9842
9843 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
9844 warning.
9845
cc808173
KS
98462004-02-18 Kim F. Storm <storm@cua.dk>
9847
9848 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
9849 Fix last change.
9850
ab90a54d
KS
98512004-02-17 Kim F. Storm <storm@cua.dk>
9852
b26f249f
KS
9853 * xdisp.c (fast_find_position): Fix return value of new version;
9854 it was inverted compared to the 21.1 version.
9855 (get_window_cursor_type): Don't look at glyph if NULL.
9856 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 9857
ab90a54d
KS
9858 * keyboard.c: Rework previous change; it didn't consider that the
9859 buf array was allocated on the stack.
9860 (prev_read): Remove variable.
9861 (read_avail_input_buf): New static event buffer array.
b9568dfc 9862 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 9863 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
9864 Use in_read_avail_input to handle re-entrance; when re-entered,
9865 fully initialize and use tmp_buf array instead of read_avail_input_buf.
9866 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
9867 is always cleared on entry. To ensure that, we clear (just) the
9868 entries that were used before we return.
9869 (init_keyboard): Initialize read_avail_input_buf here.
9870
b6189c3b 98712004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
9872
9873 * cmds.c (Fend_of_line): Doc fix.
9874
7b5368c1
EZ
98752004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
9876
9877 * keyboard.c (prev_read): New static variable.
9878 (read_avail_input): Use it to zero out only those slots in buf[]
9879 that were used last time we were called.
9880
a6eeaa81 98812004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
9882
9883 * Makefile.in (obj): Move fringe.o from here...
9884 (XOBJ, MAC_OBJ): ...to here.
9885
159c348e
SE
98862004-02-16 Stephen Eglen <stephen@gnu.org>
9887
9888 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
9889
d2f14999
SM
98902004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
9891
b15aa9f9
SM
9892 * data.c (Fbyteorder):
9893 * fringe.c (Fdefine_fringe_bitmap):
9894 * xdisp.c (handle_single_display_prop):
d2f14999
SM
9895 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
9896
8d50508a
JR
98972004-02-16 Jason Rumney <jasonr@gnu.org>
9898
9899 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
9900
dd4497dc
ST
99012004-02-15 Steven Tamm <steventamm@mac.com>
9902
9903 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
9904 controlling emulation of a three button mouse with option and
9905 command keys.
7e26f91b 9906 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 9907 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 9908
c9159cb3
KS
99092004-02-15 Kim F. Storm <storm@cua.dk>
9910
2cc52658
KS
9911 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
9912
c9159cb3
KS
9913 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
9914 Perform byte-swapping.
9915
12fde2dc
KS
99162004-02-14 Kim F. Storm <storm@cua.dk>
9917
9918 * dispextern.h (struct draw_fringe_bitmap_params): Change member
9919 bits from char to short to facilitate wider bitmaps.
9920 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
9921 member.
9922
9923 * fringe.c (struct fringe_bitmap): Change member bits from char to
9924 short to facilitate 16 bits wide bitmaps. Modify all standard
9925 bitmaps accordingly.
9926 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
9927 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
9928 (draw_fringe_bitmap): Ditto.
9929 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
9930 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
9931 handle up to 16 bits wide bitmaps.
9932 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 9933 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
9934
9935 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
9936 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
9937 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
9938
9939 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
9940 so it is no longer necessary to expand them here.
9941
9942 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
9943
9d7271e8
KS
99442004-02-12 Kim F. Storm <storm@cua.dk>
9945
9946 * window.c (Fwindow_fringes): Doc fix.
9947
706c1e4f
JD
99482004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9949
9950 * xselect.c (x_get_foreign_selection): Add new optional parameter
9951 time_stamp.
9952 (Fx_get_selection_internal): Ditto, pass time_stamp to
9953 x_get_foreign_selection.
9954
9955 * data.c (Fbyteorder): New function.
9956
c2d12b5d
JD
99572004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9958
9959 * atimer.c: Move include stdio.h to same place as in other files.
9960
9961 * region-cache.c: Ditto.
9962
9963 * sysdep.c: Ditto.
9964
9965 * xfaces.c: Ditto.
9966
4c1947b9
SS
99672004-02-09 Sam Steingold <sds@gnu.org>
9968
89458937 9969 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 9970
82722af3
KS
99712004-02-09 Kim F. Storm <storm@cua.dk>
9972
9973 * fringe.c: New file. Move original fringe related declarations
9974 and code from dispextern.h and xdisp.c here.
9975 Rework code to support user defined fringe bitmaps, redefining
9976 standard bitmaps, ability to overlay user defined bitmap with
9977 overlay arrow bitmap, and add faces to bitmaps.
9978 (Voverflow_newline_into_fringe): Declare here.
9979 (enum fringe_bitmap_align): New enum.
9980 (..._bits): All bitmaps are now defined without bitswapping; that
9981 is now done in init_fringe_once (if necessary).
9982 (standard_bitmaps): New array with specifications for the
9983 standard fringe bitmaps.
9984 (fringe_faces): New array.
9985 (valid_fringe_bitmap_id_p): New function.
9986 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
9987 (draw_fringe_bitmap): New function which draws fringe bitmap,
9988 possibly overlaying bitmap with cursor in right fringe or the
9989 overlay arrow in the left fringe.
9990 (update_window_fringes): Do not handle overlay arrow here.
9991 Compare and copy fringe bitmap faces.
9992 (init_fringe_bitmap): New function.
9993 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
9994 define and destroy user defined fringe bitmaps.
9995 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
9996 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
9997 (syms_of_fringe): New function. Defsubr new DEFUNs.
9998 DEFVAR_LISP Voverflow_newline_into_fringe.
9999 (init_fringe_once, init_fringe): New functions.
10000 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 10001
82722af3
KS
10002 * Makefile.in (obj): Add fringe.o.
10003 (fringe.o): New dependencies.
10004
10005 * dispextern.h (FRINGE_ID_BITS): New definition for number of
10006 bits allocated to hold a fringe number. Increase number of bits
10007 from 4 to 8 to allow user defined fringe bitmaps.
10008 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
10009 left_user_fringe_face_id, right_user_fringe_bitmap,
10010 right_user_fringe_face_id.
10011 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
10012 Move to new file fringe.c.
10013 (MAX_FRINGE_BITMAPS): Define here.
10014 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
10015 and overlay_p. Change member which to int.
10016 (struct redisplay_interface): New members define_fringe_bitmap
10017 and destroy_fringe_bitmap.
10018 (valid_fringe_bitmap_id_p): Add prototype.
10019 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
10020
10021 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
10022 arrows.
10023 (update_frame): Do flush_display if force_flush_display_p to
10024 ensure display (specifically fringes) are updated in a timely
10025 manner when resizing the frame by dragging the mouse.
10026 (update_window_line): Update row if overlay arrow changed.
10027 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
10028 or overlay arrow changed.
10029
10030 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
10031 syms_of_fringe, and init_fringe.
10032
10033 * frame.h (struct frame): New member force_flush_display_p.
10034
10035 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
10036 Add prototypes.
10037
a3993cc8 10038 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 10039 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
10040 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
10041 Use cursor color for displaying cursor in fringe.
82722af3
KS
10042 (x_redisplay_interface): Add null handlers for
10043 define_fringe_bitmap and destroy_fringe_bitmap functions.
10044
10045 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
10046 xterm.c to handle overlayed fringe bitmaps and to use cursor color
10047 for displaying cursor in fringe.
10048 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
10049 specific functions to define and destroy fringe bitmaps in fringe_bmp.
10050 (w32_redisplay_interface): Add them to redisplay_interface.
10051 (w32_term_init): Call w32_init_fringe instead of explicitly
10052 defining fringe bitmaps in fringe_bmp array.
10053 (x_delete_display): Call w32_reset_fringes instead of explicitly
10054 destroying fringe bitmaps in fringe_bmp array.
10055
10056 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
10057 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
10058 (continued_bits, continuation_bits, ov_bits, first_line_bits)
10059 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
10060 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
10061 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
10062 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
10063 Move fringe handling vars and code to new file fringe.c.
10064 (handle_display_prop): Handle left-fringe and right-fringe
10065 display properties; store user fringe bitmaps in iterator.
10066 (move_it_in_display_line_to): Handle cursor in fringe at eob.
10067 (clear_garbaged_frames): Set force_flush_display_p if resized.
10068 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
10069 (display_line): Handle cursor in fringe at eob.
10070 (display_line): Set row user fringe bitmaps from iterator.
10071
10072 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
10073 Use cursor color for displaying cursor in fringe.
10074 (x_redisplay_interface): Add null handlers for
10075 define_fringe_bitmap and destroy_fringe_bitmap functions.
10076
030400eb
JD
100772004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10078
10079 * macfns.c (Fx_change_window_property): Make doc string and
10080 parameters same as for X version.
10081
10082 * w32fns.c (Fx_change_window_property): Ditto.
10083
3af55251
KS
100842004-02-07 Kim F. Storm <storm@cua.dk>
10085
ec110e9e
KS
10086 * xdisp.c (hscroll_window_tree): Position cursor near to right
10087 margin in hscrolled window when jumping to end of line (rather
10088 than centering cursor).
10089
3af55251
KS
10090 * process.c (wait_reading_process_input): Don't do adaptive read
10091 buffering if waiting for a specific process.
10092
b0c138ce
LT
100932004-02-05 Luc Teirlinck <teirllm@auburn.edu>
10094
10095 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
10096 (Fread_minibuffer, Feval_minibuffer)
10097 (Fread_string, Fread_no_blanks_input)
10098 (Fcompleting_read): Doc fixes.
10099 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
10100 completion-regexp-list. Define Qcase_fold_search and staticpro it.
10101 (read_minibuf): Fix initial comment.
10102 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 10103 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
10104 checking completion-regexp-list.
10105 (Fdisplay_completion_list): Make it handle arguments that are
10106 symbols. Doc fix.
10107
9676f5ad 101082004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 10109
9676f5ad 10110 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 10111
9676f5ad
JD
10112 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
10113 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 10114 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 10115 format. Remove unused variable cons.
5b698285
JD
10116
10117 * xselect.c: Include stdio,h.
10118
fc1d15f6
KH
101192004-02-05 Kenichi Handa <handa@m17n.org>
10120
ebaff4af
KH
10121 * fns.c (Fset_char_table_range): Fix previous change.
10122
fc1d15f6
KH
10123 * buffer.c (Fset_buffer_multibyte): Fix docstring.
10124
9676f5ad
JD
101252004-02-04 Luc Teirlinck <teirllm@auburn.edu>
10126
10127 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
10128
da75761f
SM
101292004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
10130
10131 * keymap.c (Vmouse_events): Rename from Vmenu_events.
10132 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
10133
13c5d120
KH
101342004-02-04 Kenichi Handa <handa@m17n.org>
10135
10136 * fns.c (Fset_char_table_range): Handle charsets ascii,
10137 eight-bit-control, and eight-bit-graphic correctly.
10138
2883d842
JR
101392004-02-03 Jason Rumney <jasonr@gnu.org>
10140
10141 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
10142
10143 * w32fns.c (x_to_w32_font): Likewise.
10144
69eff41f
JD
101452004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10146
10147 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
10148 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
10149
10150 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
10151 ClientMessages.
10152
10153 * xselect.c: Include termhooks.h and X11/Xproto.h
10154 (x_check_property_data, x_fill_property_data)
10155 (x_property_data_to_lisp, mouse_position_for_drop)
10156 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 10157 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
10158 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
10159
da75761f 10160 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
10161 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
10162 OUTER_P.
10163 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
10164 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
10165 if vector_ret_p is true.
10166 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 10167
a6eeaa81 101682004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
10169
10170 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
10171 basename of FILE relative to it, not FILE itself.
10172
09721b31
KH
101732004-02-02 Kenichi Handa <handa@m17n.org>
10174
10175 * coding.c (coding_restore_composition): Check invalid
10176 composition data more rigidly.
10177
eb996101
LT
101782004-01-30 Luc Teirlinck <teirllm@auburn.edu>
10179
10180 * fileio.c (Fread_file_name_internal): Correctly handle the case
10181 where insert-default-directory is nil.
10182 (Fread_file_name): Always return an empty string if the user exits
10183 with an empty minibuffer. Adapt the docstring accordingly.
10184 (syms_of_fileio): Adapt the docstring of insert-default-directory
10185 to the change in Fread_file_name.
10186
a6eeaa81 101872004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
10188
10189 * alloca.c [!alloca]: Fix the prototype for xfree.
10190
13f52ed8
KH
101912004-01-29 Kenichi Handa <handa@m17n.org>
10192
10193 * fns.c (string_char_to_byte): Optimize for ASCII only string.
10194 (string_byte_to_char): Likewise.
10195
d57625a0
JR
101962004-01-28 Peter Runestig <peter@runestig.com>
10197
10198 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
10199
a64387ee 102002004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
10201
10202 * unexmacosx.c (unexec_copy): Do not copy more than was
10203 requested to prevent overwriting during unexec.
10204
eb37b8fd
JD
102052004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10206
ce38070a
JD
10207 * process.c (sigchld_handler): Add comment about not calling malloc.
10208
eb37b8fd
JD
10209 * process.h: Add extern to synch_process_termsig.
10210
a64387ee 102112004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 10212
da75761f
SM
10213 * macterm.c (make_mac_frame, make_mac_terminal_frame):
10214 Move setting of scroll bars from make_mac_frame to
10215 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 10216
d62a265d
RS
102172004-01-26 Richard M. Stallman <rms@gnu.org>
10218
10219 * search.c (Freplace_match): Handle nonexistent
10220 back-references properly.
10221
102222004-01-03 Richard M. Stallman <rms@gnu.org>
10223
10224 * window.c (decode_any_window): New function.
10225 (Fwindow_height, Fwindow_width, Fwindow_edges)
10226 (Fwindow_pixel_edges, Fwindow_inside_edges)
10227 (Fwindow_inside_pixel_edges): Use decode_any_window.
10228
ff236419
JD
102292004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10230
10231 * process.h: synch_process_termsig new variable.
10232
10233 * callproc.c: Define synch_process_termsig.
10234 (Fcall_process): Initiate synch_process_termsig to zero and
10235 check if non-zero and get signal name after subprocess has ended.
10236
10237 * process.c (sigchld_handler): Set synch_process_termsig
10238 if terminated by a signal. synch_process_death setting removed.
10239
10240 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
10241
41b867ea
AS
102422004-01-26 Andreas Schwab <schwab@suse.de>
10243
10244 * print.c (print_preprocess): Declare size as EMACS_INT to not
10245 lose bits.
10246 (print_object): Likewise.
10247 * alloc.c (Fpurecopy): Likewise.
10248
a08084ff
LT
102492004-01-25 Luc Teirlinck <teirllm@auburn.edu>
10250
10251 * window.c (Fwindow_minibuffer_p): Doc fix.
10252
b19ac475
JY
102532004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
10254
10255 * editfns.c (Fformat): Make both passes accept the same set of flags.
10256
fe905025
KH
102572004-01-23 Kenichi Handa <handa@m17n.org>
10258
10259 * fns.c (Fmd5): If OBJECT is a buffer different from the current
10260 one, set buffer to OBJECT temporarily.
10261
438fc6c0
SM
102622004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
10263
455316e2
SM
10264 * keyboard.c (kbd_buffer_gcpro): Remove.
10265 (kbd_buffer_store_event, clear_event, Fdiscard_input)
10266 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
10267 Don't initialize and/or maintain the variable any more. It was made
10268 redundant by my commit of 2003-06-15.
10269
438fc6c0
SM
10270 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
10271
5335a4ee
JD
102722004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10273
10274 * lisp.h: Add undef DECL_ALIGN.
10275
dcdaeebc
SM
102762004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
10277
10278 * process.c (wait_reading_process_input) [SYNC_INPUT]:
10279 Check interrupt_input_pending explicitly.
10280
10281 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
10282
10283 * keyboard.c (handle_async_input): New fun,
10284 extracted from input_available_signal.
10285 (input_available_signal, reinvoke_input_signal): Use it.
10286
9076a823
SM
102872004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
10288
d7107586
SM
10289 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
10290
10291 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
10292 manipulation macros for when tags are in the lower bits.
10293 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
10294 (DECL_ALIGN): New macro.
10295 (DEFUN): Use it.
10296
10297 * lisp.h [ENABLE_CHECKING]: Don't force union type.
10298
10299 * s/darwin.h (__attribute__): Remove outdated workaround.
10300
10301 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
10302
10303 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
10304 Don't check range of malloc address.
10305 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
10306
9076a823
SM
10307 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
10308
10309 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
10310
ba029065
KH
103112004-01-19 Kenichi Handa <handa@m17n.org>
10312
10313 * fontset.c (fontset_font_pattern): Fix previous change.
10314
7af0e8d7
MB
103152004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
10316
10317 * xdisp.c (Voverflow_newline_into_fringe)
10318 (move_it_in_display_line_to, redisplay_internal)
10319 (update_window_fringes, redisplay_window, display_line, window):
10320 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
10321 that it compiles without a window-system.
10322 * dispnew.c (direct_output_for_insert, update_window): Likewise.
10323
77a9cf69
KS
103242004-01-16 Kim F. Storm <storm@cua.dk>
10325
10326 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
10327
a64387ee 10328 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
10329 buffer_local_flags for indicate_buffer_boundaries.
10330 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
10331 default- variable for it.
10332
10333 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
10334 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 10335 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
10336 overflowing newlines into right fringe.
10337 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
10338 and indicate_bottom_line_p for buffer boundaries and scrolling.
10339 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
10340 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
10341 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
10342 and HOLLOW_SQUARE_BITMAP.
10343 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
10344 Add prototypes.
10345
10346 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
10347 instead of related indicator fields.
10348 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
10349 (direct_output_for_insert): Handle exact width lines like
10350 contined lines. Call update_window_fringes.
10351 (update_window): Call update_window_fringes.
10352 (scrolling_window): Don't skip desired rows with changed bitmaps.
10353 Check if fringe bitmaps changes when assigning scrolled rows.
10354
10355 * xdisp.c (Voverflow_newline_into_fringe): New variable.
10356 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
10357 (move_it_in_display_line_to): Overflow newline into fringe for
10358 rows that are exactly as wide as the window.
10359 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
10360 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
10361 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
10362 (fringe_bitmaps): Add new bitmaps.
10363 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
10364 Select proper bitmap for cursor in fringe when appropriate.
10365 Handle alignment of bitmap to top or bottom of row.
10366 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
10367 done by update_window_fringes.
10368 (update_window_fringes, draw_window_fringes): New functions.
10369 (redisplay_internal): Call update_window_fringes in case only
10370 cursor row is updated.
10371 (redisplay_window): Call update_window_fringes.
10372 Explicitly call draw_window_fringes if redisplay was done using
10373 the current matrix or the overlay arrow is in the window.
10374 (try_window_reusing_current_matrix): Mark scrolled rows for
10375 fringe update (to update buffer-boundaries / scrolling icons).
10376 (find_last_unchanged_at_beg_row): Handle exact width lines line
10377 continued lines.
10378 (display_line): Overflow newline into fringe for rows that are
10379 exactly as wide as the window. Don't append space for newline
d7107586 10380 in this case.
77a9cf69
KS
10381 (notice_overwritten_cursor): Explicitly clear cursor bitmap
10382 in fringe as if it had been overwritten.
10383 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 10384 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
10385 void-text-area-pointer as user options.
10386 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 10387
77a9cf69
KS
10388 * xterm.c (x_update_window_end): Call draw_window_fringes.
10389 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10390 in row instead of actually drawing fringe bitmaps.
10391 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10392 (x_draw_window_cursor): Draw cursor in fringe.
10393
10394 * w32term.c (x_update_window_end): Call draw_window_fringes.
10395 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10396 in row instead of actually drawing fringe bitmaps.
10397 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10398 (w32_draw_window_cursor): Draw cursor in fringe.
10399
10400 * macterm.c (x_update_window_end): Call draw_window_fringes.
10401 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10402 in row instead of actually drawing fringe bitmaps.
10403 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10404 (mac_draw_window_cursor): Draw cursor in fringe.
10405
a633a954
JD
104062004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10407
10408 * xterm.c (handle_one_xevent): Don't handle characters that are part
10409 of an old style (XLookupString) compose sequence.
10410
80460525
KH
104112004-01-15 Kenichi Handa <handa@m17n.org>
10412
10413 * search.c (Freplace_match): Use make_multibyte_string or
10414 make_unibyte_string according to the buffer multibyteness.
10415
7fc34f85
SM
104162004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
10417
10418 * alloc.c (struct interval_block, struct string_block)
10419 (struct symbol_block, struct marker_block, live_string_p)
10420 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
10421 Better preserve alignment for objects in blocks.
10422 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
10423
10424 * lread.c (defvar_per_buffer): Remove dead declaration.
10425
10426 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
10427 space size.
10428
66070bd1
JD
104292004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10430
10431 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
10432 if a key press should pop down. Only pop down if a key is pressed
10433 outside the menu/dialog.
10434 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
10435 popup_get_selection.
10436 (create_and_show_dialog): Pass 1 for down_on_keypress to
10437 popup_get_selection.
10438
de7515d6
JD
104392004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10440
10441 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
10442 BLOCK/UNBLOCK_INPUT.
10443
160b1b50
JD
104442004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10445
10446 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
10447 specified.
10448
3a9f36e6
KH
104492004-01-08 Kenichi Handa <handa@m17n.org>
10450
10451 * editfns.c (Fformat): Fix '&' to '&&'.
10452
3803eb32
AS
104532004-01-08 Andreas Schwab <schwab@suse.de>
10454
10455 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
10456 size if PSEUDOVECTOR_FLAG is set.
10457
9da88f37
KH
104582004-01-07 Kenichi Handa <handa@m17n.org>
10459
74ac5074
KH
10460 * charset.c (Fdeclare_equiv_charset): Fix docstring.
10461
9da88f37
KH
10462 * fontset.c (fontset_ref_via_base): Fix previous change.
10463
05faee07
KS
104642004-01-07 Kim F. Storm <storm@cua.dk>
10465
10466 * process.c (read_process_output): Only activate adaptive
10467 buffering if we read less than 256 bytes at a time.
10468
634910c8
KS
104692004-01-06 Kim F. Storm <storm@cua.dk>
10470
10471 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
10472 object and image object. Return glyph width and height.
10473 (mode_line_string, marginal_area_string): Ditto.
10474
10475 * dispextern.h (buffer_posn_from_coords, mode_line_string)
10476 (marginal_area_string): Fix prototypes.
10477
10478 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 10479 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
10480 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
10481
10482 * keyboard.c (make_lispy_position): Use modified mode_line_string,
10483 buffer_posn_from_coords, and marginal_area_string functions to
10484 include both string object and image object in the lispy position.
10485 Also add actual glyph width and height to position.
10486 (read_key_sequence): Use real buffer position from mouse
10487 event to find keymap property even when click is in marginal area.
10488
10489 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
10490 mode_line_string and marginal_area_string functions to handle
10491 both string object and image object properties.
d7107586 10492
57951c2e
AS
104932004-01-06 Andreas Schwab <schwab@suse.de>
10494
10495 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
10496 character.
10497
181e6a61
AS
104982004-01-02 Andreas Schwab <schwab@suse.de>
10499
d7107586
SM
10500 * macterm.c (emacs_options, x_initialized, same_x_server):
10501 Remove unused (and duplicated) definitions.
181e6a61 10502
31e0fbdd
KS
105032004-01-02 Kim F. Storm <storm@cua.dk>
10504
10505 * process.h (struct Lisp_Process): New members for adaptive read
10506 buffering: adaptive_read_buffering, read_output_delay, and
10507 read_output_skip.
10508
10509 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
10510 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
10511 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
10512 (process_output_delay_count, process_output_skip): New vars.
10513 (Vprocess_adaptive_read_buffering): New variable.
10514 (make_process): Initialize adaptive read buffering members.
10515 (Fstart_process): Set adaptive_read_buffering member.
10516 (deactivate_process): Cleanup adaptive read buffering.
10517 (wait_reading_process_input): Temporarily omit delayed
10518 subprocesses from the set of file descriptors to read from;
10519 adjust the select timeout if we skipped any subprocesses.
10520 (read_process_output): Increase adaptive read buffering delay if
10521 we read less than a full buffer; reduce delay when we read a
10522 full buffer.
10523 (send_process): Simplify using local Lisp_Process var.
10524 Reset adaptive read buffering delay after write.
10525 (init_process): Initialize process_output_delay_count and
10526 process_output_skip.
10527 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
10528
68c6a789
JR
105292004-01-01 Jason Rumney <jasonr@gnu.org>
10530
d7107586 10531 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 10532
3f70fe82
LT
105332003-12-30 Luc Teirlinck <teirllm@auburn.edu>
10534
10535 * print.c (Ferror_message_string): Add hyperlink in the docstring
10536 to the definition of `signal' in the Elisp manual.
10537 * eval.c (Fsignal): Ditto.
10538
b6189c3b 105392003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
10540
10541 * fns.c (internal_equal): Return t for two NaN arguments.
10542
7abd90ea
RS
105432003-12-29 Richard M. Stallman <rms@gnu.org>
10544
10545 * data.c (store_symval_forwarding): Handle setting
10546 default-fill-column, etc., by changing the value in
10547 buffers that use the default.
10548
10549 * minibuf.c (Fset_minibuffer_window): Doc fix.
10550
10551 * fileio.c (choose_write_coding_system): Ignore auto_saving
10552 if using the visited file for auto saves.
10553 (Fwrite_region): Don't update SAVE_MODIFF
10554 if auto-saving in visited file.
10555
3e7cfcdc
KH
105562003-12-29 Kenichi Handa <handa@m17n.org>
10557
10558 * dispextern.h (face_font_available_p): Extern it.
10559
10560 * fontset.c (Voverriding_fontspec_alist): New variable.
10561 (lookup_overriding_fontspec): New function.
d7107586 10562 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
10563 (fontset_font_pattern): Likewise.
10564 (regulalize_fontname): New function.
10565 (Fset_fontset_font): Call regulalize_fontname.
10566 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
10567 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
10568 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
10569
10570 * xfaces.c (face_font_available_p): New function.
10571
7abd90ea
RS
105722003-12-28 Richard M. Stallman <rms@gnu.org>
10573
10574 * buffer.c (Fother_buffer): Don't crash if BUF is nil
10575 or if its name is nil.
10576
10577 * buffer.c (Fkill_buffer): Don't delete auto-save file
10578 if it's the same as the visited file.
10579
de1d1a40
LT
105802003-12-28 Luc Teirlinck <teirllm@auburn.edu>
10581
10582 * coding.c (Fcheck_coding_system): Doc fix.
10583
204fb75e
KS
105842003-12-28 Kim F. Storm <storm@cua.dk>
10585
10586 * Makefile.in (eval.o): Depend on dispextern.h.
10587
10588 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
10589 image glyph using image's ascent.
10590 (mode_line_string): Return image glyph as object clicked on.
10591 Adjust y0 for image glyph using image's ascent.
10592
10593 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
10594 (struct glyph): New members, ascent and descent. Used to save
10595 this glyph's ascent and descent, instead of having.
10596 (struct glyph): Declare member face_id using FACE_ID_BITS.
10597 (find_hot_spot): Add prototype.
10598
10599 * keyboard.c (Qimage): Remove extern (now in lisp.h).
10600 (QCmap): Declare extern.
10601 (make_lispy_position): When position is inside image hot-spot,
10602 use hot-spot element's id as posn element.
10603
10604 * lisp.h (IMAGEP): New macro to test for image object type.
10605 (Qimage): Declare extern.
10606
10607 * macfns.c (Qimage): Remove extern (now in lisp.h).
10608 (valid_image_p, parse_image_spec): Use IMAGEP macro.
10609
10610 * macterm.c (Qface, Qmouse_face): Remove unused externs.
10611
10612 * w32fns.c (Qimage): Remove extern (now in lisp.h).
10613 (valid_image_p, parse_image_spec): Use IMAGEP macro.
10614
10615 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
10616
10617 * w32term.c (Qface, Qmouse_face): Remove unused externs.
10618
10619 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
10620 pointer types.
10621 (Qrelative_width, Qalign_to): Remove unused variables.
10622 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
10623 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
10624 image maps.
d7107586 10625 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
10626 new dx and dy args.
10627 Remove buffer_only_p arg (always 0). Simplify code accordingly.
10628 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
10629 than row's ascent and height, to get sensible height on tall rows.
10630 (build_desired_tool_bar_string): Remove Qimage extern.
10631 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
10632 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
10633 image glyph is alone on the last line.
10634 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 10635 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 10636 (on_hot_spot_p): New function to check if position is inside an
d7107586 10637 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
10638 (find_hot_spot): New function to search for image hot-spot.
10639 (Flookup_image_map): New defun to search for image hot-spot.
10640 (define_frame_cursor1): New aux function to determine frame pointer.
10641 (note_mode_line_or_margin_highlight, note_mouse_highlight):
10642 Handle `pointer' text property and :pointer image property to
10643 control frame pointer shape. Detect image hot-spots for pointer
10644 and help_echo properties. Use define_frame_cursor1.
10645 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 10646 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
10647 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
10648
10649 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
10650
10651 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
10652 (Qimage): Remove extern (now in lisp.h).
10653 (valid_image_p, parse_image_spec): Use IMAGEP macro.
10654
10655 * xmenu.c (show_help_event): Remove unused code.
10656
10657 * xterm.c (Qface, Qmouse_face): Remove unused externs.
10658 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
10659 row's ascent and descent, to get a sensible height on tall rows.
10660
fc052137
LT
106612003-12-25 Luc Teirlinck <teirllm@auburn.edu>
10662
10663 * minibuf.c (Fcompleting_read): Undo previous change.
10664
a64387ee 106652003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
10666
10667 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
10668 Arguments GCPRO'ed in call to file name handler.
10669
56ffd194
TTN
106702003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
10671
10672 * termcap.c (tgetst1): Scan for "%pN"; if all
10673 N are continuous in [1,9], remove all "%pN".
10674
5202d23d
JD
106752003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10676
f26fab36
JD
10677 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
10678
5202d23d
JD
10679 * xfaces.c (lface_fully_specified_p): Take into account that
10680 MAC OS always have unspecified stipple.
10681
8babaa59
TTN
106822003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
10683
10684 * tparam.c (tparam1): Add handling for `%pN', which
10685 means use param N for the next substitution.
10686
2d176448
TTN
106872003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
10688
10689 * xfaces.c (Fcolor_gray_p): Fix omission bug:
10690 In case `frame' is nil, consult the selected frame.
10691 (Fcolor_supported_p): Likewise.
10692
adb0708c
LT
106932003-12-23 Luc Teirlinck <teirllm@auburn.edu>
10694
000eeb15
LT
10695 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
10696 Doc fixes.
0dc72b11
LT
10697
10698 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
10699 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
10700 (Fread_from_minibuffer): Delete code moved into read_minibuf.
10701 Doc fix.
10702 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
10703 read_minibuf.
10704 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 10705 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 10706
2e4d132b
KH
107072003-12-03 Kenichi Handa <handa@m17n.org>
10708
10709 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
10710 encoding sequence.
10711
3999c705
KH
107122003-12-01 Kenichi Handa <handa@m17n.org>
10713
10714 * composite.c (syms_of_composite): Don't make the compostion hash
10715 table week.
10716
d344ecbb
LT
107172003-11-30 Luc Teirlinck <teirllm@auburn.edu>
10718
10719 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
10720 * textprop.c (Fget_char_property_and_overlay): New function.
10721 (syms_of_textprop): Defsubr it.
10722
03d6484e
JD
107232003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10724
019b1f0e
JD
10725 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
10726 to compile on terminal configuration.
10727
03d6484e
JD
10728 * fileio.c (Fread_file_name): Check use_file_dialog also before
10729 calling Fx_file_dialog.
10730
1d1c7e75 10731 * fns.c (use_file_dialog): New variable.
03d6484e
JD
10732 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
10733
442d3fd0
KS
107342003-11-29 Kim F. Storm <storm@cua.dk>
10735
10736 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
10737 (syms_of_msdos): Don't intern and staticpro them.
10738
0f6a07a8
KS
107392003-11-27 Kim F. Storm <storm@cua.dk>
10740
10741 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
10742 coordinates relative to glyph at posn. If glyph is an image,
10743 return that as object at posn. Callers changed.
10744 (mode_line_string, marginal_area_string): Calculate and return
10745 pixel coordinates relative to glyph. Callers changed.
10746
10747 * dispextern.h (buffer_posn_from_coords, mode_line_string)
10748 (marginal_area_string): Fix prototypes.
10749 (window_box_left_offset, window_box_right_offset): Add prototypes.
10750
10751 * frame.h (get_specified_cursor_type, get_window_cursor_type):
10752 Remove prototypes.
10753
10754 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
10755
10756 * keyboard.c (make_lispy_position): Add x and y coordinates
10757 relative to the current glyph as 7th element of position.
10758 If glyph is an image, return it in the object element.
10759 (read_key_sequence): Skip checks for keymap property in cases
10760 where POSN_STRING is not a string (e.g. an image).
10761
10762 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
10763 (Vshow_text_cursor_in_void): New variable.
10764 (glyph_to_pixel_coords): Don't use negative hpos.
10765 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
10766 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 10767 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
10768 (calc_pixel_width_or_height): New aux function, implementing
10769 pixel based artihmetic for glyph widths and heights.
10770 (produce_stretch_glyph): Use calc_pixel_width_or_height for
10771 :width, :height, :align-to, and :ascent, thus allowing these to
10772 be specified in pixels as well as multiples of characters.
10773 Don't produce stretch glyphs with zero width or height.
10774 (get_specified_cursor_type): Declare static.
10775 (get_window_cursor_type): Declare static. Add glyph arg to be
10776 able to know when cursor is on an image; always substitute
10777 hollow-box cursor for filled-box cursor on images, to avoid
10778 negative images and flicker when blinking the cursor.
10779 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
10780 (note_mode_line_or_margin_highlight): Use non-text cursor rather
10781 than vertical scroll-bar cursor in display margins.
10782 (note_mouse_highlight): Use non-text cursor rather than text
10783 cursor in fringes and over images in the text area.
10784 Use non-text cursor when mouse pointer is outside editable text,
10785 i.e. in the void after end-of-line or end-of-buffer; this was
10786 already done for W32, but is now standard for all systems --
10787 user can toggle show-text-cursor-in-void to get old behaviour.
10788 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
10789 Vdisplay_pixels_per_inch.
10790
00498bfc
AS
107912003-11-25 Andreas Schwab <schwab@suse.de>
10792
10793 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
10794 EMACS_INT to not lose bits.
10795 (Ffillarray): Don't set bits beyond the size of a bool vector.
10796
edaa824d
KS
107972003-11-25 Kim F. Storm <storm@cua.dk>
10798
10799 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
10800 define this defun on systems that cannot use stderr as lvalue.
10801
74d6f539
GM
108022003-11-24 Gerd Moellmann <gerd@gnu.org>
10803
10804 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
10805 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
10806 ld's default is incompatible with unexec.
10807
6a1ff3ba
KS
108082003-11-23 Kim F. Storm <storm@cua.dk>
10809
63dc7c6b
KS
10810 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
10811 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
10812 (Fforce_window_update): New defun.
10813 (syms_of_window): Defsubr it.
10814 (Fset_window_margins, Fset_window_fringes): Doc fix.
10815
6a1ff3ba
KS
10816 * print.c (Fredirect_debugging_output): New defun.
10817 (syms_of_print): Defsubr it.
10818
aef109b7
LT
108192003-11-22 Luc Teirlinck <teirllm@auburn.edu>
10820
10821 * fns.c (Fset_char_table_parent): Doc fix.
10822
6a1ff3ba 108232003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
10824
10825 * dispnew.c (buffer_posn_from_coords): Return actual row/column
10826 for glyph clicked on, rather than (unused) pixel positions.
10827 (mode_line_string, marginal_area_string): Change X and Y args to
10828 pointers for returning actual row/column for glyph clicked on.
10829 Simplify and optimize loops.
10830
aef109b7
LT
10831 * dispextern.h (mode_line_string, marginal_area_string):
10832 Update prototypes.
63ccbe21
KS
10833
10834 * keyboard.c (make_lispy_position): New function for generating
10835 mouse click positions from frame and pixel coordinates.
10836 Enhanced to return buffer position and actual row/column for
10837 events outside the text area using updated mode_line_string and
10838 marginal_area_string functions.
10839 Return left-fringe and right-fringe clicks as such, rather than
10840 clicks in text area.
10841 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
10842 pixel_to_glyph_coords, as we never use the results.
10843 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
10844 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
10845 Eliminate unused code in WHEEL_EVENT handling.
10846 (make_lispy_movement): Use make_lispy_position.
10847
10848 * window.c (coordinates_in_window): Remove redundant tests.
10849 Fix returned X pixel value for left-margin.
10850
10851 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
10852 mode_line_string and marginal_area_string parameters.
10853
a64387ee 108542003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 10855
d7107586
SM
10856 * w32.c (struct the_group, getgrgid): Add.
10857 * mac.c (struct my_group, getgrgid): Add.
aef109b7 10858
3dbf3426
LT
108592003-11-21 Luc Teirlinck <teirllm@auburn.edu>
10860
10861 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
10862
cae8ddbb 108632003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 10864
d7107586
SM
10865 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
10866 include in call to file name handler. Optionally translate numeric
10867 UID and GID to strings. Update docstring.
10868 (directory_files_internal): Add parameter ID-FORMAT.
10869 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
10870 include in call to file name handler and call to
10871 directory_files_internal. Update Docstring.
10872 (Fdirectory_files): Add dummy parameter in call to
10873 directory_files_internal.
10874 * lisp.h (Qinteger): Add.
10875 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
10876 (Ffile_attributes): Add parameter.
10877 * data.c (Qinteger): Export.
cae8ddbb 10878
2550b848
LT
108792003-11-21 Luc Teirlinck <teirllm@auburn.edu>
10880
3dbf3426 10881 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 10882
88380018
KS
108832003-11-19 Kim F. Storm <storm@cua.dk>
10884
10885 * xdisp.c (init_iterator): Initialize it->start to position
10886 before reseating (in case start position is invisible).
10887 (init_to_row_start): Set it->start to row-start.
10888 (redisplay_window): Accept optional_new_start if start position
10889 is invisible (in which case IT_CHARPOS overshoots PT).
10890 (display_line): Setup row->start from it->start (rather than
10891 it->current which is wrong if first char on line is invisible).
10892 When done, reseat it->start to it->current (= start of next row).
10893 (expose_area): Fix exposure of text area when first char (e.g. TAB)
10894 is only partially visible.
10895
10896 * dispextern.h (struct it): New member start.
10897
854c1a59
SM
108982003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10899
455316e2
SM
10900 * alloc.c (make_float, Fcons): Clear the markbit at init time.
10901 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
10902 of block_index outside of the macro call.
10903 (Fgarbage_collect): Remove null code.
10904
10905 * m/amdx86-64.h: Don't redefine XPNTR.
10906
854c1a59
SM
10907 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
10908 of VALMASK.
10909
10910 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
10911 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
10912 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
10913
10914 * lisp.h (VALMASK): Only define for non-union type.
10915 (MARKBIT): Remove.
10916 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
10917 (XTYPE): Define unconditionally.
10918 (XSETTYPE): Remove one more remnant.
10919 (EQ): Define differently for the union and non-union cases.
10920 (INTMASK): New bit mask.
10921 (struct Lisp_Marker): Move down to prepare for upcoming patch.
10922 (GC_EQ): Delegate to EQ.
10923
10924 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
10925
a0c6ef2d
JD
109262003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10927
10928 * xterm.c (x_window_to_scroll_bar): Move check of display to
10929 where window_id is compared.
10930
859492c4
KS
109312003-11-17 Kim F. Storm <storm@cua.dk>
10932
10933 * dispextern.h (struct it): New member first_vpos.
10934
10935 * xdisp.c (start_display): Set it->first_vpos.
10936 (try_window_id): Use first_vpos to start display in first _text_
10937 line if no reusable lines at start of window with header line.
10938
810f2256
JD
109392003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10940
7c402969 10941 * w32fns.c (XPutPixel):
854c1a59
SM
10942 * w32bdf.c (w32_init_bdf_font):
10943 * sunfns.c (sel_read):
10944 * process.c (Fmake_network_process):
10945 * frame.c (store_frame_param):
10946 * fontset.c (Fset_fontset_font):
10947 * emacs.c (shut_down_emacs):
a64387ee 10948 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 10949
a32e9bfd
JD
10950 * config.in: Regenerate.
10951
810f2256
JD
10952 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10953 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10954 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
10955 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
10956 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
10957
10958 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
10959
10960 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
10961 (XTmouse_position, handle_one_xevent): Pass Display* to
10962 x_window_to_scroll_bar.
10963 (x_window_to_scroll_bar): Take a Display* argument.
10964 Check that display for frame is equal to Display* argument.
854c1a59 10965 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
10966 x_display_info_for_display instead. Use Display in xev instead
10967 of GDK_DISPLAY.
10968 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 10969 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
10970 (x_connection_closed): Call xg_display_close for GTK.
10971 (x_term_init): Call xg_display_open for additional displays.
10972 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
10973 for GTK.
10974
10975 * xmenu.c (single_menu_item, mouse_position_for_popup)
10976 (x_activate_menubar): Formatting adjustments.
10977
10978 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
10979 adjustments.
10980
10981 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
10982 (xg_display_close, xg_create_default_cursor)
10983 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
10984 handling.
854c1a59
SM
10985 (xg_left_ptr_cursor): Remove.
10986 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
10987 cursor here.
10988 (xg_win_to_widget): Take Display* argument, call
10989 gdk_xid_table_lookup_for_display.
10990 (xg_create_frame_widgets, xg_get_file_name, create_menus)
10991 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
10992 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
10993 in FRAME_X_DISPLAY_INFO.
10994 (xg_get_scroll_id_for_window): Take Display* argument.
10995 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 10996 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 10997
78819ebb
KS
10998 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
10999 Display* argument.
11000 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 11001
0b03cc78
JD
110022003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11003
11004 * xterm.c (x_detect_focus_change): Do not change focus frame for
11005 Enter/LeaveNotify if the current focus frame has explicit focus.
11006
77e688fa
KS
110072003-11-14 Kim F. Storm <storm@cua.dk>
11008
11009 * dispnew.c (update_text_area): Fix redisplay error when hscroll
11010 is active and first glyph is only partially visible.
854c1a59 11011
dd429b03
KH
110122003-11-13 Kenichi Handa <handa@m17n.org>
11013
11014 * xdisp.c (select_frame_for_redisplay): New function.
11015 (redisplay_internal): Record also selected_frame for
11016 unwind_redisplay. Call select_frame_for_redisplay before
11017 redrawing each frame.
11018 (unwind_redisplay): Argument changed to a cons.
11019
6d9266f4
LT
110202003-11-12 Luc Teirlinck <teirllm@auburn.edu>
11021
11022 * fns.c (Fstring_to_multibyte): Doc fix.
11023
80060eb3
KH
110242003-11-11 Kenichi Handa <handa@m17n.org>
11025
11026 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
11027
74305183
JD
110282003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11029
11030 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
11031 program specified positions.
11032
cfda993e
JD
110332003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11034
11035 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
11036
df211069
KH
110372003-11-08 Kenichi Handa <handa@m17n.org>
11038
11039 * Makefile.in (lisp): Add kannada.el.
11040 (shortlisp): Likewise.
11041
4307d534
KH
110422003-11-07 Kenichi Handa <handa@m17n.org>
11043
854c1a59
SM
11044 * coding.c (coding_allocate_composition_data):
11045 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
11046 (coding_restore_composition): Detect invalid composition data.
11047 Give Fstring and Fvector a Lispy integer, not C int.
11048
854c1a59
SM
110492003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
11050
11051 * floatfns.c (Flogb): Don't use VALMASK.
11052
11053 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
11054 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
11055
11056 * lisp.h (XINT): Move the cast to clarify what is going on.
11057 (GCTYPEMASK, XSETTYPE): Remove.
11058 (XGCTYPE): Make it an alias of XTYPE.
11059
d04103a1
JD
110602003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11061
11062 * xterm.c (x_term_init): Fix formatting.
11063
da18b5ac
JD
110642003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11065
78819ebb
KS
11066 * gtkutil.h (xg_have_tear_offs): Declare.
11067 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
11068
11069 * gtkutil.c: Remove variable xg_did_tearoff.
11070 (xg_have_tear_offs): New function.
11071 (tearoff_remove): Just decrease xg_detached_menus.
11072 (tearoff_activate): Increase xg_detached_menus and call
11073 tearoff_remove when tearoff is removed.
854c1a59 11074 (xg_keep_popup): Remove function.
da18b5ac
JD
11075 (create_menus): Give add_tearoff_p as argument to recursive
11076 call to create_menus.
11077 (xg_create_widget): Use variables instead of multiple
11078 strcmp. Tell create_menus to create tear off only for
11079 menu bar menus.
11080 (xg_update_menubar): Change title for a detached menu also.
11081 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
11082 of deep_p.
11083 (xg_initialize): Initialize xg_detached_menus, remove
11084 initialization of xg_did_tearoff.
11085
11086 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
11087 xg_have_tear_offs returns non-zero.
11088 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
11089 call to xg_keep_popup.
11090
64d4923e
AC
110912003-11-01 Andrew Choi <akochoi@shaw.ca>
11092
11093 * macterm.c (XTread_socket): Handle menubar selection and grow
11094 window only for mouseDown events.
854c1a59 11095
6cc8bc07
JD
110962003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11097
11098 * xterm.c (x_term_init): For GTK part, increase x_initialized
11099 to check for more than one display. Use error instead of return 0.
11100
043131c4
AC
111012003-10-31 Andrew Choi <akochoi@shaw.ca>
11102
854c1a59 11103 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
11104 (copy_dysymtab): Call it.
11105
bdda99a1
LT
111062003-10-31 Luc Teirlinck <teirllm@auburn.edu>
11107
11108 * eval.c (Fdefvaralias): Doc fix.
11109
800f42ff 111102003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
11111
11112 * data.c (Fsetplist): Doc fix.
11113
ef35b389
LK
111142003-10-14 Lute Kamstra <lute@gnu.org>
11115
11116 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 11117
ef35b389 111182003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 11119
07107abc
KS
11120 * window.c (Fset_window_margins): Simplify arg checking.
11121
f7005886
RS
111222003-10-13 Richard M. Stallman <rms@gnu.org>
11123
11124 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
11125 (print_partial_compiled_pattern): Replace assert with a printout.
11126 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
11127
11128 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
11129
11130 * window.c (Fset_window_margins): Allow only integers as args.
11131 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
11132 Doc fixes.
11133
9c0c2af5
LK
111342003-10-13 Lute Kamstra <lute@gnu.org>
11135
11136 * window.c (Fset_window_fringes): Elaborate docstring.
11137
3f080e4e
AC
111382003-10-12 Andrew Choi <akochoi@shaw.ca>
11139
854c1a59 11140 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 11141
3f080e4e
AC
11142 * s/darwin.h (GC_MARK_STACK): Define.
11143
0aa513ed
JD
111442003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11145
11146 * window.c (shrink_windows): New function.
11147 (size_window): Call shrink_windows to calculate window sizes when
11148 shrinking frame with more than one window.
11149
6aa8858a
KS
111502003-10-12 Kim F. Storm <storm@cua.dk>
11151
11152 * xdisp.c (compute_fringe_widths): Doc fix.
11153
c2164d91
KH
111542003-10-08 Kenichi Handa <handa@m17n.org>
11155
854c1a59 11156 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 11157
f82ac129
KH
111582003-10-07 Kenichi Handa <handa@m17n.org>
11159
11160 * coding.c (Qcoding_system_define_form): New variable.
11161 (syms_of_coding): Intern and staticpro it.
11162 (Fcheck_coding_system): Try to autoload the definition of
11163 CODING-SYSTEM.
11164
9296c947
LT
111652003-10-05 Luc Teirlinck <teirllm@auburn.edu>
11166
11167 * fns.c (Frequire): Doc fix.
11168
c1f0671a
JD
111692003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11170
3d8c3826
JD
11171 * xfns.c (Fx_send_client_event): New function as a base for
11172 manipulating extended window manager hints.
6dc15d98 11173 (Fx_send_client_event): Remove unused variable s.
3d8c3826 11174
068ae0fd
JD
11175 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
11176 that function is removed.
11177
11178 * xterm.c (x_set_offset): Use move_offset_left/top instead of
11179 x/y_pixels_outer_diff.
11180 (x_check_expected_move): Calculate move_offset_left/top.
11181
11182 * xterm.h (struct x_output): New members: move_offset_top/left.
11183
854c1a59 11184 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
11185 call x_set_offset directly.
11186
11187 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
11188
96f09305
JD
11189 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
11190
11191 * xterm.c (x_delete_display): Free font names and font_encoder
11192 in dpyinfo->font_table.
11193
854c1a59
SM
11194 * xfns.c (Fx_close_connection): Only call XFreeFont here.
11195 Move xfree of font names to x_delete_display.
96f09305 11196
c1f0671a
JD
11197 * xterm.h (struct x_display_info): New member, wm_type.
11198 (struct x_output): New members, expected_top/left and
11199 check_expected_move.
11200
11201 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
11202 is received.
854c1a59
SM
11203 (handle_one_xevent): Rename x_check_expected_move from
11204 x_check_fullscreen_move.
c1f0671a
JD
11205 (x_set_offset): Only add WM decoration sizes to modified_top/left
11206 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 11207 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
11208 Removed fullscreen specific code. Use check_expected_move,
11209 expected_left/top instead. Also, set wm_type.
11210 (x_term_init): Initialize wm_type to unknown.
11211
11212 * frame.c (x_fullscreen_move): Remove addition of WM decoration
11213 sizes to move_x/y.
11214
be2fdba9
KH
112152003-10-03 Kenichi Handa <handa@m17n.org>
11216
11217 * macterm.c (x_load_font): Clear all members of FONTP before start
11218 filling them.
11219
112202003-10-02 Kenichi Handa <handa@m17n.org>
11221
11222 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
11223 before calling find_ccl_program_func. Call find_ccl_program_func
11224 only when fontp->font_encoder is not NULL.
11225
11226 * xterm.c (x_load_font): Clear all members of FONTP before start
11227 filling them.
11228
26a6e439
JPW
112292003-10-03 John Paul Wallington <jpw@gnu.org>
11230
11231 * keymap.c (map_keymap): Don't abort when binding is a vector.
11232
0d4c2dc2
JR
112332003-10-02 Jason Rumney <jasonr@gnu.org>
11234
854c1a59
SM
11235 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
11236 Sync dependencies with Makefile.in.
a63cf46f
JR
11237 (alloca.o): Remove.
11238
0d4c2dc2
JR
11239 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
11240 filling them.
11241
11242 * w32bdf.c (w32_load_bdf_font): Likewise.
11243
ab8f7d5c
RS
112442003-09-30 Richard M. Stallman <rms@gnu.org>
11245
11246 * term.c (set_tty_color_mode): Calculate current_mode_spec
11247 regardless of value of VAL.
11248
854c1a59 11249 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
11250 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
11251 Handle over_used when splitting UNDER.
11252
a64387ee 112532003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
11254
11255 * regex.c (regex_compile): Free the stack when returning from function.
11256
3413f972
KH
112572003-09-28 Kenichi Handa <handa@m17n.org>
11258
11259 * fontset.c (Finternal_char_font): Change return value to
11260 cons (FONT-NAME . GLYPH-CODE).
11261
a6eeaa81 112622003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
11263
11264 * term.c (tty_setup_colors): Treat any negative argument as -1.
11265
f98ddc99
KH
112662003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
11267
11268 * process.c (send_process): Delete unused temp_buf.
11269
66c8f1a8
DL
112702003-09-26 Dave Love <fx@gnu.org>
11271
11272 * xterm.c (x_bitmap_mask): Declare.
11273
ca716c26
DL
112742003-09-25 Dave Love <fx@gnu.org>
11275
11276 * Makefile.in (fns.o): Depend on md5.h.
11277
fbe57420
KS
112782003-09-25 Kim F. Storm <storm@cua.dk>
11279
11280 * window.c (set_window_buffer): Fix redisplay problems when
11281 switching between buffers with different display margin widths.
11282
ef6ae4ff
KS
112832003-09-23 Kim F. Storm <storm@cua.dk>
11284
11285 * process.c (set_socket_option): Fix :bindtodevice option.
11286 (Fset_network_process_option): Update process contact list when
11287 setting option succeeds.
11288 (Fmake_network_process): Doc fix.
11289
68e03c1c
DL
112902003-09-23 Dave Love <fx@gnu.org>
11291
7146d1c1 11292 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 11293
a6eeaa81 112942003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
11295
11296 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
11297 color mode is an integer number (it could be -1).
11298
8fe7d8c8
RS
112992003-09-22 Richard M. Stallman <rms@gnu.org>
11300
11301 * intervals.c (graft_intervals_into_buffer): Correct the main loop
11302 in the case where OVER is longer than UNDER.
11303
2f71b5ea
MY
113042003-09-22 Masatake YAMATO <jet@gyve.org>
11305
7146d1c1 11306 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 11307 `vertical_type'.
7146d1c1 11308
0c4da023
KS
113092003-09-21 Kim F. Storm <storm@cua.dk>
11310
11311 * frame.c (Vdefault_frame_scroll_bars): New variable.
11312 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
11313 (syms_of_frame): DEFVAR_LISP it, and initialize according to
11314 window-system default scroll bar position.
11315
b648413b
KS
11316 * window.c (Fwindow_scroll_bars): Doc fix.
11317
8f5b9e34
JD
113182003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11319
854c1a59 11320 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 11321
b0f23edf
RS
113222003-09-19 Richard M. Stallman <rms@gnu.org>
11323
11324 * atimer.h: Don't include lisp.h.
11325 (P_): Define it here (as well as elsewhere).
11326
11327 * print.c (Fprin1_to_string): Move the PRINTPREPARE
11328 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
11329
11330 * data.c (Fvariable_binding_locus): New function.
11331 (syms_of_data): defsubr it.
11332 (Flocal_variable_p): Delete duplicate call to indirect_variable.
11333
e1283999
DL
113342003-09-18 Dave Love <fx@gnu.org>
11335
ad5f3636
DL
11336 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
11337
e1283999
DL
11338 * process.c (Fnetwork_interface_info): Fix type error.
11339 (Fnetwork_interface_list): Doc fix.
11340 (read_process_output, read_process_output): Delete unused var.
11341
b8c7fd71
KS
113422003-09-17 Kim F. Storm <storm@cua.dk>
11343
11344 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
11345 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
11346 (Fnetwork_interface_info): Check that ifreq struct has required
11347 fields before accessing them; this requires that those fields are
11348 defined as macros, which may be too restrictive on some platforms,
11349 but it is better than failing on other platforms.
11350 (syms_of_process): Only defsubr above fns when included.
11351
11e0a411
DL
113522003-09-17 Dave Love <fx@gnu.org>
11353
11354 * unexalpha.c: Don't include varargs.h.
11355
e9c50801
KS
113562003-09-17 Kim F. Storm <storm@cua.dk>
11357
11358 * process.c (Fset_process_sentinel): Add sentinel to childp plist
11359 for network process.
11360 (socket_options): Add `:' prefix to option names. Add optbit field.
11361 (set_socket_option): Remove no_error arg and special handling of s < 0.
11362 Return 1<<optbit for known option, 0 for unknown.
11363 Do not interpret 0 as false for boolean option (only nil).
11364 Pass failed option and value to report_file_error.
7146d1c1 11365 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
11366 (Fset_network_process_option): New function to set just one option.
11367 (Fmake_network_process): Allow :coding arg to be a cons.
11368 Allow :server arg to be an integer specifying backlog size.
11369 Remove :options arg, and allow options to be specified directly
11370 as :KEY, VALUE pairs. Parse these options before binding socket.
11371 As before, :reuseaddr t is default for a server process, but this
11372 can now be disabled by specifying :reuseaddr nil.
11373 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
11374 (init_process): Availability of network options is now checked with
11375 simpler syntax (featurep 'make-network-process :OPTION); use loop to
11376 setup features.
11377 (syms_of_process): Fix defsubr's for the replaced functions.
11378
a0fc3644
DL
113792003-09-16 Dave Love <fx@gnu.org>
11380
11381 * Makefile.in: Depend on coding.h.
11382
6df2a645
KS
113832003-09-14 Kim F. Storm <storm@cua.dk>
11384
11385 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
11386 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
11387 (syms_of_process): Defsubr them.
11388
11389 * config.in: Regenerate.
7146d1c1
SM
11390
113912003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11392
11393 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
11394 * m/news-r6.h (XUNMARK): Remove.
11395 * m/mips.h (XUNMARK): Remove.
11396 * m/mips-siemens.h (XUNMARK): Remove.
11397 * m/iris4d.h (XUNMARK): Remove.
11398 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
11399
0930c1a1
SM
114002003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11401
31003b9e
SM
11402 * lisp.h (VALBITS): Don't remove 1 for the markbit.
11403 (union Lisp_Object): Use unsigned int for types. Remove markbit.
11404 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
11405 (XTYPE): Use unsigned right-shift.
11406 (XMARKBIT, XMARK, XUNMARK): Remove.
11407
0930c1a1
SM
11408 * alloc.c (init_intervals, init_symbol, init_marker):
11409 Don't preallocate anything.
11410 (Fgarbage_collect, mark_object): Ignore the markbit.
11411
11412 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
11413
19bb0fcd 114142003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
11415
11416 * xdisp.c (pint2hrstr): New function.
11417 (decode_mode_spec): Add `%i' and `%I' specs.
11418 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
11419 for `mode-line-format'.
11420
03bb6a06
AS
114212003-09-07 Andreas Schwab <schwab@suse.de>
11422
11423 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
11424 avoid warning.
11425
a6eeaa81 114262003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 11427
0930c1a1 11428 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 11429
ed159bbf
KS
114302003-09-03 Kim F. Storm <storm@cua.dk>
11431
11432 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
11433 change (superseded by 2002-08-30 change); the default blink-off
11434 cursor is now again "no cursor".
11435
fe64a394
JR
114362003-09-01 Jason Rumney <jasonr@gnu.org>
11437
11438 * makefile.w32-in (alloca.o): Remove.
11439 (coding.o): Depend on intervals.h
11440 (emacs.o, bytecode.o): Depend on window.h
11441
c0175e24
DL
114422003-09-01 Dave Love <fx@gnu.org>
11443
11444 * Makefile.in (alloca.o): Remove commands.
11445 (coding.o): Depend on intervals.h composite.h window.h.
11446 (emacs.o): Depend on window.h keyboard.h keymap.h.
11447 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
11448 (bytecode.o): Depend on window.h.
11449
a24d4cb2
JR
114502003-08-31 Jason Rumney <jasonr@gnu.org>
11451
4bc2315e
JR
11452 * w32term.c (w32_per_char_metric): Allow cached metrics to be
11453 returned even when font_type is unknown.
11454
a24d4cb2
JR
11455 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
11456
9d35adc7
JD
114572003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11458
11459 * xterm.c (x_term_init): Initialize new fields in x_display_info.
11460
11461 * xterm.h (struct x_display_info): Add red/green/blue_bits and
11462 *_offset.
11463
11464 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
11465 calculate pixel value.
11466
6f68b035
GM
114672003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
11468
0930c1a1
SM
11469 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
11470 Don't tell redisplay display is accurate when it's actually been
11471 paused for pending input.
6f68b035 11472
4828b4d7
RS
114732003-08-29 Richard M. Stallman <rms@gnu.org>
11474
11475 * dispnew.c (adjust_glyph_matrix): Call window_box
11476 whenever W is nonzero.
11477
11478 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11479 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 11480 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
11481 Use indirect_variable to trace thru variable aliases.
11482
11483 * config.in: Updated.
11484
11485 * callint.c (Fcall_interactively): Save and restore
11486 Vthis_command, Vthis_original_command, real_this_command,
11487 and current_kboard->Vlast_command.
11488
11489 * abbrev.c (Fexpand_abbrev): Insert before deleting.
11490
e019878d
GM
114912003-08-29 Gerd Moellmann <gerd@gnu.org>
11492
11493 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
11494
85478bc6
KH
114952003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
11496
0930c1a1 11497 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
11498 (decode_coding_sjis_big5): Likewise.
11499
07ce82d3
JR
115002003-08-27 Jason Rumney <jasonr@gnu.org>
11501
d3703de3
JR
11502 * w32.c (sys_pipe): Protect against file descriptor overflow.
11503
ee4a01d1
JR
11504 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
11505
07ce82d3
JR
11506 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
11507
a64387ee 115082003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
11509
11510 * xfns.c (Vgtk_version_string): New variable.
11511 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
11512
a6eeaa81 115132003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 11514
0930c1a1 11515 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 11516
5459e42a
EZ
11517 * Makefile.in (msdos.o): Depend on intervals.h.
11518
0930c1a1 11519 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 11520
231d6cfb
JD
115212003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11522
11523 * xterm.h (struct x_display_info): New fields: client_leader_window
11524 and Xatom_wm_client_leader.
11525
11526 * xterm.c (x_initialize): Move call to x_session_initialize to ...
11527 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
11528
11529 * xsmfns.c (create_client_leader_window): New function.
11530 (x_session_initialize): Call create_client_leader_window, take
11531 dpyinfo as argument.
11532
11533 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
11534
11535 * Makefile.in (xsmfns.o): Add more depenedencies.
11536
afa88464
DL
115372003-08-21 Dave Love <fx@gnu.org>
11538
11539 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
11540
f730033e
KH
115412003-08-21 Kenichi Handa <handa@m17n.org>
11542
11543 * term.c (term_init): Fix previous change; don't rely on the
11544 length of `buffer' if TERMINFO is defined.
11545
6dca786c
DL
115462003-08-20 Dave Love <fx@gnu.org>
11547
11548 * atimer.h: Include lisp.h.
11549
11550 * lisp.h (EMACS_LISP_H): New.
11551 (popup_activated_flag): Don't declare.
11552
11553 * alloca.c: Some merging with gnulib. Change logic and doc
11554 concerning (x)malloc/(x)free -- no longer Emacs-specific.
11555 [DO_BLOCK_INPUT]: Don't include lisp.h.
11556 (xmalloc, xfree): Declare.
11557 (malloc): Don't declare.
11558
0930c1a1 11559 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
11560 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
11561 atimer.h, blockinput.h.
11562
11563 * alloc.c (lisp_align_malloc): Change type of `aligned'.
11564
78819ebb 11565 * alloca.s: Remove.
6dca786c 11566
3a06a6d9
RS
115672003-08-19 Gerd Moellmann <gerd@gnu.org>
11568
11569 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
11570 use -lncurses.
11571
11572 * term.c (term_init): Use a buffer of size 4096 for tgetent since
11573 FreeBSD returns something longer than 2044. Abort if the end of
11574 the buffer is overwritten.
11575
27eeee55
MB
115762003-08-19 Miles Bader <miles@gnu.org>
11577
11578 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
11579
2f297815
GM
115802003-08-19 Gerd Moellmann <gerd@gnu.org>
11581
f4446bbf
GM
11582 * alloc.c (lisp_align_malloc): Check for memory full when
11583 allocating ablocks, which also avoids freeing a pointer into an
11584 ablocks structure.
11585
11586 * puresize.h (BASE_PURESIZE): Increase to 1100000.
11587
0930c1a1 11588 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 11589
0e7d7aae
RS
115902003-08-16 Richard M. Stallman <rms@gnu.org>
11591
11592 * editfns.c (Fencode_time): Doc fix.
11593
115942003-08-16 David Ponce <david@dponce.com>
11595
11596 * fileio.c (Fwrite_region): Fix conditional expression to issue
11597 the right message.
11598
b6189c3b 115992003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
11600
11601 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 11602 Set default value to 1.
0e7d7aae 11603
5d551295
KH
116042003-08-15 Kenichi Handa <handa@m17n.org>
11605
11606 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
11607 what autoscaled.
11608 (best_matching_font): Once we find a better scalable font, set
11609 non_scalable_has_exact_height_p to 1.
11610 (try_font_list): Call try_alternative_families to try any family
11611 with the given registry.
11612
1661e56b
AS
116132003-08-09 Andreas Schwab <schwab@suse.de>
11614
f29181dc
AS
11615 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
11616
1661e56b
AS
11617 * print.c (print_string): Fix printing of multibyte string with
11618 nontrivial printcharfun.
11619
465aa50a
JD
116202003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11621
11622 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
11623
11624 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
11625
e430e5ba
KH
116262003-07-31 Kenichi Handa <handa@m17n.org>
11627
11628 * process.c (read_process_output): Return the actually read bytes
11629 instead of the result of decoding.
11630
97e7188e
KH
116312003-07-31 Kenichi Handa <handa@m17n.org>
11632
11633 * xterm.h (struct x_bitmap_record): New member have_mask.
11634
11635 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
11636 to 0.
11637 (x_create_bitmap_from_file): Likewise.
11638 (x_destroy_bitmap): Check have_mask member before freeing a mask.
11639 (x_destroy_all_bitmaps): Likewise.
11640 (x_create_bitmap_mask): Set have_mask member to 1.
11641
b53094d6
RS
116422003-07-30 Richard M. Stallman <rms@gnu.org>
11643
11644 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
11645
631f2082
JD
116462003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11647
11648 * gtkutil.c (xg_mark_data): Update calls to mark_object.
11649
c855f2ca
RS
116502003-07-29 Richard M. Stallman <rms@gnu.org>
11651
11652 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
11653 Conditionalize XIM code on HAVE_XIM.
11654
11655 * fns.c (Fclear_string): New function.
11656 (syms_of_fns): defsubr it.
11657
b6189c3b 116582003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 11659
0930c1a1 11660 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 11661
29ea8ae9
SM
116622003-07-22 Stefan Monnier <monnier@cs.yale.edu>
11663
11664 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
11665
11666 * buffer.c (delete_all_overlays): New function.
11667 * buffer.h (delete_all_overlays): Declare.
11668 * coding.c (run_pre_post_conversion_on_str):
11669 * print.c (temp_output_buffer_setup):
11670 * fileio.c (Finsert_file_contents):
11671 * minibuf.c (get_minibuffer): Use it.
11672
1dd7ccf2
AC
116732003-07-22 Andrew Choi <akochoi@shaw.ca>
11674
11675 * unexmacosx.c (unexec_regions_sort_compare):
11676 (unexec_regions_merge): New functions. Sort and merge unexec
11677 regions before dumping them.
11678
f57bd967
DL
116792003-07-22 Dave Love <fx@gnu.org>
11680
11681 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
11682
7cdee936
SM
116832003-07-21 Stefan Monnier <monnier@cs.yale.edu>
11684
11685 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
11686 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
11687 MARKBIT as the gcmarkbit for strings.
11688
e50886d3
RS
116892003-07-21 Richard M. Stallman <rms@gnu.org>
11690
11691 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
11692
29ea8ae9 11693 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
11694 (syms_of_fns): Corresponding change.
11695
11696 * alloc.c (syms_of_alloc): Doc fixes.
11697
116982003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
11699
11700 * s/netbsd.h: Use -Wl syntax.
11701
fdc39b59
RS
117022003-07-17 Richard M. Stallman <rms@gnu.org>
11703
11704 * xterm.c (xim_initialize): Redo 6/24 change.
11705
9c53385f
SM
117062003-07-15 Stefan Monnier <monnier@cs.yale.edu>
11707
11708 * buffer.c (copy_overlays): Use EMACS_INT for positions.
11709 (Fswitch_to_buffer): Don't signal an error when switching to the same
11710 buffer in a dedicated window.
11711
11712 * alloc.c: Use bitmaps for cons, as was done for floats.
11713 (init_float, init_cons): Let the normal code allocate the first block.
11714 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
11715 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
11716 New macros.
11717 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
11718 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
11719 (live_cons_p): Check the pointer is not past the `conses' array.
11720 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
11721 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
11722 (survives_gc_p): Use CONS_MARKED_P and simplify.
11723 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
11724
dde13196
PE
117252003-07-13 Paul Eggert <eggert@twinsun.com>
11726
11727 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
11728 puts it into BSS instead, at least on Solaris 8 and 9.
11729 This is a valid optimization, and it may occur on other platforms,
11730 so Emacs should not assume that initializing a static variable to
11731 zero puts it into data.
11732 * alloc.c (pure, staticvec):
11733 Initialize these arrays to nonzero, so that they're not
11734 put into BSS by that optimization.
11735
a801bc34
SM
117362003-07-13 Stefan Monnier <monnier@cs.yale.edu>
11737
11738 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
11739 (lisp_align_malloc): Use posix_memalign is available.
11740 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
11741 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
11742 for consistency. Update users.
11743
0c8b2afa
RS
117442003-07-13 Richard M. Stallman <rms@gnu.org>
11745
11746 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
11747
668c2ab0
JB
117482003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
11749
11750 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
11751 and use the Gtk+ function gtk_window_icon_from_file if available.
11752
11753 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
11754 handle mask of bitmaps.
11755 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
11756 mask property.
11757 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
11758
11759 * xterm.h (xg_set_icon): New function.
11760
800bebe3
RS
117612003-07-12 Paul Eggert <eggert@twinsun.com>
11762
11763 * unexelf.c (unexec): Consider a section to precede the .bss
11764 section if its addresses overlap that of .bss.
11765
69e38995
RS
117662003-07-12 Richard M. Stallman <rms@gnu.org>
11767
11768 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
11769
11770 * config.in (HAVE_CRTIN): Add #undef.
11771 (INLINE): Really inline only if OPTIMIZE is defined.
11772
11773 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
11774 END_FILES_1.
11775 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 11776 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
11777
11778 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
11779 (TERMINFO): Define.
11780 (LIBS_TERMCAP): Define.
11781 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
11782
11783 * xfns.c: Include libpng/png.h instead of png.h.
11784
f1d0c238
AS
117852003-07-11 Andreas Schwab <schwab@suse.de>
11786
11787 * buffer.c (modify_overlay): Update prototype.
11788 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
11789 Likewise.
11790
5f6bf5fe
SM
117912003-07-09 Stefan Monnier <monnier@cs.yale.edu>
11792
11793 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
11794 (struct interval): Move to intervals.h.
11795 (struct Lisp_Marker): Use EMACS_INT for position info.
11796 (forward_point): Remove prototype of defunct function.
11797 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
11798 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
11799 (syms_of_textprop, set_text_properties): Remove prototypes that are
11800 already in intervals.h.
11801
11802 * intervals.h (struct interval): Move from lisp.h.
11803 Use EMACS_INT for position and size info.
11804
11805 * coding.c: Include intervals.h for Fset_text_properties.
11806
11807 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
11808 position and length information.
11809
2765b457
SM
118102003-07-09 Stefan Monnier <monnier@cs.yale.edu>
11811
11812 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
11813 position and length information.
11814
2410d73a
SM
118152003-07-09 Stefan Monnier <monnier@cs.yale.edu>
11816
11817 Change overlays_after and overlays_before so the overlays themselves
11818 are linked into lists, rather than using cons cells. After all each
11819 Lisp_Misc already occupies 5 words, so we can add a `next' field to
11820 Lisp_Overlay for free and save up one cons cell per overlay (not
11821 to mention one indirection when traversing the list of overlay).
11822
11823 * lisp.h (struct Lisp_Overlay): New field `next'.
11824
11825 * buffer.h (struct buffer): Change overlays_before and overlays_after
11826 from Lisp lists of overlays to pointers to overlays.
11827
11828 * buffer.c (overlay_strings, recenter_overlay_lists):
11829 Fix typo in eassert in last commit.
11830 (unchain_overlay): New function.
11831 (add_overlay_mod_hooklist): Use AREF.
11832 (copy_overlays, reset_buffer, overlays_at, overlays_in)
11833 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
11834 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
11835 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
11836 (report_overlay_modification, evaporate_overlays, init_buffer_once):
11837 Adjust to new type of overlays_(before|after).
11838
11839 * alloc.c (mark_object): Mark the new `next' field of overlays.
11840 (mark_buffer): Manually mark the overlays_(after|before) fields.
11841
11842 * coding.c (run_pre_post_conversion_on_str):
11843 * editfns.c (overlays_around):
11844 * xdisp.c (load_overlay_strings):
11845 * fileio.c (Finsert_file_contents):
11846 * indent.c (current_column):
11847 * insdel.c (signal_before_change, signal_after_change):
11848 * intervals.c (set_point_both):
11849 * print.c (temp_output_buffer_setup): Use new type for
11850 overlays_(before|after).
11851
04812929
SM
118522003-07-08 Stefan Monnier <monnier@cs.yale.edu>
11853
11854 * buffer.c (report_overlay_modification): Don't run hooks while
11855 traversing the list of overlays.
11856
11857 * buffer.h (struct buffer): Use an int for overlay_center.
11858 (overlays_at, evaporate_overlays, recenter_overlay_lists)
11859 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
11860
11861 * buffer.c (reset_buffer, recenter_overlay_lists)
11862 (adjust_overlays_for_insert, adjust_overlays_for_delete)
11863 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
11864 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
11865 (overlays_at, evaporate_overlays, recenter_overlay_lists)
11866 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
11867
11868 * xdisp.c (fast_find_position): Remove unused var.
11869
11870 * cmds.c (Qexpand_abbrev): New sym.
11871 (syms_of_cmds): Initialize it.
11872 (internal_self_insert): Use it to call expand-abbrev.
11873
2e7ecf15
KS
118742003-07-09 Kim F. Storm <storm@cua.dk>
11875
f9711de4 11876 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 11877 was configured with --without-xim.
42f81f64 11878 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 11879
c6de56a0
RS
118802003-07-07 Richard M. Stallman <rms@gnu.org>
11881
11882 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
11883
11884 * alloc.c (Fgarbage_collect): Doc fix.
11885
b6189c3b 118862003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
11887
11888 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
11889
bfe1a3f7
SM
118902003-07-06 Stefan Monnier <monnier@cs.yale.edu>
11891
04812929
SM
11892 * minibuf.c (read_minibuf): UNGCPRO before returning.
11893 (Ftry_completion, Fall_completions): Doc fix.
11894
bfe1a3f7
SM
11895 * alloc.c (live_float_p): Check that p is not past the `floats' array,
11896 now that `floats' is not the last element of the struct any more.
11897
ee79d1aa
JR
118982003-07-06 Jason Rumney <jasonr@gnu.org>
11899
11900 * w32term.h (ClipboardSequence_Proc): New type.
11901
11902 * w32fns.c (clipboard_sequence_fn): New variable.
11903 (globals_of_w32fns): Initialize it.
11904
11905 * w32select.c (last_clipboard_sequence_number): New variable.
11906 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
11907 number if possible.
11908
49723c04
SM
119092003-07-06 Stefan Monnier <monnier@cs.yale.edu>
11910
4698665f
SM
11911 * m/amdx86-64.h (MARKBIT):
11912 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
11913 MARKBIT and ARRAY_MARK_FLAG any more.
11914
11915 * m/hp800.h (XSETMARKBIT):
11916 * m/sr2k.h (XSETMARKBIT):
11917 * lisp.h (XSETMARKBIT): Remove unused macro.
11918
49723c04
SM
11919 * lisp.h (mark_object): Change prototype.
11920
11921 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
11922 (last_marked): Change accordingly.
11923 (mark_interval, mark_maybe_object, mark_maybe_pointer)
11924 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
11925 (mark_buffer): Update calls to mark_object.
11926
11927 * bytecode.c (mark_byte_stack):
11928 * fns.c (sweep_weak_table):
11929 * keyboard.c (mark_kboards): Update calls to mark_object.
11930
1d660eca
JR
119312003-07-06 Jason Rumney <jasonr@gnu.org>
11932
11933 * alloc.c (struct ablock): Only include padding when there is some.
11934
618b5ae4
SM
119352003-07-04 Stefan Monnier <monnier@cs.yale.edu>
11936
11937 * alloc.c (ALIGN): Add casts to simplify usage.
11938 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
11939 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
11940 (struct ablock, struct ablocks): New types.
11941 (free_ablock): New global var.
11942 (lisp_align_malloc, lisp_align_free): New functions.
11943 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
11944 (struct float_block): Reorder and add gcmarkbits.
11945 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
11946 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
11947 (init_float, make_float): Use lisp_align_malloc.
11948 (free_float, live_float_p): Don't use `type' any more.
11949 (make_float): Use FLOAT_UNMARK to access to mark bit.
11950 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
11951 Use FLOAT_MARKED_P to access the mark bit.
11952 (pure_alloc): Simplify use of ALIGN.
11953 (mark_object): Use FLOAT_MARK to access the mark bit.
11954 (gc_sweep): Use new macros to access the float's mark bit.
11955 (init_alloc_once): Init free_ablock.
11956
11957 * lisp.h (struct Lisp_Float): Remove unused field `type'.
11958
3ef06d12
SM
119592003-06-27 Stefan Monnier <monnier@cs.yale.edu>
11960
11961 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
11962 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
11963 (allocate_buffer): Move.
11964 (string_bytes): Don't mask markbit of `size_byte'.
11965 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11966 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
11967 Use the `size' field of buffers (rather than the `name' field) for
11968 the mark bit, as is done for all other vectorlike objects.
11969 Use the new macros to access the mark bit of vectorlike objects.
11970
e81043aa
RS
119712003-06-26 Richard M. Stallman <rms@gnu.org>
11972
11973 * puresize.h (BASE_PURESIZE): Increment base size.
11974
11975 * xdisp.c (fast_find_position): Enable Gerd's new definition.
11976
11977 * xterm.c (xim_initialize): Undo previous change.
11978
2d0834cc
SM
119792003-06-26 Stefan Monnier <monnier@cs.yale.edu>
11980
11981 * alloc.c (survives_gc_p): Simplify.
11982
11983 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
11984
11985 * window.c (Fset_window_dedicated_p): Simplify.
11986 (display_buffer_1): Don't raise the win from which minibuf was entered.
11987 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
11988 (Fminibuffer_selected_window): Simplify.
11989
11990 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
11991
11992 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
11993 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
11994
11995 * insdel.c (check_markers, adjust_markers_for_delete)
11996 (adjust_markers_for_insert, adjust_markers_for_replace)
11997 (prepare_to_modify_buffer, RESTORE_VALUE):
11998 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
11999 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
12000 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
12001 * alloc.c (Fmake_marker, free_marker, gc_sweep):
12002 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
12003 * editfns.c (save_excursion_restore, transpose_markers):
12004 * window.c (delete_window):
12005 * xdisp.c (message_dolog): Update for new types.
12006
d54ae3d8
JD
120072003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12008
a5f696ac
JD
12009 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
12010 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 12011 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
12012
12013 * frame.c (make_frame): Initialize default_face_done_p.
12014
12015 * frame.h (struct frame): Add default_face_done_p.
12016
d54ae3d8
JD
12017 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
12018 will be defined.
12019
2336fe58
SM
120202003-06-25 Stefan Monnier <monnier@cs.yale.edu>
12021
12022 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
12023 Initialize the new field `gcmarkbit'.
12024 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
12025 (mark_interval_tree): Don't mark the tree separately from the nodes.
12026 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
12027 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
12028 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
12029
12030 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
12031 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
12032 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
12033 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
12034 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
12035
bcea31c2
DL
120362003-06-24 Dave Love <fx@gnu.org>
12037
12038 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
12039
12040 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
12041 from gnulib.
12042
2601f59e
RS
120432003-06-21 Richard M. Stallman <rms@gnu.org>
12044
12045 * fileio.c (Fwrite_region): Alternate messages
12046 for append and partial write.
12047
12048 * keyboard.c (read_key_sequence): When converting upcase fn key to
12049 downcase, update fkey and keytran so `backspace' gets translated.
12050
12051 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
12052
12053 * process.c (wait_reading_process_input): Don't signal SIGIO
12054 in batch mode.
12055
b5d2c621
KH
120562003-06-17 Kenichi Handa <handa@m17n.org>
12057
12058 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
12059 composite.h.
12060
12061 * xselect.c: Don't include charset.h, coding.h, composite.h.
12062 (Qforeign_selection): New variable.
12063 (syms_of_xselect): Intern and static it.
12064 (selection_data_to_lisp_data): Return a unibyte string made from
12065 data with `foreign-selection' text property.
12066
6793bc63
SM
120672003-06-15 Stefan Monnier <monnier@cs.yale.edu>
12068
12069 * termhooks.h (EVENT_INIT): New macro.
12070
12071 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
12072
12073 * alloc.c (mark_kboards): Move to keyboard.c.
12074
12075 * keyboard.c (record_asynch_buffer_change, read_avail_input):
12076 * xterm.c (x_dispatch_event):
12077 * xmenu.c (find_and_call_menu_selection):
12078 * xdisp.c (handle_tool_bar_click):
12079 * w32menu.c (menubar_selection_callback):
12080 * sysdep.c (kbd_input_ast, read_input_waiting):
12081 * msdos.c (dos_rawgetc):
12082 * macterm.c (mac_check_for_quit_char):
12083 * macmenu.c (menubar_selection_callback):
12084 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
12085 data to kbd_buffer_store_event.
12086
b3ea810c
KS
120872003-06-15 Kim F. Storm <storm@cua.dk>
12088
12089 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 12090 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 12091
b8f75eda
KG
120922003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
12093
12094 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
12095
ba92ce48
KH
120962003-06-12 Kenichi Handa <handa@m17n.org>
12097
12098 * fileio.c (Fwrite_region): Save and restore restriction.
12099
b80263be
DL
121002003-06-12 Dave Love <fx@gnu.org>
12101
12102 * alloca.c (alloca): Declare arg as size_t.
12103
6793bc63
SM
12104 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
12105 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 12106
b23c0a83
DL
121072003-06-11 Dave Love <fx@gnu.org>
12108
12109 * search.c (shrink_regexp_cache): Use xrealloc.
12110 (syms_of_search): Use xmalloc.
12111
700e47c2
KS
121122003-06-10 Kim F. Storm <storm@cua.dk>
12113
12114 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
12115 Adjust phys_cursor.x to be relative to window box, rather than
12116 text area before checking -- to ensure cursor is redrawn when
12117 exposing window.
12118 Note: This also fixes a similar (older) bug if display margins
12119 are present.
12120
f11aa0b2
KH
121212003-06-06 Kenichi Handa <handa@m17n.org>
12122
12123 * coding.c (encoding_buffer_size): If coding->type is
12124 coding_type_ccl, double magnification on CRLF encoding.
12125
3d143690
JR
121262003-06-06 Jason Rumney <jasonr@gnu.org>
12127
12128 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
12129 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
12130
12131 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
12132 Mac too.
12133
f16205ca
DL
121342003-06-05 Dave Love <fx@gnu.org>
12135
b23c0a83
DL
12136 * strftime.c: Merge changes from gnulib.
12137
f16205ca
DL
12138 * mktime.c (__mktime_internal): Merge changes from gnulib
12139 involving year 69 and dst2.
12140
12141 Changes to merge with gnulib version and be consistent with the
12142 autoconf test:
12143
6793bc63
SM
12144 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
12145 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
12146 [HAVE_LOCALE_H]: Include locale.h.
12147 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
12148
9b87a0bc
KS
121492003-06-05 Kim F. Storm <storm@cua.dk>
12150
12151 * window.c (coordinates_in_window): Convert X and Y to window
12152 relative coordinates inside mode-line and header-line parts.
12153 Convert X and Y to margin area relative coordinates inside left
12154 and right display margin parts.
12155
5a8a15ec
JR
121562003-06-05 Jason Rumney <jasonr@gnu.org>
12157
12158 * w32fns.c (add_system_logical_colors_to_map): New function.
12159 (Fx_open_connection): Use it.
12160
01ed8ff1
SM
121612003-06-04 Stefan Monnier <monnier@cs.yale.edu>
12162
12163 * process.c (allocate_pty): Revert part of the previous patch.
12164 (Faccept_process_output): Simplify.
12165
b427b65d
JR
121662003-06-04 Jason Rumney <jasonr@gnu.org>
12167
12168 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
12169
12170 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
12171 (lispy_mouse_wheel_names): Remove.
12172 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
12173 Always define drag_and_drop_syms.
12174
12175 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
12176 WHEEL_EVENT events.
12177
914a8c47
SM
121782003-06-03 Stefan Monnier <monnier@cs.yale.edu>
12179
01ed8ff1
SM
12180 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
12181
914a8c47
SM
12182 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
12183
adcb132c
JD
121842003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12185
12186 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
12187 menu item label.
12188
be781fa7
RS
121892003-06-03 Richard M. Stallman <rms@gnu.org>
12190
12191 * window.c (Fwindow_edges): Doc fix.
12192 (Fwindow_pixel_edges, Fwindow_inside_edges)
12193 (Fwindow_inside_pixel_edges): New functions.
12194 (syms_of_window): defsubr them.
12195
12196 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
12197 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
12198
914a8c47
SM
121992003-06-02 Stefan Monnier <monnier@cs.yale.edu>
12200
12201 * dispnew.c (Fsit_for): Don't lie about the number of args.
12202
5b07197a
DL
122032003-06-02 Dave Love <fx@gnu.org>
12204
12205 * callproc.c: Use HAVE_FCNTL_H, not USG5.
12206 (syms_of_callproc) <process-environment>: Doc fix.
12207
12208 * doc.c: Use HAVE_FCNTL_H, not USG5.
12209
12210 * xfaces.c (font_rescale_ratio): Fix for K&R.
12211
12212 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
12213
12214 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
12215
12216 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
12217
12218 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
12219 (xg_create_frame_widgets): Use ENCODE_UTF_8.
12220
d7107586 12221 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
12222
12223 * xmenu.c (ENCODE_MENU_STRING): New.
12224 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
12225 Use it.
12226
12227 * coding.h (ENCODE_UTF_8): New.
12228 (Qutf_8): Declare.
12229
12230 * coding.c (Qutf_8): New.
12231 (syms_of_coding): Intern it.
12232
12233 * fns.c: Doc fixes.
12234
7335b336
KH
122352003-06-02 Kenichi Handa <handa@m17n.org>
12236
12237 * buffer.c (Fset_buffer_multibyte): Fix previous change.
12238
914a8c47
SM
122392003-06-01 Stefan Monnier <monnier@cs.yale.edu>
12240
12241 * lread.c (openp): Make sure STR is a string.
12242
9862c135
JR
122432003-06-01 David Ponce <david@dponce.com>
12244
cab27d04 12245 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
12246 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
12247
12248 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
12249 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
12250 (discard_mouse_events): Discard WHEEL_EVENT events too.
12251 (lispy_wheel_names, wheel_syms): New.
12252 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 12253 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 12254 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
12255
12256 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
12257 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
12258 WHEEL_EVENT events.
12259
f984e73e
JPW
122602003-05-31 John Paul Wallington <jpw@gnu.org>
12261
12262 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
12263 timer are in lisp/emacs-lisp.
12264
1efcd78f
KH
122652003-05-31 Kenichi Handa <handa@m17n.org>
12266
458c8af4
KH
12267 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
12268 region when a buffer is changed to unibyte.
12269
1efcd78f
KH
12270 * charset.h (VALID_LEADING_CODE_P): New macro.
12271 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
12272
778e2804
KH
12273 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
12274 is nonzero, accept multibyte form of eight-bit-control chars.
12275 (decode_composition_emacs_mule): Likewise.
12276 (decode_coding_emacs_mule): Likewise.
12277 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
12278 multibyte form of eight-bit-control chars.
12279
12280 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
12281 (Finsert_file_contents): If coding-system-for-read is bound to
12282 Qauto_save_coding, use the coding system emacs-mule with special
12283 setting for recovering a file.
12284 (choose_write_coding_system): On auto saving, use the coding
12285 system emacs-mule with special setting for auto saving.
12286 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
12287
034060e4
KH
122882003-05-30 Kenichi Handa <handa@m17n.org>
12289
12290 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
12291 properly before calling ccl_driver.
12292
778e2804 12293 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 12294
cab27d04 12295 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
12296 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
12297 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
12298
595f5aa5
GM
122992003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
12300
12301 * xfaces.c (realize_default_face): Do not abort if lface is
12302 non-existent - reverts change from 2003-05-19.
12303
103e0180
KH
123042003-05-29 Kenichi Handa <handa@m17n.org>
12305
12306 * coding.c (decode_coding_iso2022): Pay attention to the byte
12307 sequence of CTEXT extended segment, and retain those bytes as is.
12308
123092003-05-28 Kenichi Handa <handa@m17n.org>
12310
cab27d04 12311 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
12312 of CODING_REPLACEMENT_CHARACTER.
12313 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
12314 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
12315 check this flag on encoding.
cab27d04
SM
12316 (encode_coding_sjis_big5):
12317 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
12318 (Fset_terminal_coding_system_internal):
12319 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
12320 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
12321
12322 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
12323 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
12324 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
12325
ff6a3bfb 123262003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 12327
ff6a3bfb
RS
12328 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
12329
12330 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 12331
1963c428
KS
123322003-05-28 Kim F. Storm <storm@cua.dk>
12333
12334 * xdisp.c (expose_window): Fix error in calculation of
12335 window relative coordinates of area to redisplay.
12336
2b5d4601
JR
123372003-05-27 Jason Rumney <jasonr@gnu.org>
12338
12339 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
12340
1c64a4a2
JB
123412003-05-27 David Ponce <david@dponce.com>
12342
12343 Handle W32 mouse wheel events as mouse click events, like in X.
12344
12345 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
12346 MOUSE_WHEEL_EVENT anymore.
12347
12348 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
12349 Scrolling down/up the mouse wheel is respectively mapped to mouse
12350 button 4 and 5.
12351 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
12352 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
12353 WM_MOUSEWHEEL events.
12354
2d031b89
AS
123552003-05-27 Andreas Schwab <schwab@suse.de>
12356
20464fdf
AS
12357 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
12358
2d031b89
AS
12359 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
12360 partially visible line.
12361
12362 * alloc.c (Fgarbage_collect): Fix last change.
12363
97bc76d4
JPW
123642003-05-26 John Paul Wallington <jpw@gnu.org>
12365
12366 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
12367
56613f06
SM
123682003-05-25 Stefan Monnier <monnier@cs.yale.edu>
12369
12370 * window.c (Fset_window_buffer): Add type of `keep_margins'.
12371 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
12372
12373 * window.h (window_box_text_cols): Declare.
12374
12375 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
12376 (x_draw_vertical_border): Remove unused var `f'.
12377
12378 * xfaces.c (build_scalable_font_name): Remove `unused var
12379 pixel_size' warning.
12380
12381 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
12382
12383 * unexelf.c (unexec): Remove `unused var n' warning.
12384
12385 * strftime.c (my_strftime_localtime_r): Remove `defined but
12386 unused' warning.
12387
12388 * process.c (allocate_pty): Remove `unused var stb' and
12389 `cp might be used uninitialized' warnings.
12390
12391 * dispnew.c (mode_line_string): Remove unused var `f'.
12392
12393 * coding.c (find_safe_codings): Remove unused var `i'.
12394
12395 * bytecode.c (Fbyte_code): Remove `unused val' warning.
12396
12397 * buffer.c (Fkill_buffer): Remove unused var `list'.
12398
12399 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
12400
93421a1f
JD
124012003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12402
12403 * frame.c (make_frame): Condition want_fullscreen with
12404 HAVE_WINDOW_SYSTEM.
12405
c4b8aebc
JB
124062003-05-25 Juanma Barranquero <lektu@terra.es>
12407
12408 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
12409 (Fwindow_scroll_bars): Fix typo in docstring.
12410
0416870b
KS
124112003-05-24 Kim F. Storm <storm@cua.dk>
12412
12413 The following changes serve several purposes:
12414
12415 1) Swap the position of fringes and display margins in windows, i.e.
12416 the fringes are now displayed between the margins and the text area
12417 (by default).
12418
12419 2) Allow fringe and scroll bar parameters to be set per-buffer and
12420 per-window (like display margins). Such settings are now stored
12421 in window configurations, preserved when frames are resized, and
9018a88e 12422 copied when windows are split vertically or horizontally.
0416870b
KS
12423 Several bugs related to display margins have been fixed.
12424
12425 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 12426
0416870b
KS
12427 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
12428 rather than FRAME_WIDTH (FRAME_FONT (f)).
12429
12430 5) Introduce a consistent naming of variables, members and macros
12431 depending on whether their value is measured in pixels or in
12432 canonical columns/lines. Pixel dimensions are named *_width and
12433 *_height, while canonical columns/lines are named *_cols and
12434 *_lines. Pixel positions are named *_x and *_y, while column/line
12435 positions are named *_col and *_line.
12436
12437 6) Consolidate more of the X, W32, and MAC gui code by moving
12438 common data into struct frame, and generalize it for the non-gui
12439 case by using suitable defaults.
12440
12441 7) Cleanup and consolidate the macros controlling frame and window
12442 layout into frame.h and window.h, and generalize the use of the
12443 various window_box_* functions (enhanced to handle the new fringe
12444 position and the per-window fringe and scroll bar settings).
12445
12446 * frame.h (struct frame): Rename members height to text_lines,
12447 width to text_cols, window_height to total_lines, window_width to
12448 total_cols, new_height to new_text_lines, new_width to
12449 new_text_cols. All uses changed.
12450 (struct frame): New members which consolidate common members of
12451 x_output, w32_output, and mac_output structures: left_pos,
12452 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
12453 win_gravity, size_hint_flags, border_width, internal_border_width,
12454 line_height, fringe_cols, left_fringe_width, right_fringe_width,
12455 want_fullscreen. All uses changed.
12456 (struct frame): New member column_width contaning the canonical
12457 column width, analogue to line_height. All uses changed.
12458 (struct frame): Rename members scroll_bar_pixel_width to
12459 config_scroll_bar_width, and scroll_bar_cols to
12460 config_scroll_bar_cols. All uses changed.
12461 (struct frame): New member scroll_bar_actual_width which
12462 consolidates and renames the vertical_scroll_bar_extra member of
12463 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 12464 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
12465 from x/w32/macterm.h files. All uses changed. Also change code
12466 which referred to f->output_data...->pixel_height.
cab27d04 12467 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 12468 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 12469 which referred to f->output_data...->pixel_width.
cab27d04 12470 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 12471 Also change code which referred to f->height.
cab27d04 12472 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
12473 Also change code which referred to f->width.
12474 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
12475 to update new_text_lines and new_text_cols members directly.
cab27d04 12476 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 12477 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 12478 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
12479 FRAME_SCROLL_BAR_COLS. All uses changed.
12480 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 12481 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
12482 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
12483 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
12484 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
12485 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
12486 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
12487 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
12488 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
12489 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
12490 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
12491 Unconditionally return line_height member (it now has proper value
12492 also for non-window frames).
12493 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
12494 return new column_width member (rather than the default font width).
12495 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 12496 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
12497 from x/w32/macterm.h files. Unconditionally return corresponding
12498 member of frame structure (they now have proper values also for
12499 non-window frames).
cab27d04 12500 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
12501 Calculate return value from left and right widths.
12502 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
12503 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
12504 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
12505 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
12506 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
12507 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
12508 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 12509 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 12510 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 12511 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 12512 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 12513 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 12514 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 12515 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 12516 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 12517 consolidated from x/mac/w32term.h.
cab27d04 12518 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 12519 consolidated from x/mac/w32term.h.
cab27d04 12520 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 12521 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 12522 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
12523 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
12524
12525 * window.h (struct window): Rename members left to left_col,
12526 top to top_line, height to total_lines, width to total_cols,
12527 left_margin_width to left_margin_cols, right_margin_width to
12528 right_margin_cols, orig_height to orig_total_lines, orig_top to
12529 orig_top_line. All uses changed.
12530 (struct window): New members left_fringe_width, right_fringe_width,
12531 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
12532 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
12533 New macros primarily used to simplify other macros.
12534 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
12535 referred to XINT (w->width).
12536 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
12537 referred to XINT (w->height).
12538 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
12539 referred to XINT (w->width) * canon_x_unit.
12540 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
12541 referred to XINT (w->height) * canon_y_unit.
12542 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
12543 referred to XINT (w->left).
cab27d04 12544 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
12545 all uses and code that referred to XINT (w->left) + XINT (w->width).
12546 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
12547 referred to XINT (w->top).
12548 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
12549 referred to XINT (w->top) + XINT (w->height).
12550 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
12551 referred to XINT (w->left) * canon_x_unit.
12552 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
12553 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
12554 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
12555 referred to XINT (w->top) * canon_y_unit.
12556 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
12557 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
12558 (WINDOW_LEFTMOST_P): New macro.
cab27d04 12559 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 12560 All uses changed.
cab27d04 12561 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 12562 All uses changed.
cab27d04 12563 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
12564 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
12565 Do not exclude left fringe width.
cab27d04 12566 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
12567 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
12568 Do not exclude fringe widths.
12569 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
12570 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
12571 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
12572 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
12573 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
12574 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
12575 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
12576 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
12577 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
12578 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
12579 New macros. Change code which referenced corresponding
12580 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
12581 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
12582 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
12583 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
12584 allow per-window scroll-bar settings.
12585 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
12586 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
12587 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
12588 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
12589 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
12590 FRAME_SCROLL_BAR_WIDTH.
12591 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 12592 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 12593 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 12594 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 12595 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 12596 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 12597 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
12598 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
12599 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
12600 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
12601 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
12602 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 12603 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 12604 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
12605 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
12606 (window_from_coordinates): Update prototype.
12607 (Fset_window_buffer): Update EXFUN.
12608 (set_window_buffer): Update prototype.
9018a88e 12609
0416870b 12610 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 12611 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
12612 changed.
12613 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
12614 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
12615 internal_border_width is now set to 0 for non-window frames.
12616 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
12617 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
12618 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
12619 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
12620 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
12621 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
12622 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
12623 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
12624 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 12625 Move to window.h and renamed [see window.h changes].
0416870b
KS
12626 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
12627 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
12628 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
12629 Use WINDOW_TOTAL_LINES.
0416870b
KS
12630 (frame_update_line_height): Remove prototype.
12631
12632 * buffer.h (struct buffer): Rename members measured in columns:
12633 left_margin_width to left_margin_cols, right_margin_width to
12634 right_margin_cols. All uses changed.
12635 New members left_fringe_width, right_fringe_width,
12636 fringes_outside_margins for per-buffer fringe settings.
12637 New members scroll_bar_width and vertical_scroll_bar_type for
12638 per-buffer scroll bar settings.
12639
12640 * buffer.c (init_buffer_once): Set buffer_defaults and
12641 buffer_local_flags for new buffer-local variables
12642 left_fringe_width, right_fringe_width, fringes_outside_margins,
12643 scroll_bar_width, and vertical_scroll_bar_type.
12644 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
12645 default-* variables for them.
12646
12647 * dispnew.c: Make (many) trivial substitutions for renamed and
12648 new macros in dispextern.h, frame.h and window.h.
12649 (mode_line_string): No need to adjust width for mode lines, as it
12650 is already adjusted by the caller.
12651 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 12652
0416870b
KS
12653 * frame.c: Make (many) trivial substitutions for renamed and
12654 new macros in dispextern.h, frame.h and window.h.
12655 (make_frame): Initialize left_fringe_width, right_fringe_width,
12656 fringe_cols, scroll_bar_actual_width, border_width,
12657 internal_border_width, column_width, line_height, x_pixels_diff,
12658 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
12659 members with values suitable for a non-window frames.
12660
12661 * gtkutil.c: Make (many) trivial substitutions for renamed and
12662 new macros in dispextern.h, frame.h and window.h.
9018a88e 12663
0416870b
KS
12664 * indent.c: Make (few) trivial substitutions for renamed and
12665 new macros in dispextern.h, frame.h and window.h.
12666
12667 * keyboard.c: Make (many) trivial substitutions for renamed and
12668 new macros in dispextern.h, frame.h and window.h.
12669 (make_lispy_event): Use window positions returned from
12670 window_from_coordinates when constructing the lisp event for
12671 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
12672 (incorrect) values locally.
12673 (make_lispy_movement): Use window positions returned from
12674 window_from_coordinates when constructing the lisp event, rather
12675 than calculating (incorrect) values locally.
12676
12677 * scroll.c: Make (some) trivial substitutions for renamed and
12678 new macros in dispextern.h, frame.h and window.h.
12679
12680 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
12681 scroll-bars.
12682
12683 * sysdep.c: Make (few) trivial substitutions for renamed and
12684 new macros in dispextern.h, frame.h and window.h.
12685
12686 * term.c: Make (some) trivial substitutions for renamed and
12687 new macros in dispextern.h, frame.h and window.h.
12688
12689 * widget.c: Make (few) trivial substitutions for renamed and
12690 new macros in dispextern.h, frame.h and window.h.
12691
12692 * window.c: Make (many) trivial substitutions for renamed and
12693 new macros in dispextern.h, frame.h and window.h.
12694 (make_window): Initialize new members
12695 left_margin_cols, right_margin_cols, left_fringe_width,
12696 right_fringe_width, fringes_outside_margins, scroll_bar_width,
12697 and vertical_scroll_bar_type.
cab27d04 12698 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 12699 and per-window fringes and scroll-bars.
0416870b 12700 Fix bug related to incorrectly adjusting coordinates by
9018a88e 12701 frame's internal_border_width (the effect normally negible since
0416870b
KS
12702 the internal_border_width is typically 0 or 1 pixel, but very
12703 noticeable for an internal_border_width of e.g. 25 pixels).
12704 Upon successful return (other than ON_NOTHING), the coordinates
12705 are now always properly converted to window relative for the
12706 given display element.
12707 (window_from_coordinates): Add new parameters wx and wy to
12708 return the window relative x and y position in the returned
12709 window and part. A null arg means, don't return the position.
12710 All callers changed.
12711 (adjust_window_margins): New function which may reduce the width
12712 of the display margins if a window's text area is too small after
12713 resizing or splitting windows.
12714 (size_window): Fix bug that did not account for display margin
12715 widths when checking the minimum width of a window; use
12716 adjust_window_margins.
12717 (set_window_buffer): Call Fset_window_fringes and
12718 Fset_window_scroll_bars to setup per-window elements.
12719 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
12720 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
12721 (e.g. after splitting a window or resizing the frame).
12722 All callers changed.
0416870b
KS
12723 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
12724 (Fsplit_window): Duplicate original window's display margin,
12725 fringe, and scroll-bar settings; then call Fset_window_buffer with
12726 KEEP_MARGINS non-nil. This fixes a bug which caused a split
12727 window to only preserve the display margins in one of the windows.
c4b8aebc 12728 When splitting horizontally, call adjust_window_margins on both
0416870b 12729 windows to ensure that the text area of the new windows is non too
f9711de4 12730 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
12731 width of the split window was less than the width of the display
12732 margins.
cab27d04 12733 (window_box_text_cols): Rename from window_internal_width.
9018a88e 12734 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
12735 Fix bug that caused vertical separator to be subtracted also on
12736 window frames. Fix another bug that did not reduce the returned
12737 value by the columns used for display margins.
12738 (window_scroll_line_based): Fix bug related to scrolling too much
12739 when display margins are present (implicitly fixed by the fix to
12740 window_box_text_cols).
12741 (scroll_left, scroll_right): Fix bug related to scrolling too far
12742 by default when display margins are present (implicitly fixed by
12743 the fix to window_box_text_cols).
12744 (struct saved_window): Rename members left to left_col, top to
12745 top_line, width to total_cols, height to total_lines, orig_top to
12746 orig_top_line, orig_height to orig_total_lines. All uses changed.
12747 New members left_margin_cols, right_margin_cols,
12748 left_fringe_width, right_fringe_width, fringes_outside_margins,
12749 scroll_bar_width, and vertical_scroll_bar_type for saving
12750 per-window display elements.
12751 (Fset_window_configuration): Restore display margins, fringes,
12752 and scroll bar settings. This fixes a bug which caused display
12753 margins to be discarded when saving and restoring a window
12754 configuration.
12755 (save_window_save): Save display margins, fringes, and scroll bar
12756 settings. This fixes a bug which caused display margins to be
12757 discarded when saving and restoring a window configuration.
12758 (Fset_window_margins): Do nothing if display margins are not
12759 really changed. Otherwise, call adjust_window_margins to ensure
12760 the text area doesn't get too narrow. This fixes a bug which
f9711de4 12761 could cause Emacs to trap if setting display margins wider than
0416870b
KS
12762 the width of the window.
12763 (Fset_window_fringes): New defun to allow user to specifically set
12764 this window's fringe widths and position vs. display margins.
cab27d04 12765 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
12766 (Fset_window_scroll_bars): New defun to allow user to specifically
12767 set this window's scroll bar width and position.
12768 (Fwindow_scroll_bars): New defun to return window's actual scroll
12769 bar settings.
12770 (compare_window_configurations): Also compare display margins,
12771 fringes, and scroll bar settings.
12772 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
12773
12774 * xdisp.c: Make (many) trivial substitutions for renamed and
12775 new macros in dispextern.h, frame.h and window.h.
12776 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 12777 and new fringe vs. display margin position. Note that returned
0416870b
KS
12778 value is no longer guaranteed to be a whole multiple of the frame
12779 column width, since per-window fringes may now be any width.
12780 (window_box_left_offset): New function like window_box_left, but
12781 value is relative to left border of window (rather than frame).
12782 (window_box_right_offset): New function like window_box_right,
12783 but value is relative to left border of window.
12784 (window_box_left): Adapt to per-window fringes and scroll bars,
12785 and new fringe vs. display margin position. Simplify by using
12786 WINDOW_LEFT_EDGE_X and window_box_left_offset.
12787 (window_box): Allow null args for unnecessary return values;
12788 change/simplify relevant callers.
12789 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
12790 and new fringe vs. display margin position.
12791 Use window_box_left_offset and window_box_right_offset
0416870b 12792 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
12793 scroll bars, and new fringe vs. display margin position.
12794 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
12795 (draw_fringe_bitmap): Rework to handle per-window fringes and new
12796 fringe vs. display margin position.
12797 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
12798 (redisplay_window): Adapt to per-window scroll bars.
12799 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
12800 bars, and new fringe vs. display margin position.
12801 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 12802 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
12803 bars, and new fringe vs. display margin position. Fix bug which
12804 increased total width of full_width rows by width of scroll bars
12805 although window's total width already includes that.
12806 (x_fix_overlapping_area): Simplify using window_box_left_offset.
12807 (expose_area): Simplify using window_box_left_offset.
12808 (x_draw_vertical_border): Handle per-window scroll bar settings,
12809 mixing windows with left, right and no scroll bars.
12810
12811 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
12812 where it's used in x_list_fonts (for clarity).
12813 (frame_update_line_height): Remove unused function; functionality
12814 is now done directly when setting the default font in x_set_font.
12815
12816 * xfns.c: Make (many) trivial substitutions for renamed and
12817 new macros in dispextern.h, frame.h and window.h.
12818
12819 * xmenu.c: Make (some) trivial substitutions for renamed and
12820 new macros in dispextern.h, frame.h and window.h.
12821
12822 * xterm.h (struct x_output): Move members left_pos, top_pos,
12823 border_width, pixel_height, pixel_width, line_height,
12824 internal_border_width, vertical_scroll_bar_extra,
12825 left_fringe_width, right_fringe_width, fringe_cols,
12826 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12827 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
12828 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12829 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12830 (PIXEL_WIDTH, PIXEL_HEIGHT)
12831 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 12832 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
12833 frame.h and renamed [see frame.h changes].
12834 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12835 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 12836 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 12837 and renamed [see frame.h changes].
9018a88e 12838
0416870b
KS
12839 * xterm.c: Make (several) trivial substitutions for renamed and
12840 new macros in dispextern.h, frame.h and window.h.
cab27d04 12841 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
12842 (scroll_run): Adapt to new fringe position.
12843 (glyph_rect): Use window coordinates returned from
12844 window_from_coordinates rather than frame_to_window_pixel_xy.
12845 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12846 scroll-bars.
12847 (handle_one_xevent): Simplify a USE_GTK conditional.
12848 (x_clip_to_row): Remove superfluous whole_line_p arg and code
12849 (fringes are now inside margins, i.e. always in the clipping area).
12850 All callers changed.
12851 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12852 directly, then call compute_fringe_widths. Don't call
12853 frame_update_line_height.
12854
12855 * w32term.h (struct w32_output): Move members left_pos, top_pos,
12856 border_width, pixel_height, pixel_width, line_height,
12857 internal_border_width, vertical_scroll_bar_extra,
12858 left_fringe_width, right_fringe_width, fringe_cols,
12859 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12860 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
12861 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12862 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12863 (PIXEL_WIDTH, PIXEL_HEIGHT)
12864 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 12865 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
12866 frame.h and renamed [see frame.h changes].
12867 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12868 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 12869 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 12870 and renamed [see frame.h changes].
9018a88e 12871
0416870b
KS
12872 * w32term.c: Make (several) trivial substitutions for renamed and
12873 new macros in dispextern.h, frame.h and window.h.
cab27d04 12874 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
12875 (glyph_rect): Use window coordinates returned from
12876 window_from_coordinates rather than frame_to_window_pixel_xy.
12877 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12878 scroll-bars.
12879 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
12880 (fringes are now inside margins, i.e. always in the clipping area).
12881 All callers changed.
12882 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12883 directly, then call compute_fringe_widths. Don't call
12884 frame_update_line_height.
12885
12886 * w32console.c: Make (few) trivial substitutions for renamed and
12887 new macros in dispextern.h, frame.h and window.h.
12888
12889 * w32fns.c: Make (many) trivial substitutions for renamed and
12890 new macros in dispextern.h, frame.h and window.h.
12891
12892 * w32menu.c: Make (few) trivial substitutions for renamed and
12893 new macros in dispextern.h, frame.h and window.h.
12894
12895 * macterm.h (struct mac_output): Move members left_pos, top_pos,
12896 border_width, pixel_height, pixel_width, line_height,
12897 internal_border_width, vertical_scroll_bar_extra,
12898 left_fringe_width, right_fringe_width, fringe_cols,
12899 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12900 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
12901 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12902 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12903 (PIXEL_WIDTH, PIXEL_HEIGHT)
12904 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 12905 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
12906 frame.h and renamed [see frame.h changes].
12907 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12908 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 12909 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 12910 and renamed [see frame.h changes].
9018a88e 12911
0416870b
KS
12912 * macterm.c: Make (several) trivial substitutions for renamed and
12913 new macros in dispextern.h, frame.h and window.h.
cab27d04 12914 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
12915 (glyph_rect): Use window coordinates returned from
12916 window_from_coordinates rather than frame_to_window_pixel_xy.
12917 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12918 scroll-bars.
12919 (x_clip_to_row): Remove superfluous whole_line_p arg and code
12920 (fringes are now inside margins, i.e. always in the clipping area).
12921 All callers changed.
12922 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12923 directly, then call compute_fringe_widths. Don't call
12924 frame_update_line_height.
12925
12926 * macfns.c: Make (several) trivial substitutions for renamed and
12927 new macros in dispextern.h, frame.h and window.h.
9018a88e 12928 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
12929
12930 * macmenu.c: Make (few) trivial substitutions for renamed and
12931 new macros in dispextern.h, frame.h and window.h.
12932
12933 * msdos.h (struct x_output): Remove members left_pos, top_pos,
12934 and line_height, and use corresponding new members in struct
12935 frame. All uses changed.
12936 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
12937 superseeded by corresponding macros in frame.h.
12938
12939 * msdos.c: Make (several) trivial substitutions for renamed and
12940 new macros in dispextern.h, frame.h and window.h.
12941 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 12942 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
12943 (internal_terminal_init): No need to initialize line_height here;
12944 it now defaults to 1.
12945
9018a88e
SM
129462003-05-24 Stefan Monnier <monnier@cs.yale.edu>
12947
12948 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
12949 dropping `down' events.
12950
016bd3c0
AS
129512003-05-24 Andreas Schwab <schwab@suse.de>
12952
12953 * coding.c (find_safe_codings): Fix last change.
12954
4dacadcc
TTN
129552003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
12956
12957 * xfns.c (x_window): Fix typo from 2003-05-21 change.
12958
319830ce
SM
129592003-05-23 Stefan Monnier <monnier@cs.yale.edu>
12960
9018a88e
SM
12961 * xdisp.c (display_mode_element): Increase max depth.
12962 Simplify the error handling code. Use a different error string
12963 for the case where we hit the depth limit.
12964
319830ce
SM
12965 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
12966
12967 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
12968
129692003-05-21 Stefan Monnier <monnier@cs.yale.edu>
12970
12971 * intervals.c (get_local_map): Don't get char-property of previous
12972 point any more: get_pos_property already does it and better.
12973
c67de8ba
DL
129742003-05-21 Dave Love <fx@gnu.org>
12975
12976 [Merged from unicode branch.]
12977
12978 * xfns.c (x_window, x_window): Use use_xim.
12979
12980 * xterm.c (use_xim): Initialize.
12981 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12982 (x_term_init): Maybe set use_xim.
12983
12984 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12985
edd3ff1d
JR
129862003-05-21 Jason Rumney <jasonr@gnu.org>
12987
12988 * unexw32.c (_start): Remove _fmode initialization.
12989
12990 * emacs.c (main) [WINDOWSNT]: Move it here.
12991
463f55ee
DL
129922003-05-20 Dave Love <fx@gnu.org>
12993
12994 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
12995
af253914
RS
129962003-05-19 Richard M. Stallman <rms@gnu.org>
12997
12998 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
12999 as value for QCfont attribute.
13000 (realize_default_face): lface should already exist; crash if not.
13001 Specify 0 for FORCE_P when calling set_lface_from_font_name.
13002
13003 * frame.c (Fignore_event): Doc fix.
13004
1d211019
KH
130052003-05-19 Kenichi Handa <handa@m17n.org>
13006
13007 * coding.c (decode_coding_string): Handle post-read-conversion
13008 even if the coding doesn't require decoding.
13009
4dd68254
RS
130102003-05-18 Richard M. Stallman <rms@gnu.org>
13011
13012 * callproc.c (Fcall_process_region): Doc fix.
13013
14d87dc9
SM
130142003-05-17 Stefan Monnier <monnier@cs.yale.edu>
13015
deca5d96
SM
13016 * lread.c (Fload): Print a message if package is obsolete.
13017
14d87dc9
SM
13018 * window.c (Fselect_window): Add optional `norecord' arg.
13019 (select_window_1): Fold into Fselect_window.
13020 (select_window_norecord): New function.
13021 (temp_output_buffer_show): Use it. Preserve current buffer.
13022
13023 * window.h (Fselect_window): Update declaration.
13024
13025 * window.c (delete_window, Fother_window, Fset_window_configuration):
13026 * minibuf.c (read_minibuf):
13027 * macterm.c (x_new_focus_frame):
13028 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
13029 * callint.c (Fcall_interactively):
13030 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
13031
13032 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
13033
78f52183
DK
130342003-05-17 David Kastrup <dak@gnu.org>
13035
13036 * process.c (read_process_output): Back out change from 2003-03-09.
13037
14d87dc9
SM
130382003-05-17 Stefan Monnier <monnier@cs.yale.edu>
13039
13040 * editfns.c (get_pos_property): Don't assume that `object' = nil.
13041
13042 * textprop.c (text_property_stickiness): New arg `buffer'.
13043
13044 * intervals.h (text_property_stickiness): New arg `buffer'.
13045 (get_pos_property): Declare.
13046
13047 * intervals.c (get_local_map): Use get_pos_property, to obey
13048 stickiness and empty overlays.
13049 (create_root_interval, graft_intervals_into_buffer): Use BEG.
13050 (merge_properties, intervals_equal, merge_properties_sticky):
13051 Use XCAR, XCDR.
13052 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
13053
1fd1cc2f
RS
130542003-05-17 Richard M. Stallman <rms@gnu.org>
13055
4f9f637a
RS
13056 * minibuf.c (read_minibuf): If buffer is empty, record the default
13057 in the history.
13058 (Fminibuffer_complete_word): When deleting the overlap, take account
13059 of its real position.
13060
13061 * fns.c (map_char_table): Fix previous change.
13062
1fd1cc2f
RS
13063 * syntax.c (find_defun_start):
13064 When open_paren_in_column_0_is_defun_start,
13065 return beginning of buffer.
13066
13067 * lisp.h (map_char_table): Declare added arg.
13068
13069 * fns.c (map_char_table): New arg TABLE gets the master table.
13070 All calls changed.
13071 Process default and inheritance, resorting to Faref if necessary.
13072
13073 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13074 (Faccessible_keymaps): Pass new arg to map_char_table.
13075
13076 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
13077
13078 * casetab.c (set_case_table): Pass new arg to map_char_table.
13079
13080 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
13081
13082 * lisp.h (specbinding_func): New typedef.
13083 (struct specbinding): Use specbinding_func, to put the `volatile'
13084 in the right place.
13085
13086 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
13087 to avoid GCC warning.
14d87dc9 13088
b6189c3b 130892003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 13090
14d87dc9 13091 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 13092
35fb885d
SM
130932003-05-15 Stefan Monnier <monnier@cs.yale.edu>
13094
13095 * keyboard.c (apply_modifiers): Don't fill the other cache.
13096
9a274fbd
SM
130972003-05-14 Stefan Monnier <monnier@cs.yale.edu>
13098
c55b5fad
SM
13099 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
13100
9a274fbd
SM
13101 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
13102 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
13103 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
13104 (Fset_window_configuration, Fcurrent_window_configuration)
13105 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
13106 (Fpos_visible_in_window_p, mark_window_cursors_off)
13107 (window_internal_height, window_internal_width, Frecenter)
13108 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
13109 (replace_buffer_in_all_windows, init_window_once, init_window)
13110 (syms_of_window, keys_of_window): Move from lisp.h.
13111 * lisp.h: Move window.c declarations to window.h.
13112
13113 * bytecode.c: Include window.h.
13114 * emacs.c: Include window.h.
13115
14d87dc9 13116 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
13117 (keyremap): Add `parent' field.
13118 (keyremap_step): Use it. Remove `parent' argument.
13119 (read_key_sequence): Setup and use the new `parent' field.
13120
fd93e331
SM
131212003-05-11 Stefan Monnier <monnier@cs.yale.edu>
13122
13123 * keyboard.c (adjust_point_for_property): Ensure termination.
13124
1c4001a1
SM
131252003-05-10 Stefan Monnier <monnier@cs.yale.edu>
13126
13127 * keyboard.c (follow_key): Remove dead variable `did_meta'.
13128 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
13129 duplicated handling of function-key-map and key-translation-map
13130 in read_key_sequence.
13131 (read_key_sequence): Use them.
13132
13133 * keyboard.c (adjust_point_for_property): Try harder to move point
13134 to the non-sticky end of an invisible property.
13135
13136 * xdisp.c (single_display_prop_intangible_p): Make `space' display
13137 property intangible as well.
13138
780379b1
AS
131392003-05-10 Andreas Schwab <schwab@suse.de>
13140
13141 * xmenu.c (single_menu_item): Change last parameter to void* to
13142 avoid warning.
13143
ca2de342
RS
131442003-05-09 Richard M. Stallman <rms@gnu.org>
13145
13146 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
13147 Bind Qinhibit_modification_hooks to t so there will be no GC.
13148 Rename local `tem' to `save_deactivate_mark'.
13149
13150 * eval.c (specpdl_ptr): Declare volatile.
13151 (unbind_to): Copy the whole binding and decrement specpdl_ptr
13152 before doing the work of unbinding it.
13153
13154 * lisp.h (struct specbinding): Declare elements volatile.
13155 (specpdl_ptr): Declare volatile.
13156
13157 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
13158
13159 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
13160 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
13161
347003be
DL
131622003-05-08 Dave Love <fx@gnu.org>
13163
13164 * coding.c (Vlast_coding_system_used): Doc fix.
13165
5adcec23
JR
131662003-05-07 Jason Rumney <jasonr@gnu.org>
13167
13168 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
13169 when system does not support them.
13170
5fe3b8a4
SM
131712003-05-05 Stefan Monnier <monnier@cs.yale.edu>
13172
13173 * fileio.c (Qwrite_region_annotate_functions): New var.
13174 (build_annotations): Use it to process the global part of the hook.
13175 (syms_of_fileio): Init and staticpro it.
13176
13177 * keyboard.c (safe_run_hooks_error): Display a message instead of
13178 silently ignoring the error.
13179
131802003-05-03 Stefan Monnier <monnier@cs.yale.edu>
13181
13182 * keyboard.c (input_available_signal): Mark static.
13183 (menu_bar_items): Use map_keymap.
13184 (menu_bar_one_keymap): Remove.
13185 (menu_bar_item): Adjust arglist (for use in map_keymap).
13186 Properly hide a second binding when not both are keymaps.
13187
13188 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
13189 (single_keymap_panes): Use it and map_keymap.
13190 (single_menu_item): Use skp as well.
13191
13192 * keymap.h (map_keymap_function_t): New type.
13193 (map_keymap): Declare.
13194
13195 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
13196 (map_keymap_call, Fmap_keymap): New functions.
13197 (syms_of_keymap): Defsubr map-keymap.
13198
4b1b4443
JD
131992003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13200
13201 * gtkutil.c (create_dialog, make_widget_for_menu_item)
13202 (make_menu_item, create_menus, xg_update_menu_item): Don't call
13203 ..._with_mnemonic functions for menu items.
13204
1f816871
KH
132052003-05-01 Kenichi Handa <handa@m17n.org>
13206
13207 * coding.c (coding_system_accept_latin_extra_p): Delete this
13208 function.
13209 (find_safe_codings): Pay attention to
13210 the property tranlsation-table-for-encode of each codings.
13211 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
13212
5ed6ba5b
SM
132132003-05-01 Stefan Monnier <monnier@cs.yale.edu>
13214
13215 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
13216
32c06229
SM
132172003-04-30 Stefan Monnier <monnier@cs.yale.edu>
13218
13219 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
13220
13221 * lisp.h (CHECK): Wrap args in parenthesis.
13222 (specbind): Fix doc: symbol = Qnil is not supported any more.
13223
13224 * bytecode.c (Fbyte_code) <unwind-protect>:
13225 Use Fprogn rather than 0 and Qnil.
13226
13227 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
13228 `double', and `triple' modifiers as well.
13229
ed3c3314
RS
132302003-04-30 Richard M. Stallman <rms@gnu.org>
13231
13232 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
13233
13234 * alloc.c (abort_on_gc): New variable.
13235 (Fgarbage_collect): Abort if abort_on_gc is set.
13236
13237 * lisp.h (abort_on_gc): Add decl.
13238
13239 * eval.c (Fsignal): Clear abort_on_gc.
13240
13241 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 13242 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
13243
13244 * xdisp.c (move_it_vertically_backward): Do the final big else
13245 even if nlines is 0.
13246
13247 * xdisp.c (redisplay_internal): Finish the per-frame loop
13248 even if redisplay is suspended by input.
13249
0b325c12
AC
132502003-04-24 Andrew Choi <akochoi@shaw.ca>
13251
13252 * macterm.c (x_list_fonts): Return all fonts that match if
13253 maxnames = -1.
13254
4e837cd0
KH
132552003-04-25 Kenichi Handa <handa@m17n.org>
13256
13257 * syntax.c (skip_chars): Fix previous change.
13258
9af7511a
KH
132592003-04-24 Kenichi Handa <handa@m17n.org>
13260
13261 * syntax.c (skip_chars): Make the code faster by using the common
13262 technique of *p, *stop, and *endp.
13263
e3b2c21f
JD
132642003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13265
13266 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 13267 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
13268 being updated.
13269
32c06229
SM
132702003-04-19 Stefan Monnier <monnier@cs.yale.edu>
13271
13272 * eval.c (Fapply): Undo last change and add a comment about why.
13273
c6464167
MB
132742003-04-18 Miles Bader <miles@gnu.org>
13275
13276 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
13277 pickier PARSE_MULTIBYTE_SEQ.
13278
e509f168
SM
132792003-04-17 Stefan Monnier <monnier@cs.yale.edu>
13280
13281 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
13282 Use XCDR, XCAR, CONSP.
13283 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
13284 (Fapply): Remove unnecessary GCPRO.
13285
13286 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
13287
13288 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
13289
13290 * buffer.h: Don't hardcode BEG==1.
13291
13292 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
13293
5ceea398
RS
132942003-04-16 Richard M. Stallman <rms@gnu.org>
13295
13296 * xdisp.c (try_window, try_window_reusing_current_matrix):
13297 When at end of window, set window_end_pos to Z-ZV.
13298
13299 * buffer.c (Foverlay_recenter): Doc fix.
13300
e509f168
SM
133012003-04-14 Stefan Monnier <monnier@cs.yale.edu>
13302
13303 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
13304
d243e605
AC
133052003-04-14 Andrew Choi <akochoi@shaw.ca>
13306
13307 * macterm.c (mac_check_for_quit_char): Don't check more often than
13308 once a second.
13309
6901b111
SM
133102003-04-11 Stefan Monnier <monnier@cs.yale.edu>
13311
13312 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
13313 specially, so that they can't hide an implicit switch-frame event.
13314 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
13315 (head_table): Use switch-frame as event_kind for select-window.
13316 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
13317
13318 * editfns.c (Fformat): Lisp_Object/int mixup.
13319 (format2): Remove unused var numargs.
13320
e301806f 133212003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 13322
6901b111 13323 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
13324 (Qafter_insert_file_set_coding): New variable.
13325 (syms_of_fileio): Initialize and staticpro it. Delete declaration
13326 for after-insert-file-adjust-coding-function.
13327 (Finsert_file_contents): Call Qafter_insert_file_set_coding
13328 instead of Vafter_insert_file_adjust_coding_function.
13329
38914424
KH
133302003-04-11 Kenichi Handa <handa@m17n.org>
13331
13332 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
13333
13334 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
13335 string. Callers changed.
13336
133372003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 13338
6901b111 13339 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 13340 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
13341 (Finsert_file_contents):
13342 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
13343 decode-format.
13344
f979dc05
JD
133452003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13346
13347 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
13348 get GtkAdjustment as widget now is a GtkRange.
13349
13350 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
13351 GtkRange to avoid memory leak.
13352
f8c6b4c2 133532003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 13354
50ebc53d
KH
13355 * xfaces.c (Vface_font_rescale_alist): New variable.
13356 (struct font_name): New member rescale_ratio.
13357 (font_rescale_ratio): New function.
6901b111 13358 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
13359 (better_font_p): On comparing point sized, pay attention to
13360 recale_ratio member of fonts.
13361 (build_scalable_font_name): Reflect font->rescale_ratio in the
13362 font name.
6901b111 13363 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 13364
cb98871c
KH
13365 * lread.c (read1): Before calling index, check if the 2nd
13366 arguemnt is in ASCII range.
13367
4773b8ca
RS
133682003-04-08 Richard M. Stallman <rms@gnu.org>
13369
b0ada147
RS
13370 * fileio.c (Ffile_symlink_p): Doc fix.
13371
13372 * editfns.c (Fformat): Translate positions of text properties
13373 in the format string to apply them to the result.
13374
4773b8ca
RS
13375 * fileio.c (Finsert_file_contents): Doc fix.
13376 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13377
133782003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 13379
4773b8ca
RS
13380 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
13381
e8f25745 133822003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 13383
e8f25745
ST
13384 * mac.c (init_mac_osx_environment): Switch libexec and bin so
13385 that self-contained application finds libexec files.
13386
f8c6b4c2 133872003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 13388
6901b111
SM
13389 * coding.c (code_convert_region_unwind):
13390 Set Vlast_coding_system_used to the argument.
2310d84c
KH
13391 (code_convert_region): If post-read-conversion function changed
13392 the value of last-coding-sytem, keep the new value in
13393 coding->symbol so that it won't be overridden.
13394 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
13395 (coding_system_accept_latin_extra_p): New function.
13396 (find_safe_codings): Pay attention to characters registered in
13397 latin-extra-code-table.
2310d84c 13398
39c9a034
TTN
133992003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
13400
13401 * Makefile.in (md5.o): Add missing dependency info.
13402
eb67c5d6
RS
134032003-04-06 Richard M. Stallman <rms@gnu.org>
13404
13405 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
13406
13407 * marker.c (verify_bytepos): New function.
13408
13409 * intervals.c (set_intervals_multibyte_1): When becoming
13410 multibyte, adjust right and left child sizes to a whole set of
13411 characters. If an interval gets zero total-length, delete it.
13412 If an interval consists of just its children, delete one of them.
13413
13414 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
13415 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 13416
52eb0373 13417 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
13418 All calls deleted.
13419 (lisp_malloc): Do the work here directly.
13420
b1f81fc5
JB
134212003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
13422
13423 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
13424 char tables.
13425
134262003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
13427
13428 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
13429 destructively change "%S" to "%s".
13430
774666fb
MB
134312003-04-03 Miles Bader <miles@gnu.org>
13432
13433 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
13434 always set.
13435
19c37f01
DL
134362003-04-01 Dave Love <fx@gnu.org>
13437
13438 * xfns.c (xpm_lookup_color): Grok "opaque".
13439
2f4b24c3
AC
134402003-03-31 Andrew Choi <akochoi@shaw.ca>
13441
13442 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
13443 parent window ID.
13444
13445 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
13446
13447 * macterm.h (struct mac_output): Define x_pixels_diff and
13448 y_pixels_diff.
b1f81fc5 13449
9443fcf6
JB
134502003-03-31 Juanma Barranquero <lektu@terra.es>
13451
13452 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
13453 blockinput.h and files included from it.
13454
e072891b
KS
134552003-03-31 Kim F. Storm <storm@cua.dk>
13456
13457 The following changes consolidates the common code related to
13458 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
13459 files into frame.c.
9443fcf6 13460
e072891b
KS
13461 * frame.c: Include blockinput.h.
13462 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
13463 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
13464 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
13465 related vars here.
13466 (struct frame_parm_table, frame_parms): New table for describing
13467 frame parameters and their associated Q-variable.
13468 The order of the parameters corresponds to the sequence of the
13469 frame_parm_handlers table in redisplay_interface.
13470 (x_fullscreen_move, x_set_frame_parameters)
13471 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
13472 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
13473 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13474 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
13475 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
13476 Generic functions for processing of frame parameters.
13477 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
13478 (display_x_get_resource, x_get_resource_string): Functions for
13479 generic access to X resources.
13480 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
13481 (x_default_parameter, Fx_parse_geometry): Functions for generic
13482 access to frame parameters.
6901b111
SM
13483 (x_figure_window_size): Generic calculation of frame size.
13484 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
13485 (syms_of_frame): Intern and staticpro frame parameter variables.
13486 Defvar_lisp Vx_resource_class and Vx_resource_name here.
13487 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 13488
e072891b
KS
13489 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
13490 parameter related vars defined in frame.c.
13491 (EMACS_CLASS): Define here.
13492 (enum FULLSCREEN_*): Define here.
13493 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
13494 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
13495 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
13496 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
13497 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
13498 (x_set_visibility, x_set_autoraise, x_set_autolower)
13499 (x_set_unsplittable, x_set_vertical_scroll_bars)
13500 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
13501 (x_figure_window_size): Add prototypes.
13502
13503 * dispextern.h (frame_parm_handler): New typedef.
13504 (struct redisplay_interface): New member frame_parm_handlers.
13505 (enum resource_types): Move declaration here.
13506 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
13507 (x_default_parameter): Add prototypes.
13508
13509 * window.c: Remove extern decl for frame parameter vars.
13510 (change_window_heights): New generic function;
13511 replaces x_change_window_heights. All users changed.
13512
13513 * window.h (change_window_heights): Add prototype.
13514
13515 * xfaces.c: Remove extern decl for frame parameter vars.
13516
13517 * xterm.h (EMACS_CLASS): Remove. Use generic define.
13518 (struct w32_display_info): Fix type of xrdb member.
13519 (enum FULLSCREEN_*): Remove.
13520 Remove prototypes for generic functions (in frame.h).
13521
13522 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13523 parameters now defined in frame.h and frame.c.
f63fd14e 13524 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
13525 (enum x_frame_parms): Remove (bogus, unused enum).
13526 (check_x_display_info): Make non-static (for frame.c).
13527 (struct x_frame_parm_table, x_frame_parms): Remove.
13528 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13529 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13530 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13531 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13532 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13533 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13534 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13535 Remove. Use generic functions instead.
13536 (enum resource_types): Remove.
13537 (x_set_scroll_bar_default_width): New global function (for frame.c).
13538 (Fx_create_frame): Depend on x_figure_window_size to add space for
13539 toolbar and setup size_hint_flags.
13540 (x_frame_parm_handlers): New table for redisplay_interface.
13541 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 13542
e072891b 13543 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 13544 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
13545 (x_redisplay_interface): Add x_frame_parm_handlers member.
13546
13547 * w32gui.h (XrmDatabase): New (dummy) typedef.
13548
13549 * w32term.h (EMACS_CLASS): Remove. Use generic define.
13550 (struct w32_display_info): Fix type of xrdb member.
13551 (enum FULLSCREEN_*): Remove.
13552 (x_fullscreen_adjust): Remove prototype.
13553
13554 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13555 parameters now defined in frame.h and frame.c.
f63fd14e 13556 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
13557 (enum x_frame_parms): Remove (bogus, unused enum).
13558 (check_x_display_info): Make non-static (for frame.c).
13559 (struct x_frame_parm_table, x_frame_parms): Remove.
13560 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13561 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13562 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13563 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13564 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13565 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13566 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13567 Remove. Use generic functions instead.
13568 (enum resource_types): Remove.
13569 (x_set_scroll_bar_default_width): New global function (for frame.c).
13570 (Fx_create_frame): Depend on x_figure_window_size to add space for
13571 toolbar and setup size_hint_flags.
13572 (w32_frame_parm_handlers): New table for redisplay_interface.
13573 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 13574
e072891b 13575 * w32term.c: Remove unnecessary extern declarations.
52eb0373 13576 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
13577 (x_redisplay_interface): Add w32_frame_parm_handlers member.
13578
13579 * w32reg.c (x_get_string_resource): Use XrmDatabase.
13580
13581 * macgui.h (XrmDatabase): New (dummy) typedef.
13582
13583 * macterm.h (EMACS_CLASS): Remove.
13584 (struct mac_display_info): Add xrdb member.
13585 (struct mac_output): Add want_fullscreen member.
13586
13587 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13588 parameters now defined in frame.h and frame.c.
f63fd14e 13589 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
13590 (check_x_display_info): Make non-static (for frame.c).
13591 (struct x_frame_parm_table, x_frame_parms): Remove.
13592 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13593 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13594 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13595 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13596 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13597 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13598 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13599 Remove. Use generic functions instead.
13600 (enum resource_types): Remove.
13601 (x_set_scroll_bar_default_width): New global function (for frame.c).
13602 (mac_frame_parm_handlers): New table for redisplay_interface.
13603 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 13604
e072891b
KS
13605 * macterm.c: Remove unnecessary extern declarations.
13606 (x_redisplay_interface): Add mac_frame_parm_handlers member.
13607
3e6a560b
KS
13608 * Makefile.in (frame.o): Add dependency on blockinput.h and files
13609 included from it (atimer.h and systime.h).
13610
7b7b454e
AS
136112003-03-30 Andreas Schwab <schwab@suse.de>
13612
13613 * xdisp.c (x_insert_glyphs): Fix swapped width and height
13614 parameters for shift_glyphs_for_insert.
13615
13616 * macterm.c (x_redisplay_interface): Add missing entry for
13617 draw_vertical_window_border.
13618
beb402de
KG
136192003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
13620
13621 * fileio.c (Fexpand_file_name): In the no-handler case, after
13622 expanding, look again for a handler and invoke it. This is needed
13623 for filenames like "/foo/../user@host:/bar/../baz" -- the first
13624 expansion produces "/user@host:/bar/../baz" which needs to be
13625 expanded again for the finame result "/user@host:/baz".
13626
b676f356
JD
136272003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13628
13629 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
13630 of area to be redrawn for better performance.
13631
3c671a56
SM
136322003-03-28 Stefan Monnier <monnier@cs.yale.edu>
13633
13634 * xterm.c (take_vertical_position_into_account): Remove.
13635 (xt_action_hook): Call set_vertical_scroll_bar if needed.
13636 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
13637 (xm_scroll_callback, x_create_toolkit_scroll_bar)
13638 (x_set_toolkit_scroll_bar_thumb): Simplify.
13639 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
13640 (XTread_socket): Remove unused var.
13641 (x_make_frame_invisible): Replace goto with else.
13642
13643 * xdisp.c (set_vertical_scroll_bar): New fun.
13644 (redisplay_window): Use it.
13645
84f2e615
RS
136462003-03-26 Richard M. Stallman <rms@gnu.org>
13647
13648 * xdisp.c (update_tool_bar): Recompute tool bar if
13649 update_mode_lines is set. Set w->update_mode_line
13650 only if the tool bar contents actually change.
13651 (update_menu_bar): Undo previous change.
13652
70b6104c
JD
136532003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13654
5fd6f727
JD
13655 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
13656 (xg_frame_set_char_size): Calculate scroll bar width before frame
13657 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
13658 (xg_separator_p): Check for all documented separator types.
13659 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
13660 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
13661
70b6104c
JD
13662 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
13663 so tool bar gets updated.
13664
d9b36d19
SM
136652003-03-26 Stefan Monnier <monnier@cs.yale.edu>
13666
13667 * data.c (store_symval_forwarding): Re-instate part of the code
13668 that was deleted with too much enthusiasm.
13669
136702003-03-25 Stefan Monnier <monnier@cs.yale.edu>
13671
13672 * data.c (store_symval_forwarding): Delete special read-only
13673 hack for type == -1, since we now use ->constant instead.
13674 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
13675
13676 * buffer.c (overlays_in): Declare static.
13677 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
13678 `constant' field rather than the variable's `type' field.
13679
365fa1b3
AC
136802003-03-24 Andrew Choi <akochoi@shaw.ca>
13681
13682 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
13683
13684 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
13685
13686 * fns.c [MAC_OSX]: Do not redefine vector.
13687
13688 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
13689
13690 * macgui.h: Remove definition of No_Cursor.
13691
d9b36d19 13692 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
13693
13694 * xdisp.c: Define No_Cursor.
13695 (x_write_glyphs, notice_overwritten_cursor)
13696 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
13697 (note_mouse_highlight): Remove Mac-specific code.
13698 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 13699
c0bcce6f
JPW
137002003-03-24 John Paul Wallington <jpw@gnu.org>
13701
13702 * xdisp.c (redisplay_window): If mini window's buffer is not
13703 empty, then redisplay it like other windows.
13704
a526b96c
KS
137052003-03-23 Kim F. Storm <storm@cua.dk>
13706
13707 * w32term.c (w32_draw_window_cursor): Fix last change.
13708
37ab321e
KH
137092003-03-23 Kenichi Handa <handa@m17n.org>
13710
a526b96c
KS
13711 * alloc.c (make_string_from_bytes, make_specified_string):
13712 Add `const' for the arg CONTENTS.
37ab321e
KH
13713
13714 * lisp.h (make_string_from_bytes, make_specified_string):
13715 Prototypes adjusted.
13716
7863d625
JD
137172003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13718
a526b96c 13719 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 13720
7863d625
JD
13721 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
13722 (XG_SB_RANGE): New define.
13723
13724 * gtkutil.c (xg_fixed_handle_expose): New function.
13725 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
13726 expose events.
13727 (xg_update_scrollbar_pos): Take two more arguments, left and width
13728 of scroll bar including borders.
13729 Clear left and right part outside scroll bar separately as some
13730 themes have bars that are not an even number of pixels.
d9b36d19 13731 Don't set reallocate_redraws, don't call
7863d625
JD
13732 gdk_window_process_all_updates.
13733 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
13734 so no need to change it. Calculate size and value with XG_SB_RANGE.
13735
d9b36d19
SM
13736 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
13737 Pass left and width of scroll bar including borders to
7863d625
JD
13738 xg_update_scrollbar_pos.
13739
af0ad939
TTN
137402003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
13741
13742 * Makefile.in: Make sure space precedes end-of-line backslashes.
13743
b22139fd
KS
137442003-03-22 Kim F. Storm <storm@cua.dk>
13745
13746 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
13747 Add generic versions here. Remove system specific versions
13748 defined elsewhere.
13749
13750 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
13751 Add prototypes.
13752
6e6410cf
KS
13753 * xterm.h (STORE_NATIVE_RECT): New macro.
13754
5c9cc435
KS
137552003-03-21 Kim F. Storm <storm@cua.dk>
13756
00c64fab
SM
13757 * xdisp.c (get_glyph_string_clip_rect):
13758 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
13759
13760 * dispextern.h (struct redisplay_interface): Add active_p
13761 argument to draw_window_cursor member. All uses changed.
13762
acd37560
KS
137632003-03-21 Kim F. Storm <storm@cua.dk>
13764
13765 The following changes consolidate code related to writing and
13766 inserting glyphs, exposing frame, the tool bar, the mouse face,
13767 the output cursor, and help echo from xterm.c, w32term.c and
13768 macterm.c into xdisp.c. It also generalizes the use of the
13769 window_part enum instead of using numeric values throughout.
af0ad939 13770
acd37560
KS
13771 * xdisp.c: Consolidate gui-independent code here.
13772 Include keymap.h.
13773 (Qhelp_echo): Import.
13774 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
13775 (help_echo_string, help_echo_window, help_echo_object)
13776 (previous_help_echo_string, help_echo_pos): Declare here.
13777 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
13778 (estimate_mode_line_height): Define here. Handle windowing
13779 systems directly (without using estimate_mode_line_height_hook).
13780 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
13781 (update_window_cursor, update_cursor_in_window_tree)
13782 (fast_find_position, fast_find_string_pos)
13783 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
13784 (expose_area, expose_line, expose_overlaps, expose_window)
13785 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
13786 declared static as they are only used locally in xdisp.c.
13787 (draw_glyphs): Rename from x_draw_glyphs and make static.
13788 (tool_bar_item_info, notice_overwritten_cursor): Make static.
13789 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13790 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 13791 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
13792 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
13793 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
13794 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
13795 (note_mouse_highlight, x_clear_window_mouse_face)
13796 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
13797 (x_intersect_rectangles): New generic functions for use by xdisp.c
13798 and GUI front-ends.
13799 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
13800 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
13801
13802 * dispextern.h (Display_Info): Generic typedef for *_display_info.
13803 (NativeRectangle): Generic typedef for rectangle type.
13804 (enum window_part): Move here from window.c.
13805 (struct redisplay_interface): New members flush_display_optional,
13806 define_frame_cursor, clear_frame_area, draw_window_cursor,
13807 draw_vertical_window_border, shift_glyphs_for_insert.
13808 Rename member clear_mouse_face to clear_window_mouse_face.
13809 (estimate_mode_line_height_hook): Remove hook.
13810 (auto_raise_tool_bar_buttons_p): Don't declare extern.
13811 (tool_bar_item_info): Remove prototype.
13812 (help_echo_string, help_echo_window, help_echo_object)
13813 (previous_help_echo_string, help_echo_pos)
13814 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
13815 (x_stretch_cursor_p, output_cursor): Declare extern.
13816 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
13817 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
13818 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
13819 (display_and_set_cursor, set_output_cursor, x_cursor_to)
13820 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
13821 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13822 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
13823 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
13824 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
13825 Add prototypes.
13826 (mode_line_string, marginal_area_string): Fix prototypes.
13827
13828 * window.c (enum window_part): Move to dispextern.h.
13829 (coordinates_in_window): Use enum window_part member names
13830 instead of numbers to describe return value.
13831 (struct check_window_data): Change part member to window_part.
13832 (check_window_containing): Return window_part unaltered.
13833 (window_from_coordinates): Change part arg from int to enum
13834 window_part. Allow part arg to be null. All users changed.
13835
13836 * window.h (window_from_coordinates): Fix prototype.
13837
13838 * term.c (estimate_mode_line_height): Move to xdisp.c.
13839
13840 * keyboard.c (make_lispy_event): Use enum window_part.
13841
13842 * dispnew.c (mode_line_string, marginal_area_string): Use enum
13843 window_part instead of int in arg list. Users changed.
13844
13845 * xterm.h (No_Cursor): Declare as None for X.
13846 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 13847
acd37560
KS
13848 * xterm.c: Remove consolidated defines and code.
13849 (BETWEEN): Remove unused macro.
13850 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
13851 (x_define_frame_cursor, x_clear_frame_area)
13852 (x_draw_window_cursor): New X-specific functions for RIF.
13853 (x_redisplay_interface): Add new members.
13854
13855 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
13856
13857 * w32term.h (struct w32_output): Remove cross_cursor member.
13858
13859 * w32term.c: Remove consolidated defines and code.
13860 (BETWEEN): Remove unused macro.
13861 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
13862 (w32_define_frame_cursor, w32_clear_frame_area)
13863 (w32_draw_window_cursor): New W32-specific functions for RIF.
13864 (w32_redisplay_interface): Add new members.
13865
a64387ee 13866 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
13867 (XRectangle): Add X compatible rectangle type.
13868 (NativeRectangle): Declare as RECT for W32.
13869 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
13870
13871 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
13872
13873 * w32console.c: Remove consolidated defines and code.
af0ad939 13874
acd37560
KS
13875 * msdos.h (Display_Info): Add generic typedef.
13876
13877 * msdos.c: Remove consolidated defines and code.
13878 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
13879
13880 * macterm.h (struct mac_output): Replace member cross_cursor by
13881 hand_cursor.
13882 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
13883
13884 * macterm.c: Remove consolidated defines and code.
13885 (BETWEEN): Remove unused macro.
13886 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
13887 (mac_define_frame_cursor, mac_clear_frame_area)
13888 (mac_draw_window_cursor): New Mac-specific functions for RIF.
13889 (x_redisplay_interface): Add new members.
13890
13891 * macgui.h (No_Cursor): Define as 0 for Mac.
13892 (XRectangle): Add X compatible rectangle type.
13893 (NativeRectangle): Declare as Rect for Mac.
13894 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
13895
204ccab1
KS
13896 * macfns.c (x_set_mouse_color): Setup hand_cursor.
13897 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 13898
9443fcf6 13899 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
13900 included from it. Add dependency on keymap.h.
13901
13902 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
13903
8ba01a70 139042003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
13905
13906 * fileio.c (Fexpand_file_name): Fix previous change.
13907
8ba01a70 139082003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
13909
13910 * fileio.c (Ffile_name_directory): Reconstruct file name by
13911 make_specified_string.
13912 (Ffile_name_nondirectory, Ffile_name_as_directory)
13913 (Fdirectory_file_name, Fexpand_file_name)
13914 (Fsubstitute_in_file_name): Likewise.
13915 (Fread_file_name): Compare decoded homedir with DIR and
13916 DEFAULT_FILENAME.
13917
13918 * alloc.c (make_specified_string): If NCHARS is negative, count
13919 the number of characters.
13920
19536747
JD
139212003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13922
de38ae5a
JD
13923 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
13924 all widgets.
13925
19536747
JD
13926 * gtkutil.h: Removed xg_ignore_next_thumb.
13927
37ab321e 139282003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
13929
13930 * coding.c (Vchar_coding_system_table): Remove this variable.
13931 (Vcoding_system_safe_chars): New variable.
13932 (intersection): Remove this function.
13933 (find_safe_codings): Don't use Vchar_coding_system_table, but try
13934 all codings in SAFE_CODINGS.
00c64fab 13935 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
13936 find_safe_codings. Get generic coding systems from
13937 Vcoding_system_safe_chars.
13938 (Fdefine_coding_system_internal): New function.
13939 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
13940 Initialize and staticpro Vcoding_system_safe_chars.
13941
17097258
JD
139422003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13943
2a2071c3
JD
13944 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
13945 equal old values before updating.
13946
17097258
JD
13947 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
13948
13949 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
13950
139512003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13952
13953 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
13954 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
13955 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
13956 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
13957 (xg_create_scroll_bar): Pass bar to button event callback.
13958 (xg_find_top_left_in_fixed): New function.
13959 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
13960 whole scroll bar area. Get old position with
13961 xg_find_top_left_in_fixed, calculate and only clear needed areas.
13962 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
13963 dragging is in progress. Calculate whole as for Motif.
13964 Remove code that saved last values. Call gtk_range functions to
13965 set scroll bar sizes.
13966
13967 * gtkutil.h: Removed xg_ignore_next_thumb.
13968
8cb9dfbf
JB
139692003-03-17 Juanma Barranquero <lektu@terra.es>
13970
13971 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
13972 and files included from it.
13973
00c64fab
SM
139742003-03-18 Stefan Monnier <monnier@cs.yale.edu>
13975
13976 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
13977 multiple occurrences of the same keymap under different prefixes.
13978 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
13979
c45bb3b2
JR
139802003-03-16 Jason Rumney <jasonr@gnu.org>
13981
13982 * w32gui.h: Use HDC for Display.
13983
13984 * w32term.c (w32_encode_char): Prevent double-byte chars from
13985 crashing Emacs.
13986
13987 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
13988 as binary.
13989
2a6d0874
JB
139902003-03-16 Juanma Barranquero <lektu@terra.es>
13991
13992 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
13993
03eb5fab
KS
139942003-03-16 Kim F. Storm <storm@cua.dk>
13995
13996 The following changes consolidate some of the gui-independent
13997 parts of the processing and drawing of "glyph strings" from
13998 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 13999
03eb5fab
KS
14000 * dispextern.h (struct glyph): Reduce face_id member from 22 to
14001 21 bits (this reduces number of faces from 4M to 2M).
14002 Replace W32 specific w32_font_type member (2 bits) by generic
14003 font_type member (3 bits) for portability.
14004 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
14005 (enum draw_glyphs_face): Define here.
14006 (struct glyph_string): Define here. Merge W32 and X versions.
14007 (struct redisplay_interface): New members per_char_metric,
14008 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
14009 (VCENTER_BASELINE_OFFSET): Define here.
14010 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
14011 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
14012
14013 * xdisp.c: Consolidate gui-independent "glyph string" code here.
14014 (dump_glyph_string): Moved here.
14015 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
14016 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
14017 (fill_composite_glyph_string, fill_glyph_string)
14018 (fill_image_glyph_string, fill_stretch_glyph_string)
14019 (left_overwritten, left_overwriting, right_overwritten)
14020 (right_overwriting, get_char_face_and_encoding)
14021 (set_glyph_string_background_width, compute_overhangs_and_x)
14022 (append_glyph, append_composite_glyph, produce_image_glyph)
14023 (take_vertical_position_into_account, append_stretch_glyph)
14024 (produce_stretch_glyph): New generic functions (based on X version).
14025 Call platform specific functions through rif.
14026 (INIT_GLYPH_STRING): New macro, hides W32 details.
14027 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
14028 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
14029 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
14030 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
14031 (notice_overwritten_cursor):
14032 Generic functions exported to platform modules. Users changed.
14033
14034 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
14035 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
14036 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 14037 New macros for consolidated code.
2a6d0874 14038
03eb5fab
KS
14039 * xterm.c: Remove consolidated defines and code.
14040 (x_per_char_metric, x_encode_char)
14041 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
14042 (x_redisplay_interface): Add new members.
14043
14044 * w32gui.h (Display): Add dummy typedef for consolidation.
14045 (XChar2b): Define alias for wchar_t for consolidation.
14046 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
14047
14048 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 14049 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
14050 New macros for consolidation.
14051
fad49844 14052 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
14053 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
14054 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
14055 (w32_per_char_metric): Change font_type arg to int for RIF.
14056 (w32_encode_char): Return int according to RIF requirements.
14057 (w32_compute_glyph_string_overhangs): Adapt to RIF.
14058 (w32_get_glyph_overhangs): New function for RIF. Uses generic
14059 x_get_glyph_overhangs.
14060 (w32_redisplay_interface): Add new members.
14061
14062 * macgui.h (XChar2b): Move typedef here for consolidation.
14063 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
14064
14065 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
14066 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
14067 consolidation.
14068
14069 * macterm.c: Remove consolidated defines and code.
14070 (mac_per_char_metric): New function for RIF.
00c64fab 14071 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
14072 (mac_compute_glyph_string_overhangs): Adapt for RIF.
14073 (x_redisplay_interface): Add new members.
14074
00c64fab
SM
140752003-03-15 Stefan Monnier <monnier@cs.yale.edu>
14076
14077 * keymap.c (Vmenu_events): New var.
14078 (syms_of_keymap): Initialize it.
14079 (where_is_internal): Check more carefully what is a menu event.
14080
225c7a07
RS
140812003-03-14 Richard M. Stallman <rms@gnu.org>
14082
14083 * lread.c (read1): After #!, exit loop on eof.
14084
cea9be54
JD
140852003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14086
9ea0e54d
JD
14087 * gtkutil.h: Add declaration for xg_frame_cleared.
14088
0cb35f4e
JD
14089 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
14090
cea9be54
JD
14091 * gtkutil.c (struct xg_last_sb_pos): New structure.
14092 (handle_fixed_child): New function.
14093 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
14094 and force a redraw on them.
14095 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
14096 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
14097 so we can avoid unneeded redraws.
14098 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
14099 and force a redraw on the scroll bar.
14100 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
14101 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 14102 (xg_frame_cleared): New function.
cea9be54 14103
20b853f3
KH
141042003-03-13 Kenichi Handa <handa@m17n.org>
14105
14106 * coding.c (Fdetect_coding_region): Fix docstring.
14107 (Fdetect_coding_string): Fix docstring.
14108
7a555aff
AS
141092003-03-13 Andreas Schwab <schwab@suse.de>
14110
25cc0080
AS
14111 * gtkutil.c: Add prototype for create_menus.
14112
30225431
AS
14113 * data.c (long_to_cons): Fix type of top.
14114
14115 * xselect.c (selection_data_to_lisp_data): Use int instead of
14116 long for an integer of size 4.
14117
7a555aff 14118 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 14119 (xg_tool_bar_help_callback): Likewise.
7a555aff 14120
a3e4741f
AS
141212003-03-12 Andreas Schwab <schwab@suse.de>
14122
14123 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
14124
9668be7c
KS
141252003-03-12 Kim F. Storm <storm@cua.dk>
14126
03eb5fab 14127 The following changes consolidate the fringe handling from
9668be7c 14128 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 14129
9668be7c
KS
14130 * xdisp.c: Consolidate fringe handling code here.
14131 (left_bits, right_bits, continued_bits, continuation_bits)
14132 (ov_bits, zv_bits): Define fringe bitmaps.
14133 (fringe_bitmaps): New array holding fringe bitmaps.
14134 (draw_fringe_bitmap): Draw a specific bitmap; call display
14135 specific drawing routine via rif->draw_fringe_bitmap.
14136 (draw_row_fringe_bitmaps): Generic replacement for
14137 x_draw_row_fringe_bitmaps; all callers changed.
14138 (compute_fringe_widths): Generic replacement for
14139 x_compute_fringe_widths; all callers changed.
14140
14141 * dispextern.h (enum fringe_bitmap_type): Define here.
14142 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
14143 (fringe_bitmaps): Declare extern.
14144 (struct redisplay_interface): New member draw_fringe_bitmap.
14145 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
14146
14147 * xterm.c: Remove generic fringe code.
14148 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14149 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14150
14151 * w32term.c: Remove generic fringe code.
14152 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
14153 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 14154
9668be7c
KS
14155 * macterm.c: Remove generic fringe code.
14156 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14157 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14158
00a88f32
SM
141592003-03-11 Stefan Monnier <monnier@cs.yale.edu>
14160
14161 * print.c (Fprin1_to_string): Return unibyte string if possible.
14162
1d1de695
DK
141632003-03-09 David Kastrup <dak@gnu.org>
14164
14165 * process.c (read_process_output): We have allocated enough space
14166 for readmax and carryover, so actually use the alloted space.
14167
257f40f2
JD
141682003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14169
14170 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
14171 toolkit scrollbar click.
14172
14173 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
14174 for USE_GTK.
14175 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
14176 also.
1d1c7e75 14177 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 14178 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 14179
78819ebb 14180 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
14181
14182 * gtkutil.c (xg_get_scroll_id_for_window): New function.
14183 (xg_tool_bar_item_expose_callback): New function.
14184 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
14185 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
14186 on the tool bar widget.
14187 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
14188 to expose on the tool bar item widgets.
14189
15213141
JD
141902003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14191
26b74a0b 14192 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 14193 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
14194 deleted from the image cache).
14195
15213141
JD
14196 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
14197 the event isn't for a frame (i.e. for dialogs).
14198
20b853f3 141992003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
14200
14201 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
14202 composition components reaches the limit, terminate composing.
14203 (COMPOSITION_OK): New macro.
00a88f32 14204 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
14205 composition is found.
14206 (coding_restore_composition): Adjust the number of composition
14207 components if it is not sane.
14208
c9029fe5
JB
142092003-03-06 Juanma Barranquero <lektu@terra.es>
14210
14211 * w32term.h (struct w32_display_info): Add xrdb member to support
14212 passing resources via -xrm on Windows.
14213
14214 * w32term.c (w32_make_rdb): New function.
14215 (w32_term_init): Use it to initialize xrdb member of w32_display_info
14216 struct. Delete leftover code.
14217
14218 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
14219 for resources passed on the command line.
14220
14221 * w32reg.c (w32_get_rdb_resource): New function.
14222 (x_get_string_resource): Use it, so resources passed with -xrm
14223 supercede the ones in the registry.
14224
9d00001f
JD
142252003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14226
14227 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
14228 instead of x_top_window_to_frame.
14229
ca2417b9
JD
142302003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14231
14232 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
14233 when restarting Emacs.
14234
5b20caf0
RS
142352003-03-03 Richard M. Stallman <rms@gnu.org>
14236
14237 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
14238 to run kill-buffer-query-functions.
14239 (Qkill_buffer_query_functions): New var.
14240 (syms_of_buffer): Init and staticpro it.
14241
58e91b77
JD
142422003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14243
14244 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
14245
932357b4
KS
142462003-02-25 Kim F. Storm <storm@cua.dk>
14247
14248 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
14249 If centering point failed to make whole line visible and vscroll
14250 is non-zero, disable vscroll and try centering point again.
14251
14252 * lread.c (read1): Accept `single space' syntax like (? x).
14253
bb8db7e1
JD
142542003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14255
14256 * keyboard.c (cancel_hourglass_unwind): Surround with
14257 #ifdef HAVE_X_WINDOWS
14258
47d77aab
KH
142592003-02-25 Kenichi Handa <handa@m17n.org>
14260
14261 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
14262 process only when "subprocesses" is defined.
14263
6a097c0c
SM
142642003-02-24 Stefan Monnier <monnier@cs.yale.edu>
14265
14266 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
14267
0b063c27
JB
142682003-02-24 Juanma Barranquero <lektu@terra.es>
14269
d1135afc
JB
14270 * callint.c (fix_command): Declare as static void and move before
14271 Fcall_interactively.
14272
0b063c27
JB
14273 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
14274 (syms_of_xdisp): Don't initialize Qwhen.
14275
0af912f0
JD
142762003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14277
14278 * keyboard.c (cancel_hourglass_unwind): New function.
14279 (command_loop_1): Cancel hourglass with unwind-protect.
14280
120d0a23
RS
142812003-02-23 Richard M. Stallman <rms@gnu.org>
14282
14283 * callint.c (fix_command): New subroutine, from Fcall_interactively.
14284 Detect (when ... (region-beginning)) etc.
14285 (Fcall_interactively): Call fix_command.
14286 (Qif, Qwhen): New variables.
14287 (syms_of_callint): Init and staticpro them.
0b063c27 14288
120d0a23
RS
14289 * regex.c (print_partial_compiled_pattern): Output to stderr.
14290
4ece81a6
KG
142912003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
14292
14293 * dired.c (directory_files_internal): Don't expand directory.
14294 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
14295 instead. From Lars Hansen <larsh@math.ku.dk>.
14296
e52bd6b7
SM
142972003-02-22 Stefan Monnier <monnier@cs.yale.edu>
14298
14299 * fns.c (string_to_multibyte): Remove unused var i.
14300 (Flanginfo): Fix int/Lisp_Object mixup.
14301 (void_call2): New fun.
14302 (Fmap_char_table): Use it in place of call2.
14303
14304 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
14305
14306 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
14307
14308 * keymap.c (copy_keymap_1): Make it static.
14309
14310 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
14311
c33ef7c4
JB
143122003-02-22 David Ponce <david@dponce.com>
14313
14314 * lread.c (Fload): Don't check STRING_MULTIBYTE.
14315
16782258
JD
143162003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14317
14318 * process.h: Removed subtty field from struct Lisp_Process.
14319
14320 * process.c (create_process): Remove setting of subtty.
14321 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
14322 (Fprocess_running_child_p, process_send_signal):
14323 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
14324 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
14325
3abeca61
KG
143262003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
14327
14328 * keymap.c (Fdefine_key): Doc fix.
14329
92a8ce63
JB
143302003-02-21 Juanma Barranquero <lektu@terra.es>
14331
14332 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
14333
14334 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
14335 POLLING_PROBLEM_IN_SELECT.
14336
14337 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
14338 Delete #undef of POLLING_PROBLEM_IN_SELECT.
14339
14340 * s/hpux10-20.h: New file.
14341
e52bd6b7
SM
14342 * process.c (wait_reading_process_input):
14343 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 14344
20f1ef2e
KH
143452003-02-20 Kenichi Handa <handa@m17n.org>
14346
32d0a9dc
KH
14347 * fontset.c (check_fontset_name): If NAME is nil, return the
14348 default fontset.
14349 (override_font_info): New function.
e52bd6b7 14350 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
14351 (Ffontset_info): If FONTSET is not the default fontset, merge
14352 FONTSET onto the copy of the default fontset, and work on that
14353 copy. Document that NAME nil means the default fontset.
14354 (Ffontset_font): Document that NAME nil means the default fontset.
14355
20f1ef2e
KH
14356 * process.c (setup_process_coding_systems): If the process's
14357 in/out descriptor is -1, do nothing.
14358
77d1daf2
AS
143592003-02-19 Andreas Schwab <schwab@suse.de>
14360
e52bd6b7
SM
14361 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
14362 Add prototypes.
77d1daf2 14363
f9a45bb3
KH
143642003-02-19 Kenichi Handa <handa@m17n.org>
14365
14366 * xfaces.c (try_alternative_families): Try all scalable fonts if
14367 Vscalable_fonts_allowed is not Qt.
14368
72ecb43c
JD
143692003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14370
14371 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
14372
ee5be7c3
JD
143732003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14374
14375 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
14376 names.
14377
14378 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 14379 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
14380 x_face_list_fonts.
14381 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
14382 (Fx_list_fonts): Set maxnames to -1 to get all font names.
14383
4cd519a7
KS
143842003-02-18 Kim F. Storm <storm@cua.dk>
14385
068f9882
KS
14386 * lread.c (read1): Fix last change.
14387 "`" is not always special. Allow "?" after a character constant.
4cd519a7 14388
7290a344
AC
143892003-02-18 Andrew Choi <akochoi@shaw.ca>
14390
14391 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
14392
1f7fa69b
AS
143932003-02-18 Andreas Schwab <schwab@suse.de>
14394
14395 * window.c (window_scroll_pixel_based): Move outside a
14396 multi-glyph character before setting new window start.
14397
14398 * xdisp.c (in_display_vector_p): New function.
14399 * dispextern.h (in_display_vector_p): Declare.
14400
23e21195
KS
144012003-02-18 Kim F. Storm <storm@cua.dk>
14402
14403 * lread.c (read1): Fix and relax read syntax.
14404 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
14405 Only recognize "," after dotted-pair dot if inside backquote.
14406 Never include "`" or "," (inside backquote) in a symbol.
14407 Allow dotted-pair dot after a character constant.
14408 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 14409
f098b121
JD
144102003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14411
14412 * gtkutil.c (xg_tool_bar_expose_callback): New function.
14413 (xg_create_tool_bar): Force style of tool bar to be horizontal with
14414 icons. Set name of tool bar to emacs-toolbar.
14415 (update_frame_tool_bar): Connect expose event to
14416 xg_tool_bar_expose_callback.
14417
63020c46
RS
144182003-02-17 Richard M. Stallman <rms@gnu.org>
14419
14420 * keyboard.c (this_command_key_count_reset): New variable.
14421 Initiatize to 0 where this_command_key_count is set.
14422 (read_char): Save and restore this_command_key_count_reset
14423 around input method code.
14424 (read_char): If this_command_key_count_reset, echo reread commands.
14425 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
14426
fb4452cc
KH
144272003-02-17 Kenichi Handa <handa@m17n.org>
14428
14429 * fns.c (string_to_multibyte): Always return a multibyte string.
14430
bd11cc09
JR
144312003-02-16 Jason Rumney <jasonr@gnu.org>
14432
e52bd6b7
SM
14433 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
14434 Negative max_fonts parameter means list all.
bd11cc09 14435
4cdf4bde
DL
144362003-02-14 Dave Love <fx@gnu.org>
14437
14438 * fns.c (Flanginfo): Doc fix.
14439
023b93f6
KS
144402003-02-13 Kim F. Storm <storm@cua.dk>
14441
37cd4238
KS
14442 * lread.c (read_escape): Interpret \s as a SPACE character, except
14443 for \s-X in a character constant which still is the super modifier.
14444 (read1): Signal an `invalid read syntax' error if a character
14445 constant is immediately followed by a digit or symbol character.
14446
140a6b7e
KS
14447 * search.c (Fmatch_data): Doc fix. Explicitly state that
14448 match-data is undefined if last search failed.
14449
3419757d 14450 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
14451 All uses changed.
14452
7d5c86e5
JB
144532003-02-12 Juanma Barranquero <lektu@terra.es>
14454
14455 * eval.c (Fdefmacro): Fix typo.
14456
295fff2c
KS
144572003-02-12 Kim F. Storm <storm@cua.dk>
14458
14459 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
14460 macro is a string, convert meta modifiers in string when copying
14461 the string into a vector.
14462
60f3202d
KS
144632003-02-11 Kim F. Storm <storm@cua.dk>
14464
14465 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
14466
61cb0b53
KH
144672003-02-11 Kenichi Handa <handa@m17n.org>
14468
14469 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
14470
7392e23c
KS
144712003-02-10 Kim F. Storm <storm@cua.dk>
14472
14473 * process.c: Doc fixes.
14474 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
14475
ce4254bd
KH
144762003-02-10 Kenichi Handa <handa@m17n.org>
14477
9c7a329a
KH
14478 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
14479
ce4254bd
KH
14480 * process.c (QCfilter_multibyte): New variable.
14481 (setup_process_coding_systems): New function.
e52bd6b7
SM
14482 (Fset_process_buffer, Fset_process_filter):
14483 Call setup_process_coding_systems.
ce4254bd
KH
14484 (Fstart_process): Initialize the member `filter_multibyte' of
14485 struct Lisp_Process.
14486 (create_process): Call setup_process_coding_systems.
14487 (Fmake_network_process): New keyward `:filter-multibyte'.
14488 Initialize the member `filter_multibyte' of struct Lisp_Process.
14489 Call setup_process_coding_systems.
14490 (server_accept_connection): Call setup_process_coding_systems.
14491 (read_process_output): If the process has a filter, decide the
14492 multibyteness of a string to given to the filter by
14493 `filter_multibyte' member of the process. If the process doesn't
14494 have a filter and the result of conversion is unibyte, use
14495 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
14496 multibyte form.
14497 (Fset_process_coding_system): Call setup_process_coding_systems.
14498 (Fset_process_filter_multibyte): New function.
14499 (Fprocess_filter_multibyte_p): New function.
14500 (syms_of_process): Intern and staticpro QCfilter_multibyte.
14501 Defsubr Sset_process_filter_multibyte and
14502 Sprocess_filter_multibyte_p.
14503
14504 * process.h (struct Lisp_Process): New member filter_multibyte.
14505
14506 * lisp.h (setup_process_coding_systems): Add prototype.
14507
14508 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
14509 process, update coding systems for the process.
14510
b08d5f59
KH
145112003-02-09 Kenichi Handa <handa@m17n.org>
14512
14513 * fns.c (string_to_multibyte): New function.
14514 (Fstring_to_multibyte): New function.
14515 (syms_of_fns): Defsubr it.
14516
0dfd93c0
AS
145172003-02-08 Andreas Schwab <schwab@suse.de>
14518
14519 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
14520 instead of the substitution.
14521
7b76ca1c
JD
145222003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14523
14524 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
14525
14526 * xmenu.c (menu_position_func): Adjust menu popup position so that
14527 the menu is fully visible.
7b76ca1c 14528
2436a4e4
JD
145292003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14530
14531 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
14532 (x_make_frame_invisible, x_wm_set_icon_position):
14533 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
14534
14535 * xfns.c (x_set_name, x_set_title): Ditto.
14536
37d1e680
RS
145372003-02-04 Richard M. Stallman <rms@gnu.org>
14538
14539 * keyboard.c (echo_now): Update before_command_echo_length.
14540 (Freset_this_command_lengths): Reset this_command_key_count etc.
14541 immediately rather than arranging to do it later.
14542 (before_command_key_count_1, before_command_echo_length_1)
14543 (before_command_restore_flag): Vars deleted.
14544 (add_command_key): Don't handle before_command_restore_flag.
14545 (read_char, record_menu_key): Don't update before_command_key_count or
14546 before_command_echo_length.
14547 (read_char): Don't handle before_command_restore_flag.
14548
14549 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
14550 in direct-output clauses if it wouldn't be called in the ordinary case.
14551
578846a3
KS
145522003-02-04 Kim F. Storm <storm@cua.dk>
14553
14554 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
14555
49853a4d
JD
145562003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14557
14558 * gtkutil.c (remove_from_container): Copying list is not needed.
14559 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
14560 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
14561 on list returned from gtk_container_get_children to avoid memory leak.
14562
8b53dc06
JR
145632003-02-01 Jason Rumney <jasonr@gnu.org>
14564
5d54d177
JR
14565 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
14566 local malloc.
14567 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
14568 definitions in xpm.h.
14569 (init_xpm_functions): New function.
f63fd14e 14570 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
14571 (init_external_image_libraries): Try to load libXpm.dll.
14572
8b53dc06
JR
14573 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
14574 timestamp.
14575
b222e415
DL
145762003-01-31 Dave Love <fx@gnu.org>
14577
14578 * syntax.c (Fskip_chars_forward)
14579 (open-paren-in-column-0-is-defun-start): Doc fix.
14580
c60ee5e7
JB
145812003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
14582
14583 * fileio.c: Support // at start of name for Cygwin (just added proper
14584 preprocessor tests).
14585
14586 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
14587
14588 * Makefile.in: Use @EXEEXT@ for Cygwin.
14589
14590 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
14591
14592 * s/cygwin.h: Added for Cygwin port.
14593
53b37591
JB
145942003-01-31 Juanma Barranquero <lektu@terra.es>
14595
14596 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
14597 when including gif_lib.h.
fe929957 14598 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
14599 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
14600 Windows. Disable color table lookups. Call library functions
53b37591 14601 through pointers determined at runtime.
fe929957
JB
14602 (init_external_image_libraries): Try to load libungif.dll and
14603 libtiff.dll.
53b37591 14604
45415a8f
KH
146052003-01-31 Kenichi Handa <handa@m17n.org>
14606
14607 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 14608 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 14609
a97e4138
JD
146102003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14611
e52bd6b7 14612 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 14613
6eed9bed
DL
146142003-01-30 Dave Love <fx@gnu.org>
14615
14616 * alloc.c (Vgc_elapsed, gcs_done): New variables.
14617 (Fgarbage_collect): Use them.
14618 (init_alloc, syms_of_alloc): Set them up.
14619
100dcd40
JB
146202003-01-30 Juanma Barranquero <lektu@terra.es>
14621
14622 * w32fns.c (init_external_image_libraries): Add missing operator.
14623
fbd852af
JR
146242003-01-29 Jason Rumney <jasonr@gnu.org>
14625
14626 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
14627 an alternative name for jpeg.dll.
14628
8a2d8020
KH
146292003-01-29 Kenichi Handa <handa@m17n.org>
14630
14631 * xdisp.c (set_cursor_from_row): Pay attention to string display
14632 properties.
14633
058c18c7
AC
146342003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
14635
14636 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
14637 <escape>.
14638 (keycode_to_xkeysym_table): Reformat and add more comments.
14639 (XTread_socket): Drop special case for backspace.
14640
385f11cf
AC
146412003-01-28 Andrew Choi <akochoi@shaw.ca>
14642
14643 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
14644 values in old-style RGB specs.
14645
c922a224
JB
146462003-01-27 Juanma Barranquero <lektu@terra.es>
14647
14648 * w32fns.c (init_external_image_libraries): Try alternate names for the
14649 jpeg dll.
14650
0a1d6de0
JD
146512003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14652
14653 * gtkutil.c (create_dialog, xg_separator_p)
14654 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
14655 before calling strcmp or strlen.
14656
a97e4138 146572003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
14658
14659 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
14660 and handle image load failure.
14661
28908312
JR
146622003-01-26 Jason Rumney <jasonr@gnu.org>
14663
14664 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
14665 New functions.
f63fd14e
JB
14666 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
14667 Disable color table lookups. Call jpeg library functions
28908312
JR
14668 through pointers determined at runtime.
14669 (init_external_image_libraries): Try to load jpeg.dll.
14670
84e47416
RS
146712003-01-25 Richard M. Stallman <rms@gnu.org>
14672
14673 * lisp.h: Declare format2 instead of format1.
14674
14675 * fileio.c (barf_or_query_if_file_exists):
14676 Call format2 instead of format1.
14677
14678 * editfns.c (format2): New function, replaces format1
14679 but takes exactly two Lisp Objects as format args.
14680
14681 * buffer.c (Fkill_buffer): Call format2 instead of format1.
14682
a97e4138 146832003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
14684
14685 * xterm.h: Change to return value of x_dispatch_event to int.
14686
14687 * xterm.c (x_filter_event): New function.
14688 (event_handler_gdk, XTread_socket): Call x_filter_event.
14689 (x_dispatch_event): Change to return value of finish.
14690 (event_handler_gdk): Use return value from x_dispatch_event.
14691
14692 * xfns.c (x_window): Call create_frame_xic for GTK version to
14693 initialize input methods.
14694
14695 * gtkutil.h: Add (void) prototypes.
14696
14697 * gtkutil.c (create_menus): Remove code that puts the help menu to
14698 the right.
14699
54eefef1
JR
147002003-01-25 Jason Rumney <jasonr@gnu.org>
14701
14702 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
14703 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
14704 (png_load): Adjust colors for Windows. Use Windows
14705 bitmaps. Disable color table lookups.
c262430d
JR
14706 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
14707 (init_png_functions): New function.
14708 (png_read_from_memory, png_load): Call png library functions
14709 through pointers determined at runtime.
14710 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
14711 (init_external_image_libraries): New function.
14712 (init_xfns): Call it.
54eefef1 14713
1a9e275b
AS
147142003-01-24 Andreas Schwab <schwab@suse.de>
14715
14716 * minibuf.c (Fminibuffer_message): Verify type of parameter.
14717
a97e4138 147182003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
14719
14720 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
14721 of static initializer.
14722
422eec7e
DL
147232003-01-24 Dave Love <fx@gnu.org>
14724
14725 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
14726 architectures.
14727
14728 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
14729 Use __alignof__.
14730
2a026b04
KH
147312003-01-24 Kenichi Handa <handa@m17n.org>
14732
14733 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 14734 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
14735 (command_loop_1): Call adjust_point_for_property with proper
14736 second arg.
14737
a18bb28d
JR
147382003-01-22 Jason Rumney <jasonr@gnu.org>
14739
14740 Sync changes with xterm.c and xfns.c.
14741
14742 * w32term.c (x_draw_glyph_string_foreground)
14743 (x_draw_composite_glyph_string_foreground): Implement overstriking.
14744
14745 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
14746 phys_cursor's hpos is overwritten. This is still not completely
14747 correct, as it doesn't really make sense to use hpos at all to
14748 get the cursor glyph (as that is relative to the width of the
14749 characters on the line, which may have changed during the update).
14750
14751 * w32term.c (notice_overwritten_cursor): Handle the special case
14752 of the cursor being in the first blank non-text line at the
14753 end of a window.
14754
14755 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14756 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14757 Compute from the x position returned by x_draw_glyphs.
14758
14759 (x_display_and_set_cursor): Don't set phys_cursor_width here,
14760 except for NO_CURSOR and system caret, to make phys_cursor_width
14761 contain what its name suggests.
14762 (notice_overwritten_cursor): Consider the cursor image erased if
14763 the output area intersects the cursor image in y-direction.
14764
6a097c0c
SM
14765 * w32term.c (note_mode_line_or_margin_highlight): Rename from
14766 note_mode_line_highlight and extend.
a18bb28d
JR
14767
14768 * w32term.c (last_window): New variable.
14769 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
14770 (note_mouse_movement): Remove reimplemented code in #if 0.
14771
14772 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
14773 not update_mode_lines, and always set it to 1.
14774
ac6e47ef
JR
147752003-01-21 Jason Rumney <jasonr@gnu.org>
14776
14777 * w32fns.c (IDC_HAND): Define it if system headers don't.
14778
147792003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14780
14781 * w32term.h (struct w32_output): New member hand_cursor.
14782 (WM_EMACS_SETCURSOR): New message definition.
14783
14784 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
14785 function w32_define_cursor.
14786 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
14787 position, change member name output_data.x to output_data.w32 and
14788 add function w32_define_cursor.
14789 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
14790 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
14791 (w32_initialize_display_info):
14792 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
14793
14794 * w32fns.c (Vx_hand_shape): New variable.
14795 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
14796 WM_EMACS_SETCURSOR.
14797 (x-create-frame): Setup Cursor types.
14798
ceb39a17
JB
147992003-01-21 David Ponce <david@dponce.com>
14800
ac6e47ef 14801 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
14802 ccl->reg[2] to -1 before calling ccl_driver.
14803 (Sync. with xterm.c x_encode_char change by Kenichi Handa
14804 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
14805 (w32_draw_relief_rect): Declare all args.
14806 (w32_define_cursor): New.
14807
14808 * w32fns.c (w32_load_cursor): New function.
14809 (w32_init_class): Use it.
14810 (x_put_x_image): Declare all args.
14811
b6189c3b 148122003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
14813
14814 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
14815
a97e4138 148162003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
14817
14818 * gtkutil.c: Must include stdio.h before termhooks.h
14819
83fc9c63
DL
148202003-01-21 Dave Love <fx@gnu.org>
14821
14822 * alloc.c (Fgc_status): Print zombie list.
14823 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
14824 Fix assignment of zombies.
14825 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
14826 Don't take car of non-cons.
14827
14828 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14829
14830 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14831
fe04b8c8
JR
148322003-01-20 David Ponce <david@dponce.com>
14833
14834 * w32menu.c (digest_single_submenu): Declare all args.
14835
14836 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
14837 changes in xmenu.c:
14838
14839 (parse_single_submenu): Use individual keymap's prompt
14840 string as pane name, if there is one.
14841 (set_frame_menubar): Save menu_items_n_panes from each call to
14842 parse_single_submenu and use it when calling digest_single_submenu.
14843
539e69a9
ST
148442003-01-20 Steven Tamm <steventamm@mac.com>
14845
7e26f91b 14846 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
14847 before sending a scroll-wheel event.
14848
675d000f
RS
148492003-01-20 Richard M. Stallman <rms@gnu.org>
14850
14851 * xdisp.c (redisplay_window): If mini window's buffer is not
14852 a minibuffer, then redisplay it like other windows.
14853
a97e4138 148542003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
14855
14856 * gtkutil.c (xg_create_frame_widgets): Check if there is an
14857 external tool bar before setting tool bar height.
14858
048addec
JD
148592003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14860
14861 * xterm.c (handle_one_xevent): Surround popup_activated
14862 with #ifdef:s for non-toolkit version.
14863
14864 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
14865 (gtkutil.o): New file.
14866 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
14867 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
14868
14869 * gtkutil.c: New file for GTK version.
14870
14871 * gtkutil.h: New file for GTK version.
14872
14873 * xterm.h: Add xt_or_gtk_widget.
14874 Include gtk files for USE_GTK.
14875 (struct x_output): Add toolbar_height.
14876 (struct x_output): Add GTK widgets and Gdk size_hints.
14877 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
14878 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
14879 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
14880
14881 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 14882 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
14883 (note_mouse_highlight): Check popup_activated for USE_GTK.
14884 (xt_action_hook): Don't compile if USE_GTK.
14885 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
14886 (xg_scroll_callback): New function.
14887 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
14888 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
14889 for USE_GTK.
14890 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
14891 xg_show_scroll_bar for USE_GTK.
14892 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
14893 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
14894 (event_handler_gdk): New function for USE_GTK.
14895 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
14896 (handle_one_xevent): Make sure widget is mapped before
14897 calling x_real_positions for USE_GTK.
14898 (XTread_socket): Add GTK event loop for USE_GTK.
14899 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
14900 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
14901 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
14902 (x_iconify_frame): Add code for USE_GTK.
14903 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
14904 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
14905 is in gtkutil.c.
14906 (x_term_init): Add initialization for GTK.
14907 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
14908
14909 * xmenu.c: Include gtkutil.h for USE_GTK.
14910 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
14911 (single_menu_item, single_menu_item, Fx_popup_dialog):
14912 Check for USE_GTK.
048addec
JD
14913 (popup_widget_loop): New function for USE_GTK.
14914 (x_activate_menubar): Add code for USE_GTK.
14915 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
14916 (menu_highlight_callback, menubar_selection_callback):
14917 Add USE_GTK versions.
048addec
JD
14918 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
14919 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
14920 (free_frame_menubar): Only compile if not USE_GTK. GTK version
14921 is in gtkutil.c.
14922 (popup_selection_callback): New version for USE_GTK.
14923 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 14924 one USE_X_TOOLKIT version.
048addec
JD
14925 (xmenu_show): Call create_and_show_popup_menu.
14926 (dialog_selection_callback): New version for USE_GTK.
14927 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 14928 one USE_X_TOOLKIT version.
048addec
JD
14929 (xdialog_show): Call create_and_show_dialog.
14930
14931 * xfns.c: Include gtkutil for USE_GTK.
14932 (x_window_to_frame, x_any_window_to_frame)
14933 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14934 (x_top_window_to_frame): Add code for USE_GTK.
14935 (x_set_background_color): Call xg_set_background_color for GTK.
14936 (x_set_menu_bar_lines): Check for USE_GTK.
14937 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
14938 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
14939 (x_window): Call xg_create_frame_widgets for USE_GTK.
14940 (Fx_create_frame): Check for USE_GTK
14941 (Fx_file_dialog): New implementation for USE_GTK.
14942
14943 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
14944 (update_menu_bar): Add check for USE_GTK.
14945 (update_tool_bar): Add check for USE_GTK and external tool bar.
14946 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
14947 (redisplay_internal): Add check for USE_GTK and popup_activated.
14948 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
14949 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
14950 (display_menu_bar): Add check for USE_GTK
14951
78819ebb 14952 * lisp.h (Vx_resource_name): Declare extern.
048addec 14953
a64387ee 14954 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
14955 for USE_GTK.
14956 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
14957
14958 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
14959 (FRAME_EXTERNAL_TOOL_BAR): New macro.
14960 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
14961
14962 * fileio.c (Fread_file_name): Add check for USE_GTK.
14963
6bdb309a
SM
14964 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
14965 Add check for USE_GTK.
048addec
JD
14966
14967 * config.in: Added HAVE_GTK
14968
14969 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
14970
149712003-01-18 Stefan Monnier <monnier@cs.yale.edu>
14972
14973 * charset.h (Funibyte_char_to_multibyte): Export.
14974
149752003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14976
14977 * xmenu.c (mouse_position_for_popup): New function.
14978 (Fx_popup_menu): Call mouse_position_for_popup for X and
14979 mouse_position_hook for others.
14980
149812003-01-17 Kim F. Storm <storm@cua.dk>
14982
14983 * editfns.c (Finsert): Mention `string-make-multibyte' and
14984 `string-as-multibyte' in doc string.
14985
149862003-01-17 Kenichi Handa <handa@m17n.org>
14987
14988 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 14989
048addec
JD
14990 * editfns.c (Fformat): Convert an unibyte char argument that is
14991 formatted by "%c" to multibyte if the total result must be a
14992 multibyte string.
cd7df9c0 14993
048addec 149942003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 14995
048addec
JD
14996 * process.c (set-process-filter): Document unibyte/multibyte-ness
14997 of string argument.
56210ecd 14998
048addec 149992003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 15000
048addec 15001 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 15002
048addec
JD
15003 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
15004 (re_search_2): Likewise.
6df8b9fe 15005
048addec 150062003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 15007
048addec
JD
15008 * xdisp.c (message_dolog): Fix bug of the case that *Message*
15009 buffer is unibyte.
292ddc31 15010
048addec 150112003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 15012
048addec 15013 * fns.c (Fsubstring): Clarify doc string.
292ddc31 15014
048addec
JD
15015 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
15016 (Fprevious_char_property_change)
15017 (Fnext_single_char_property_change)
15018 (Fprevious_single_char_property_change, Fnext_property_change)
15019 (Fnext_single_property_change, Fprevious_property_change)
15020 (Fprevious_single_property_change, Fadd_text_properties)
15021 (Fput_text_property, Fset_text_properties)
15022 (Fremove_text_properties, Fremove_list_of_text_properties)
15023 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 15024
048addec 150252003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 15026
048addec
JD
15027 * process.h (struct Lisp_Process): New member plist replaces old
15028 member private_vars. All uses changed.
63e4e4c6 15029
048addec 15030 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 15031 (QCplist): Rename from QCvars. Change all uses.
048addec 15032 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 15033 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 15034 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 15035 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 15036
048addec 150372003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 15038
6bdb309a 15039 * m/delta.h: Remove (obsolete).
e833850f 15040
048addec 150412003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 15042
048addec
JD
15043 * fileio.c (Fdelete_directory, Fdelete_file): Document the
15044 behaviour in front of symlinks.
15045 (Fdelete_file): Raise an error on directories.
817cb127 15046
048addec 150472003-01-13 Dave Love <fx@gnu.org>
817cb127 15048
048addec 15049 * fns.c (Freverse): Use QUIT.
3e8cf2ea 15050
048addec 150512003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 15052
048addec
JD
15053 * minibuf.c (minibuffer_completion_contents):
15054 Error if point is inside prompt.
3e8cf2ea 15055
048addec
JD
15056 * keyboard.c (command_loop_1): Don't redisplay directly
15057 if there's a post-command-hook.
3e8cf2ea 15058
048addec
JD
15059 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
15060 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 15061
048addec 150622003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 15063
048addec 15064 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 15065
048addec
JD
15066 * process.c (QCvars): New variable.
15067 (syms_of_process): Intern and staticpro it.
15068 (Fset_process_contact): Removed function.
15069 (Fprocess_variable, Fset_process_variable): New functions.
15070 (syms_of_process): Defsubr them.
15071 (Fstart_process): Initialize private_vars plist to nil.
15072 (Fmake_network_process): New arg :vars to setup the private
15073 variables for new network process.
15074 (server_accept_connection): Copy server's private variables to
15075 client process.
2c10f029 15076
048addec
JD
15077 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
15078 crashes). Code rewritten and simplified. Now directly aligns the
15079 pointer and recalculates pure_bytes_used, rather than aligning the
15080 size and adjusting the pointer.
b8a76c6c 15081
048addec 150822003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 15083
048addec
JD
15084 * process.c (Fset_process_contact): New function.
15085 (syms_of_process): defsubr it.
15086 (make-network-process): Update doc.
3a8d0899 15087
048addec 150882003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 15089
048addec
JD
15090 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
15091 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 15092
048addec 150932003-01-10 Dave Love <fx@gnu.org>
4abc7470 15094
048addec 15095 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 15096
048addec 150972003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 15098
048addec
JD
15099 * process.c (Fmake_network_process): Convert new port number
15100 to host byte order for `:service t' case. From Mario Lang.
bf338245 15101
048addec 151022003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 15103
048addec
JD
15104 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
15105 instead of XtAppProcessEvent.
bf338245 15106
048addec
JD
15107 * xterm.c (handle_one_xevent): New function.
15108 (x_dispatch_event): New function.
15109 (XTread_socket): Call handle_one_xevent.
bf338245 15110
048addec 15111 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 15112
048addec
JD
15113 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
15114 call XQueryPointer to get coordinates.
15115 (popup_get_selection): Do not set popup_activated_flag to zero,
15116 let popup_deactivate_callback do that. Needed for Motif.
15117 Call x_dispatch_event instead of XtDispatchEvent.
15118 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 15119
048addec 151202003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 15121
6bdb309a 15122 * process.c (server_accept_connection): Fix recording of new
048addec
JD
15123 connection's local address in :local property of contact info.
15124 (Fmake_network_process): Record local network address for new
15125 client processes in :local property of contact info.
6bdb309a 15126 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 15127
048addec 151282003-01-07 Dave Love <fx@gnu.org>
00e3ab56 15129
048addec 15130 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 15131
048addec 151322003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 15133
048addec 15134 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 15135
048addec
JD
15136 * eval.c (Fuser_variable_p): Doc change. For custom variables,
15137 use the same test as for custom-variable-p.
8c6d74c6 15138
048addec 151392003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 15140
048addec
JD
15141 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
15142 Count LAST_LINE_MISFIT in scroll margin for end of window.
15143 Move label too_near_end before setting SCROLL_MARGIN_POS.
15144 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 15145
048addec
JD
15146 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
15147 scroll_conservatively case. If scrolling that much doesn't change
15148 STARTP, move it down one line.
e833850f 15149
048addec
JD
15150 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
15151 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 15152
048addec
JD
15153 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
15154 selected frame.
8c6d74c6 15155
048addec 15156 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 15157 (syms_of_keymap): Staticpro them.
048addec
JD
15158 (Fapropos_internal): Initialize them and clear them out.
15159 Don't GCPRO them.
8c6d74c6 15160
048addec
JD
15161 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
15162 Doc fixes.
8c6d74c6 15163
048addec
JD
15164 * lisp.h: New misc type Lisp_Save_Value.
15165 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
15166 (XSAVE_VALUE): New macro.
15167 (struct Lisp_Save_Value): New data type.
15168 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 15169 (make_save_value): Declare.
8c6d74c6 15170
048addec 15171 * alloc.c (make_save_value): New function.
8c6d74c6 15172
048addec
JD
15173 * xterm.c (x_catch_errors): Save dpy using make_save_value.
15174 (x_catch_errors_unwind): Call XSync.
8c6d74c6 15175
048addec 151762003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 15177
048addec 15178 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 15179
048addec
JD
15180 * keyboard.c (command_loop_1): Call adjust_point_for_property
15181 in direct action cases for Qforward_char and Qbackward_char.
15182 Set already_adjusted so it won't be done twice.
8c6d74c6 15183
b6189c3b 151842002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 15185
048addec
JD
15186 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
15187 type definition of size_t.
8c609cff 15188
048addec 151892003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 15190
048addec
JD
15191 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
15192 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 15193
048addec 151942002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 15195
048addec
JD
15196 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
15197 to default to t.
fa634a5e 15198
048addec 151992002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 15200
048addec 15201 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 15202
048addec 152032002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 15204
7e26f91b 15205 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
15206 allow building in a different directory than source. Uses some
15207 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 15208
048addec 152092002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 15210
048addec
JD
15211 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
15212 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
15213 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
15214 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 15215
048addec 152162002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 15217
048addec
JD
15218 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
15219 <scroll-down-aggressively>: Doc fix.
2155ecf3 15220
048addec
JD
15221 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
15222 string as pane name, if there is one.
15223 (set_frame_menubar): Save menu_items_n_panes from each call to
15224 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 15225
048addec
JD
15226 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
15227 Don't try to make last line fully visible if it is past end of window.
61f1d295 15228
048addec 152292002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 15230
048addec
JD
15231 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
15232 (mac_menu_show): Add support for hierarchical popup menus.
15233 (add_menu_item): Remove indentation support.
15234 (fill_submenu, fill_menu): Create hierarchical menus
15235 instead of using indentation.
0b17a217 15236
048addec 152372002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 15238
048addec
JD
15239 * xdisp.c (try_cursor_movement): Don't call try_window here.
15240 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 15241
048addec 15242 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 15243
048addec 152442002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 15245
048addec
JD
15246 * macterm.c (XTread_socket): Call KeyTranslate for control and
15247 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 15248 being treated like C-%. Do not look for shift key to deal
048addec 15249 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 15250
048addec 152512002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 15252
048addec
JD
15253 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
15254 If it is non-nil, run timers. Use an unwind-protect to requeue
15255 the events that were read ahead.
15256 (popup_get_selection_unwind): New subroutine.
15257 (popup_get_selection_queue): File-scope variable now holds that queue.
15258 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
15259 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
15260 Use an unwind-protect to pop down the dialog box.
15261 (xdialog_show_unwind): New subroutine implements that.
f02cac82 15262
048addec
JD
15263 * xdisp.c (row_containing_pos): Change exit test using last_y.
15264 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 15265
048addec
JD
15266 * lread.c (load_error_handler): New function.
15267 (Fload): Handle errors in Fsubstitute_in_file_name.
15268 Don't expect Fsignal to return.
f02cac82 15269
048addec
JD
15270 * eval.c: Errors and throws work right with interrupt blocking.
15271 (struct catchtag): New elt interrupt_input_blocked.
15272 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
15273 (internal_catch, Fcondition_case, internal_condition_case)
15274 (internal_condition_case_1, internal_condition_case_2): Save it.
15275 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 15276
048addec 15277 * editfns.c (Fformat): Add parens.
f02cac82 15278
048addec
JD
15279 * dired.c (file_name_completion): Fix that change.
15280 Delete special quit-handling code; just use QUIT.
f02cac82 15281
b6189c3b 152822002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 15283
048addec
JD
15284 * dired.c (file_name_completion): Close directory on error
15285 just as in directory_files_internal.
1a590729 15286
048addec 152872002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 15288
048addec
JD
15289 * window.c (Fset_window_configuration): Set old_point to correct
15290 value when new_current_buffer == current_buffer.
f02cac82 15291
048addec 152922002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 15293
048addec
JD
15294 Revisited my earlier fix for the following entry in etc/PROBLEMS:
15295 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
15296 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 15297
048addec
JD
15298 These changes were in part based upon suggestions made by Peter
15299 'Luna' Runestig [peter@runestig.com].
9785d95b 15300
f4a5a485
SM
15301 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
15302 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
15303 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 15304 global variables.
9785d95b 15305
048addec
JD
15306 * w32.c (globals_of_w32): New function. Used to initialize those
15307 global variables that must always be initialized on startup even
15308 when the global variable initialized is non zero. Its primary
15309 purpose at this time is to set the global variables
15310 g_b_init_is_windows_9x, g_b_init_open_process_token,
15311 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
15312 g_b_init_get_sid_identifier_authority to 0 on startup.
15313 Called from main.
9785d95b 15314
048addec
JD
15315 * w32.c (is_windows_9x): Perform initialization only if
15316 g_b_init_is_windows_9x is equal to 0. On initialization set
15317 g_b_init_is_windows_9x equal to 1.
2308af15 15318
048addec
JD
15319 * w32.c (open_process_token): Perform initialization only if
15320 g_b_init_open_process_token is equal to 0. On initialization set
15321 g_b_init_open_process_token equal to 1.
2308af15 15322
048addec
JD
15323 * w32.c (get_token_information): Perform initialization only if
15324 g_b_init_get_token_information is equal to 0. On initialization
15325 set g_b_init_get_token_information equal to 1.
9785d95b 15326
048addec
JD
15327 * w32.c (lookup_account_sid): Perform initialization only if
15328 g_b_init_lookup_account_sid is equal to 0. On initialization
15329 set g_b_init_lookup_account_sid equal to 1.
9785d95b 15330
048addec
JD
15331 * w32.c (get_sid_identifier_authority): Perform initialization
15332 only if g_b_init_get_sid_identifier_authority is equal to 0.
15333 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 15334
f63fd14e 15335 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
15336 those global variables that must always be initialized on startup
15337 even when the global variable initialized is non zero.
15338 Its primary purpose at this time is to initialize the global variable
15339 track_mouse_event_fn.
9785d95b 15340
a64387ee 15341 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 15342 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 15343
048addec 15344 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 15345
f63fd14e 15346 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
15347 initialize those global variables that must always be initialized
15348 on startup even when the global variable initialized is non zero.
15349 Its primary purpose at this time is to initialize the global
15350 variables get_menu_item_info and set_menu_item_info.
9785d95b 15351
048addec
JD
15352 * w32menu.c (initialize_frame_menubar): Remove initialization of
15353 get_menu_item_info and set_menu_item_info.
9785d95b 15354
048addec 15355 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 15356
048addec
JD
15357 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
15358 Declare them.
9785d95b 15359
048addec
JD
15360 * emacs.c (main): Call globals_of_w32 prior to calling
15361 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
15362 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
15363 is defined.
9785d95b 15364
048addec
JD
15365 * w32term.c (x_update_window_begin): Fix Windows API error
15366 detected by BoundsChecker. Test to determine if
15367 w32_system_caret_hwnd is NULL prior to attempting to use
15368 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 15369
048addec
JD
15370 * w32term.c (x_update_window_end): Fix Windows API error
15371 detected by BoundsChecker. Test to determine if
15372 w32_system_caret_hwnd is NULL prior to attempting to use
15373 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 15374
048addec 153752002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 15376
048addec
JD
15377 * coding.c (coding_system_require_warning): New variable.
15378 (syms_of_coding): DEFVAR it.
b6da19ef 15379
048addec 15380 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 15381
048addec
JD
15382 * fileio.c (choose_write_coding_system): Even if
15383 Vcoding_system_for_write is non-nil, if
15384 coding_system_require_warning is nonzero, call
15385 Vselect_safe_coding_system_function.
bfcf6dbe 15386
048addec 153872002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 15388
048addec
JD
15389 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
15390 (lisp): Add font-core.
2c568af5 15391
048addec 153922002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 15393
048addec
JD
15394 * textprop.c (text_read_only): New arg `propval'.
15395 (get_char_property_and_overlay): Remove unused var `next_overlay'.
15396 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 15397
048addec 153982002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 15399
048addec 15400 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 15401
048addec 154022002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 15403
048addec
JD
15404 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
15405 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
15406 Be more careful about when help_events are generated.
96720f09 15407
048addec 154082002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 15409
048addec
JD
15410 * macterm.c (mac_check_for_quit_char): Correctly set the
15411 modifiers of the event to 0.
15412 * mac.c (sys_select): Duplicate rfds before calling select to
15413 ensure that rfds survive the while loop.
e5ae1c49 15414
048addec 154152002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 15416
048addec
JD
15417 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
15418 row_containing_pos returned NULL.
2eb46b2d 15419
048addec 154202002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 15421
6bdb309a 15422 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 15423 non-blocking.
6bdb309a 15424 (sys_select): Fix sys_select to not use a timeout larger than
048addec 15425 the one given.
b11f1d8a 15426
048addec 154272002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 15428
048addec 15429 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 15430
048addec 154312002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 15432
048addec
JD
15433 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
15434 as the last thing.
a4ac5b17 15435
048addec 154362002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 15437
048addec 15438 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 15439
048addec 154402002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 15441
048addec
JD
15442 * editfns.c (Fformat): Handle precision in string conversion
15443 specifiers like libc functions do (ie, print at most that many
15444 characters).
85cce843 15445
048addec 154462002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 15447
048addec
JD
15448 * xdisp.c (row_containing_pos): Check more carefully
15449 whether charpos is really in the row before returning it.
0d4d26a7 15450
048addec 154512002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 15452
048addec 15453 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 15454
048addec
JD
15455 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
15456 each stack frame. This may change as it could be time consuming.
0d4d26a7 15457
048addec
JD
15458 * macterm.c (mac_check_for_quit_char, quit_char_comp)
15459 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 15460 (mac_initialize): Add code to check for pressing of quit_char
048addec 15461 in the OS event queue.
b11f1d8a 15462
048addec
JD
15463 * mac.c (sys_select): Call mac_check_for_quit_char every second
15464 while blocking on select.
0d4d26a7 15465
048addec
JD
15466 * mac.c (sys_read): Use sys_select to test for input first
15467 before calling read, to allow C-g to break.
9252f7bc 15468
048addec 154692002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 15470
048addec 15471 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 15472
048addec 15473 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 15474
048addec 15475 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 15476
048addec
JD
15477 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
15478 autoload.
9252f7bc 15479
048addec 15480 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 15481
048addec 15482 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 15483
048addec 154842002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 15485
048addec 15486 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 15487
048addec 154882002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 15489
048addec 15490 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 15491
048addec 15492 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 15493
048addec 15494 * alloca.c: Don't use #error.
02d588e2 15495
048addec 154962002-12-03 Dave Love <fx@gnu.org>
02d588e2 15497
048addec
JD
15498 * buffer.c (Qucs_set_table_for_input): New.
15499 (Fget_buffer_create): Use it.
15500 (Qset_buffer_major_mode_hook): Deleted.
15501 (Fset_buffer_major_mode): Revert previous change.
15502 (init_buffer_once): Intern ucs-set-table-for-input.
15503 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
15504 Add &Qucs_set_table_for_input.
451e2697 15505
048addec 155062002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 15507
048addec
JD
15508 * callint.c (Fcall_interactively): Use next_event only if less
15509 than key_count.
72742a99 15510
048addec 155112002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 15512
048addec
JD
15513 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
15514 names to 255 characters.
72742a99 15515
048addec
JD
15516 * macterm.c (XTread_socket): If all frames have been collapsed,
15517 expand the first one before handling drag-and-drop events.
72742a99 15518
048addec
JD
15519 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
15520 which is detected by autoconf.
40e6ff95 15521
048addec 155222002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 15523
048addec
JD
15524 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
15525 offset in two hints table to allow prebinding to be redone and
15526 allow the executable to be stripped.
c02138c6 15527
048addec 155282002-11-29 Dave Love <fx@gnu.org>
c02138c6 15529
048addec
JD
15530 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
15531 already provided.
0e47bbf7 15532
048addec 155332002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 15534
048addec
JD
15535 * xdisp.c (start_display): Check more intelligently for
15536 whether the line is continued.
15537 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 15538
048addec 155392002-11-28 Dave Love <fx@gnu.org>
44129dcb 15540
048addec
JD
15541 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
15542 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 15543
048addec 155442002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 15545
048addec
JD
15546 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
15547 more descriptive error output from lread.c:Fload upon most require
15548 cycles during boostrapping.
1637fd2c 15549
048addec 155502002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 15551
048addec
JD
15552 * fileio.c (Finsert_file_contents): Give a more appropriate error
15553 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 15554
048addec
JD
15555 * dired.c (Ffile_attributes): Don't return negative file sizes for
15556 files bigger than 2Gb when off_t is 32 bit.
540c2788 15557
048addec 155582002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 15559
048addec 15560 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 15561
048addec
JD
15562 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
15563 Test GETPGRP_VOID instead.
15564 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 15565
048addec
JD
15566 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
15567 Don't define.
15568 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 15569
048addec 15570 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 15571
048addec 155722002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 15573
048addec
JD
15574 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
15575 supported.
4042a81a 15576
048addec 155772002-11-25 Dave Love <fx@gnu.org>
4042a81a 15578
048addec 15579 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 15580
048addec 15581 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 15582
048addec 155832002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 15584
048addec 15585 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 15586
048addec 155872002-11-24 Steven Tamm <steventamm@mac.com>
82122254 15588
048addec
JD
15589 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
15590 determine the size of pointers alloced in unexed space instead
15591 of using possibly invalid emacs_zone pointers. This fixes the
15592 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 15593
048addec 155942002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 15595
048addec 15596 * search.c (Fstring_match): Doc fix.
c1ee53bc 15597
048addec
JD
15598 * callint.c (Fcall_interactively): If a command fails because
15599 `*' detects a read-only buffer, but RECORD_FLAG is set,
15600 record it anyway if the args don't actually do tty input.
5598c32e 15601
048addec 156022002-11-22 Dave Love <fx@gnu.org>
5598c32e 15603
048addec 15604 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 15605
048addec
JD
15606 * keyboard.c (interrupt_signal): Provide forward declaration.
15607 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 15608
048addec 15609 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 15610
048addec 156112002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 15612
048addec
JD
15613 * eval.c (interactive_p): Skip any number of bytecode
15614 and special form frames, in any order.
516eea8e 15615
048addec 156162002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 15617
048addec
JD
15618 * w32fns.c (convert_mono_to_color_image): New function.
15619 (xbm_load, xbm_load_image): Use it when foreground or background
15620 is explicitly set.
04dbfa08 15621
048addec 156222002-11-19 Dave Love <fx@gnu.org>
04dbfa08 15623
048addec 15624 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 15625
048addec 156262002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 15627
048addec
JD
15628 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
15629 (XPutPixel): Swap blue and red.
15630 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
15631 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
15632 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
15633 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 15634
048addec 156352002-11-18 Dave Love <fx@gnu.org>
d824beee 15636
048addec 15637 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 15638
048addec 15639 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 15640
048addec 15641 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 15642
048addec
JD
15643 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
15644 malloc, realloc, calloc.
d824beee 15645
048addec
JD
15646 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
15647 (bcmp): Don't define.
d824beee 15648
048addec 15649 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 15650
048addec 15651 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 15652
048addec 15653 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 15654
048addec 15655 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 15656
048addec
JD
15657 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
15658 Don't include alloca.h.
d824beee 15659
048addec 15660 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 15661
048addec 15662 * regex.c (_GNU_SOURCE): Don't define.
1998560a 15663
048addec 15664 * process.c (_GNU_SOURCE): Don't define.
1998560a 15665
048addec 15666 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 15667
048addec 156682002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 15669
048addec 15670 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 15671
048addec 156722002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 15673
048addec
JD
15674 * dispextern.h (struct face): Add `overstrike' field.
15675 * xterm.c (x_draw_glyph_string_foreground)
15676 (x_draw_composite_glyph_string_foreground): Implement overstriking.
15677 * xfaces.c (load_face_font): Set `face->overstrike' based on
15678 result from choose_face_font.
15679 (best_matching_font, choose_face_font): Add `needs_overstrike'
15680 argument, and use it to return whether overstriking is desirable
15681 for this face/font combo.
15682 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 15683
048addec 156842002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 15685
048addec
JD
15686 This change is my fix for the following entry in etc/PROBLEMS:
15687 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
15688 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 15689
048addec
JD
15690 * w32.c: Added wrapper functions around the win32 API functions
15691 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
15692 GetSidIdentifierAuthority. These wrapper functions serve two
15693 purposes:
15694 1. They ensure that the wrapped function can never be called
15695 when Emacs is running on an operating system on which they are
15696 not supported (Microsoft Windows 95 / 98 / ME).
15697 2. They call the wrapped functions via function pointers rather
15698 than calling them directly. This avoids taking advantage of the
15699 undocumented fact that although these functions are not supported
15700 in the 9x branch of Microsoft Windows, the functions do exist in
15701 the version of advapi32.dll that is found in the 9x branch of
15702 Microsoft Windows.
f60ae425 15703
6bdb309a 15704 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
15705 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
15706 and GetSidIdentifierAuthority with calls to the newly added
15707 wrapper functions.
f60ae425 15708
048addec
JD
15709 * w32.h: Added extern declarations for the following functions:
15710 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
15711 syms_of_w32menu, and void syms_of_fontset.
f60ae425 15712
6bdb309a 15713 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
15714 function pointer track_mouse_event_fn in the handler for the
15715 WM_SETFOCUS message.
3582b6a3 15716
6bdb309a 15717 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
15718 reinitialize the function pointers set_menu_item_info and
15719 get_menu_item_info.
f60ae425 15720
048addec 157212002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 15722
048addec
JD
15723 * sound.c: Added a partial implementation of play-sound-internal
15724 for Microsoft Windows. Added various #ifdef / #else / #endif
15725 code blocks to separate the code that will compile under
9fed2905 15726 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 15727 Moved several blocks of code around to make this separation of code
9fed2905 15728 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 15729
048addec 15730 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 15731
048addec
JD
15732 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
15733 added support for play-sound-internal under Windows would be
15734 included in the build of Emacs.
517f42a0 15735
048addec 157362002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 15737
048addec 15738 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 15739
048addec 15740 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 15741
048addec 157422002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 15743
048addec
JD
15744 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
15745 (adjust_point_for_property): Move out of display and invisible even if
15746 we were already inside before (in case a property was added while
15747 we weren't looking). Be more careful when handling invisible props.
15748 Skip invisible text as if it really wasn't there at all.
aab83f91 15749
048addec 157502002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 15751
048addec
JD
15752 * w32term.c (x_draw_image_foreground)
15753 (w32_draw_image_foreground_1): Use standard copy and invert
15754 operations to draw images.
aab83f91 15755
048addec
JD
15756 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
15757 depth of 1.
15758 (xbm_read_bitmap_data): Invert bits as xbm is read in.
15759 (XPutPixel): Don't invert bits here.
a4478a76 15760
048addec 157612002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 15762
048addec
JD
15763 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
15764 (w32_draw_image_foreground_1): Handle image masks.
15765 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 15766
048addec
JD
15767 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
15768 (x_from_xcolors): Adjust RGB values for W32.
15769 (image_background, image_background_transparent)
15770 (postprocess_image, x_to_xcolors, x_disable_image)
15771 (x_build_heuristic_mask): Adapt for W32 and enable.
15772 (x_create_x_image_and_pixmap): Mark images with palettes as such.
15773 (xbm_load): Remove unused variable.
03670a65 15774
048addec 157752002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 15776
048addec 15777 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 15778
048addec 157792002-11-14 Dave Love <fx@gnu.org>
59daa29a 15780
048addec 15781 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 15782
048addec
JD
15783 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
15784 * xmenu.c (unuse_menu_items, digest_single_submenu):
15785 * xfns.c (x_put_x_image):
15786 * xdisp.c (message2_nolog, set_message):
15787 * undo.c (record_point):
15788 * terminfo.c (tparam):
15789 * syntax.c (scan_sexps_forward):
15790 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15791 * composite.c (update_compositions):
15792 * cm.c (calccost, cmgoto):
15793 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 15794
048addec 15795 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 15796
048addec
JD
15797 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
15798 Don't declare.
59daa29a 15799
048addec 15800 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 15801
048addec
JD
15802 * fns.c (Fcopy_sequence): Doc fix.
15803 (Fmap_char_table): Cast `call2'.
3947677c 15804
048addec
JD
158052002-11-14 Francesco Potorti` <pot@gnu.org>
15806
15807 * s/sol2-8.h: New file.
15808
158092002-11-14 Kim F. Storm <storm@cua.dk>
15810
15811 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
15812 dependency on `risky-local-variable' and the :propertize form.
15813
158142002-11-12 Stefan Monnier <monnier@cs.yale.edu>
15815
15816 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
15817
15818 * syntax.c (scan_sexps_forward): Undo last patch.
15819 Use a more obvious fix: check eob before updating the syntax table.
15820
158212002-11-09 Stefan Monnier <monnier@cs.yale.edu>
15822
15823 * syntax.c (scan_sexps_forward): Update syntax table before reading
15824 a char rather than after so we don't update the table past eob.
15825
158262002-11-09 Dave Love <fx@gnu.org>
15827
15828 * buffer.c (Fset_buffer_major_mode): Fix last change.
15829
15830 * regex.c (regexec): Fix pmatch declaration.
15831
15832 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
15833
15834 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
15835 to self-inserting characters.
15836 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
15837
15838 * coding.c (Vtranslation_table_for_input): New.
15839 (syms_of_coding): DEFVAR it.
15840
158412002-11-08 Juanma Barranquero <lektu@terra.es>
15842
15843 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
15844 window.
15845
158462002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15847
6bdb309a 15848 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
15849 cp, and i.
15850
158512002-11-06 Dave Love <fx@gnu.org>
15852
15853 * buffer.c (Qset_buffer_major_mode_hook): New.
15854 (Fset_buffer_major_mode): Use it.
15855
158562002-11-06 Richard M. Stallman <rms@gnu.org>
15857
15858 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
15859 and stop_polling.
15860
15861 * process.c (wait_reading_process_input):
15862 Test POLLING_PROBLEM_IN_SELECT, not hpux.
15863 Avoid initialization for auto Lisp_Object var.
15864
15865 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
15866
15867 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
15868
158692002-11-05 Richard M. Stallman <rms@gnu.org>
15870
15871 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
15872
15873 * callint.c (Fcall_interactively): New local filter_specs.
15874 (Fcall_interactively): Check for progn as well as let.
15875 Add a gcpro.
15876 (Qprogn): New variable.
15877 (syms_of_callint): Staticpro and init Qprogn.
15878
158792002-11-04 John Paul Wallington <jpw@shootybangbang.com>
15880
15881 * lread.c (Feval_buffer): Doc fix.
15882
158832002-11-04 Dave Love <fx@gnu.org>
15884
15885 * keyboard.c (read_char): Always translate iff
15886 Vkeyboard_translate_table is a char table and c is valid.
15887
15888 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15889 and fix C types.
15890
158912002-11-03 Stefan Monnier <monnier@cs.yale.edu>
15892
15893 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
15894
15895 * editfns.c (get_pos_property): Don't hardcode Qfield.
15896
15897 * keyboard.c (adjust_point_for_property): Handle `display' prop on
15898 overlays. Also handle `invisible' prop.
15899
159002002-11-02 Stefan Monnier <monnier@cs.yale.edu>
15901
15902 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
15903 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
15904
159052002-11-01 Andreas Schwab <schwab@suse.de>
15906
15907 * editfns.c (Fmessage): Revert last change to properly handle %%.
15908
159092002-11-01 Stefan Monnier <monnier@cs.yale.edu>
15910
15911 * xmenu.c (unuse_menu_items): New fun.
15912 (menu_items_inuse): New var.
15913 (syms_of_xmenu): Initialize it.
15914 (init_menu_items): Use it to detect re-entrance.
15915 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
15916 (Fx_popup_menu): Remove spurious XSETFRAME.
15917
15918 * editfns.c (find_field): Make an exception for nil fields.
15919
159202002-11-01 Dave Love <fx@gnu.org>
15921
15922 * m/gec63.h: Deleted.
15923
159242002-10-31 Dave Love <fx@gnu.org>
15925
15926 * xterm.c (XTread_socket): Fix last change.
15927 (xaw_scroll_callback): Cast call_data to long to avoid warning.
15928
159292002-10-31 Stefan Monnier <monnier@cs.yale.edu>
15930
15931 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
15932
159332002-10-30 Stefan Monnier <monnier@cs.yale.edu>
15934
15935 * editfns.c (overlays_around, get_pos_property): New funs.
15936 (find_field): Use them.
15937 Also be careful not to modify POS before its last use.
15938 (Fmessage): Don't Fformat if there's nothing to format.
15939
159402002-10-30 Dave Love <fx@gnu.org>
15941
15942 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
15943 [HAVE_PTY_H]; Include pty.h.
15944
15945 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
15946
15947 * xterm.c (Qeql): Declare.
15948 (Vx_keysym_table): New.
15949 (syms_of_xterm): Initialize it.
15950 (XTread_socket): Use it. Deal with ASCII keysyms.
15951 (XSetIMValues) [HAVE_X11R6]: Prototype.
15952
15953 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
15954 (lispy_kana_keys): Comment out.
15955 (make_lispy_event) [XK_kana_A]: Comment out.
15956 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
15957 Fix sprintf call.
15958
15959 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
15960 regexp.h change).
15961 (TERMINFO, LIBS_TERMCAP): Define.
15962
15963 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
15964 (bcmp): Define conditional on HAVE_BCMP.
15965 (NO_SIOCTL_H): Don't define.
15966 (TIOCSIGSEND): Don't make conditional on IRIX6.
15967
15968 * s/sol2-5.h: Don't include strings.h.
15969 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
15970
15971 * s/irix6-0.h (IRIX6): Don't define.
15972 (bcopy, bcmp, bzero): Don't undef.
15973
15974 * s/irix6-5.h: Don't include strings.h.
15975 (IRIX6): Don't define.
15976 (bcopy, bcmp, bzero): Don't undef.
15977
15978 * syntax.c (Fforward_comment): Doc fix.
15979
159802002-10-29 Kim F. Storm <storm@cua.dk>
15981
15982 * process.c (Fsignal_process): Allow PROCESS to be specified by
15983 name in addition to pid (as integer or string).
15984
159852002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
15986
15987 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
15988 environments.
15989
159902002-10-27 Kim F. Storm <storm@cua.dk>
15991
15992 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15993
15994 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
15995
15996 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
15997
15998 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15999
160002002-10-26 Richard M. Stallman <rms@gnu.org>
16001
16002 * editfns.c (Fformat): Detect invalid format letters for floats.
16003
160042002-10-25 Kenichi Handa <handa@m17n.org>
16005
16006 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
16007 (x_set_title): Likewise.
16008
160092002-10-25 Juanma Barranquero <lektu@terra.es>
16010
16011 * macgui.h:
16012 * w32gui.h: Remove definition of XColor.
16013
16014 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
16015
160162002-10-24 Kim F. Storm <storm@cua.dk>
16017
16018 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
16019 Callers changed (supply dummy arg).
16020
16021 * lisp.h (get_window_cursor_type): Update prototype.
16022
16023 * w32term.c (x_display_and_set_cursor): Get active_cursor from
16024 get_window_cursor_type to track system caret.
16025
160262002-10-24 Kim F. Storm <storm@cua.dk>
16027
16028 * process.c (Fformat_network_address): New function.
16029 (syms_of_process): Defsubr it.
16030 (list_processes_1): Use it to format :local/:remote address if
f9711de4 16031 service/host is not set; before Emacs would crash in that case.
048addec
JD
16032 (Fmake_network_process): Don't use Ffind_operation_coding_system
16033 to setup coding system if host or service is not set.
16034
160352002-10-23 Juanma Barranquero <lektu@terra.es>
16036
16037 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
16038
16039 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
16040 COLORREF.
16041
16042 * macgui.h:
16043 * w32gui.h: Add definition of XColor.
16044
16045 * macfns.c:
16046 * w32fns.c:
16047 * xfaces.c: Remove definition of XColor.
16048
160492002-10-22 Stefan Monnier <monnier@cs.yale.edu>
16050
16051 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
16052
16053 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
16054 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
16055 window if it is dedicated.
16056 (Fshrink_window): Add preserve_before as was done for enlarge_window.
16057 (Vspecial_display_function): Update docstring.
16058
16059 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
16060 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
16061 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
16062
160632002-10-21 Stefan Monnier <monnier@cs.yale.edu>
16064
16065 * casefiddle.c (casify_region): Don't treat a prefix char as part
16066 of a word when at the beginning.
16067
160682002-10-17 Juanma Barranquero <lektu@terra.es>
16069
16070 * lread.c (syms_of_lread): Fix typos.
16071
160722002-10-17 Dave Love <fx@gnu.org>
16073
16074 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
16075
160762002-10-16 Richard M. Stallman <rms@gnu.org>
16077
16078 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
16079
160802002-10-14 Juanma Barranquero <lektu@terra.es>
16081
16082 * w16select.c (syms_of_win16select): Fix docstring for
16083 `selection-coding-system'.
16084
16085 * w32select.c (syms_of_w32select): Likewise.
16086
160872002-10-14 Stefan Monnier <monnier@cs.yale.edu>
16088
16089 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
16090 a backslash-quoted char.
16091 (scan_lists, scan_sexps_forward): Pacify the compiler.
16092
160932002-10-13 Richard M. Stallman <rms@gnu.org>
16094
16095 * window.c (window_scroll): Set immediate_quit.
16096
16097 * print.c (print): When backquote form is the car of a list,
16098 output in old style. Use old_backquote_output to output all
16099 comma forms inside it in old style too.
16100
16101 * buffer.h (struct buffer): Move `undo_list' down below `name'.
16102
161032002-10-11 Markus Rost <rost@math.ohio-state.edu>
16104
16105 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
16106 batch mode).
16107
16108 * lread.c (Fload): Doc fix (load-suffixes).
16109
161102002-10-10 Steven Tamm <steventamm@mac.com>
16111
16112 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
16113 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
16114 Also switch the default to Qnil from Qt.
16115
161162002-10-08 Kenichi Handa <handa@m17n.org>
16117
16118 * coding.c (code_convert_region): When we need more GAP for
16119 conversion, pay attention to the case that coding->produced is not
16120 greater than coding->consumed.
16121
161222002-10-07 Richard M. Stallman <rms@gnu.org>
16123
16124 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
16125
161262002-10-06 Andrew Choi <akochoi@shaw.ca>
16127
16128 * macmenu.c (mac_menu_show): Add j to count menu items; match
16129 menu_item_selection to it to find selected item.
16130
161312002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16132
16133 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
16134 cases. The correct fix is to pass ReparentNotify to Xt.
16135 The shell widget interprets ConfigureNotify differently depending
16136 on if it has been reparented or not.
16137
161382002-10-05 Markus Rost <rost@math.ohio-state.edu>
16139
16140 * editfns.c (Fformat_time_string): Doc fix.
16141
161422002-10-05 John Paul Wallington <jpw@shootybangbang.com>
16143
16144 * fns.c (Flength): Doc fix.
16145
161462002-10-04 Stefan Monnier <monnier@cs.yale.edu>
16147
16148 * keyboard.c (keyremap): New struct.
16149 (read_key_sequence): Use it: globally replace keytran_foo with
16150 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
16151 keytran_next and fkey_next to just `next'.
16152
161532002-10-04 Steven Tamm <steventamm@mac.com>
16154
16155 * macterm.c (keycode_to_xkeysym_table): Change return to be
16156 treated like an X keysym.
16157
161582002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16159
16160 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
16161 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
16162 This is to also handle x/y changes that occur because of a resize.
16163
161642002-10-02 John Paul Wallington <jpw@shootybangbang.com>
16165
16166 * frame.c (Vdelete_frame_functions): New variable.
16167 (syms_of_frame): Initialize and defvar it.
16168 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
16169 it when frame's `tooltip' parameter is non-nil.
16170
16171 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
16172
16173 * w32fns.c (x_create_tip_frame): Likewise.
16174
16175 * macfns.c (x_create_tip_frame): Likewise.
16176
161772002-09-30 Kenichi Handa <handa@m17n.org>
16178
16179 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
16180 -1 before calling ccl_driver.
16181
16182 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
16183 Only when it is non-nil, handle composition sequence.
16184 (setup_coding_system) <0>: Don't force composition handling.
16185
16186 * Makefile.in (lisp, shortlisp): Add utf-16.elc
16187
161882002-09-29 Richard M. Stallman <rms@gnu.org>
16189
16190 * search.c (Freplace_match): Adjust match data for the substitution
16191 just made in the buffer.
16192
16193 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
16194 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
16195
161962002-09-27 Richard M. Stallman <rms@gnu.org>
16197
16198 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
16199 (read_char): Use them. Do all exits thru the end of the function.
16200
162012002-09-27 Kenichi Handa <handa@etl.go.jp>
16202
16203 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
16204 is nil.
16205
162062002-09-26 Richard M. Stallman <rms@gnu.org>
16207
16208 * regex.h (__restrict_arr): Don't define if already defined.
16209
16210 * coding.c (run_pre_post_conversion_on_str):
16211 Save and restore Vdeactivate_mark.
16212
162132002-09-26 John Paul Wallington <jpw@shootybangbang.com>
16214
16215 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
16216
162172002-09-26 Kenichi Handa <handa@etl.go.jp>
16218
16219 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
16220 nonzero, try face's family at first. Otherwise try FAMILY at first.
16221 (choose_face_font): If C is a single byte char or latin-1, call
16222 try_font_list with PREFER_FACE_FAMILY 1.
16223
162242002-09-21 Richard M. Stallman <rms@gnu.org>
16225
16226 * window.c (select_window_1): Don't select frame.
16227 Set frame's selected window only when frame itself is selected.
16228 (Fselect_window): Doc fix.
16229
162302002-09-18 Kim F. Storm <storm@cua.dk>
16231
16232 * process.c (make-network-process): Doc fix (there is no
16233 network-server-log-function hook).
16234
162352002-09-18 Richard M. Stallman <rms@gnu.org>
16236
16237 * print.c (print): Clear out the unused parts of Vprint_number_table.
16238 (syms_of_print): Doc fix for `print-number-table'.
16239
16240 * unexelf.c (unexec): Undo previous change.
16241
162422002-09-17 Andreas Schwab <schwab@suse.de>
16243
16244 * m/alpha.h [LINUX]: Don't define DATA_START.
16245
162462002-09-16 Dave Love <fx@gnu.org>
16247
16248 * unexelf.c (unexec): Deal with .got, reinstating change from
16249 25-08-1999.
16250
162512002-09-13 Richard M. Stallman <rms@gnu.org>
16252
16253 * s/sol2-6.h (UNEXEC): Comment out definition.
16254
16255 * unexsol.c (unexec): Don't downcase first letter of error msg.
16256
16257 * xfaces.c (Fcolor_supported_p): Just one arg is required.
16258
162592002-09-12 Markus Rost <rost@math.ohio-state.edu>
16260
16261 * unexsol.c: Include buffer.h, charset.h, coding.h.
16262
162632002-09-11 Richard M. Stallman <rms@gnu.org>
16264
16265 * unexsol.c: Don't use report_file_error; do it by hand
16266 using dlerror.
16267
16268 * process.c (wait_reading_process_input, both versions):
16269 Before calling turn_on_atimers, call stop_polling.
16270
16271 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
16272
16273 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
16274 we go to too_near_end, call clear_glyph_matrix.
16275 (redisplay_window): After make_cursor_line_fully_visible,
16276 call clear_glyph_matrix and bypass `goto done'.
16277
16278 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
16279 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
16280
162812002-09-10 Richard M. Stallman <rms@gnu.org>
16282
16283 * fileio.c (Fdo_auto_save): Catch error making directory.
16284 Only call push_message if we need to.
16285 At the same time, make an unwind-protect to pop it.
16286 Rename local message_p to old_message_p.
16287 (do_auto_save_make_dir, do_auto_save_eh): New functions.
16288 (do_auto_save_unwind): Don't call pop_message.
16289
16290 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
16291
16292 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
16293
16294 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
16295
16296 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
16297
162982002-09-10 Stefan Monnier <monnier@cs.yale.edu>
16299
16300 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
16301 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
16302 (re_match_2_internal): Be more careful with infinite loops.
16303
163042002-09-10 Kim F. Storm <storm@cua.dk>
16305
16306 * macros.c (end_kbd_macro): New function.
16307 (Fend_kbd_macro): Use it.
16308
16309 * macros.h (end_kbd_macro): Declare extern.
16310
16311 * keyboard.c (Fdiscard_input): If defining keyboard macro,
16312 end and save it instead of discarding it.
16313
163142002-09-09 Markus Rost <rost@math.ohio-state.edu>
16315
16316 * s/sol2-6.h: Fix typo. Add comment.
16317
163182002-09-09 Richard M. Stallman <rms@gnu.org>
16319
16320 * regex.c (regnum_t): Use signed int, not unsigned int.
16321
16322 * s/sol2-6.h: New file.
16323
16324 * s/sol2-5.h (UNEXEC): Definition deleted.
16325
163262002-09-08 Kim F. Storm <storm@cua.dk>
16327
16328 * macros.c (executing_macro_index): Change type to EMACS_INT.
16329 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
16330
16331 * macros.h (executing_macro_index): Change type to EMACS_INT.
16332
163332002-09-06 Richard M. Stallman <rms@gnu.org>
16334
16335 * casetab.c (set_case_table): Make canon table point to eqv table.
16336
163372002-09-06 Juanma Barranquero <lektu@terra.es>
16338
16339 * coding.c (syms_of_coding): Fix spacing.
16340
16341 * composite.c (Fcompose_region_internal)
16342 (Fcompose_string_internal): Likewise.
16343
16344 * data.c (Flsh): Likewise.
16345
16346 * fontset.c (Fset_fontset_font): Likewise.
16347
16348 * macfns.c (Fx_server_max_request_size): Likewise.
16349
16350 * w16select.c (syms_of_win16select): Likewise.
16351
16352 * w32select.c (syms_of_w32select): Likewise.
16353
16354 * xselect.c (syms_of_xselect): Likewise.
16355
163562002-09-05 Richard M. Stallman <rms@gnu.org>
16357
16358 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
16359 call EXTEND_RANGE_TABLE and return a proper value.
16360 (set_image_of_range): Don't call set_image_of_range_1
16361 if no TRANSLATE or if range includes all of Latin-1.
16362 Only call it for the Latin-1 part of the range.
16363 For other cases, make two separate ranges,
16364 one for the original specified characters and one for
16365 their case-conversions.
16366
163672002-09-04 Richard M. Stallman <rms@gnu.org>
16368
16369 * s/sol2-5.h (UNEXEC): Use unexsol.o.
16370
16371 * window.c (displayed_window_lines): Correct for one-off bug
16372 in HEIGHT on non-window displays.
16373
16374 * regex.c (set_image_of_range_1): New function.
16375 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
16376 Return a value to indicate running out of memory.
16377 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
16378 (extend_range_table_work_area): New subroutine.
16379 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
16380 Different calling conventions, and used from set_image_of_range{,_1}.
16381 (IMMEDIATE_QUIT_CHECK): Definitions moved.
16382
163832002-09-04 Juanma Barranquero <lektu@terra.es>
16384
16385 * makefile.w32-in: All dependencies updated.
16386
163872002-09-01 Richard M. Stallman <rms@gnu.org>
16388
16389 * unexsol.c: New file.
16390
16391 * xfns.c (Qbox): Declare external, don't define.
16392
16393 * xdisp.c (redisplay_window) <force-start case>:
16394 If point is on semi-visible last line, reposition
16395 it at previous line.
16396
16397 * alloc.c (display_malloc_warning): Use display-warning.
16398 (malloc_warning_1): Function deleted.
16399
16400 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
16401
16402 * lread.c (read1): Handle #! by skipping the line.
16403
164042002-08-31 Richard M. Stallman <rms@gnu.org>
16405
16406 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
16407 Don't include LDFLAGS.
16408 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
16409
164102002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
16411
16412 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
16413 member of x_display_info unless we compile for some window system.
16414
164152002-08-31 Kim F. Storm <storm@cua.dk>
16416
16417 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
16418 (get_window_cursor_type): Don't use them.
16419 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
16420
164212002-08-30 Kenichi Handa <handa@etl.go.jp>
16422
16423 * xdisp.c (get_next_display_element): Fix previous change.
16424
164252002-08-30 Andrew Choi <akochoi@shaw.ca>
16426
16427 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
16428 (expose_window): Use it to fix the display of overlapping
16429 rows (merge code from xterm.c).
16430
16431 * macfns.c (Qbox): Add extern declaration.
16432
164332002-08-30 Juanma Barranquero <lektu@terra.es>
16434
16435 * w32fns.c (Qbox): Make extern.
16436 (syms_of_w32fns): Remove initialization of Qbox.
16437
164382002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
16439
16440 * xfns.c (Fx_open_connection): Fix error message.
16441
164422002-08-30 Kim F. Storm <storm@cua.dk>
16443
16444 The following changes consolidates the handling of the cursor
16445 type in xdisp.c, moving duplicate code and functionality from
16446 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
16447
16448 * frame.h (enum text_cursor_kinds): Consolidated here.
16449 Added DEFAULT_CURSOR value.
16450 (struct frame) <desired_cursor, cursor_width>
16451 <blink_off_cursor, blink_off_cursor_width>: New fields.
16452 Consolidated from output_x, output_w32 and output_mac structs.
16453 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16454 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
16455
16456 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
16457 Variables consolidated here.
16458 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
16459 (Vcursor_in_non_selected_windows): Renamed from
16460 cursor_in_non_selected_windows and changed to Lisp_Object.
16461 (syms_of_xdisp): Define and staticpro new and moved variables.
16462 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
16463 consolidated here. Recognize Qhollow setting.
16464 (set_frame_cursor_types): New function to set frame cursor types
16465 based on the frame parameters.
16466 (get_window_cursor_type): New function to calculate new cursor
16467 type and width for the specified window. Based on duplicated
16468 code consolidated here.
16469 Enhancements: cursor-in-non-selected-windows may be a cursor type,
16470 check buffer-local alternate-cursor-type and blink-cursor-alist
16471 before using built-in blink off methods.
16472
16473 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
16474
16475 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
16476 (get_specified_cursor_type, get_window_cursor_type)
16477 (set_frame_cursor_types): Added prototypes.
16478
16479 * macfns.c (x_specified_cursor_type): Removed.
16480 (x_set_cursor_type): Use set_frame_cursor_types.
16481 (Qbar, Qbox): Removed.
16482 (syms_of_macfns): Don't intern or staticpro them.
16483
16484 * macterm.c (x_specified_cursor_type): Remove prototype.
16485 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16486 (x_display_and_set_cursor): Use get_window_cursor_type.
16487 Remove unused local variables cursor_non_selected, active_cursor.
16488 Redraw cursor if hbar cursor width changes.
16489 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
16490
16491 * macterm.h (enum text_cursor_kinds): Removed.
16492 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
16493 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16494 (FRAME_DESIRED_CURSOR): Macro removed.
16495
16496 * w32fns.c (Vblink_cursor_alist): Removed.
16497 (Qbar, Qhbar, Qbox, Qhollow): Removed.
16498 (syms_of_w32fns): Don't intern, staticpro, or define them.
16499 (x_specified_cursor_type): Removed.
16500 (x_set_cursor_type): Use set_frame_cursor_types.
16501
16502 * w32term.c (x_specified_cursor_type): Remove prototype.
16503 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16504 (x_display_and_set_cursor): Use get_window_cursor_type.
16505 Remove unused local variables cursor_off_state.
16506 Redraw cursor if hbar cursor width changes.
16507 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
16508
16509 * w32term.h (enum text_cursor_kinds): Removed.
16510 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
16511 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16512 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16513 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
16514 (struct w32_display_info) <x_highlight_frame>: Renamed member from
16515 w32_highlight_frame.
16516
16517 * xfns.c (Vblink_cursor_alist): Removed.
16518 (Qbar, Qhbar, Qbox, Qhollow): Removed.
16519 (syms_of_xfns): Don't intern, staticpro, or define them.
16520 (x_specified_cursor_type): Removed.
16521 (x_set_cursor_type): Use set_frame_cursor_types.
16522
16523 * xterm.c (x_specified_cursor_type): Remove prototype.
16524 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16525 (x_display_and_set_cursor): Use get_window_cursor_type.
16526 Remove unused local variables cursor_off_state.
16527 Redraw cursor if hbar cursor width changes.
16528
16529 * xterm.h (enum text_cursor_kinds): Removed.
16530 (struct output_x) <current_cursor, desired_cursor, cursor_width>
16531 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16532 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16533 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
16534 (x_specified_cursor_type): Remove prototype.
16535
165362002-08-28 Richard M. Stallman <rms@gnu.org>
16537
16538 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
16539 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
16540 (Vblink_cursor_alist): New variable.
16541 (syms_of_w32fns): Initialize and defvar it.
16542 (x_specified_cursor_type): Recognize Qbox for filled box.
16543 Exceptions are hollow boxes.
16544 (Qbox, Qhollow): New variables.
16545 (syms_of_w32fns): Initialize and staticpro them.
16546
16547 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
16548 New macros.
16549 (struct w32_output): New fields blink_off_cursor,
16550 blink_off_cursor_width.
16551 (FRAME_CURSOR_WIDTH): New macro.
16552
16553 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
16554 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
16555
16556 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16557 for bar cursor.
16558
16559 * w32term.c (expose_overlaps): New function.
16560 (expose_window): Use it to fix the display of overlapping rows.
16561
165622002-08-28 Simon Josefsson <jas@extundo.com>
16563
16564 * xfns.c (Fx_open_connection): Improve help when X connection
16565 fails, xhost is insecure and xauth is better.
16566
165672002-08-28 Juanma Barranquero <lektu@terra.es>
16568
16569 * makefile.w32-in: Add missing dependencies on w32term.h and
16570 composite.h.
16571
16572 * emacs.c (USAGE1): Add missing newline.
16573
165742002-08-27 Andrew Choi <akochoi@shaw.ca>
16575
16576 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
16577
165782002-08-27 Richard M. Stallman <rms@gnu.org>
16579
16580 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
16581 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
16582 (Vblink_cursor_alist): New variable.
16583 (syms_of_xfns): Initialize and defvar it.
16584 (x_specified_cursor_type): Recognize Qbox for filled box.
16585 Exceptions are hollow boxes.
16586 (Qbox, Qhollow): New variables.
16587 (syms_of_xfns): Initialize and staticpro them.
16588
16589 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
16590 New macros.
16591 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
16592
16593 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
16594 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
16595
16596 * emacs.c (main): Handle --script.
16597 (USAGE1): Mention --script.
16598 (standard_args): Define sort order for --script.
16599
166002002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
16601
16602 * xdisp.c (redisplay_updating_p): Variable removed.
16603 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
16604 New variables.
16605 (init_iterator): Don't free realized faces if
16606 inhibit_free_realized_faces is set.
16607 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
16608 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
16609 initialize Qinhibit_free_realized_faces.
16610
16611 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
16612 when iterator is adding glyphs to a glyph matrix.
16613
166142002-08-27 Kenichi Handa <handa@etl.go.jp>
16615
16616 * xdisp.c (get_next_display_element): In unibyte case, don't use
16617 octal form for such eight-bit characters that can be converted to
16618 multibyte char.
16619
166202002-08-26 Kim F. Storm <storm@cua.dk>
16621
b6189c3b
KS
16622 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
16623 foreground and background colors. From Joe Buehler.
048addec
JD
16624
166252002-08-26 Miles Bader <miles@gnu.org>
16626
16627 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
16628
166292002-08-25 Andrew Choi <akochoi@shaw.ca>
16630
16631 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
16632 defined instead of MAC_OSX.
16633
16634 * s/darwin.h (select): Define select to sys_select only if
16635 HAVE_CARBON is defined.
16636 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
16637 (DONT_REOPEN_PTY): #def it.
16638
16639 * macterm.c (XTread_socket): Remove code to call
16640 SendEventToEventTarget for keys with command modifiers when
16641 mac_command_key_is_meta is nil.
16642
166432002-08-24 Andreas Schwab <schwab@suse.de>
16644
16645 * eval.c (Fdefvar): Fix last change.
16646
166472002-08-23 Richard M. Stallman <rms@gnu.org>
16648
16649 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
16650 Record variables in load history as (defvar . VAR).
16651 (Fdefvar): Don't record in load history if no initial value.
16652 (Qdefvar): New variable.
16653 (syms_of_eval): Init and staticpro it.
16654
16655 * lread.c (syms_of_lread): Doc fix.
16656 (build_load_history): Use Fmember to see if a definition
16657 is already in the Vload_history element.
16658
16659 * process.c (Fstart_process): Remove /: from program name.
16660
16661 * emacs.c (decode_env_path): Don't add /: if file name handler
16662 has a `safe-magic' property.
16663
16664 * callproc.c (Fcall_process): Remove /: from program name.
16665
166662002-08-23 Stefan Monnier <monnier@cs.yale.edu>
16667
16668 * regex.c (PATFETCH): Remove the translating fetch.
16669 (PATFETCH_RAW): Rename to PATFETCH.
16670 (set_image_of_range): New fun.
16671 (SET_RANGE_TABLE_WORK_AREA): Use it.
16672 (regex_compile): Don't translate the pattern chars so eagerly.
16673 Only do it when inserting an `exactn' bytecode or when handling
16674 a char-range.
16675 (mutually_exclusive_p): Avoid empty statement.
16676
166772002-08-22 Kim F. Storm <storm@cua.dk>
16678
16679 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
16680 end up on a partially visible line; this reverts a specific part
16681 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
16682 display error which has been reported several times now.
16683 However it introduces the problem that changes was supposed to fix.
16684 See my comments in the source if you want to debug this further.
16685
166862002-08-20 Kenichi Handa <handa@etl.go.jp>
16687
16688 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16689
166902002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
16691
16692 * msdos.c (croak): Add `void' to definition.
16693
c1380aa6 16694 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
16695 Don't define them, they are defined in msdos.c.
16696
16697 * mem-limits.h [MSDOS]: Declare etext.
16698
16699 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
16700 `const' since CORRECT_DIR_SEPS modifies its target.
16701
167022002-08-19 Kim F. Storm <storm@cua.dk>
16703
2fb0ce67 16704 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
16705 KEEP-RECORD to avoid clearing lossage when we just want to clear
16706 the current key sequence (kmacro needs this).
16707
167082002-08-19 Kenichi Handa <handa@localhost>
16709
16710 * composite.c (run_composition_function): Call FUNC if it is fboundp.
16711
16712 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
16713 cons, return Qnil.
16714
167152002-08-17 Richard M. Stallman <rms@gnu.org>
16716
16717 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
16718
16719 * sysdep.c [!VMS]: Include sys/files.h.
16720
16721 * editfns.c (save_restriction_restore): Defend from unchained marker.
16722
16723 * buffer.c (overlays_at): Handle extending vec uniformly.
16724 (overlays_in): Handle extending vec from length 0 as in overlays_at.
16725
167262002-08-15 Andrew Choi <akochoi@shaw.ca>
16727
16728 * mac.c (init_mac_osx_environment): New function.
16729
16730 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
16731
167322002-08-14 Kim F. Storm <storm@cua.dk>
16733
16734 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
16735 executing macro before appending to it (when used from Lisp).
16736 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
16737 which is called prior to each iteration of macro (for kmacro.el).
16738 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
16739
16740 * lisp.h (Fexecute_kbd_macro): Update prototype.
16741
16742 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
16743
167442002-08-14 Kenichi Handa <handa@etl.go.jp>
16745
16746 * xselect.c (QUTF8_STRING): New variable.
16747 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
16748 (x_atom_to_symbol): Likewise.
16749 (x_get_local_selection): New argument local_request. If it is
16750 nonzero, call handler_fn with the second arg nil.
16751 (x_handle_selection_request): Call x_get_local_selection with
16752 local_request 0.
16753 (lisp_data_to_selection_data): Don't encode the string here.
16754 (Fx_get_selection_internal): Call x_get_local_selection with
16755 local_request 1.
16756 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
16757
16758 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
16759
16760 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
16761
167622002-08-13 Richard M. Stallman <rms@gnu.org>
16763
16764 * minibuf.c (Fminibufferp): New function.
16765 (syms_of_minibuf): Defsubr it.
16766 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
16767
167682002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
16769
16770 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
16771
167722002-08-12 Richard M. Stallman <rms@gnu.org>
16773
16774 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
16775 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
16776 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
16777 already.
16778
16779 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
16780
167812002-08-11 Andrew Choi <akochoi@shaw.ca>
16782
16783 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
16784 (Vmac_pass_command_to_system): New variable.
16785 (Vmac_pass_control_to_system): New variable.
16786 (do_mouse_moved): Check wp with is_emacs_window.
16787 (XTread_socket): Check window_ptr with is_emacs_window.
16788 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
16789 events back to Mac Toolbox for processing, depending on values of
16790 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
16791 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
16792 Vmac_pass_control_to_system.
16793
167942002-08-10 Kenichi Handa <handa@etl.go.jp>
16795
16796 * coding.c (unencodable_char_position): New function.
16797 (Funencodable_char_position): New function.
16798 (syms_of_coding): Defsubr Funencodable_char_position.
16799
168002002-08-10 Andrew Choi <akochoi@shaw.ca>
16801
16802 * mac.c (sys_select) [MAC_OSX]: New function.
16803
16804 * macterm.c (MakeMeTheFrontProcess): New function.
16805 (mac_initialize): Call MakeMeTheFrontProcess.
16806
16807 * s/darwin.h: Define select to sys_select.
16808
168092002-08-09 Richard M. Stallman <rms@gnu.org>
16810
16811 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
16812
168132002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
16814
16815 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
16816 end of the buffer.
16817
88fde92a 168182002-08-08 Ken Raeburn <raeburn@gnu.org>
048addec
JD
16819
16820 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
16821
16822 * puresize.h (BASE_PURESIZE): Increase to 910000.
16823
168242002-08-08 Kenichi Handa <handa@etl.go.jp>
16825
16826 * coding.c (Ffind_operation_coding_system): For write-region, if
16827 VISIT is a filename, make it the target.
16828
168292002-08-07 Richard M. Stallman <rms@gnu.org>
16830
16831 * alloc.c (mark_object): Detect long lists for debugging.
16832 (mark_object_loop_halt): New variable.
16833
16834 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
16835
16836 * data.c (Fmake_variable_frame_local): Doc fix.
16837
168382002-08-01 David Ponce <david@dponce.com>
16839
16840 * w32menu.c (local_heap, local_alloc, local_free): New macros.
16841 (malloc_widget_value, free_widget_value)
16842 (w32_free_submenu_strings): Use them.
16843
16844 (push_submenu_start, push_submenu_end, push_left_right_boundary)
16845 (push_menu_pane, push_menu_item, single_keymap_panes)
16846 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
16847 (single_submenu, set_frame_menubar)
16848 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
16849
16850 (Fx_popup_menu): Don't show pop up menu until preceding one is
16851 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
16852
16853 * w32menu.c: Changes adapted from xmenu.c
16854 (set_frame_menubar): First parse all submenus,
16855 then make widget_value trees from them.
16856 Don't allocate any widget_value objects
16857 until we are done with the parsing.
16858 (parse_single_submenu): New function.
16859 (digest_single_submenu): New function.
16860 (single_submenu): Function deleted, replaced by those two.
16861
168622002-08-04 Andrew Choi <akochoi@shaw.ca>
16863
16864 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
16865 returns a valid window pointer before proceeding for keyDown and
16866 autoKey events.
16867
168682002-08-03 Andrew Choi <akochoi@shaw.ca>
16869
16870 * macterm.c (USE_CARBON_EVENTS): New macro.
16871 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
16872 (x_iconify_frame): Call CollapseWindow.
16873 (Vmac_reverse_ctrl_meta): New variable.
16874 (Vmac_wheel_button_is_mouse_2): New variable.
16875 (init_mac_drag_n_drop): New function.
16876 (mac_do_receive_drag): New function.
16877 (mac_handle_service_event): New function.
16878 (init_service_handler): New function.
16879 (mac_to_emacs_modifiers): New function.
16880 (mac_event_to_emacs_modifiers): New function.
16881 (mac_get_mouse_btn): New function.
16882 (mac_convert_event_ref): New function.
16883 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
16884 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
16885 mac_get_mouse_btn.
16886 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
16887
16888 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
16889 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
16890 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
16891 TOOL_BAR_EVENT for MAC_OS as well.
16892 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
16893 as for WINDOWS_NT.
16894 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
16895
16896 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
16897
168982002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
16899
16900 * xdisp.c (forward_to_next_line_start): Fix a condition that
16901 lead to a newline being skipped.
16902
169032002-08-02 Andrew Choi <akochoi@shaw.ca>
16904
16905 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
16906
169072002-08-01 Richard M. Stallman <rms@gnu.org>
16908
16909 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
16910
169112002-07-31 Andrew Choi <akochoi@shaw.ca>
16912
16913 * macfns.c: #undef init_process before #define-ing it.
16914
16915 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
16916 HAVE_CARBON is defined.
16917
169182002-07-31 Richard M. Stallman <rms@gnu.org>
16919
16920 * xmenu.c (set_frame_menubar): First parse all submenus,
16921 then make widget_value trees from them.
16922 Don't allocate any widget_value objects
16923 until we are done with the parsing.
16924 (parse_single_submenu): New function.
16925 (digest_single_submenu): New function.
16926 (single_submenu): Function deleted, replaced by those two.
16927
169282002-07-30 Juanma Barranquero <lektu@terra.es>
16929
16930 * w32proc.c (syms_of_ntproc): Fix docstring of
16931 `w32-get-true-file-attributes'.
16932
169332002-07-28 Richard M. Stallman <rms@gnu.org>
16934
16935 * s/hpux8.h (HPUX8): Define this before including hpux.h.
16936 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
16937
16938 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
16939
16940 * keyboard.c (make_lispy_event):
16941 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
16942 Explicitly clear up_modifier in event->modifiers.
16943
169442002-07-27 Richard M. Stallman <rms@gnu.org>
16945
16946 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
16947
16948 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16949 for bar cursor.
16950
169512002-07-26 Kenichi Handa <handa@etl.go.jp>
16952
16953 * coding.c (detect_coding_iso2022): While checking a byte sequence
16954 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
16955 it in the normal loop.
16956
169572002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
16958
16959 * xterm.c (expose_overlaps): New function.
16960 (expose_window): Use it to fix the display of overlapping rows.
16961
16962 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
16963
169642002-07-23 Ken Raeburn <raeburn@gnu.org>
16965
16966 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
16967 since it only depends on XUINT.
16968
16969 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
16970 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
16971 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
16972 Macros deleted.
3947677c 16973
77d1daf2
AS
16974 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
16975 its value over other approaches.
16976 * sysdep.c (start_of_data): Don't define the function if a macro
16977 form has been defined.
8a8e19a3 16978
048addec
JD
169792002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
16980
16981 * xdisp.c (redisplay_updating_p): New variable.
16982 (init_iterator): Don't free realized faces when
16983 redisplay_updating_p is set.
16984 (redisplay_internal): Set redisplay_updating_p while updating
16985 the display.
16986
169872002-07-23 Richard M. Stallman <rms@gnu.org>
16988
16989 * editfns.c (Fmessage): Treat "" like nil.
16990
169912002-07-23 Kenichi Handa <handa@etl.go.jp>
16992
16993 * xdisp.c (face_before_or_after_it_pos):
16994 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16995
169962002-07-22 Juanma Barranquero <lektu@terra.es>
16997
16998 * callproc.c (init_callproc) [DOS_NT]:
16999 Initialize Vshared_game_score_directory to nil.
17000 (syms_of_callproc) [DOS_NT]: Likewise.
17001
170022002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
17003
17004 * xdisp.c (display_line): Replace an abort with xassert.
17005
170062002-07-21 Richard M. Stallman <rms@gnu.org>
17007
17008 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
17009 and END_UNCHANGED when setting buffer_unchanged_p.
17010 Use current_matrix_up_to_date_p to decide whether to use
17011 try_cursor_movement.
17012
17013 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
17014
17015 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
17016
17017 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
17018 Set to nil if dir does not exist.
17019 (syms_of_callproc): Init unconditionally and simply.
17020
17021 * buffer.c (Fbuffer_list): Doc fix.
17022
170232002-07-21 Ken Raeburn <raeburn@gnu.org>
17024
17025 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
17026
17027 * buffer.c (mmap_realloc): When shrinking, make sure number of
17028 pages to unmap is rounded towards zero.
17029
17030 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
17031 (XSETINT): Deleted.
17032
17033 * m/att3b.h (XINT): Don't define.
17034 (VALBITS, VALMASK, XTYPE): Deleted.
17035 (DATA_SEG_BITS): Define.
17036 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
17037 ARRAY_MARK_FLAG): Deleted.
17038 (DATA_SEG_BITS): Define.
17039 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
17040 (DATA_SEG_BITS): Define.
17041
170422002-07-20 Richard M. Stallman <rms@gnu.org>
17043
17044 * print.c (print_error_message): New args CONTEXT and CALLER.
17045 Calls changed.
17046
17047 * lisp.h (print_error_message): Declare new args.
17048
17049 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
17050 and CONTEXT to print_error_message, don't print them here.
17051 For a Quit, don't use Vsignaling_function.
17052 Call message_log_maybe_newline.
17053
17054 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
17055
170562002-07-20 Kim F. Storm <storm@cua.dk>
17057
17058 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
17059
170602002-07-19 Ken Raeburn <raeburn@gnu.org>
17061
17062 * bytecode.c (struct byte_stack): Pointers into byte string now
17063 point to const.
17064 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
17065 const.
17066 * charset.h (BCOPY_SHORT): Source pointer now points to const.
17067 * coding.c (encode_eol, detect_coding, detect_eol):
17068 (decode_coding, encode_coding, detect_coding_system):
17069 Source strings now treated as const.
17070 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
17071 modify Lisp string contents.
17072 * coding.h (decode_coding, encode_coding, detect_coding,
17073 detect_eol): Declarations updated.
17074 * composite.c (compose_chars_in_text): Treat Lisp string contents
17075 as const.
17076 * dispnew.c (safe_bcopy): Source pointer now points to const.
17077 * lisp.h (STRING_COPYIN): New macro.
17078 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
17079 (internal_with_output_to_temp_buffer): Declarations updated.
17080 * print.c (temp_output_buffer_setup):
17081 (internal_with_output_to_temp_buffer): Buffer name argument is now
17082 pointer to const.
17083 * sound.c (struct sound_device): Function pointer field "write"
17084 buffer argument now points to const.
17085 (vox_write): Buffer argument points to const.
17086 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
17087 contents as const.
17088 * sysdep.c (emacs_write): Buffer pointer now const.
17089 * term.c (encode_terminal_code): Buffer pointer now const.
17090 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
17091 (x_face_list_fonts, x_update_menu_appearance):
17092 (hash_string_case_insensitive): Treat Lisp string contents as const.
17093
170942002-07-19 Juanma Barranquero <lektu@terra.es>
17095
048addec
JD
17096 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
17097
17098 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
17099 (Ffile_name_as_directory): Fix argument name in docstring.
17100 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
17101
171022002-07-18 Richard M. Stallman <rms@gnu.org>
17103
17104 * data.c (Fdefalias): Doc fix.
17105
171062002-07-17 Dave Love <fx@gnu.org>
17107
17108 * intervals.h (text_property_stickiness): Use P_.
17109
17110 * ccl.c: Remove `emacs' conditionals.
17111 (ccl_backtrace_table): Fix size spec.
17112 (ccl_driver): Fix type errors.
17113
171142002-07-16 Ken Raeburn <raeburn@gnu.org>
17115
17116 * alloc.c (xstrdup, make_string, make_unibyte_string)
17117 (make_multibyte_string, build_string): String pointer args now
17118 point to const.
17119 * charset.c (find_charset_in_text, c_string_width):
17120 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
17121 * fileio.c (report_file_error):
17122 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
17123 (count_combining_before, count_combining_after, insert_1_both):
17124 (insert, insert_and_inherit, insert_string):
17125 (insert_before_markers, insert_before_markers_and_inherit):
17126 * lread.c (intern, oblookup, hash_string):
17127 * minibuf.c (temp_echo_area_glyphs):
17128 * search.c (fast_c_string_match_ignore_case):
17129 * sysdep.c (emacs_open, set_file_times):
17130 * xfaces.c (xstricmp):
17131 * xdisp.c (store_frame_title, string_char_and_length):
17132 (message_dolog, message2, message2_nolog, set_message): Likewise.
17133 (set_message_1): Cast message string argument to const pointer.
17134 * editfns.c (general_insert_function): Insertion function now
17135 takes pointer to const for input data.
17136 * charset.h (find_charset_in_text, c_string_width):
17137 (parse_str_as_multibyte): Declarations updated.
17138 * dispextern.h (xstricmp): Declaration updated.
17139 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
17140 (count_size_as_multibyte, count_combining_before):
17141 (count_combining_after, insert_1, insert_1_both, message_dolog):
17142 (insert, insert_and_inherit, insert_before_markers)
17143 (insert_before_markers_and_inherit, set_message, message2):
17144 (message2_dolog, build_string, make_string, make_unibyte_string):
17145 (make_multibyte_string, intern, oblookup, report_file_error):
17146 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
17147 (emacs_open, xstrdup): Declarations updated.
17148 * systime.h (set_file_times): Declaration updated.
17149
17150 * charset.c (find_charset_in_text, lisp_string_width): Use const
17151 for pointer to lisp string data.
17152 * charset.h (FETCH_STRING_CHAR_ADVANCE):
17153 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
17154 * coding.c (Ffind_coding_systems_region_interval):
17155 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
17156 (Fmake_directory_internal, Fdelete_directory):
17157 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
17158 * fontset.c (font_family_registry, fs_query_fontset):
17159 (list_fontsets):
17160 * frame.c (Fframe_parameter):
17161 * keyboard.c (cmd_error_internal):
17162 * keymap.c (Fdescribe_buffer_bindings):
17163 * lread.c (complete_filename_p, openp):
17164 * minibuf.c (Fminibuffer_complete_word):
17165 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
17166 (face_before_or_after_it_pos, next_element_from_string):
17167 (get_overlay_arrow_glyph_row, display_mode_element):
17168 (decode_mode_spec_coding):
17169 * xterm.c (same_x_server): Likewise.
17170
17171 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
17172 settings of non-existent fields.
17173
17174 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
17175 copy a lisp value.
17176
17177 * lread.c (Fintern_soft): Use string macros instead of
17178 Lisp_String fields.
17179 * keyboard.c (echo_char, parse_modifiers_uncached):
17180 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
17181 * textprop.c (validate_interval_range, interval_of): Likewise.
17182
17183 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
17184
17185 * charset.h (FETCH_STRING_CHAR_ADVANCE)
17186 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
17187 XSTRING()->size_byte.
17188
17189 * lisp.h (SDATA, SREF): Produce rvalue.
17190 (SSET): New macro.
17191 * alloc.c (make_event_array): Use SSET for storing into a string.
17192 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
17193 a string.
17194 * casefiddle.c (casify_object): Use SSET.
17195 * charset.h (FETCH_STRING_CHAR_ADVANCE)
17196 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
17197 address of string contents.
17198 * data.c (Faref): Use SDATA.
17199 (Faset): Use SDATA, SSET.
17200 * dired.c (directory_files_internal): Use SSET.
17201 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
17202 (Fread_file_name): Use SREF, SSET.
17203 * fns.c (concat): Use SSET.
17204 (concat, Fdelete): Use SDATA.
17205 * insdel.c (insert_from_string_1): Use SDATA.
17206 * keyboard.c (Fevent_convert_list): Use SREF.
17207 * lread.c (Fload): Use SDATA, SSET.
17208 * macfns.c (validate_x_resource_name): Use SSET.
17209 * process.c (status_message): Use SSET.
17210 * search.c (wordify): Use SDATA.
17211 (Freplace_match): Use SREF.
17212 * w32fns.c (validate_x_resource_name): Use SSET.
17213 * xfns.c (validate_x_resource_name): Use SSET.
17214 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
17215
172162002-07-16 Richard M. Stallman <rms@gnu.org>
17217
17218 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
17219
17220 * xdisp.c (reconsider_clip_changes):
17221 Don't test prevent_redisplay_optimizations_p.
17222 (redisplay_internal): Test prevent_redisplay_optimizations_p
17223 along with clip_changed in some cases.
17224 (try_window_id): Likewise.
17225 (redisplay_window): New local var buffer_unchanged_p.
17226
17227 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
17228
17229 * process.c (create_process): Test USG_SUBTTY_WORKS.
17230 (process_send_signal): Clean up handling of GID.
17231 Detect errors in ioctls meant to set GID.
17232
17233 * window.c (temp_output_buffer_show):
17234 Don't set prevent_redisplay_optimizations_p.
17235
172362002-07-15 Juanma Barranquero <lektu@terra.es>
17237
17238 * eval.c (Fdefvaralias): Add docstring argument.
17239
172402002-07-15 Ken Raeburn <raeburn@gnu.org>
17241
17242 * lisp.h (STRING_INTERVALS): Produce rvalue.
17243 (STRING_SET_INTERVALS): New macro.
17244 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
17245 * fns.c (Fstring_as_multibyte): Likewise.
17246 * intervals.c (balance_possible_root_interval, delete_interval)
17247 (create_root_interval, copy_intervals_to_string): Likewise.
17248 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
17249 instead of 0.
17250
172512002-07-14 Ken Raeburn <raeburn@gnu.org>
17252
17253 * lisp.h (STRING_SET_CHARS): New macro.
17254 (SCHARS, SBYTES): Produce rvalues.
17255 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
17256 * fns.c (concat): Likewise.
17257 * lread.c (read_vector): Likewise.
17258
3419757d 17259 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 17260 (STRING_SET_UNIBYTE): New macro.
3419757d 17261 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
17262 length of -1) changed to use STRING_SET_UNIBYTE.
17263 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17264 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
17265 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
17266 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
17267 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
17268 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
17269 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
17270 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
17271 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
17272 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
17273 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
17274 STRING_BYTES or indirection changed to SCHARS, SBYTES,
17275 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
17276 unchanged for now.
17277
172782002-07-13 Kim F. Storm <storm@cua.dk>
17279
17280 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
17281
172822002-07-12 Richard M. Stallman <rms@gnu.org>
17283
17284 * fileio.c (Fwrite_region): Doc fix.
17285
17286 * print.c (print_error_message): Don't handle Vsignaling_function here.
17287
17288 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
17289 (command_loop_1): Avoid certain actions after memory-full error.
17290
17291 * eval.c (Fsignal): Don't call cancel_hourglass.
17292 For a memory-full error, don't call Vsignal_hook_function
17293 and don't set Vsignaling_function.
17294
17295 * process.c (process_send_signal): Add abort call.
17296
172972002-07-11 Markus Rost <rost@math.ohio-state.edu>
17298
17299 * keymap.c (Fkey_binding): Fix typo.
17300
173012002-07-11 Richard M. Stallman <rms@gnu.org>
17302
17303 * alloc.c (Vmemory_full): New variable.
3419757d 17304 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
17305 Uses changed.
17306 (syms_of_alloc): Defvar them.
17307 (memory_full, buffer_memory_full): Set Vmemory_full.
17308
17309 * lisp.h (Vmemory_full): Add declaration.
17310 (current_column, indented_beyond_p): Change declaration.
17311
17312 * indent.c (last_known_column): Declare as double, not float.
17313 (current_column, current_column_1, string_display_width)
17314 (position_indentation): Return `double'.
17315 (indented_beyond_p): Arg `column' is `double'. Callers changed.
17316
17317 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
17318 (back_to_previous_visible_line_start)
17319 (reseat_at_next_visible_line_start, next_element_from_buffer):
17320 Use `double', not `float', when calling indented_beyond_p.
17321
3419757d 17322 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
17323
17324 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
17325
173262002-07-11 Juanma Barranquero <lektu@terra.es>
17327
17328 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
17329 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
17330 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
17331 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
17332 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
17333 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
17334
173352002-07-10 Juanma Barranquero <lektu@terra.es>
17336
d814862a
JB
17337 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
17338 All callers changed.
048addec
JD
17339
173402002-07-09 Stefan Monnier <monnier@cs.yale.edu>
17341
17342 * data.c (Fdefalias): Add an optional `docstring' argument.
17343 (set_internal, Fsetq_default): Use XCAR/XCDR.
17344
17345 * composite.c (HASH_VALUE, HASH_KEY):
17346 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
17347
173482002-07-09 Kenichi Handa <handa@etl.go.jp>
17349
17350 * callproc.c (Fcall_process): Fix previous change.
17351
173522002-07-07 Stefan Monnier <monnier@cs.yale.edu>
17353
17354 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
17355 Add support for hash-tables.
17356 (Ftry_completion): Return t even if the string appears multiple times.
17357
17358 * fns.c (Fnconc): Use XCDR.
17359 (Fprovide): Use CONSP and XCDR.
17360 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
17361 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
17362 (Fmake_hash_table): Accept `:size nil'.
17363 (Fmakehash): Delete: moved to subr.el.
17364 (syms_of_fns): Don't defsubr makehash.
17365
17366 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
17367 (HASH_TABLE_SIZE): Move from fns.c.
17368
173692002-07-07 Richard M. Stallman <rms@gnu.org>
17370
17371 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
17372 Instead just return 0 when there is something to be done.
17373 (try_scrolling): If make_cursor_line_fully_visible returns 0,
17374 retry scrolling as if cursor were off the bottom.
17375 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
17376 return CURSOR_MOVEMENT_MUST_SCROLL.
17377 (redisplay_window): If make_cursor_line_fully_visible returns 0,
17378 go to try_to_scroll.
17379
17380 * buffer.c (Fbuffer_local_value): Store current value into its binding
17381 so we get the up-to-date value for the binding that is loaded.
17382
17383 * eval.c (Fdefmacro): Doc fix.
17384
173852002-07-05 Dave Love <fx@gnu.org>
17386
17387 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
17388 correctly.
17389
17390 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
17391 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
17392 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
17393 CCL_LookupCharConstTbl.
17394 (syms_of_ccl): Defvar translation-hash-table-vector.
17395
173962002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17397
17398 * xdisp.c: Remove unused variable `face'.
17399
174002002-07-04 Juanma Barranquero <lektu@terra.es>
17401
17402 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
17403 obsolescence information.
17404
174052002-07-03 Andrew Choi <akochoi@shaw.ca>
17406
17407 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
17408 pattern. Search cache first.
17409 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
17410 for Japanese font.
17411 (XLoadQueryFont): Use it.
17412
174132002-07-02 Richard M. Stallman <rms@gnu.org>
17414
17415 * keymap.c (Fdefine_key): Doc fix.
17416
17417 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
17418
174192002-07-02 Juanma Barranquero <lektu@terra.es>
17420
17421 * keymap.c (syms_of_keymap): Fix typo.
17422
174232002-07-01 Andrew Choi <akochoi@shaw.ca>
17424
17425 * s/darwin.h: Define POSIX_SIGNALS.
17426
17427 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
17428 and FSRefMakePath to convert FSSpec returned with Apple Event to
17429 Posix pathname.
17430 (mac_initialize) [TARGET_API_MAC_CARBON]:
17431 Call init_required_apple_events and disable the `Quit' menu item
17432 provided automatically by the Carbon Toolbox.
17433
174342002-07-01 Dave Love <fx@gnu.org>
17435
17436 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17437 for K&R.
17438
17439 * xterm.c: Fix prototype for K&R.
17440
17441 * term.c (costs_set): Declare static, non-initialized for pcc.
17442
174432002-07-01 Richard M. Stallman <rms@gnu.org>
17444
17445 * keyboard.c (timer_last_idleness_start_time): New variable.
17446 (timer_start_idle): Set that.
17447 (read_key_sequence): Use that to reset timer_idleness_start_time
17448 to previous value.
17449
17450 * window.c (Frecenter): With arg, set optional_new_start.
17451
17452 * xdisp.c (redisplay_internal): Make optional_new_start really work.
17453
17454 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
17455 buffer for completion.
17456
174572002-06-29 Ken Raeburn <raeburn@gnu.org>
17458
17459 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
17460
174612002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17462
17463 * keyboard.c (readable_filtered_events): New function that filters
17464 FOCUS_IN_EVENT depending on parameter.
17465 (readable_events): Calls readable_filtered_events, not filtering
17466 FOCUS_IN_EVENT.
17467 (get_filtered_input_pending): New function, filtering parameter passed
17468 to readable_filtered_events.
17469 (get_input_pending): Calls get_filtered_input_pending, not filtering
17470 FOCUS_IN_EVENT.
17471 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
17472 FOCUS_IN_EVENT.
17473
17474 * xterm.h (struct x_output): Add focus_state.
17475
17476 * xterm.c (x_focus_changed): New function.
17477 (x_detect_focus_change): New function.
17478 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
17479 EnterNotify and LeaveNotify to track X focus changes.
17480
174812002-06-28 Andreas Schwab <schwab@suse.de>
17482
17483 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
17484
174852002-06-27 Kim F. Storm <storm@cua.dk>
17486
52eb0373 17487 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
17488 (mode_line_string_face_prop): New variables.
17489 (store_mode_line_string): New function.
17490 (display_mode_element): Use store_mode_line_string to
17491 add mode-line string elements to mode_line_string_list
17492 when mode_line_string_list is non-nil.
17493 (Fformat_mode_line): Now returns propertized string by
17494 default. New arg NO-PROPS to ignore properties.
17495 (decode_mode_spec): Only add two dashes for %- in propertized
17496 mode-line string.
17497 (syms_of_xdisp): Init and staticpro mode_line_string_list.
17498
174992002-06-27 Stefan Monnier <monnier@cs.yale.edu>
17500
17501 * minibuf.c (minibuffer_completion_contents): Add return type.
17502
175032002-06-27 Juanma Barranquero <lektu@terra.es>
17504
17505 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
17506
175072002-06-26 Juanma Barranquero <lektu@terra.es>
17508
17509 * fileio.c (read_file_name_cleanup): Add missing return.
17510
175112002-06-26 Richard M. Stallman <rms@gnu.org>
17512
17513 * window.c (Frecenter): Don't set force_start flag.
17514
17515 * minibuf.c (do_completion, Fminibuffer_complete_word)
17516 (Fminibuffer_completion_help): Complete just the text before point.
17517 (minibuffer_completion_contents): New function.
17518
17519 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
17520
17521 * frame.c (frames_bury_buffer): Function deleted.
17522
175232002-06-25 Miles Bader <miles@gnu.org>
17524
17525 * callint.c (Fcall_interactively): When checking to see if doprnt hit
17526 the end of callint_message, allow for a terminating '\0'.
17527
175282002-06-24 Juanma Barranquero <lektu@terra.es>
17529
52eb0373 17530 * w32select.c: Include composite.h.
048addec
JD
17531
17532 * w16select.c: Likewise.
17533
175342002-06-24 Kenichi Handa <handa@etl.go.jp>
17535
17536 * callproc.c (Fcall_process): If code detection is necessary,
17537 call detect_coding directly here.
17538
17539 * coding.c (detect_eol): Preserve coding->cmp_data.
17540
17541 * w16select.c (Fw16_get_clipboard_data):
17542 * w32fns.c (w32_to_x_font):
17543 * w32select.c (Fw32_get_clipboard_data):
17544 * xselect.c (selection_data_to_lisp_data):
17545 * xterm.c (XTread_socket): Disable composition handling.
17546
175472002-06-24 Stefan Monnier <monnier@cs.yale.edu>
17548
17549 * print.c (temp_output_buffer_setup): Kill all local variables.
17550
175512002-06-22 Stefan Monnier <monnier@cs.yale.edu>
17552
17553 * lread.c (Fread): Remove redundant and imprecise declaration.
17554
17555 * xfns.c (check_x_display_info): Use check_x_frame.
17556
17557 * .gdbinit (xprintsym): Use the new `xname' field.
17558 (xsymbol): Use it.
17559
175602002-06-22 Jason Rumney <jasonr@gnu.org>
17561
17562 * w32fns.c (file_dialog_callback): New function.
17563 (Fx_file_dialog): Allow selecting directories as well as files.
17564
175652002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17566
17567 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 17568 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
17569
175702002-06-17 Andrew Choi <akochoi@shaw.ca>
17571
17572 * macterm.c (mac_scroll_area): Set foreground and backcolor to
17573 black and white before scrolling. Restore frame background and
17574 foreground color after scrolling.
17575 (do_window_update): Call XClearWindow before calling expose_frame.
17576 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
17577 FRAME_FOREGROUND_PIXEL of frame.
17578
17579 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
17580 test Mac command key as <ALT> key.
17581
175822002-06-17 Stefan Monnier <monnier@cs.yale.edu>
17583
17584 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
17585
17586 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
17587 Lookup keys in function-key-map immediately so that key-translation-map
17588 can be applied earlier.
17589 Remove function_key_possible and key_translation_possible, replaced
17590 by checking `keytran_start < t'.
17591
17592 * .gdbinit (xsymbol): Use the new `xname' field.
17593
175942002-06-17 Andrew Choi <akochoi@shaw.ca>
17595
17596 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
17597 test Mac command key as <ALT> key.
17598
17599 * mac.c (do_applescript): Call initialize_applescript if necessary
17600 when first called. Dispose of result_desc only when there is no error.
17601 (Fdo_applescript): Use %d format specifier instead of %ld.
17602
176032002-06-16 Andrew Choi <akochoi@shaw.ca>
17604
17605 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
17606 of FrontWindow for cases keyDown and autoKey.
17607
17608 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
17609 Vdefault_fontset to Monaco with mac-roman coding.
17610
17611 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
17612 init_process before and after inclusion of Carbon/Carbon.h, resp.
17613
17614 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
17615 cursor_gc.
17616 (add_font_name_table_entry): New function.
17617 (init_font_name_table): Use add_font_name_table_entry; add italic,
17618 bold, and bold-italic entries for truetype fonts.
17619
17620 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
17621 for Mac too.
17622 (try_font_list) [MAC_OS]: If no font matches given registry, try
17623 fonts with any registry matching face_family.
17624 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
17625
17626 * s/darwin.h: If autoconf detects the Ncurses library, define
17627 LIBS_TERMCAP to -lncurses to use it.
17628
176292002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
17630
17631 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
17632
176332002-06-15 Richard M. Stallman <rms@gnu.org>
17634
17635 * window.c (Fset_window_configuration): Explicitly preserve
17636 the point value that new_current_buffer had at the start.
17637
176382002-06-14 Juanma Barranquero <lektu@terra.es>
17639
17640 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
17641 Fix typos.
17642
176432002-06-14 Kim F. Storm <storm@cua.dk>
17644
17645 * insdel.c (insert_1_both, insert_from_string_1)
17646 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
17647 insert happened in the end_unchanged region. Otherwise, the
17648 redisplay may be confused and duplicate the last line in the
17649 buffer [seen after save-buffer when require-final-newline==t].
17650
176512002-06-13 Jason Rumney <jasonr@gnu.org>
17652
17653 * w32.c (init_environment): Remove EMACSLOCKDIR.
17654 (stat): Swap _S_IFDIR and _S_IFREG.
17655
176562002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17657
17658 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
17659 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
17660 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
17661 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
17662 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
17663 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
17664 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
17665 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
17666 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
17667 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
17668 SELECTION_REQUEST_EVENT, selection_clear_event to
17669 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
17670 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
17671 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
17672 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
17673 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
17674 no_event to NO_EVENT.
17675
176762002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17677
17678 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
17679
176802002-06-12 Stefan Monnier <monnier@cs.yale.edu>
17681
17682 * intervals.c (textget): Don't forget to `return'.
17683 (lookup_char_property): Use XCAR/XCDR.
17684
176852002-06-12 Juanma Barranquero <lektu@terra.es>
17686
17687 * xdisp.c (Fformat_mode_line): Fix typo.
17688
176892002-06-12 Kim F. Storm <storm@cua.dk>
17690
17691 * xdisp.c (Fformat_mode_line): New function.
17692 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
17693 (store_frame_title_char, store_frame_title): Use unconditionally.
17694 (init_xdisp): Defsubr Fformat_mode_line.
17695 Initialize frame_title_buf etc. unconditionally.
17696
176972002-06-11 Stefan Monnier <monnier@cs.yale.edu>
17698
17699 * keyboard.c (read_key_sequence):
17700 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
17701 things through those maps after downcasing events.
17702 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
17703 applies after function-key-map.
17704 Make sure that keytran can be done in the middle in the sequence.
17705 Be careful not to throw away events past the one we downcase.
17706
17707 * lread.c (read_integer): Remove unused var `tem'.
17708 (read1): Fix int/Lisp_Object mixup.
17709
17710 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
17711
177122002-06-11 Richard M. Stallman <rms@gnu.org>
17713
17714 * keyboard.c (readable_events): Ignore any number of
17715 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
17716
177172002-06-09 Miles Bader <miles@gnu.org>
17718
17719 * xfaces.c (Ftty_supports_face_attributes_p): New function.
17720 (parse_rgb_list, tty_lookup_color): New functions.
17721 (tty_defined_color): Use `tty_lookup_color' to do all the work.
17722 (color_distance, Fcolor_distance): New functions.
17723 (TTY_SAME_COLOR_THRESHOLD): New macro.
17724 (Qtty_color_standard_values): New variable.
17725 (syms_of_xfaces): Initialize new vars & functions.
17726
177272002-06-08 Colin Walters <walters@verbum.org>
17728
17729 * textprop.c (Vchar_property_alias_alist): New variable.
17730 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
17731
17732 * intervals.c (lookup_char_property): New function for looking up
17733 overlay and text properties, created from textget.
17734 (textget): Use it.
17735
17736 * intervals.h (lookup_char_property): Declare.
17737 (Vchar_property_alias_alist): Declare.
17738
17739 * buffer.c (Foverlay_get): Use lookup_char_property.
17740
177412002-06-07 Sam Steingold <sds@gnu.org>
17742
17743 * xselect.c (lisp_data_to_selection_data): Fix last change:
17744 *data_ret is not a Lisp string, while unibyte_string is.
17745
177462002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
17747
17748 * xselect.c (lisp_data_to_selection_data): Fix last change:
17749 set size_ret.
17750
177512002-06-07 Andreas Schwab <schwab@suse.de>
17752
17753 * m/amdx86-64.h: New file.
17754
177552002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
17756
17757 * fns.c (Fstring_make_unibyte): Doc fix.
17758
17759 * xselect.c (lisp_data_to_selection_data): If the requested type
17760 is STRING, call string_make_unibyte to encode the selected text
17761 as a string.
17762
17763 * window.c (Fset_window_hscroll): Doc fix.
17764
177652002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17766
17767 * fileio.c (choose_write_coding_system):
17768 Call select-safe-coding-system properly.
17769
177702002-06-03 Richard M. Stallman <rms@gnu.org>
17771
17772 * xdisp.c (message_with_string): Error if STRING is not a string.
17773
17774 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
17775
17776 * fileio.c (choose_write_coding_system): Pass FILE arg to
17777 Vselect_safe_coding_system_function.
17778
177792002-06-03 Ken Raeburn <raeburn@gnu.org>
17780
17781 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
17782
177832002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
17784
17785 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
17786 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
17787 * keymap.c (describe_command): Likewise.
17788 * minibuf.c (read_minibuf): Likewise.
17789
17790 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
17791 Cast `current_column' return value to int.
17792 (back_to_previous_visible_line_start)
17793 (reseat_at_next_visible_line_start, next_element_from_buffer):
17794 Cast `indented_beyond_p' 3rd arg to float.
17795
17796 * indent.c (last_known_column): Now a float.
17797 (current_column_1, position_indentation, current_column)
17798 (string_display_width): Return float.
17799 (Fcurrent_column): Cast `current_column' return value to int.
17800 (Fcurrent_indentation): Cast `position_indentation' retval to int.
17801 (indented_beyond_p): Third arg now a float.
17802 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
17803
17804 * lisp.h (current_column): Now returns float.
17805 (indented_beyond_p): 3rd arg now a float.
17806
178072002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
17808
17809 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
17810 is Qcompound_text_with_extensions.
17811
17812 * xselect.c (lisp_data_to_selection_data): Always set selection
17813 type as string if x_encode_text returns streingp non-NULL.
17814
17815 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
17816
178172002-05-30 Richard M. Stallman <rms@gnu.org>
17818
17819 * window.c (Fset_window_configuration): Correct the handling
17820 of point in current buffer, to work with multiple windows.
17821
178222002-05-29 Colin Walters <walters@verbum.org>
17823
17824 * lread.c (Fread_from_string): Don't depend on order of evaluation
17825 for C function parameters.
17826
178272002-05-28 Richard M. Stallman <rms@gnu.org>
17828
17829 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
17830 way for blinked-off state and for a nonselected window.
17831
17832 * window.c (window_scroll_pixel_based): Don't call Fbolp;
17833 instead, see if the new start pos is at beginning of line.
17834
17835 * fileio.c (Fwrite_region): If START is a string, don't
17836 make any annotations.
17837
17838 * eval.c (syms_of_eval): Doc fix.
17839
178402002-05-28 Colin Walters <walters@debian.org>
17841
17842 * emacs.c (USAGE1): Add --no-splash.
17843 (standard_args): Ditto.
17844
178452002-05-28 Colin Walters <walters@gnu.org>
17846
17847 * lread.c (readchar_count): New variable.
17848 (readchar): Increment it.
17849 (unreadchar): Decrement it.
17850 (read_multibyte): Decrement it.
17851 (Vread_with_symbol_positions): New variable.
17852 (Vread_symbol_positions_list): New variable.
17853 (read_internal_start): New function, created from Fread and
17854 Fread_from_string. Handle Vread_symbol_positions_list and
17855 Vread_with_symbol_positions.
17856 (readevalloop, Fread, Fread_from_string): Use it.
17857 (read1): Use readchar_count to add symbol positions to
17858 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
17859 (syms_of_lread): DEFVAR_LISP and initialize them.
17860
17861 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
17862 (substitute_object_recurse, substitute_object_in_subtree)
17863 (substitute_in_interval): Prototype.
17864 (read_multibyte): Return c if it's less than zero.
17865
178662002-05-28 Kim F. Storm <storm@cua.dk>
17867
17868 * fileio.c (Fread_file_name_internal): Added brute-force
17869 speed up for using predicate file-directory-p.
17870
178712002-05-28 Kim F. Storm <storm@cua.dk>
17872
17873 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
17874 New variables.
17875 (syms_of_fileio): DEFVAR_LISP them.
17876 (read_file_name_cleanup): New unwind function.
17877 (Fread_file_name_internal): Only return completions satifying
17878 Vread_file_name_predicate. Temporarily unwind protect and rebind
17879 default-directory while checking completions against the predicate.
17880 (Fread_file_name): Added PREDICATE argument. Specbind it to
17881 Vread_file_name_predicate during completion.
17882 Call Vread_file_name_function to read the file name if non-nil.
17883
17884 * lisp.h (Fread_file_name): Now has 6 args.
17885
17886 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
17887 predicate for Fread_file_name when reading directory name.
17888 Supply Qnil for predicate in other calls to Fread_file_name.
17889
178902002-05-26 Miles Bader <miles@gnu.org>
17891
17892 * term.c (tty_capable_p): New function.
17893 * dispextern.h (tty_capable_p): New function declaration.
17894 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
17895 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
17896
178972002-05-23 Stefan Monnier <monnier@cs.yale.edu>
17898
17899 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
17900 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
17901 (Vwrite_region_annotate_functions): Docstring fix.
17902
179032002-05-23 Kim F. Storm <storm@cua.dk>
17904
17905 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
17906 phys_cursor's hpos is overwritten. This is still not completely
17907 correct, as it doesn't really make sense to use hpos at all to
17908 get the cursor glyph (as that is relative to the width of the
17909 characters on the line, which may have changed during the update).
17910
179112002-05-22 Jason Rumney <jasonr@gnu.org>
17912
17913 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
17914 Lisp_Object.
17915 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
17916 Use modified enumfont_t struct.
17917
17918 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
17919
17920 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
17921 Handle the `hbar' cursor type.
17922 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
17923
17924 * w32fns.c (Qhbar): New variable.
17925 (x_specified_cursor_type): Use it.
17926
179272002-05-21 Ken Raeburn <raeburn@gnu.org>
17928
17929 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
17930 now, when the address is needed.
17931
179322002-05-21 Colin Walters <walters@gnu.org>
17933
17934 * Makefile.in (shortlisp): Add font-core.el.
17935
179362002-05-20 Richard M. Stallman <rms@gnu.org>
17937
17938 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
17939
17940 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
17941 equivalent key bindings here.
17942
179432002-05-20 Ken Raeburn <raeburn@gnu.org>
17944
17945 Change symbol structure to contain a lisp object for the symbol
17946 name:
17947 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
17948 object field named "xname".
17949 (SYMBOL_NAME): New macro.
17950 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
17951 name field.
17952 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
17953 (mark_object, gc_sweep): Use symbol xname field and XSTRING
17954 instead of name field.
17955 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
17956 SYMBOL_NAME instead of XSYMBOL and name field.
17957 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
17958 instead of XSYMBOL and name field.
17959 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
17960 and SYMBOL_NAME instead of XSYMBOL and name field.
17961 * coding.c (Fread_coding_system, code_convert_region1)
17962 (code_convert_string1, code_convert_string_norecord)
17963 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
17964 XSYMBOL and name field.
17965 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
17966 (Fmake_variable_buffer_local, Fmake_local_variable)
17967 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
17968 of XSYMBOL and name field.
17969 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
17970 XSYMBOL and name field.
17971 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
17972 instead of XSYMBOL and name field.
17973 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
17974 XSYMBOL and name field.
17975 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
17976 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17977 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
17978 instead of XSYMBOL and name field.
17979 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
17980 (parse_modifiers, apply_modifiers, Fevent_convert_list)
17981 (parse_solitary_modifier, Fexecute_extended_command):
17982 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17983 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
17984 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
17985 of XSYMBOL and name field.
17986 (describe_command, describe_translation): Use SYMBOL_NAME and
17987 assignment instead of XSYMBOL and name field and XSETSTRING.
17988 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
17989 instead of XSYMBOL and name field.
17990 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
17991 name field and XSETSTRING.
17992 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17993 of XSYMBOL and name field.
17994 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
17995 assignment instead of XSYMBOL and name field and XSETSTRING.
17996 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
17997 XSTRING instead of XSYMBOL and name field.
17998 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
17999 and XSTRING instead of XSYMBOL and name field.
18000 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
18001 and XSTRING instead of XSYMBOL and name field.
18002 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
18003 XSTRING instead of XSYMBOL and name field.
18004 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
18005 of XSYMBOL and name field.
18006 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
18007 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
18008
180092002-05-19 Ken Raeburn <raeburn@gnu.org>
18010
18011 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
18012 and XCDR real rvalues in most configurations.
18013
18014 * buffer.c (fix_overlays_in_range, fix_overlays_before):
18015 Don't take the address of the cdr part of a cons cell; instead, track
18016 the parent cell and call XSETCDR, or set the variable for the head
18017 of the list if we haven't started down the list yet.
18018
180192002-05-19 Richard M. Stallman <rms@gnu.org>
18020
18021 * doc.c (reread_doc_file): Don't ask for confirmation.
18022
180232002-05-18 Jason Rumney <jasonr@gnu.org>
18024
18025 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
18026 (xbm_load_image): Use it.
18027 (xbm_load): Ditto.
18028 (xbm_read_bitmap_data): Reverted to xfns.c version.
18029 From David Ponce <david@dponce.com>.
18030
180312002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
18032
18033 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
18034 2.02 and later.
18035
180362002-05-16 Juanma Barranquero <lektu@terra.es>
18037
18038 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
18039
180402002-05-15 Stefan Monnier <monnier@cs.yale.edu>
18041
18042 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
18043 meaningful test.
18044 (read_char_minibuf_menu_prompt): Fix typo.
18045
180462002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
18047
18048 * eval.c (Fcommandp): Doc fix.
18049
180502002-05-13 Stefan Monnier <monnier@cs.yale.edu>
18051
18052 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
18053 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
18054 (Fset_keymap_parent): Gcpro a bit more.
18055 (access_keymap): Gcpro around meta_map call and around the main loop.
18056 (get_keyelt): Gcpro when following indirect references.
18057 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
18058 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
18059 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
18060 Remove useless ad-hoc remap code.
18061
180622002-05-13 Richard M. Stallman <rms@gnu.org>
18063
18064 * search.c (search_buffer): Give up boyer moore search if inverse
18065 translation change charset_base.
18066
180672002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
18068
18069 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
18070 characters is carried over from the previous block of text, adjust
18071 coding->produced to account for the extra character.
18072
180732002-05-11 Andreas Schwab <schwab@suse.de>
18074
18075 * coding.c (intersection): Keep the elements of the returned list
18076 in the same order as in the first list.
18077
180782002-05-11 Kim F. Storm <storm@cua.dk>
18079
3419757d 18080 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
18081 only update cmm_size if realloc actually succeeds.
18082 Testing with initial size of 2 elements revealed that using
18083 realloc on GNU/Linux would cause a random trap in xmalloc
18084 later on, so I rewrote the code to use malloc/bcopy/free instead
18085 of realloc.
18086
180872002-05-10 Jason Rumney <jasonr@gnu.org>
18088
18089 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
18090
180912002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
18092
18093 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
18094 parens, to ensure correct evaluation order.
18095
180962002-05-10 Kim F. Storm <storm@cua.dk>
18097
18098 * keymap.c (Vemulation_mode_map_alists): New variable.
18099 (syms_of_keymap): DEFVAR_LISP it.
18100 (current_minor_maps): Process keymap alists in that list before
18101 minor-mode-overriding-map-alist and minor-mode-map-alist.
18102
181032002-05-09 Richard M. Stallman <rms@gnu.org>
18104
18105 * search.c (Freplace_match): Doc fix.
18106
181072002-05-09 Kim F. Storm <storm@cua.dk>
18108
18109 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18110 Enlarge cursor rectangle drawn around image with non-zero relief.
18111
18112 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
18113 Enlarge cursor rectangle drawn around image with non-zero relief.
18114
18115 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18116 Enlarge cursor rectangle drawn around image with non-zero relief.
18117
181182002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
18119
18120 * xselect.c (lisp_data_to_selection_data): Don't set selection
18121 type if comes from the Lisp object's car. If the selection
18122 contains a pure ASCII text, always return QSTRING as its type.
18123
181242002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18125
18126 * mac.c (mac-cut-function): Doc fix.
18127
181282002-05-05 Richard M. Stallman <rms@gnu.org>
18129
18130 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
18131
181322002-05-04 Jason Rumney <jasonr@gnu.org>
18133
18134 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
18135 for event-click-count.
18136
18137 * process.c (init_process): Only add server subfeature if we can
18138 use non-blocking I/O.
18139
181402002-05-04 Andrew Choi <akochoi@shaw.ca>
18141
18142 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
18143 repeatedly.
18144
181452002-05-03 Jason Rumney <jasonr@gnu.org>
18146
18147 * process.c (Fmake_network_process): Only support server sockets
18148 when we can make them non-blocking.
18149
18150 * s/ms-w32.h (HAVE_SELECT): Define.
18151
18152 * w32.h (FILE_NDELAY): New flag.
18153
18154 * w32.c (sys_getpeername, fcntl): New functions.
18155 (_sys_read_ahead): Temporarily block on non-blocking sockets.
18156
2d4713aa 18157 * w32proc.c: Include sys/file.h.
048addec
JD
18158
181592002-05-03 Colin Walters <walters@verbum.org>
18160
18161 * callproc.c (Vgame_score_directory): Renamed to
18162 Vshared_game_score_directory.
18163
181642002-04-30 Richard M. Stallman <rms@gnu.org>
18165
18166 * s/gnu.h [emacs]: Include stdio.h.
18167 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
18168
18169 * eval.c (do_autoload): Error if called while preparing to dump.
18170
18171 * fns.c (Frequire): Error if need to load while preparing to dump.
18172
181732002-04-28 Colin Walters <walters@verbum.org>
18174
18175 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
18176 Default to "~/.emacs.d/games".
18177
181782002-04-29 Stefan Monnier <monnier@cs.yale.edu>
18179
18180 * lread.c (openp): Change arg exec_only to predicate.
18181 (build_load_history): Use XCAR/XCDR.
18182 (Flocate_file_internal): New fun.
18183 (syms_of_lread): Defsubr it.
18184 (Fload): Update call to openp.
18185
18186 * lisp.h (openp): Update prototype.
18187
18188 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
18189 * w32proc.c (sys_spawnve):
18190 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
18191 * w32.c (check_windows_init_file):
18192 * sound.c (Fplay_sound_internal):
18193 * process.c (Fstart_process):
18194 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
18195 * mac.c (run_mac_command):
18196 * emacs.c (init_cmdargs):
18197 * callproc.c (Fcall_process): Update call to openp.
18198
18199 * textprop.c (remove_properties): Don't use XCAR without CONSP.
18200
18201 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
18202
182032002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18204
18205 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
18206 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
18207
182082002-04-28 Richard M. Stallman <rms@gnu.org>
18209
18210 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
18211
18212 * eval.c (Fcommandp): New arg for_call_interactively.
18213 * lisp.h (Fcommandp): Declare new arg.
18214
182152002-04-28 Jason Rumney <jasonr@gnu.org>
18216
18217 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
18218
18219 * w32.c (stat, fstat): Use file index information to generate
18220 inodes for directories where available.
18221
182222002-04-26 Andrew Choi <akochoi@shaw.ca>
18223
18224 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
18225 [HAVE_CARBON]: Include Mac object files.
18226
18227 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
18228 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
18229 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
18230 MAC_OSX, and MAC_OS instead of macintosh.
18231
18232 * editfns.c [MAC_OS8]: Include stdio.h.
18233
18234 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
18235
18236 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
18237 Apple Monaco.
18238
78819ebb 18239 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
18240 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
18241 calling select.
18242
18243 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
18244
18245 * tparam.c [MAC_OSX]: Don't define BC and UP.
18246
18247 * config.in [HAVE_CARBON]: Add.
18248
18249 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
18250 Move here from mac/src and mac/inc.
18251
18252 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
18253
182542002-04-26 Gerd Moellmann <gerd@gnu.org>
18255
18256 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
18257 Compute phys_cursor_width from the x position returned
18258 by x_draw_glyhs, which is cheaper.
18259 (x_display_and_set_cursor): Compute the buffer-local value
18260 of `cursor-in-non-selected-windows' only when needed.
18261
182622002-04-25 Gerd Moellmann <gerd@gnu.org>
18263
18264 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
18265 cursor on a stretch glyph has a width that depends on
18266 x_stretch_cursor_p.
18267
182682002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18269
18270 * abbrev.c (abbrev-start-location): Doc fix.
18271
18272 * indent.c (Fvertical_motion): Fix last change.
18273
182742002-04-25 Gerd Moellmann <gerd@gnu.org>
18275
18276 * indent.c (Fvertical_motion): Move to the start of the line
18277 containing PT before moving up or down.
18278
182792002-04-24 Gerd Moellmann <gerd@gnu.org>
18280
18281 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
18282 case of writing a whole row, more or less analogous to the case of
18283 writing only parts of a row.
18284
18285 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
18286 0 for NO_CURSOR.
18287
18288 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
18289
182902002-04-23 Colin Walters <walters@verbum.org>
18291
18292 * buffer.c (syms_of_buffer): Doc fix.
18293
182942002-04-23 Gerd Moellmann <gerd@gnu.org>
18295
18296 * xterm.c (notice_overwritten_cursor): Handle the special case
18297 of the cursor being in the first blank non-text line at the
18298 end of a window.
18299
18300 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
18301 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
18302 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
18303 bar cursors only, to make phys_cursor_width contain what its name
18304 suggests.
18305 (notice_overwritten_cursor): Consider the cursor image erased if
18306 the output area intersects the cursor image in y-direction.
18307
183082002-04-23 Simon Marshall <simon@gnu.org>
18309
18310 * xfns.c (x_set_mouse_color): Change default for cross_cursor
18311 to XC_hand2.
18312
183132002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18314
18315 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
18316
183172002-04-22 Kim F. Storm <storm@cua.dk>
18318
18319 * textprop.c (remove_properties): Fixed trap for malformed plist.
18320
183212002-04-22 Richard M. Stallman <rms@gnu.org>
18322
18323 * cmds.c (Fend_of_line): Handle intangible text in mid line.
18324
18325 * window.c (make_window): Initialize height_fixed_p,
18326 last_cursor_off_p, and p->cursor_off_p slots.
18327
183282002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18329
18330 * fns.c (use-dialog-box): Doc fix.
18331
183322002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18333
18334 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
18335 variables `row', `i' and `area'.
18336 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
18337 toolkit library.
18338
183392002-04-19 Stefan Monnier <monnier@cs.yale.edu>
18340
18341 * xfaces.c (clear_font_table): Don't free the default font of
18342 a frame even if it's on another display.
18343 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
18344 that could be Qt.
18345
183462002-04-19 Juanma Barranquero <lektu@terra.es>
18347
18348 * indent.c (Fmove_to_column): Remove unused local variable
18349 `next_boundary_byte'.
18350 (current_column_1): Likewise.
18351
183522002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
18353
18354 * msdos.c (Qhbar): New variable.
18355 (syms_of_msdos): Intern and staticpro it.
18356 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
18357 cursor type.
18358
183592002-04-19 Dave Lambert <dlambert@acm.org>
18360
18361 Theses change implement an underscore-like (`hbar') cursor.
18362
18363 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
18364
18365 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
18366 Handle the `hbar' cursor type.
18367 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
18368
18369 * xfns.c (Qhbar): New variable.
18370 (syms_of_xfns): Intern and staticpro it.
18371 (x_specified_cursor_type): Handle `hbar' cursor.
18372
18373 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
18374 not defined.
18375
183762002-04-18 Richard M. Stallman <rms@gnu.org>
18377
18378 * textprop.c (remove_properties): New arg LIST allows scanning
18379 either a list or a plist.
18380 (interval_has_some_properties_list): New function, like
18381 interval_has_some_properties using list instead of plist.
18382 All callers changed.
18383 (Fremove_list_of_text_properties): New function.
18384 (syms_of_textprop): Defsubr it.
18385
183862002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
18387
18388 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
18389
183902002-04-17 Juanma Barranquero <lektu@terra.es>
18391
18392 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
18393
183942002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
18395
18396 * window.c (coordinates_in_window): Don't report on margin area
18397 if its width is zero.
18398
183992002-04-16 Jason Rumney <jasonr@gnu.org>
18400
18401 * w32fns.c (Fx_file_dialog): Decode file name before using.
18402
18403 * w32term.c (construct_drag_n_drop): Likewise.
18404
184052002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
18406
18407 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
18408 store load-history in pure space.
18409
18410 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
18411
184122002-04-16 Stefan Monnier <monnier@cs.yale.edu>
18413
18414 * xterm.c (Qlatin_1, Qutf_8): New vars.
18415 (syms_of_xterm): Initialize them.
18416 (XTread_socket): Eliminate incorrect optimization that tried to avoid
18417 decoding the output of X*LookupString.
18418 Always use latin-1 to decode the output of XLookupString.
18419 Try Xutf8LookupString if XmbLookupString failed.
18420
18421 * region-cache.c (new_region_cache): Use BEG.
18422
184232002-04-16 Gerd Moellmann <gerd@gnu.org>
18424
18425 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
18426 configuration files.
18427 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
18428 returns 0.
18429
184302002-04-15 Andreas Schwab <schwab@suse.de>
18431
18432 * config.in: Regenerated using autoheader.
18433
18434 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
18435 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
18436 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
18437 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
18438 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
18439 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
18440 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
18441 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
18442 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
18443 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
18444 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
18445 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
18446 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
18447 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
18448 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
18449 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
18450 STACK_DIRECTION, now set by autoconf.
18451
184522002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18453
18454 * dispnew.c (marginal_area_string): Sort arguments.
18455
18456 * dispextern.h (marginal_area_string): Add prototype.
18457
184582002-04-13 Richard M. Stallman <rms@gnu.org>
18459
18460 * fileio.c (Finsert_file_contents):
18461 Don't call temp_output_buffer_setup--do just part, by hand.
18462
18463 * coding.c (run_pre_post_conversion_on_str):
18464 Don't call temp_output_buffer_setup--do just part, by hand.
18465
18466 * keyboard.c (command_loop_1): Don't call start_hourglass
18467 or cancel_hourglass when executing a macro.
18468
18469 * marker.c (count_markers): New function.
18470
18471 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
18472 grow without limit. Move recently used elements to the front.
18473
184742002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
18475
18476 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
18477
184782002-04-12 Gerd Moellmann <gerd@gnu.org>
18479
18480 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
18481 rows marginal areas.
18482 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
18483 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
18484
18485 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
18486
184872002-04-12 Dave Love <fx@gnu.org>
18488
18489 * dispnew.c (marginal_area_string): New.
18490
18491 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
18492 (Qleft_margin, Qright_margin): Declare.
18493 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
18494
18495 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
18496 note_mode_line_highlight and extended.
18497
18498 * keyboard.c (Qleft_margin, Qright_margin): Declare.
18499 (make_lispy_event): Deal with mouse events in margins.
18500
185012002-04-12 Stefan Monnier <monnier@cs.yale.edu>
18502
18503 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
18504
18505 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
18506 than deactivating the mark if tmm is set to `lambda'.
18507 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
18508 Use a single event for HELP_EVENT.
18509 (Fexecute_extended_command): Save last_point_position.
18510
185112002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18512
18513 * lisp.h (Fpropertize): Add prototype.
18514
18515 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
18516
185172002-04-10 Colin Walters <walters@verbum.org>
18518
18519 * config.in: Add HAVE_SHARED_GAME_DIR.
18520
52eb0373 18521 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
18522 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
18523
185242002-04-10 Richard M. Stallman <rms@gnu.org>
18525
18526 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
18527
185282002-04-09 Stefan Monnier <monnier@cs.yale.edu>
18529
18530 * minibuf.c (read_minibuf): Use empty_string.
18531 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
18532 Short-circuit the search as soon as it "failed".
18533 (Fall_completions): Allow lambda forms and lists of strings for alist.
18534 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
18535 when require_match is nil.
18536 (Ftest_completion): Rename from `test_completion' and export to elisp.
18537 Call the predicate also when alist is a list.
18538 Obey Vcompletion_regexp_list.
18539 (do_completion, Fminibuffer_complete_and_exit): Use it.
18540 (Fassoc_string): Rename from `assoc_for_completion'.
18541 Allow list of strings as well and export to elisp.
18542
185432002-04-08 Stefan Monnier <monnier@cs.yale.edu>
18544
18545 * puresize.h (BASE_PURESIZE): Increase to 900KB.
18546
185472002-04-08 Juanma Barranquero <lektu@terra.es>
18548
18549 * w32.c (sys_accept): Don't hide variable `s'.
18550
185512002-04-05 Gerd Moellmann <gerd@gnu.org>
18552
18553 * callint.c (Fcall_interactively): Use INTEGERP instead of
18554 NUMBERP for checking Vhistory_length.
18555
185562002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18557
18558 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
18559 Doc fix to reflect it.
18560
185612002-04-04 Richard M. Stallman <rms@gnu.org>
18562
18563 * xdisp.c (display_mode_element): New arg RISKY.
18564 Disregard text props found or specified within a variable
18565 that isn't marked risky-local-variable.
18566 (Qrisky_local_variable): New variable.
18567 (syms_of_xdisp): Init and staticpro it.
18568
185692002-04-04 Stefan Monnier <monnier@cs.yale.edu>
18570
18571 * undo.c (record_point): New fun.
18572 (record_delete, record_insert): Use it.
18573
185742002-04-03 Juanma Barranquero <lektu@terra.es>
18575
18576 * doc.c (Fdocumentation): Add missing parentheses.
18577 (Fdocumentation_property): Likewise.
18578
185792002-04-03 Stefan Monnier <monnier@cs.yale.edu>
18580
18581 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
18582 data is 0, just return nil.
18583
185842002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
18585
18586 * msdos.c (syms_of_msdos): Fix last change with
18587 mouse_autoselect_window.
18588
185892002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18590
18591 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
18592 mouse_autoselect_window.
18593
185942002-04-02 Stefan Monnier <monnier@cs.yale.edu>
18595
18596 * keyboard.c (make_lispy_event): Handle unknown keysyms together
18597 with system-specific keysyms. Use it also for unknown function keys.
18598
18599 * doc.c (reread_doc_file): Return whether reload was attempted.
18600 (Fdocumentation, Fdocumentation_property): Don't try to reload
18601 if the doc is 0 and only ask once.
18602
18603 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
18604
186052002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
18606
18607 * keyboard.c (read_char): If the event was Qselect_window,
18608 restore timer_idleness_start_time to its previous value.
18609
18610 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
18611
186122002-04-01 Stefan Monnier <monnier@cs.yale.edu>
18613
18614 * region-cache.c (new_region_cache): Use BEG.
18615
18616 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
18617 Use BEG and BEG_BYTE.
18618
18619 * doc.c (get_doc_string): Return nil if the location is wrong.
18620 (reread_doc_file): New fun.
18621 (Fdocumentation, Fdocumentation_property):
18622 Call it if get_doc_string fails.
18623 (Fsnarf_documentation): Make it work for a dumped Emacs.
18624
18625 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
18626 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
18627
18628 * charset.c (Fstring): Allow 0 arguments.
18629
18630 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
18631
18632 * process.c (DATAGRAM_CONN_P, list_processes_1)
18633 (Fprocess_datagram_address, Fset_process_datagram_address)
18634 (Fset_network_process_options, server_accept_connection):
18635 Fix some int/Lisp_Object confusions (thank you union types).
18636
186372002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18638
18639 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
18640
18641 * w32term.c: Likewise.
18642 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
18643
18644 * keyboard.c (Qselect_window): New symbol.
18645 (head_table): Use it.
18646 (keys_of_keyboard): Bound select-window event to handle-select-window.
18647 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
18648
18649 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
18650 (last_window): New variable.
18651 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
18652 (note_mouse_movement): Remove reimplemented code in #if 0.
18653 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
18654 Emacs windows.
18655
18656 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
18657
186582002-03-31 Gerd Moellmann <gerd@gnu.org>
18659
18660 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
18661 Callers changed.
18662
186632002-03-30 Richard M. Stallman <rms@gnu.org>
18664
18665 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
18666 loop whenever it stops making progress.
18667
18668 * widget.c (set_frame_size): Don't call change_frame_size.
18669
186702002-03-30 Gerd Moellmann <gerd@gnu.org>
18671
18672 * dispnew.c (direct_output_for_insert):
18673 Call mark_window_display_accurate.
18674
186752002-03-29 Jason Rumney <jasonr@gnu.org>
18676
18677 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
18678
186792002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
18680
18681 * Makefile.in (lread.o): Depend on coding.h.
18682
18683 * lread.c (openp, Fload): Encode the file name before passing it
18684 to `stat', `access', and `emacs_open'.
18685 (openp): GCPRO the encoded file name. Don't recompute Lisp
18686 strings unnecessarily.
18687
186882002-03-29 Kim F. Storm <storm@cua.dk>
18689
18690 * fns.c (Flax_plist_put): Doc fix.
18691
186922002-03-28 Miles Bader <miles@gnu.org>
18693
18694 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
18695
186962002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18697
18698 * process.c (set-network-process-options): Add usage.
18699 (make-network-process): Doc fix.
18700
187012002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
18702
18703 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
18704
187052002-03-26 Richard M. Stallman <rms@gnu.org>
18706
18707 * fns.c (Fsubstring_no_properties): New function.
18708 (Flax_plist_get, Flax_plist_put): New functions.
18709 (syms_of_fns): defsubr them.
18710
18711 * xdisp.c (update_menu_bar): Test only update_mode_lines;
18712 don't test or alter w->update_mode_line.
18713
18714 * window.c (Fdisplay_buffer): Doc fix.
18715
187162002-03-24 Richard M. Stallman <rms@gnu.org>
18717
18718 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
18719
187202002-03-24 Gerd Moellmann <gerd@gnu.org>
18721
18722 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
18723 (Fdefmacro): Handle `(declare ...)'.
18724 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
18725 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
18726
187272002-03-24 Jason Rumney <jasonr@gnu.org>
18728
18729 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
18730 (xbm_file_p): Add prototypes.
18731 (xbm_format, xbm_image_p): Sync with xfns.c.
18732 (reflect_byte): New function.
18733 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
18734 (xbm_load_image): Create bitmaps with a depth of 1.
18735 (init_xfns): Enable XBM images.
18736
187372002-03-23 Jason Rumney <jasonr@gnu.org>
18738
18739 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
18740 correctly. Do not pass up_modifier to keyboard buffer.
18741
18742 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
18743
187442002-03-22 Stefan Monnier <monnier@cs.yale.edu>
18745
18746 * Makefile.in (bootstrapclean): New target.
18747 (bootstrap-temacs, bootstrap-doc): Remove.
18748 (bootstrap-emacs): Use a bog-standard `temacs'.
18749 Don't bother to build a DOC file.
18750
18751 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
18752
18753 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
18754 in temacs even if !CANNOT_DUMP.
18755 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
18756
18757 * alloc.c (check_pure_size): Only output a warning.
18758
187592002-03-22 Jason Rumney <jasonr@gnu.org>
18760
18761 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
18762 supported.
18763
18764 * w32term.c (zv_bits): Declare as short, for word alignment.
18765 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
18766 (syms_of_w32term): Define x-use-underline-position-properties.
18767
18768 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
18769 (clear_image_cache): Block input, fix logic, clear matrices in
18770 all frames that share this cache.
18771
187722002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
18773
18774 * emacs.c (main): Update the Copyright year in the blurb printed
18775 by "emacs --version".
18776
18777 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
18778
18779 * xterm.c (XTread_socket): If XK_ISO_Lock and
18780 XK_ISO_Last_Group_Lock are defined, handle keysyms between
18781 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
18782
187832002-03-21 Kim F. Storm <storm@cua.dk>
18784
18785 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
18786 menu-bar bindings in keymap and local-map properties _are_ used.
18787 But try keymap property first in accordance with 2002-01-03 patch.
18788 Added comment describing why this is not always reliable.
18789 (tool_bar_items): Ditto for tool-bar.
18790
187912002-03-21 Jason Rumney <jasonr@gnu.org>
18792
18793 * w32fns.c (x_clear_image_1): Disable color table code.
18794
187952002-03-21 Kim F. Storm <storm@cua.dk>
18796
18797 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
18798 removed the wrong version of the DEFUN macro; fixed it.
18799
18800 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
18801 Fmember rather than Fmemq).
18802 (Fprovide): Check that subfeatures is a list.
18803
18804 * process.c (QCfeature, QCdatagram): Removed variables.
18805 (QCtype, Qdatagram): New variables.
18806 (network_process_featurep): Removed function.
18807 (Fmake_network_process): Removed :feature check.
18808 Use :type 'datagram instead of :datagram t to create a datagram
18809 socket. This allows us to add other connection types (e.g. raw
18810 sockets) later in a consistent manner.
18811 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
18812 supported subfeatures for feature make-network-process.
18813 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
18814 Intern and staticpro QCtype and Qdatagram.
18815 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
18816
18817 * xfns.c: (QCtype): Remove duplicate declaration and
18818 initialization (is now declared in process.c).
18819
18820 * w32fns.c: (QCtype): Remove duplicate declaration and
18821 initialization (is now declared in process.c).
18822
188232002-03-21 Richard M. Stallman <rms@gnu.org>
18824
18825 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
18826 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
18827 when jumping to `fail' to avoid undoing reg changes in the
18828 last iteration of the loop.
18829 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
18830
18831 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
18832 Depend on process.h.
18833
188342002-03-20 Jason Rumney <jasonr@gnu.org>
18835
18836 Most of the following changes are still conditional on HAVE_IMAGES
18837 which is not set by default on Windows.
18838
18839 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
18840
18841 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
18842 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
18843 (four_corners_best, x_clear_image_1, x_clear_image)
18844 (x_alloc_image_color, postprocess_image)
18845 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
18846 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
18847 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
18848
18849 * w32gui.h (struct XImage): Define.
18850
18851 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
18852 extract mouse co-ordinates.
18853
188542002-03-20 Jason Rumney <jasonr@gnu.org>
18855
18856 * w32.c (init_winsock): Dynamically load new server and UDP
18857 socket functions.
18858 (socket_to_fd): New function.
18859 (sys_socket): Use it.
18860 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
18861 (sys_recvfrom, sys_sendto): New wrapper functions.
18862
18863 * process.c (QCfamily, QCfilter): Remove duplicate declaration
18864 and initialization.
18865
18866 * makefile.w32-in (LIBS): Remove $(WSOCK32).
18867
188682002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
18869
18870 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
18871 Don't use "sun" as a variable, it's a predefined constant on Sun
18872 machines.
18873
188742002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18875
18876 * bytecode.c (Fbyte_code): Revert last change.
18877
188782002-03-19 Kim F. Storm <storm@cua.dk>
18879
18880 * makefile.w32-in (LIBS): Add $(WSOCK32).
18881 From David Ponce <dponce@voila.fr>.
18882
188832002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18884
18885 * process.c (wait_reading_process_input): Move variables `pname'
18886 and `pnamelen' down where they are used.
18887
18888 * bytecode.c (Fbyte_code): Discard unused computed value to
18889 prevent gcc warning.
18890
18891 * lisp.h (Fplist_member): Add prototype.
18892
188932002-03-18 Kim F. Storm <storm@cua.dk>
18894
18895 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
18896 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
18897
18898 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
18899 Remove explicit GNU_LINUX settings for datagram support.
18900
189012002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18902
18903 * process.c (Fmake_network_process): Remove unused variable `sa'.
18904 Doc fix. Add usage:.
18905 (set_socket_options): Remove unused variables `optnum' and `opttype'.
18906
189072002-03-17 Richard M. Stallman <rms@gnu.org>
18908
18909 * xdisp.c (cursor_type_changed): New variable.
18910 (redisplay_internal): Redisplay all windows if cursor_type_changed.
18911 Clear it when clearing windows_or_buffers_changed.
18912 (try_cursor_movement, redisplay_window, try_window_id)
18913 (try_window_reusing_current_matrix): Test cursor_type_changed
18914 along with windows_or_buffers_changed.
18915
18916 * window.h (cursor_type_changed): New variable.
18917
18918 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
18919 not update_mode_lines, and always set it to 1.
18920
18921 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
18922 if no frames needed redrawing.
18923
189242002-03-17 Kim F. Storm <storm@cua.dk>
18925
18926 The following changes add support for network server processes,
18927 datagram connections, and local (unix) sockets.
18928
18929 * process.h (struct Lisp_Process): New member log.
18930 Doc fix: Member command used to indicate stopped network process.
18931 Doc fix: Member childp contains plist for network process.
18932 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
18933
18934 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
18935 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
18936 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
18937 New variables.
18938 (NETCONN1_P): New macro.
18939 (DATAGRAM_SOCKETS): New conditional symbol.
18940 (datagram_address): New array.
18941 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
18942 (status_message): Use concat3.
18943 (Fprocess_status): Add `listen' status to doc string. Return `stop'
18944 for a stopped network process.
18945 (Fset_process_buffer): Update contact plist for network process.
18946 (Fset_process_filter): Ditto. Don't enable input for stopped
18947 network processes. Server must listen, even if filter is t.
18948 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
18949 New functions.
18950 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
18951 (Fprocess_contact): Added KEY argument. Handle datagrams.
18952 (list_processes_1): Optionally show only processes with the query
18953 on exit flag set. Dynamically adjust column widths. Omit tty
18954 column if not needed. Report stopped network processes.
18955 Identify server and datagram network processes.
18956 (Flist_processes): New optional arg `query-only'.
18957 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
18958 (conv_lisp_to_sockaddr, set_socket_options)
18959 (network_process_featurep, unwind_request_sigio): New helper functions.
18960 (Fprocess_datagram_address, Fset_process_datagram_address):
18961 (Fset_network_process_options): New lisp functions.
18962 (Fopen_network_stream): Removed. Now defined in simple.el.
18963 (Fmake_network_process): New lisp function. Code is based on previous
18964 Fopen_network_stream, but heavily reworked with new property list based
18965 argument list, support for datagrams, server processes, and local
18966 sockets in addition to old client-only functionality.
18967 (server_accept_connection): New function.
18968 (wait_reading_process_input): Use it to handle incoming connects.
18969 Do not enable input on a new connection if process is stopped.
f63fd14e 18970 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
18971 (send_process): Handle datagram sockets.
18972 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
18973 network process is indicated by setting command field to t .
18974 (Fprocess_send_eof): No-op if datagram connection.
18975 (Fstatus_notify): Don't read input for a stream server socket or a
18976 stopped network process.
18977 (init_process): Initialize datagram_address array.
18978 (syms_of_process): Intern and staticpro new variables, defsubr new
18979 functions.
18980
189812002-03-16 Jason Rumney <jasonr@gnu.org>
18982
18983 * w32fns.c (w32_to_all_x_charsets): Return correct type in
18984 startup case.
18985
189862002-03-16 Richard M. Stallman <rms@gnu.org>
18987
18988 * xdisp.c (redisplay_internal, redisplay_windows):
18989 Use list_of_error to call internal_condition_case_1.
18990 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
18991 so as to catch all errors with no possibility of debugger redisplay.
18992 (list_of_error): New variable.
18993 (syms_of_xdisp): Init and staticpro it.
18994
18995 * print.c (print_object): Delete `\ ' from printed rep of frame.
18996
189972002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
18998
18999 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
19000 until its implementation is fixed.
19001
190022002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19003
19004 * xfns.c (png_load): Remove unused variable `gamma_str'.
19005
190062002-03-14 Richard M. Stallman <rms@gnu.org>
19007
19008 * xfns.c (x_real_positions): Handle failure in XQueryTree.
19009
190102002-03-14 Miles Bader <miles@gnu.org>
19011
19012 * intervals.c (adjust_for_invis_intang): New function.
19013 (set_point_both): Use `adjust_for_invis_intang' to do most of the
19014 work for dealing with invisible+intangible regions. Do so before
19015 and after both forward and backward movements, to handle both
19016 front-sticky and rear-sticky cases.
19017 * textprop.c (text_property_stickiness): Function moved here from
19018 `editfns.c'.
19019 * intervals.h (text_property_stickiness): New declaration.
19020 * editfns.c (char_property_eq): Function removed.
19021 (text_property_stickiness): Function moved to `textprop.c'.
19022
190232002-03-13 Jason Rumney <jasonr@gnu.org>
19024
19025 * config.in: Add STRFTIME_NO_POSIX2.
19026
19027 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
19028 and %OX when underlying strftime does not.
19029
190302002-03-13 Stefan Monnier <monnier@cs.yale.edu>
19031
19032 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
19033 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
19034 line) to avoid annoying flicker.
19035 (xm_scroll_callback): Get rid of the now unnecessary kludge.
19036 (XTread_socket): Mark it static.
19037
19038 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
19039
190402002-03-13 Kim F. Storm <storm@cua.dk>
19041
19042 * puresize.h (BASE_PURESIZE): Increase to 775000.
19043
190442002-03-12 Juanma Barranquero <lektu@terra.es>
19045
19046 * editfns.c (syms_of_editfns): Fix typo.
19047
190482002-03-12 Gerd Moellmann <gerd@gnu.org>
19049
19050 * xsmfns.c: Include stdio.h because termhooks.h needs it.
19051 Include termopt.h for interrupt_input.
19052
190532002-03-11 Andreas Schwab <schwab@suse.de>
19054
19055 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
19056
190572002-03-11 Gerd Moellmann <gerd@gnu.org>
19058
19059 * xterm.c (note_mouse_movement): Put code for
19060 x_autoselect_window_p in #if 0.
19061
19062 * lread.c (Fload): Don't assume that message_with_string uses the
19063 string it is given like a C string.
19064
190652002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19066
78819ebb 19067 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 19068
52eb0373 19069 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
19070 x_session_have_connection.
19071 (x_initialize): Add call to x_session_initialize.
19072
19073 * termhooks.h (enum event_kind): Add save_session_event.
19074
19075 * keyboard.c: Add Emacs event save_session_event.
19076
19077 * emacs.c (main): Add call to syms_of_xsmfns.
19078
78819ebb 19079 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
19080
19081 * config.in: Add HAVE_X_SM.
19082
19083 * Makefile.in (LIBXT): Add -lSM -lICE
19084 if HAVE_X_SM and not USE_X_TOOLKIT.
19085 (XOBJ): New file xsmfns.c added.
19086
19087 * xsmfns.c: New file for X session management.
19088
190892002-03-09 Jason Rumney <jasonr@gnu.org>
19090
19091 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
19092 read-only when setting modified time.
19093
190942002-03-08 Gerd Moellmann <gerd@gnu.org>
19095
19096 * xdisp.c (move_it_vertically_backward): At the end of the function,
19097 when moving forward by lines, treat terminal frames specially.
19098
19099 * keyboard.c (echo_char): Make sure to add a separator between
19100 keys even if echo_dash hasn't been called.
19101
19102 * xdisp.c: Use new string macros.
19103 (update_echo_area): Pass number of bytes to message3 instead of
19104 number of chars.
19105 (set_message_1): Don't access a string's size_byte directly.
19106 (decode_mode_spec_coding): Use number of bytes of eoltype string
19107 instead number of chars.
19108
19109 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
19110
191112002-03-08 Juanma Barranquero <lektu@terra.es>
19112
19113 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
19114 24-bit.
19115
191162002-03-06 Jason Rumney <jasonr@gnu.org>
19117
19118 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
19119
191202002-03-06 Gerd Moellmann <gerd@gnu.org>
19121
19122 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
19123 (cancel_echoing, echo_length, echo_truncate): Changed to
19124 work with new kboard definition.
19125 (echo_now): Use message3_nolog instead of message2_nolog.
19126
19127 * alloc.c (mark_kboards): Mark echo_string.
19128
19129 * keyboard.h (ECHOBUFSIZE): Removed.
19130 (struct kboard): Member echoptr removed, member echobuf renamed
19131 to echo_string.
19132
19133 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
19134 message3 instead of message2 to display the message using STRING's
19135 text properties.
19136
191372002-03-05 Andreas Schwab <schwab@suse.de>
19138
19139 * xdisp.c (hscroll_margin): Change to EMACS_INT.
19140
191412002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
19142
19143 * frame.c (default-frame-alist): Explain that setting it doesn't
19144 affect existing frames.
19145
191462002-03-05 Stefan Monnier <monnier@cs.yale.edu>
19147
19148 * indent.c (skip_invisible): Fix my brain fart.
19149
19150 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
19151
191522002-03-04 Stefan Monnier <monnier@cs.yale.edu>
19153
19154 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
19155 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
19156 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
19157 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
19158 and variables to use EMACS_INT instead of just int.
19159
19160 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
19161
191622002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
19163
19164 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
19165 environment, pass it down with corrected value.
19166
191672002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19168
19169 * lread.c (read_filtered_event): Do not call start_hourglass
19170 before returning.
19171
191722002-03-04 Juanma Barranquero <lektu@terra.es>
19173
19174 * w32term.c (x_display_and_set_cursor): Fix typo.
19175
191762002-03-03 Richard M. Stallman <rms@gnu.org>
19177
19178 * fileio.c (Fmake_temp_name): Doc fix.
19179
191802002-03-03 Gary Wong <gtw@gnu.org>
19181
19182 * termcap.c [!emacs]: Replace ospeed for building standalone
19183 libtermcap, for binary compatibility.
19184
19185 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
19186
191872002-03-03 Richard M. Stallman <rms@gnu.org>
19188
19189 * xrdb.c (file_p): Rename arg `path' to `filename'.
19190
19191 * abbrev.c (Fexpand_abbrev): Increment plist as use count
19192 only if it is an integer.
19193
19194 * xfns.c (png_load): Set screen_gamma based on f->gamma.
19195 If png_get_sRGB gives an answer, call png_set_gamma
19196 using the default image gamma value.
19197
19198 * lread.c (read1): When reading from a file, default string to
19199 multibyte only if it has some multibyte characters.
19200
19201 * print.c (print_object): Output multibyte chars 128...255
19202 using \x even if ! print_escape_multibyte.
19203
19204 * xdisp.c (display_mode_element): Move the places where
19205 bytepos, charpos, this, and lisp_string are set.
19206 Use lisp_string to set bytepos.
19207
19208 * xdisp.c (redisplay_internal):
19209 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
19210
19211 * xdisp.c (display_mode_element): Merge properties specified with
19212 :propertize onto those that come with the string.
19213
192142002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
19215
19216 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
19217 automatic-hscrolling. Users changed.
19218 <hscroll-margin>: Renamed from automatic-hscroll-margin.
19219 Users changed.
19220 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
19221
192222002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
19223
19224 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
19225
192262002-03-02 Kim F. Storm <storm@cua.dk>
19227
19228 * window.c (Fminibuffer_selected_window): New function.
19229 (syms_of_window): Defsubr it.
19230
192312002-03-01 Kim F. Storm <storm@cua.dk>
19232
19233 * window.h (struct window): New member phys_cursor_width.
19234
19235 * window.c (make_window, replace_window): Init phys_cursor_width.
19236
19237 * xterm.c (x_display_and_set_cursor): Blink box cursor using
19238 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
19239
19240 * w32term.c (x_display_and_set_cursor): Blink box cursor using
19241 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
19242
19243 * lisp.h (GCPRO6): New macro.
19244
19245 * process.c (Fopen_network_stream): Use GCPRO6.
19246
192472002-03-01 Kim F. Storm <storm@cua.dk>
19248
19249 * process.c (Qconnect, Qfailed): New variables.
19250 (syms_of_process): Intern and staticpro them.
19251 (Fprocess_status): Document connect and failed return values.
19252 [NON_BLOCKING_CONNECT]: New conditional.
19253 (connect_wait_mask, num_pending_connects): New variables.
19254 (status_message): Convert Qfailed status.
19255 (Fopen_network_stream): Added support for non-blocking connect.
19256 New optional args: filter, sentinel, non_blocking. Doc updated.
19257 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
19258 (deactivate_process): Handle pending non-blocking connect.
19259 (wait_reading_process_input): Poll for status of non-blocking
19260 connects. Exec sentinel directly when connect succeeds.
19261 (status_notify): Don't read process output if not yet connected.
19262
192632002-02-28 Kim F. Storm <storm@cua.dk>
19264
19265 * window.c: (minibuf_selected_window): Renamed from
19266 Vminibuf_selected_window. Users changed.
19267 (syms_of_window): Staticpro it.
19268
192692002-02-26 Kim F. Storm <storm@cua.dk>
19270
19271 The following changes add a new Vminibuf_selected_window variable
19272 which is similar to Vminibuf_scroll_window, but which is only set
19273 on entry to the minibuffer (from a non-minibuffer window):
19274
19275 * window.c: (Vminibuf_selected_window): New variable.
19276 (struct save_window_data): New member minibuf_selected_window.
19277 (Fset_window_configuration): Restore Vminibuf_selected_window.
19278 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
19279 Set minibuf_scroll_window member to nil if minibuf_level is 0.
19280 (compare_window_configurations): Compare minibuf_selected_window.
19281
19282 * window.h: (Vminibuf_selected_window): Declare extern.
19283
19284 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
19285 entry to minibuffer or on entry from a non-minibuffer window.
19286
19287 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
19288 Vminibuf_selected_window instead of Vminibuf_scroll_window.
19289
19290 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
19291 instead of Vminibuf_scroll_window when deciding in which window
19292 the region should be highlighted. Consequently, the region remains
19293 highlighteded even when a completion buffer is also displayed.
19294
192952002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
19296
19297 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
19298
19299 * xselect.c (Qcompound_text_with_extensions): Renamed from
19300 Qcompound_text_no_extensions.
19301 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
19302
193032002-02-26 Juanma Barranquero <lektu@terra.es>
19304
19305 * w32proc.c (syms_of_ntproc): Doc fix.
19306
193072002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19308
19309 * intervals.h: Include "dispextern.h" unconditionally.
19310
193112002-02-24 Jason Rumney <jasonr@gnu.org>
19312
19313 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
19314 and disp-table.elc.
19315 (lisp): Add emacs-lisp/backquote.elc.
19316
193172002-02-24 Kim F. Storm <storm@cua.dk>
19318
3419757d 19319 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
19320 The validation of the event type was too strict as it didn't
19321 allow string events; buffer names are used in bindings for
19322 menu-bar-select-buffer (see `menu-bar-update-buffers').
19323
193242002-02-23 Kim F. Storm <storm@cua.dk>
19325
19326 The following changes rework my patch of 2002-02-06 which
19327 added command remapping by entering the commands directly into
19328 the keymaps. Now, command remapping uses an explicit `remap'
19329 prefix in the keymaps, i.e. [remap COMMAND].
19330
19331 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 19332 (is_command_symbol): Remove function.
048addec
JD
19333 (Fdefine_key): No longer accept a symbol for KEY.
19334 Added validation of [remap COMMAND] argument for KEY.
19335 The DEF is no longer required to be a symbol when remapping a command.
19336 (Fremap_command): New function to remap command through keymaps.
19337 (Flookup_key): Perform command remapping initiated by
19338 Fremap_command directly for speed.
19339 (Fkey_binding): Use Fremap_command for command remapping.
19340 (where_is_internal): Handle new command remapping representation.
19341 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
19342 staticpro them. Defsubr Fremap_command.
19343
19344 * keymap.h (Fremap_command): Declare extern.
19345 (is_command_symbol): Remove extern.
19346
19347 * keyboard.c (command_loop_1): Use Fremap_command for command
19348 remapping; now try command remapping for all symbols.
19349
193502002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
19351
19352 * coding.h (run_pre_post_conversion_on_str): Add prototype.
19353
193542002-02-23 Jason Rumney <jasonr@gnu.org>
19355
19356 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
19357 on the string before encoding it.
19358 (Fw32_get_clipboard_data): Run post-read-conversion on the string
19359 after decoding it.
19360
19361 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
19362
193632002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19364
19365 * w32term.c (enter_timestamp): Remove unused static variable to
19366 prevent warning.
19367
19368 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
19369
193702002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
19371
19372 * w16select.c (Fw16_get_clipboard_data): Fix last change.
19373
19374 * xselect.c (selection_data_to_lisp_data): Fix last change.
19375
193762002-02-22 Jason Rumney <jasonr@gnu.org>
19377
19378 * w32term.h (struct w32_output): New member menu_command_in_progress.
19379
19380 * w32menu.c (menubar_selection_callback): Free the menu and
19381 clear the menu_command_in_progress flag.
19382
19383 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
19384 (menu_free_timer): New variable.
19385 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
19386 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
19387 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
19388 menu command is in progress.
19389 <WM_COMMAND>: Set the menu_command_in_progress flag.
19390 Kill any menu_free_timer that is running.
19391
19392 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
19393 Call ExtTextOutA rather than ExtTextOut.
19394
193952002-02-22 Eli Zaretskii <eliz@gnu.org>
19396
19397 * puresize.h (BASE_PURESIZE): Increase to 755000.
19398
193992002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
19400
19401 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
19402 on the string before encoding it.
19403 (Fw16_get_clipboard_data): Run post-read-conversion on the string
19404 after decoding it.
19405
194062002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
19407
19408 Support for ICCCM Extended Segments in X selections:
19409
19410 * xselect.c <Qcompound_text_no_extensions>: New variable.
19411 (syms_of_xselect): Intern and staticpro it.
19412 (selection_data_to_lisp_data): Run post-read-conversion on decoded
19413 selection text.
19414 (lisp_data_to_selection_data): If next-selection-coding-system is
19415 compound-text-no-extensions, set the type of selection to be
19416 compound-text.
19417
19418 * xterm.h (x_encode_text): Update prototype.
19419
19420 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
19421 callers changed. If SELECTIONP is non-zero, run the
19422 pre-write-conversion function before encoding the selection text.
19423
194242002-02-21 Kim F. Storm <storm@cua.dk>
19425
19426 * frame.c (syms_of_frame): Change mouse-highlight default to t.
19427
19428 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
19429 Correct composing of language-change event.
19430
194312002-02-20 Kim F. Storm <storm@cua.dk>
19432
19433 * keyboard.c (menu_bar_items): Don't include keymap or local-map
19434 bindings at PT when building menu (the menu is not updated often
19435 enough for this to work reliable).
19436 (tool_bar_items): Likewise.
19437 (current_active_maps): Removed unused (and buggy) function.
19438
194392002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19440
19441 * xfns.c (gif_load): Use correct width and height for GIF images.
19442
194432002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
19444
19445 * floatfns.c (Fatan): Accept an optional second arg and call
19446 atan2 if passed 2 args.
19447
194482002-02-18 Jason Rumney <jasonr@gnu.org>
19449
19450 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
19451
194522002-02-17 Jason Rumney <jasonr@gnu.org>
19453
19454 * w32term.c (x_autoselect_window_p): New variable.
19455 (syms_of_w32term): DEFVAR_BOOL and initialize it.
19456 (note_mouse_movement): Use it.
19457
19458 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
19459
19460 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
19461
19462 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19463 New variables.
19464 (syms_of_w32fns): Intern and staticpro them.
19465 (x_frame_parms) <"fullscreen">: New parameter.
19466 (x_fullscreen_move, x_set_fullscreen): New functions.
19467 (x_set_frame_parameters): Support Qfullscreen.
19468 (x_real_positions): Save x/y_pixels_diff frame params.
19469 (x_figure_window_size): Support full-screen frames.
19470 (Fx_create_frame): Default the fullscreen parameter.
19471
19472 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
19473 (x_fullscreen_adjust): New functions.
19474 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
19475 fullscreen. Call x_check_fullscreen_move, and set the
19476 want_fullscreen member of output_data.w32
19477 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
19478
19479 * w32term.h: New enum for FULLSCREEN_* constants.
19480 (struct w32_output): New members want_fullscreen, x_pixels_diff,
19481 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
19482 (x-fullscreen-adjust): New prototype.
19483
194842002-02-17 Kim F. Storm <storm@cua.dk>
19485
52eb0373 19486 * frame.c (Vmouse_highlight): New variable.
048addec
JD
19487 (syms_of_frame): DEFVAR_LISP it.
19488
52eb0373 19489 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 19490
048addec 19491 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 19492
048addec
JD
19493 * xterm.c (disable_mouse_highlight): Removed variable.
19494 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
19495 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19496 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
19497 and on after keyboard input.
19498 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 19499
048addec 19500 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 19501
048addec
JD
19502 * msdos.c (disable_mouse_highlight): Removed variable.
19503 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19504 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
19505 (internal_terminal_init): Initialize mouse_face_hidden.
19506 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
19507 and on after keyboard input.
4f1b1854 19508
048addec 19509 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 19510
048addec
JD
19511 * w32term.c (disable_mouse_highlight): Removed variable.
19512 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
19513 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19514 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
19515 and on after keyboard input.
19516 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 19517
048addec 195182002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 19519
048addec
JD
19520 * msdos.c (last_mouse_window): New variable.
19521 (dos_rawgetc): Fix last change--if the mouse is in the same window
19522 as recorded in last_mouse_window, don't select this window.
5cb6905d 19523
048addec 19524 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 19525
048addec
JD
19526 * msdos.c (x_autoselect_window_p): New variable.
19527 (syms_of_msdos): Defvar it.
19528 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
19529 which the last mouse movement occured, unless it is already selected.
437dfb9f 19530
048addec
JD
19531 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
19532 New variables.
19533 (syms_of_xdisp): DEVFAR them.
19534 (hscroll_window_tree): Use automatic_hscroll_margin and
19535 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 19536
048addec 195372002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 19538
048addec
JD
19539 * xterm.c (x-autoselect-window): New variable.
19540 (note_mouse_movement): Use it.
9f696a00 19541
048addec 19542 * keyboard.c: Do not include "systime.h" twice.
d57966d7 19543
048addec 195442002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 19545
bfa02563 19546 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 19547
048addec 19548 * alloc.c (NSTATICS): Increase to 1280.
74779f52 19549
048addec 195502002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 19551
048addec 19552 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 19553
048addec
JD
19554 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
19555 (Vx_super_keysym): New variables.
19556 (syms_of_xterm): DEFVAR_LISP them.
19557 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
19558 variables to determine which keys to use for the various modifiers.
a474d59c 19559
048addec 195602002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 19561
048addec
JD
19562 * window.c: (Vmode_line_in_non_selected_windows): Removed.
19563 (mode_line_in_non_selected_windows): New variable.
19564 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 19565
048addec
JD
19566 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
19567 Use mode_line_in_non_selected_windows.
19568 (mode_line_in_non_selected_windows): Declare extern.
19569 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 19570
048addec 195712002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 19572
048addec
JD
19573 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
19574 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
19575 (Fclear_this_command_keys): Doc fixes.
2d10309f 19576
048addec
JD
19577 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
19578 (update_face_from_frame_parameter): Increment face_change_count
19579 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 19580
048addec
JD
19581 * xdisp.c (QCpropertize): New variable.
19582 (mode_line_proptrans_alist): New variable.
19583 (display_mode_element): New arg PROPS; all calls changed.
19584 Implement this, for strings.
19585 Handle literal output of strings by sharing the
19586 main-line code for strings, using local var `literal'.
19587 Handle :propertize feature.
19588 (syms_of_xdisp): Initialze and staticpro QCpropertize and
19589 mode_line_proptrans_alist.
0b1e6b54 19590
048addec 195912002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 19592
048addec
JD
19593 * window.c: (Vmode_line_in_non_selected_windows): New variable.
19594 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 19595
048addec
JD
19596 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
19597 (CURRENT_MODE_LINE_FACE_ID): Use it.
19598 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 19599
048addec
JD
19600 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
19601 to get mode line face.
e17144de 19602
048addec 196032002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 19604
048addec
JD
19605 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
19606 variables; cus-start.el doesn't need them anymore.
44368f8f 19607
048addec 196082002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 19609
048addec
JD
19610 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
19611 reduction. This fixes a display problem where stray newlines were
19612 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 19613
048addec 196142002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 19615
048addec 19616 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 19617
048addec 19618 * xdisp.c (display_mode_lines): Fix last change.
453c5510 19619
048addec 196202002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 19621
048addec
JD
19622 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
19623 match each other.
19624 (w32_load_system_font): Prevent Cleartype fonts from loading.
19625 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 19626
048addec 196272002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 19628
048addec
JD
19629 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
19630 (CURRENT_MODE_LINE_HEIGHT): Use it.
19631 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 19632
048addec
JD
19633 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
19634 (pos_visible_p, handle_face_prop): Likewise.
19635 (display_mode_lines): Likewise, but for the real selected window.
19636 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 19637
048addec
JD
19638 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
19639 in non-selected windows.
19640 (realize_basic_faces): Realize it.
19641 (syms_of_term): Intern and staticpro it.
308dd672 19642
048addec 196432002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 19644
048addec
JD
19645 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
19646 Changed mail addresses to emacs-devel@gnu.org.
308dd672 19647
048addec 196482002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 19649
048addec
JD
19650 * fileio.c (Fsubstitute_in_file_name): If the file name includes
19651 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 19652
048addec 19653 * floatfns.c (Fround): Doc fix.
3c1e6b46 19654
048addec 196552002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 19656
048addec 19657 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 19658
048addec 196592002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 19660
048addec 19661 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 19662
048addec 196632002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 19664
048addec
JD
19665 * keymap.c (where_is_internal): Only check whether definition is
19666 remapped if it fulfills is_command_symbol.
0065bb74 19667
048addec 196682002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 19669
048addec 19670 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 19671
048addec 19672 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 19673
048addec 196742002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 19675
048addec
JD
19676 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
19677 defining command remapping. Doc updated.
19678 (Flookup_key): Remap command through keymap if KEY is a symbol.
19679 (is_command_symbol): New function.
19680 (Fkey_binding): Use it. New optional argument NO-REMAP.
19681 Doc updated. Callers changed. Perform command remapping via
19682 recursive call unless that arg is non-nil.
19683 (where_is_internal): New argument no_remap. Callers changed.
19684 Call recursively to find original key bindings for a remapped
19685 comand unless that arg is non-nil.
19686 (Fwhere_is_internal): New optional argument NO-REMAP.
19687 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 19688
048addec 19689 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 19690 (is_command_symbol): Add prototype.
0d8466cc 19691
048addec
JD
19692 * keyboard.c (Vthis_original_command): New variable.
19693 (syms_of_keyboard): DEFVAR_LISP it.
19694 (command_loop_1): Set it, and perform command remapping.
15fff01d 19695
048addec 196962002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 19697
048addec 19698 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 19699
048addec 197002002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 19701
048addec 19702 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 19703
048addec 197042002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 19705
048addec 19706 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 19707
048addec 197082002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 19709
048addec 19710 * filelock.c (S_ISLNK): Define if not defined.
3a232704 19711
048addec 197122002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 19713
048addec 19714 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 19715
048addec
JD
19716 * lread.c (read1): Redesign strategy for force_multibyte and
19717 force_singlebyte. Now is_multibyte records whether read_buffer
19718 is multibyte. Encountering any multibyte character makes it so.
4e02881b 19719
048addec 197202002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 19721
048addec
JD
19722 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
19723 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 19724
048addec 197252002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 19726
048addec
JD
19727 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
19728 latter never being defined on GNU/Linux.
749f499f 19729
048addec 197302002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 19731
048addec
JD
19732 * xfaces.c (realize_default_face): Don't set the weight and slant of
19733 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 19734
048addec 197352002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 19736
048addec
JD
19737 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
19738 Call cancel_hourglass unconditionally.
d0fd26dd 19739
048addec
JD
19740 * eval.c (Fsignal): Remove duplicated declaration of
19741 the variable `display_hourglass_p'.
b4c45162 19742
048addec 197432002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 19744
048addec 19745 * editfns.c (region_limit): Nicer error message.
c95eaa61 19746
048addec
JD
19747 * coding.c (decode_composition_emacs_mule):
19748 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 19749
048addec
JD
19750 * callint.c (check_mark): New arg to specify clearer error message.
19751 Callers changed.
c95eaa61 19752
048addec 197532002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 19754
048addec 19755 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 19756
048addec 197572002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 19758
048addec
JD
19759 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
19760 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
19761 Fix doc-strings.
c95eaa61 19762
048addec 197632002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 19764
048addec 19765 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 19766
048addec
JD
19767 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
19768 and scroll_up_aggressively.
c95eaa61 19769
048addec 197702002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 19771
048addec 19772 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 19773
048addec 197742002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 19775
048addec
JD
19776 * textprop.c (Fnext_property_change, Fnext_single_property_change)
19777 (Fprevious_property_change, Fprevious_single_property_change):
19778 Stay within the narrowed-buffer boundaries.
e2c3786a 19779
048addec 197802002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 19781
048addec
JD
19782 * term.c (Ftty_display_color_cells): New function.
19783 (syms_of_term): Defsubr it.
19784 (Ftty_display_color_cells, Ftty_display_color_p): Change the
19785 argument name to DISPLAY. Doc fix.
bf794306 19786
048addec
JD
19787 * dispextern.h: Add prototype for set_tty_color_mode and
19788 tty_setup_colors.
bf794306 19789
048addec 197902002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 19791
048addec
JD
19792 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
19793 If region left to draw is not what was expected, mark the frame as
19794 garbaged.
62582985 19795
048addec
JD
19796 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
19797 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 19798
048addec 197992002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 19800
048addec
JD
19801 * w32term.c (x_update_window_begin): Only hide caret if
19802 w32_use_visible_system_caret is set.
19803 (x_update_window_end): Only show caret if
19804 w32_use_visible_system_caret is set.
19805 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 19806
048addec 19807 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 19808
048addec 198092002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 19810
048addec
JD
19811 * unexelf.c (unexec): Define n so as to cause compilation error
19812 for the code where people have often written n instead of nn.
1e9a6186 19813
048addec 19814 * .gdbinit (hookpost-run): Defined.
1e9a6186 19815
048addec 198162002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 19817
048addec 19818 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 19819
048addec 198202002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 19821
048addec
JD
19822 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
19823 if fullscreen is being set.
7c75be36 19824
048addec 198252002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 19826
048addec
JD
19827 * minibuf.c (Fminibuffer_contents)
19828 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
19829 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 19830
048addec 198312002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 19832
048addec 19833 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 19834
048addec 198352002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 19836
048addec
JD
19837 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
19838 height before comparison.
19839 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 19840
048addec 198412002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 19842
048addec
JD
19843 * w32term.c (w32_system_caret_width): Remove.
19844 (w32_use_visible_system_caret): New user flag.
19845 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
19846 Windows reports a screen reader running.
19847 (x_update_window_begin): Hide the system caret.
19848 (x_update_window_end): Show the system caret.
19849 (x_display_and_set_cursor): Don't draw a cursor when
19850 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 19851
048addec
JD
19852 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
19853 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
19854 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
19855 the user requests it. Use system default width when creating.
19856 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 19857
048addec
JD
19858 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
19859 New window messages.
905cc05a 19860
048addec 198612002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 19862
048addec 19863 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 19864
048addec 198652002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 19866
048addec 19867 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 19868
048addec 198692002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 19870
048addec 19871 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 19872
048addec 198732002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 19874
048addec
JD
19875 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
19876 that Windows returns. If a double check fails, try to guess how
19877 ExtTextOut is going to act.
4d0fa4f3 19878
048addec
JD
19879 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
19880 in place of stricmp.
19881 (w32_list_synthesized_fonts): Removed.
19882 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
19883 (struct enumfont_t): New element; list.
19884 (enum_font_cb2): List all style and charset variations of a font.
19885 (Fw32_select_font): New optional argument; include_proportional.
19886 Exclude vertical fonts. Exclude proportional fonts unless
19887 include_proportional is non-nil.
19888 (w32_enable_synthesized_fonts): Change to a boolean.
19889 (Fw32_send_sys_command): Doc fix.
493faf20 19890
048addec 198912002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 19892
048addec
JD
19893 * dispnew.c (update_frame): Move the variable `tem' to the block
19894 where it is used.
4971e491 19895
048addec 198962002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 19897
048addec
JD
19898 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
19899 call to face-set-after-frame-default.
4971e491 19900
048addec 199012002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 19902
048addec
JD
19903 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
19904 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 19905
048addec 199062002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 19907
048addec
JD
19908 * window.c (enlarge_window): When exceeding size of parent,
19909 directly delete all the siblings instead of trying to resize it.
201c831a 19910
048addec 199112002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 19912
048addec 19913 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 19914
048addec 199152002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 19916
048addec 19917 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 19918
048addec 199192002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 19920
048addec
JD
19921 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
19922 is invisible. This can happen if cursor is on top line of a
19923 window, and we switch to a buffer with a header line.
d77fbc16 19924
048addec 19925 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 19926
048addec 199272002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 19928
048addec
JD
19929 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
19930 `dont_resize' only when used.
61e3b944 19931
048addec 19932 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 19933
048addec 199342002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 19935
048addec
JD
19936 * xdisp.c (display_mode_element): When computing charpos, depend
19937 on multibyteness of elt, not the text in field.
8af01033 19938
048addec 199392002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 19940
048addec
JD
19941 * buffer.c (Fkill_all_local_variables):
19942 Increment `update_mode_lines' only once.
7363986a 19943
048addec 199442002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 19945
048addec
JD
19946 * lisp.h (adjust_after_replace_noundo)
19947 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 19948
048addec 19949 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 19950
048addec 199512002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 19952
048addec
JD
19953 Support for the --color command-line argument and tty-color-mode
19954 frame parameter:
f1a85b89 19955
048addec
JD
19956 * term.c (tty_default_color_capabilities, tty_setup_colors)
19957 (set_tty_color_mode): New functions.
19958 (term_init): Call tty_default_color_capabilities.
19959 (Qtty_color_mode_alist): New variable.
19960 (syms_of_term): Intern and staticpro it.
f1a85b89 19961
048addec
JD
19962 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
19963 frames.
19964 (do_switch_frame): For termcap frames, switch the tty
19965 color mode as specified by the frame's parameters.
19966 (Qtty_color_mode): New variable.
19967 (syms_of_frame): Intern and staticpro it.
3a62677f 19968
048addec
JD
19969 * emacs.c (USAGE2): Add the --color option.
19970 (standard_args): Ditto.
72244db2 19971
048addec
JD
199722002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19973
19974 * xterm.h (struct x_output): New members want_fullscreen,
19975 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
19976 y_pixels_outer_diff.
19977 New enum for FULLSCREEN_* constants.
19978 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
19979 is NULL.
19980 (x_fullscreen_adjust): Add prototype.
3a62677f 19981
048addec
JD
19982 * emacs.c (USAGE2): Add the new full-screen arguments.
19983 (standard_args): Ditto.
3a62677f 19984
048addec
JD
19985 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19986 New variables.
19987 (syms_of_xfns): Intern and staticpro them.
19988 (x_frame_parms) <"fullscreen">: New parameter.
19989 (x_fullscreen_move, x_set_fullscreen): New functions.
19990 (x_set_frame_parameters): Support for Qfullscreen.
19991 (x_real_positions): More accurate computation of the frame position.
19992 (x_figure_window_size): Support full-screen frames.
19993 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 19994
048addec
JD
19995 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
19996 (XTread_socket) <Expose>: Call x_check_fullscreen.
19997 <ConfigureNotify>: Don't resize to fullscreen.
19998 Call x_check_fullscreen_move, and set the want_fullscreen member of
19999 output_data.x.
3a62677f 20000
048addec 200012002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 20002
048addec
JD
20003 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
20004 for mice with more than 3 buttons.
b8523839 20005
048addec
JD
20006 * w32term.c (parse_button): New parameter xbutton. Callers changed.
20007 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 20008
048addec
JD
20009 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
20010 (syms_of_w32fns): DEFVAR_BOOL it.
20011 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 20012
048addec 200132002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 20014
048addec 20015 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 20016
048addec 200172002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 20018
048addec 20019 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 20020
048addec 200212002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 20022
048addec
JD
20023 * .gdbinit (xbuffer): Remove address operator since data is now a
20024 pointer.
c93674bb 20025
048addec 200262002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 20027
048addec 20028 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 20029
048addec 20030 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 20031
048addec 200322002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 20033
048addec
JD
20034 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
20035 when checking for multiple frames.
91175673 20036
048addec 200372002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 20038
048addec
JD
20039 * window.c (delete_window): Rewrite the code for changing the
20040 selected window to handle the case where WINDOW is not a leaf.
91175673 20041
048addec 200422002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 20043
048addec
JD
20044 * process.c (send_process): Set src_multibyte to 1 after the call
20045 top setup_coding_system, not before the call.
e0fead5d 20046
048addec 200472002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 20048
048addec
JD
20049 * xmenu.c (set_frame_menubar, xmenu_show):
20050 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 20051
048addec
JD
20052 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
20053 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 20054
048addec 200552002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 20056
048addec 20057 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 20058
048addec 20059 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 20060
048addec 20061 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 20062
048addec 200632002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 20064
048addec
JD
20065 * insdel.c (make_gap_larger): Make sure buffer size does not
20066 overflow range of int.
62854fe2 20067
048addec 200682002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 20069
048addec
JD
20070 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
20071 OVERLAPS_P.
656f46bb 20072
048addec 20073 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 20074
048addec
JD
20075 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
20076 to the left or to the right of the pointer, put it against
20077 the left screen edge.
20078 (x_frame_parms): Add missing braces around initializer.
036e218d 20079
048addec
JD
20080 * w32term.c (x_setup_relief_colors): Don't compute an image's
20081 background color if it doesn't have a Pixmap.
20082 (notice_overwritten_cursor): Don't depend on
20083 output_cursor and updated_area. Compare pixel coordinates with
20084 window's cursor pixel coordinates.
20085 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20086 Call notice_overwritten_cursor with new arg list.
20087 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20088 unconditionally.
20089 (x_draw_image_relief): Use predefined macro instead of
20090 constant when the value of `tool_bar_button_relief' is negative.
036e218d 20091
048addec 20092 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 20093
048addec 200942002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 20095
048addec 20096 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 20097
048addec 200982002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 20099
048addec
JD
20100 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
20101 (Fkey_binding): Try the `keymap' property map first.
20102 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
20103 minor mode bindings.
90647b07 20104
048addec 201052002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 20106
3419757d 20107 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 20108
048addec 201092002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 20110
048addec
JD
20111 * keyboard.c (read_key_sequence): Handle the keymap property
20112 before minor mode maps.
9fbc32aa 20113
048addec
JD
20114 * editfns.c (Fformat): Update thissize from field_width
20115 based on the actual width, in the string case.
036e218d 20116
048addec 201172002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 20118
048addec
JD
20119 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
20120 when used as truth value to prevent gcc warnings.
9fbc32aa 20121
048addec
JD
20122 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
20123 * w32proc.c: Include <config.h>.
9fbc32aa 20124
048addec 201252002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 20126
048addec
JD
20127 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
20128 not EMACS_INT, to make them compatible with DEFVAR_INT.
20129 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 20130
048addec 201312002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 20132
048addec
JD
20133 * print.c (print_object): Test print_escape_nonascii only for
20134 unibyte strings.
20135 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
20136 when outputting to a multibyte buffer.
9fbc32aa 20137
048addec 201382001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 20139
048addec
JD
20140 * print.c (print_object): In multibyte string, use hex escapes.
20141 Use octal only for unibyte strings.
20142 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 20143
048addec
JD
20144 * lread.c (read_escape): New arg BYTEREP for reporting whether
20145 escape forces unibyte or multibyte.
20146 (read1): When reading a string, take note of that info.
0142178a 20147
048addec 201482001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 20149
048addec
JD
20150 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
20151 comparison to test lisp value returned by Fget.
d4824a5d 20152
048addec 201532001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 20154
048addec 20155 * lisp.h (max_specpdl_size): Add declaration.
b1356234 20156
048addec 20157 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 20158
048addec
JD
20159 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
20160 Handle modifier bits. Correct typo in error message.
99e380ee 20161
048addec 201622001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 20163
048addec
JD
20164 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
20165 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
20166 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20167 Update calls to Fdefine_abbrev.
20168 (write_abbrev): Update for changed data format.
20169 Don't list "system" abbrevs.
20170 (Fexpand_abbrev): Update use count with new data format.
20171 (describe_abbrev): Update for changed data format.
20172 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 20173
048addec 20174 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 20175
048addec 20176 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 20177
048addec
JD
20178 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
20179 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 20180
048addec
JD
20181 * keymap.c (Flookup_key): Error message if key has wrong data type.
20182 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
20183 (exclude_key): New variable.
59a86c99 20184
048addec 201852001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 20186
048addec
JD
20187 * xterm.c (x_setup_relief_colors): Don't compute an image's
20188 background color if it doesn't have a Pixmap.
eb77a5f4 20189
048addec
JD
20190 * xterm.c (notice_overwritten_cursor): Don't depend on
20191 output_cursor and updated_area. Compare pixel coordinates with
20192 window's cursor pixel coordinates.
20193 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20194 Call notice_overwritten_cursor with new arg list.
20195 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20196 unconditionally.
eb77a5f4 20197
048addec
JD
20198 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
20199 height of the cursor line to the amount to scroll.
eb77a5f4 20200
048addec 202012001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 20202
048addec
JD
20203 * intervals.c (set_point_both): The position after an invisible,
20204 intangible character is not an acceptable stopping point.
bb313871 20205
048addec 202062001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 20207
048addec
JD
20208 * window.c (enlarge_window): In new preserve_before code, convert
20209 CURBEG from lisp object to integer before doing arithmetic.
6052529b 20210
048addec 202112001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 20212
048addec 20213 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 20214
048addec 202152001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 20216
048addec
JD
20217 * keyboard.c (record_char): Ignore duplicate help-echo events only
20218 separated by mouse-movement. When tracking mouse, only record
20219 first and last mouse-movement event in same window.
20220 Don't record mouse-movement events in keyboard macros.
3ce081f5 20221
048addec 202222001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 20223
048addec
JD
20224 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
20225 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 20226
048addec
JD
20227 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
20228 instead of Fstring_as_unibyte.
9fabb2f5 20229
048addec 202302001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 20231
048addec 20232 The following changes remove mocklisp support:
9fabb2f5 20233
048addec 20234 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 20235
048addec
JD
20236 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
20237 `Qmocklisp' and `Qmocklisp_arguments'.
20238 Remove prototype of syms_of_mocklisp.
2fa0eedf 20239
048addec 20240 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 20241
048addec
JD
20242 * callint.c: Do not include mocklisp.h.
20243 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 20244
048addec
JD
20245 * eval.c: Remove variables `Qmocklisp_arguments',
20246 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
20247 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
20248 Do not test for mocklisp case.
20249 (Fwhile): Remove unused variable `tem'.
20250 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 20251
048addec 20252 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 20253
048addec 20254 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 20255
048addec 20256 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 20257
048addec 202582001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 20259
048addec
JD
20260 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
20261 to the left or to the right of the pointer, put it against
20262 the left screen edge.
6108b49c 20263
048addec 202642001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 20265
048addec
JD
20266 * Makefile.in (distclean): Remove .gdbinit if we are building
20267 outside the source tree.
5eea19a4 20268
048addec 202692001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 20270
048addec 20271 * w32.c (emacs_root_dir): New function.
5eea19a4 20272
048addec 20273 * msdos.c (emacs_root_dir): New function.
5eea19a4 20274
048addec
JD
20275 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
20276 of the current drive as the fallback for default_directory.
438e57dd 20277
048addec
JD
20278 * dired.c (file_name_completion): Run the elements of
20279 completion-ignored-extensions through ENCODE_FILE.
438e57dd 20280
048addec
JD
20281 * lisp.h (scmp): Remove prototype, since it's now a static
20282 function private to dired.c.
c88e5347 20283
048addec 202842001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 20285
048addec
JD
20286 * dired.c (scmp): Function moved from minibuf.c.
20287 Delete multibyte handling--used only on encoded strings.
59ce1461 20288
048addec 20289 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 20290
048addec 20291 * fns.c (merge): Add QUIT call.
59ce1461 20292
048addec 202932001-12-18 Dave Love <fx@gnu.org>
8727d588 20294
048addec
JD
20295 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
20296 language/georgian.el.
8727d588 20297
048addec 202982001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 20299
048addec
JD
20300 * Makefile.in (lisp, shortlisp): Synchronize with changes to
20301 lisp/Makefile.in:DONTCOMPILE.
cc63037e 20302
048addec 203032001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 20304
048addec
JD
20305 * xdisp.c (window_box_height): Do not return negative values.
20306 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 20307
048addec 20308 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 20309
048addec 20310 * term.c (keys): Likewise.
deece6f5 20311
048addec 20312 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 20313
048addec 203142001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 20315
048addec
JD
20316 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
20317 patch (COMPOSING_P, not COMPOSING).
28ff4293 20318
048addec 203192001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 20320
048addec 20321 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 20322
048addec
JD
20323 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
20324 before calling decode_coding.
9b46de40 20325
048addec 20326 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 20327
048addec
JD
20328 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
20329 instead of only for COMPOSITION_DISABLED.
9b46de40 20330
048addec 203312001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 20332
048addec 20333 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 20334
048addec 20335 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 20336
048addec
JD
20337 * buffer.h (struct buffer): New field `display_error_modiff'.
20338 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 20339
048addec 20340 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 20341
048addec
JD
20342 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
20343 Call redisplay_window, but not if display_error_modiff field says no.
20344 (redisplay_window_error): New function.
20345 (displayed_buffer): New variable.
20346 (redisplay_internal, redisplay_windows): Call the new functions
20347 instead of redisplay_window directly.
2cd23960 20348
048addec 203492001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 20350
048addec 20351 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 20352
048addec 203532001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 20354
048addec 20355 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 20356 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 20357 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 20358
048addec 203592001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 20360
048addec
JD
20361 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
20362 parameter have a numeric value all the time.
f6fa0866 20363
048addec 20364 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 20365
048addec 203662001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 20367
048addec 20368 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 20369
048addec
JD
20370 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
20371 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 20372
048addec 203732001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 20374
048addec
JD
20375 * xdisp.c (move_it_vertically_backward): Change heuristic
20376 for the case that we didn't move far enough initially.
91c153e2 20377
048addec
JD
20378 * window.c (Frecenter): Simplify computation in the case of window
20379 system frames and ARG < 0; use window_box_height.
65b7d3e7 20380
048addec 203812001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 20382
048addec
JD
20383 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
20384 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 20385
048addec 203862001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 20387
048addec
JD
20388 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
20389 arg is negative.
be676094 20390
048addec 203912001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 20392
048addec
JD
20393 * m/hp800.h: Split the __hpux conditional into the parts
20394 that are right for GNU/Linux too and the parts that are not.
20395 Use the former if GNU_LINUX.
20396 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 20397
048addec 20398 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 20399
048addec 204002001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 20401
048addec
JD
20402 * macros.c, msdos.c, w16select.c: Change doc-string comments to
20403 `new style' [w/`doc:' keyword].
032a857d 20404
048addec 204052001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 20406
048addec
JD
20407 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
20408 before using.
b6270150 20409
048addec 204102001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 20411
048addec
JD
20412 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
20413 keyword].
98cbb9fa 20414
048addec 204152001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 20416
048addec 20417 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 20418
048addec 20419 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 20420
048addec 204212001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 20422
048addec 20423 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 20424 Add comment to explain where the struct came from.
048addec
JD
20425 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
20426 (add_menu_item): Process pop-up menus first to avoid memory leak.
20427 (add_menu_item, w32_menu_display_help): Use `help' field as
20428 Lisp_Object.
20429 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 20430
048addec 204312001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 20432
048addec 20433 * COPYING: Moved back.
fa336b91 20434
048addec
JD
20435 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
20436 Add parentheses around && within ||.
077907d4 20437
048addec 20438 * indent.c (compute_motion): Likewise.
aa2af83a 20439
048addec 20440 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 20441
048addec
JD
20442 * coding.c (setup_coding_system, shrink_encoding_region)
20443 (Fdecode_sjis_char): Likewise.
60a653f1 20444
048addec 204452001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 20446
048addec
JD
20447 * xdisp.c (display_mode_element): Don't read past end of string if
20448 it ends with '%'.
60a653f1 20449
048addec
JD
20450 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
20451 can hold.
60a653f1 20452
048addec
JD
20453 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
20454 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
20455 type changed to Lisp_Object.
20456 (syms_of_data): DEFVAR_LISP them.
60a653f1 20457
048addec 204582001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 20459
048addec
JD
20460 * callproc.c (init_callproc): Set Vdata_directory based on the source
20461 location whenever Emacs was run uninstalled.
60a653f1 20462
048addec 204632001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 20464
048addec
JD
20465 * config.in (HAVE_WORKING_VFORK): New #undefs.
20466 * process.c (create_process):
20467 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
20468 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
20469 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
20470 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
20471 * m/intel386.h (HAVE_VFORK): Likewise.
20472 * m/mips-siemens.h (HAVE_VFORK): Likewise.
20473 * m/mips.h (HAVE_VFORK): Likewise.
20474 * s/freebsd.h (vfork): Remove #define.
20475 * s/lynxos.h (HAVE_VFORK): Remove #undef.
20476 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 20477
048addec 204782001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 20479
048addec
JD
20480 * s/hpux10.h (random): Add undef.
20481 (HAVE_RANDOM): Define it just once.
60a653f1 20482
048addec 204832001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20484
048addec 20485 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 20486
048addec 204872001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 20488
048addec
JD
20489 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
20490 scroll bars of the frame before deleting the frame itself. If the
20491 frame has a widget, delete the frame with XtDestroyWidget, and do
20492 not call XDestroyWindow before that.
60a653f1 20493
048addec 204942001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 20495
048addec 20496 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 20497
048addec 20498 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 20499
048addec 205002001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 20501
048addec
JD
20502 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
20503 excessively large.
60a653f1 20504
048addec
JD
20505 * insdel.c (make_gap_larger): New function.
20506 (make_gap_smaller): New function.
20507 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
20508 Call make_gap_smaller if arg is negative.
60a653f1 20509
048addec 205102001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20511
048addec
JD
20512 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
20513 Pass a dummy argument when calling interrupt_signal.
20514 (parse_menu_item): Mark disabled items before checking for empty def.
20515 (read_char_minibuf_menu_prompt): Make safety more visible.
20516 (read_key_sequence): Add a `first_unbound' variable.
20517 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
20518 unbound prefix as soon as we can detect it.
60a653f1 20519
048addec
JD
20520 * doc.c (Fsnarf_documentation): Add prototype.
20521 (get_doc_string): Handle negative arguments.
20522 (Fdocumentation): Use AREF and ASIZE.
20523 Move the calls to get_doc_string to a single place.
20524 Don't confuse an interactive-spec for a docstring reference.
20525 (Fdocumentation_property): Take advantage of the fact that
20526 get_doc_string now ignores the sign of the docstring position.
60a653f1 20527
048addec 20528 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 20529
048addec 205302001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20531
a64387ee 20532 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 20533
048addec 205342001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20535
048addec
JD
20536 * xterm.c (x_draw_image_relief): Use predefined macro instead of
20537 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 20538
048addec 205392001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 20540
048addec
JD
20541 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
20542 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 20543
048addec 20544 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 20545
048addec 205462001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20547
048addec 20548 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 20549
048addec 205502001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 20551
048addec 20552 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 20553
048addec 205542001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 20555
f63fd14e 20556 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 20557
048addec
JD
20558 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
20559 [!WM_MOUSELEAVE]: Define.
60a653f1 20560
048addec
JD
20561 * w32menu.c (current_popup_menu, get_menu_item_info):
20562 (set_menu_item_info): New vars.
20563 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
20564 (w32_menu_show): Set current_popup_menu.
20565 (add_menu_item): Allocate new strings for owner-drawn menu items
20566 and help strings.
20567 Use owner-draw for disabled menu items again.
20568 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
20569 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 20570
048addec
JD
20571 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
20572 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
20573 <WM_EXITMENULOOP>: Free menu strings.
20574 <WM_MOUSELEAVE>: Stop tracking mouse.
20575 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 20576
048addec
JD
20577 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
20578 and mouse face.
60a653f1 20579
048addec 205802001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 20581
048addec
JD
20582 The following changes add left-fringe and right-fringe
20583 frame parameters to adjust fringe widths, or remove one or
20584 both fringes.
60a653f1 20585
048addec
JD
20586 * frame.h (struct frame): Remove trunc_area_pixel_width and
20587 trunc_area_cols fields.
20588 (Qleft_fringe, Qright_fringe): Declare.
20589 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 20590
048addec
JD
20591 * frame.c (Qleft_fringe, Qright_fringe): New vars.
20592 (syms_of_frame): Initialize them.
60a653f1 20593
048addec
JD
20594 * window.c (coordinates_in_window): Handle separate left and right
20595 fringe widths.
60a653f1 20596
048addec
JD
20597 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
20598 and fringe_cols fields.
20599 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
20600 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
20601 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
20602 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
20603 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
20604 (x_compute_fringe_widths): Add prototype.
60a653f1 20605
048addec
JD
20606 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
20607 fill fringe evenly with small dashes.
f63fd14e 20608 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
20609 clip the new ZV bitmap to avoid jitter between rows.
20610 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
20611 background. Don't draw fringe bitmaps if fringe width is zero.
20612 (x_compute_fringe_widths): New function.
20613 (x_new_font, x_set_window_size_1): Use it.
60a653f1 20614
048addec
JD
20615 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
20616 (x_set_frame_parameters): Process `font' parameter before other
20617 parameters as fringe widths depend on it.
20618 (x_set_fringe_width): New function.
20619 (x_figure_window_size): Use x_compute_fringe_widths.
20620 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
20621 parameters.
60a653f1 20622
048addec
JD
20623 * widget.c (set_frame_size): Use x_compute_fringe_widths.
20624 (EmacsFrameSetCharSize): Ditto.
60a653f1 20625
048addec
JD
20626 * w32term.h: Merged changes from xterm.h.
20627 * w32term.c: Merged changes from xterm.c.
20628 * w32fns.c: Merged changes from xfns.c.
60a653f1 20629
048addec 206302001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20631
048addec 20632 * COPYING: Removed.
60a653f1 20633
048addec 206342001-11-29 Dave Love <fx@gnu.org>
60a653f1 20635
048addec
JD
20636 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
20637 extra extra slot.
20638 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 20639
048addec 206402001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20641
048addec
JD
20642 * fileio.c (file-name-coding-system)
20643 (default-file-name-coding-system): Doc fix (links to referenced
20644 variables added).
60a653f1 20645
048addec 206462001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20647
048addec
JD
20648 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
20649 Add dummy uses of gcproN variables.
60a653f1 20650
048addec
JD
20651 * category.c (describe_category, describe_category_1)
20652 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
20653 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 20654
048addec 206552001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 20656
048addec 20657 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 20658
048addec
JD
20659 * Makefile.in (lispdir): New variable, referring to build dir.
20660 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 20661
048addec 206622001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 20663
048addec
JD
20664 * w32menu.c (w32_menu_display_help): Actually add the new argument
20665 OWNER.
60a653f1 20666
048addec 206672001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 20668
048addec
JD
20669 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
20670 menu items. From David Ponce <dponce@wanadoo.fr>.
20671 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
20672 conditionally.
f63fd14e 20673 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 20674 help event in the owner frame's keyboard buffer.
60a653f1 20675
048addec
JD
20676 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
20677 (Fx_show_tip): Don't subtract last width from row width.
20678
20679 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
20680 (w32_read_socket): Use EQ to compare frames.
60a653f1 20681
048addec 206822001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 20683
048addec
JD
20684 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
20685 OVERLAPS_P.
60a653f1 20686
048addec 206872001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20688
048addec
JD
20689 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
20690 `gcpro3' and `gcpro4'.
60a653f1 20691
048addec 20692 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 20693
048addec 206942001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20695
048addec 20696 * ccl.c: Use AREF and ASIZE.
60a653f1 20697
048addec 206982001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20699
048addec
JD
20700 * lisp.h (run_hook_list_with_args): Remove.
20701 (LIST_END_P): Fix call to wrong_type_argument.
20702 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 20703
048addec 207042001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20705
048addec
JD
20706 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
20707 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 20708
048addec
JD
20709 * eval.c: Use AREF and ASIZE.
20710 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 20711
048addec
JD
20712 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
20713 which match the end of the file-name.
20714 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
20715 is not a valid env var, but leave it as is instead.
60a653f1 20716
048addec
JD
20717 * keymap.c (access_keymap): Handle t bindings like nil bindings.
20718 Make nil bindings in char-tables transparent.
20719 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 20720
048addec 207212001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 20722
048addec
JD
20723 * textprop.c (set_text_properties_1): Allow START, END in either order.
20724 Do nothing if range is empty.
60a653f1 20725
048addec 20726 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 20727
048addec
JD
20728 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
20729 (clean): Not here.
60a653f1 20730
048addec 207312001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20732
048addec
JD
20733 * textprop.c (set_text_properties_1): Clearly mark that the
20734 interval should not be empty.
60a653f1 20735
048addec
JD
20736 * intervals.c (graft_intervals_into_buffer):
20737 Don't call set_text_properties_1 on an empty interval.
60a653f1 20738
048addec 207392001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 20740
048addec 20741 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 20742
048addec
JD
20743 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
20744 don't lose the data in it.
60a653f1 20745
048addec 207462001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 20747
048addec 20748 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 20749
c62aec78 20750 * buffer.c (Fkill_buffer): Likewise.
60a653f1 20751
c62aec78 20752 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 20753
048addec 207542001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20755
048addec 20756 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 20757
048addec 207582001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 20759
048addec
JD
20760 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
20761 Niemitalo <kon@iki.fi>.
60a653f1 20762
048addec 207632001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 20764
048addec 20765 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 20766
048addec
JD
20767 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
20768 (Fx_show_tip): Block input during frame creation.
20769 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 20770
048addec 207712001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 20772
048addec
JD
20773 * lread.c (Fload): Detect recursive load error for more than 3
20774 nestings of the same file.
20775 (Vrecursive_load_depth_limit): Variable deleted.
20776 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 20777
048addec 207782001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 20779
048addec
JD
20780 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
20781 mouse position if either left or top is not specified.
60a653f1 20782
048addec
JD
20783 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
20784 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
20785 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
20786 (my_create_tip_window): Assign tip_window.
20787 (x_create_tip_frame): Use same defaults as X.
20788 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 20789 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 20790
048addec
JD
20791 * w32term.c (x_after_update_window_line): Doc fix.
20792 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
20793 frames.
20794 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 20795
048addec
JD
20796 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
20797 for all Windowed systems.
60a653f1 20798
048addec 207992001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 20800
048addec
JD
20801 * msdos.c (IT_clear_screen): If the frame's faces are not yet
20802 realized, use the initial screen colors to clear the screen.
60a653f1 20803
048addec 208042001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20805
048addec
JD
20806 * textprop.c (Fset_text_properties): Remove unused variables
20807 `unchanged', `prev_changed', `s' and `len'.
60a653f1 20808
048addec
JD
20809 * search.c (Freplace_match): Remove unused variable `inslen'.
20810
20811 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
20812
208132001-11-22 Jason Rumney <jasonr@gnu.org>
20814
20815 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
20816 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
20817 (my_create_tip_window): New function.
20818 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
20819 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
20820
208212001-11-20 Jason Rumney <jasonr@gnu.org>
20822
20823 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
20824 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
20825
20826 * w32fns.c (Vw32_system_coding_system): Remove.
20827 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
20828
208292001-11-19 Stefan Monnier <monnier@cs.yale.edu>
20830
20831 * fileio.c (Fwrite_region): Move choose_write_coding_system to
20832 after build_annotations.
20833
20834 * syntax.c (describe_syntax): Add dummy arg.
20835 (describe_syntax_1): Update call to describe_vector.
20836
20837 * category.c (describe_category): Add dummy arg.
20838 (describe_category_1): Update call to describe_vector.
20839
20840 * keymap.c (Fdescribe_vector): Add `describer' parameter.
20841 (describe_command, describe_translation): Add dummy second param.
20842 (describe_map): Call elt_describer with two arguments.
20843 (describe_vector_princ): Add `fun' parameter.
20844 Call it instead of the hardcoded `princ'.
20845 (describe_vector): Add arg `args'.
20846 Pass it as a new second argument to elt_describer.
60a653f1 20847
048addec 20848 * keymap.h (describe_vector): Update prototype.
60a653f1 20849
048addec
JD
20850 * frame.c: Don't include keymap.h any more.
20851 (keys_of_frame): Remove.
60a653f1 20852
048addec 20853 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 20854
048addec 20855 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 20856
048addec 208572001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 20858
048addec
JD
20859 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
20860 if defined, 0 otherwise.
20861 (MAP_FAILED): Define if not defined and use it to test mmap failure.
20862 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 20863
048addec 208642001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 20865
048addec 20866 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 20867
048addec 208682001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 20869
048addec
JD
20870 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
20871 (x_draw_bar_cursor): If the background color of the glyph under
20872 the cursor equals the frame's cursor color, use the glyph's
20873 foreground color for drawing the bar cursor.
20874 (x_after_update_window_line): Clear internal border in different
20875 circumstances.
20876 (w32_set_vertical_scroll_bar): Check for width and height > 0.
20877 (w32_draw_relief_rect): Correct relief by 1 pixel.
20878 (x_set_glyph_string_background_width):
20879 Set extends_to_end_of_line_p if the row's fill_line_p is set and
20880 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
20881 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
20882 if cursor_in_non_selected_windows is false.
20883 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
20884 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
20885 Notice if cursor gets overwritten.
20886 (notice_overwritten_cursor): Renamed from
20887 note_overwritten_text_cursor. Rewritten to take glyph widths
20888 into account, and to take X positions as parameters.
20889 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
20890 around call to x_draw_glyphs.
20891 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
20892 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
20893 color to use for image glyph reliefs.
20894 (x_draw_image_relief): Accept zero tool_bar_button_relief.
20895 (glyph_rect): Remove unused variable `area'.
60a653f1 20896
048addec
JD
20897 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
20898 some items.
20899 (x_set_internal_border_width): Set frame garbaged when window
20900 doesn't exist yet.
20901 (Fx_create_frame): Accept zero tool_bar_button_relief.
20902 (x_clear_image_1, four_corners_best, image_background)
20903 (image_background_transparent): New functions.
20904 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
20905 (gs_format): Add `:background' entry.
20906 (lookup_image): Set IMG's background color if specified.
20907 (pbm_load, xbm_load_image, png_load): Set IMG's background field
20908 when appropriate.
20909 (x_clear_image_1): Reset `background_valid' and
20910 `background_transparent_valid' fields.
20911 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
20912 calculating it here. Set IMG's background_transparent field.
20913 (enum xpm_keyword_index): Add XPM_BACKGROUND.
20914 (enum png_keyword_index): Add PNG_BACKGROUND.
20915 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
20916 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
20917 (enum gif_keyword_index): Add GIF_BACKGROUND.
20918 (enum gs_keyword_index): Add GS_BACKGROUND.
20919 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
20920 Pre-calculate image background color where necessary.
20921 (x_create_x_image_and_pixmap, xbm_load, gs_load):
20922 Use display info's n_cbits entry for screen depth.
20923 (Fx_show_tip): Remove unused variables `buffer', `top',
20924 `left', `max_width' and `max_height'.
60a653f1 20925
048addec 20926 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 20927
048addec 209282001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 20929
048addec 20930 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 20931
048addec 209322001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20933
048addec 20934 * frame.c (Fframe_live_p): Doc fix.
60a653f1 20935
048addec 209362001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 20937
048addec
JD
20938 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
20939 (message_dolog_marker3): New static variables hold three markers.
20940 (syms_of_xdisp): Initialize and staticpro them.
20941 (message_dolog): Use message_dolog_marker1..3 instead of
20942 allocating markers each time. Unchain them when done.
60a653f1 20943
048addec 209442001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 20945
048addec 20946 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 20947
048addec 209482001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 20949
048addec 20950 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 20951
048addec 209522001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 20953
048addec 20954 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 20955
048addec 209562001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 20957
048addec 20958 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 20959
048addec 209602001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 20961
048addec
JD
20962 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
20963 with invalid position.
60a653f1 20964
048addec 209652001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 20966
048addec 20967 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 20968
048addec
JD
20969 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
20970 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
20971 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 20972
048addec 20973 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 20974
048addec 209752001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20976
048addec
JD
20977 * fileio.c (build_annotations): Split off the tail.
20978 (build_annotations_2): New fun. Extracted from build_annotations.
20979 (Fwrite_region): Split the call to build_annotations into two
20980 calls to build_annotations and build_annotations_2.
077907d4 20981
048addec 209822001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 20983
048addec
JD
20984 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
20985 clear_waiting_for_input with argument.
1756e2fb 20986
048addec 20987 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 20988
048addec 20989 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 20990
048addec 20991 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 20992
048addec 20993 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 20994
048addec 209952001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 20996
048addec
JD
20997 * fileio.c (choose_write_coding_system): New fun, extracted
20998 from Fwrite_region.
20999 (Fwrite_region): Use it.
fa336b91 21000
048addec
JD
21001 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
21002 (funcall_lambda, run_hook_with_args): Make static and add prototype.
21003 (ml_apply, find_handler_clause): Add prototype.
fa336b91 21004
048addec 210052001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 21006
048addec 21007 * config.in: Add #undef HAVE_COFF_H.
fa336b91 21008
048addec
JD
21009 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
21010 Required for ISC 4.1.
fa336b91 21011
048addec 210122001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 21013
52eb0373 21014 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 21015 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 21016
048addec 210172001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 21018
048addec
JD
21019 The following changes are made to clean up the various internal
21020 references to the fringes to actually use the term `fringe' for
21021 them. Previously, they were called `flags areas', `bitmap areas',
21022 `left/right side of windows', or implicitly as `flags' or
21023 `bitmaps':
fa336b91 21024
048addec 21025 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 21026 Comments fixed. Use renamed symbols.
06e8f738 21027
f63fd14e 21028 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 21029
048addec
JD
21030 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
21031 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
21032 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 21033
048addec 21034 * msdos.c: Comment fix.
9ce647f4 21035
048addec 21036 * w32fns.c: Use renamed symbols.
9b784ab8 21037
f63fd14e 21038 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
21039 (fringe_bitmap_type): Renamed from bitmap_type.
21040 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
21041 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
21042 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 21043
f63fd14e 21044 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
21045 (fringes_extra): Renamed from flags_areas_extra.
21046 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
21047 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
21048 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
21049 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
21050 (FRAME_X_LEFT_FRINGE_WIDTH):
21051 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
21052 (FRAME_X_RIGHT_FRINGE_WIDTH):
21053 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 21054
048addec 21055 * widget.c: Use renamed symbols.
9f7e52b4 21056
f63fd14e 21057 * window.c: Comment fixes. Use renamed symbols.
048addec 21058 (coordinates-in-window-p): Doc fix.
fa336b91 21059
f63fd14e 21060 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 21061
048addec 21062 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 21063
048addec 21064 * xfns.c: Use renamed symbols.
89512fcd 21065
f63fd14e 21066 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
21067 (fringe_bitmap_type): Renamed from bitmap_type.
21068 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
21069 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
21070 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 21071
f63fd14e 21072 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
21073 (fringes_extra): Renamed from flags_areas_extra.
21074 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
21075 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
21076 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
21077 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
21078 (FRAME_X_LEFT_FRINGE_WIDTH):
21079 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
21080 (FRAME_X_RIGHT_FRINGE_WIDTH):
21081 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
21082
210832001-11-15 Jason Rumney <jasonr@gnu.org>
21084
21085 * w32menu.c (add-menu-item): Make help_echo and radio buttons
21086 work for most menu items. From David Ponce
21087 <david.ponce@wanadoo.fr>.
21088
210892001-11-15 Gerd Moellmann <gerd@gnu.org>
21090
21091 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
21092 Some x_set_* function expect to be called even if old and new
21093 value are equal.
21094
21095 * xdisp.c (build_desired_tool_bar_string): Accept zero
21096 tool_bar_button_relief.
21097
21098 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
21099
21100 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
21101
21102 * xterm.c (x_draw_bar_cursor): If the background color of the
21103 glyph under the cursor equals the frame's cursor color, use
21104 the glyph's foreground color for drawing the bar cursor.
21105
21106 * dispnew.c (direct_output_forward_char): Fix character/byte
21107 position comparison.
7d18891d 21108
048addec 211092001-11-15 Miles Bader <miles@gnu.org>
d2936d21 21110
048addec
JD
21111 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
21112 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
21113 Update arguments to find_field.
21114 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
21115 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
21116 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
21117 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 21118
048addec 211192001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 21120
048addec 21121 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 21122
048addec
JD
21123 * dispextern.h (image_background, image_background_transparent):
21124 Conditionalize on HAVE_X_WINDOWS.
7d18891d 21125
048addec 211262001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 21127
048addec 21128 * print.c (Fprin1_to_string): Doc fix.
7d18891d 21129
048addec 21130 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 21131
048addec 21132 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 21133
048addec 21134 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 21135
048addec 21136 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 21137
048addec 21138 * eval.c (syms_of_eval): Doc fix.
7d18891d 21139
048addec 21140 * coding.c (syms_of_coding): Doc fix.
7d18891d 21141
048addec 21142 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 21143
048addec 21144 * dispnew.c (syms_of_display): Doc fix.
9474c847 21145
048addec 21146 * category.c (Fget_unused_category): Doc fix.
9474c847 21147
048addec 21148 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 21149
048addec 211502001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 21151
048addec 21152 * print.c (prin1, print): Doc fix.
e3059a5d 21153
048addec 211542001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 21155
048addec
JD
21156 * fontset.h: Remove declarations of variables
21157 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 21158
048addec
JD
21159 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
21160 `Vclip_large_size_font'.
eae936e2 21161
048addec 211622001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 21163
048addec 21164 * w32fns.c: Doc fix.
ddb67bdc 21165
048addec 211662001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 21167
048addec 21168 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 21169
048addec 21170 * fns.c: Doc fix.
6e1b91d7 21171
048addec 21172 * emacs.c: Doc fix.
1c1d3d69 21173
048addec 21174 * coding.c: Doc fix.
1c1d3d69 21175
048addec
JD
21176 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
21177 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
21178 `new style' [w/`doc:' keyword].
b6f4c7ba 21179
048addec 211802001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 21181
048addec
JD
21182 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
21183 LeaveNotify events. Only FocusIn and FocusOut do that now.
21184 (x_display_and_set_cursor): Do display hollow cursors in active
21185 minibuffer windows when they are not selected.
b6f4c7ba 21186
048addec 211872001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 21188
048addec 21189 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
21190 * w32term.c: Change doc-string comments to `new style'
21191 [w/`doc:' keyword]. Doc fixes.
a89f435d 21192
048addec
JD
21193 * w32fns.c: Don't define max.
21194 (Fx_open_connection): Only execute once.
a4cd0cd7 21195
048addec 211962001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 21197
048addec
JD
21198 * ccl.c: Change macros to use do-while block instead of if-else.
21199 Use braces to follow GNU Coding Standards.
eafb659a 21200
048addec 212012001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 21202
048addec 21203 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 21204
048addec 21205 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 21206
048addec
JD
21207 * insdel.c (replace_range): Use adjust_markers_for_replace
21208 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 21209
78819ebb 21210 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 21211
048addec
JD
21212 * textprop.c (set_text_properties_1): New subroutine
21213 broken out of set_text_properties.
21214 (set_text_properties): Use set_text_properties_1.
91823618 21215
048addec
JD
21216 * intervals.c (graft_intervals_into_buffer):
21217 Use set_text_properties_1 to clear out properties.
91823618 21218
048addec
JD
21219 * search.c (Freplace_match): Use replace_range to insert
21220 and delete. Don't request property inheritance from
21221 surrounding text.
86928dfb 21222
048addec 212232001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 21224
048addec 21225 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 21226 vertical fonts. Allow them if face name is explicitly specified.
048addec 21227 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 21228
048addec 212292001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 21230
048addec
JD
21231 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
21232 instead of malloc/free.
a78e0303 21233
048addec 212342001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 21235
048addec
JD
21236 * xfaces.c (merge_face_vectors): Use braces to follow GNU
21237 Coding Standards.
21238 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 21239
048addec 21240 * buffer.c (Fbury_buffer): Likewise.
0c99b139 21241
048addec 21242 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 21243
048addec
JD
21244 * coding.c (encode_coding): Use precomputed value of `src'.
21245 (encode_coding): Remove unused variable `src_end'.
21246 (code_convert_region): Remove unused variables `count'.
830ddd77 21247
048addec 212482001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 21249
048addec
JD
21250 * w32term.c (x_display_and_set_cursor): Do not move system caret
21251 if cursor_glyph is NULL.
55c6d645 21252
048addec 212532001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 21254
048addec 21255 * keymap.c (access_keymap): Fix compilation error.
5de38842 21256
048addec 212572001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 21258
048addec 21259 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 21260
048addec 212612001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 21262
048addec
JD
21263 * intervals.c (graft_intervals_into_buffer):
21264 Remove #ifdef'd-out code.
21265 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 21266
048addec
JD
21267 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
21268 code (eval-current-buffer).
21269 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 21270
048addec 212712001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 21272
048addec 21273 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 21274
048addec 212752001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 21276
048addec 21277 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 21278
048addec
JD
21279 * keyboard.c (make_lispy_event): Check integerness and fix
21280 Lisp_Object/int mixup.
17893c65 21281
048addec 212822001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 21283
048addec 21284 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 21285
048addec
JD
21286 * fontset.c (fontset_font_pattern): Remove unused variable
21287 `family_registry'.
d5360cc7 21288
048addec 21289 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 21290
048addec 212912001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 21292
048addec 21293 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 21294
048addec
JD
21295 * buffer.c (Fkill_buffer): Don't delete auto save file
21296 if buffer is modified.
d9d54213 21297
048addec 212982001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 21299
048addec
JD
21300 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
21301 CHECK_NUMBER_CDR.
b116830b 21302
048addec 213032001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 21304
048addec 21305 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 21306
048addec 213072001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 21308
048addec 21309 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 21310
048addec 213112001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 21312
048addec 21313 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 21314
048addec 213152001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 21316
048addec
JD
21317 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
21318 the program image directly.
982f6c7e 21319
048addec 213202001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 21321
048addec 21322 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 21323
048addec 213242001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 21325
048addec
JD
21326 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
21327 and CHECK_BUFFER.
d31053f9 21328
048addec
JD
21329 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
21330 (record_char): Likewise.
d31053f9 21331
048addec
JD
21332 * keyboard.c (make_lispy_event): Don't insist a drag event must
21333 move to a different buffer position. Instead, check for moving at
21334 least double_click_fuzz.
982f6c7e 21335
048addec 21336 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 21337
048addec 21338 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 21339
048addec
JD
21340 * indent.c (current_column_1, Fmove_to_column): Separate the code
21341 for display-table glyphs from the code for buffer text, to fix
21342 bugs in the former.
830047fd 21343
048addec 213442001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 21345
048addec
JD
21346 * buffer.c (Fbuffer_local_value): New function.
21347 (syms_of_buffer): Defsubr it.
2df5238c 21348
048addec
JD
21349 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
21350 value of `cursor-in-non-selected-windows'.
4e397688 21351
048addec
JD
21352 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
21353 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
21354 (syms_of_xdisp): Initialize it.
48b0f3ae 21355
048addec 213562001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 21357
048addec 21358 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 21359
048addec
JD
21360 * coding.c: Change doc-string comments to `new style' [w/`doc:'
21361 keyword].
3ecaf7e5 21362
048addec
JD
21363 * eval.c (top_level_value, top_level_set): Remove commented and
21364 #ifdef'd-out code.
21365 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 21366
048addec 213672001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 21368
048addec 21369 * xfns.c: Include unistd.h, if it exists.
8db2e33b 21370
048addec 21371 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 21372
048addec 21373 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 21374
048addec 213752001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 21376
048addec
JD
21377 * lisp.h (CHECK_STRING_CAR): New macro.
21378 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
21379 treating XCAR and XCDR as lvalues.
21380 (openp): Use CHECK_STRING_CAR.
21381 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 21382
048addec 213832001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 21384
048addec
JD
21385 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
21386 (SIGMASKTYPE): Define.
1b1acc13 21387
048addec 21388 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 21389
048addec 213902001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 21391
048addec
JD
21392 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
21393 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
21394 Fix typos in comments.
6cb16f95 21395
048addec
JD
21396 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
21397 and #ifdef'd-out code.
21398 Fix and reindent comments.
6cb16f95 21399
048addec 21400 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 21401
048addec
JD
21402 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
21403 argument `i' in macros.
6cb16f95 21404
048addec
JD
21405 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
21406 `i' in macros.
7e9d3c2f 21407
048addec
JD
21408 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
21409 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
21410 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
21411 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
21412 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
21413 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
21414 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
21415 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
21416 in macros.
7e9d3c2f 21417
048addec
JD
21418 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
21419 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
21420 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
21421 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
21422 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
21423 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
21424 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
21425 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
21426 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
21427 (remove unused second argument).
7e9d3c2f 21428
048addec 214292001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 21430
048addec
JD
21431 * syntax.c (describe_syntax): New wrapper.
21432 (Finternal_describe_syntax_value): Rename from describe_syntax.
21433 Don't insert space at front and \n at the end.
21434 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 21435
048addec
JD
21436 * regex.c (re_wctype): Try to fix some warnings.
21437 (regcomp, regexec): Don't forget the __restrict.
9ba48103 21438
048addec 214392001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 21440
048addec 21441 * textprop.c (Fget_char_property): Doc fix.
9ba48103 21442
048addec 214432001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 21444
048addec 21445 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 21446
048addec 21447 * data.c (Fsetq_default): Ditto.
c22e59e1 21448
048addec 21449 * callint.c (Finteractive): Ditto.
9271ed2c 21450
048addec 214512001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 21452
048addec
JD
21453 * macros.c: Don't include keymap.h any more.
21454
214552001-11-01 Richard M. Stallman <rms@gnu.org>
21456
21457 * data.c (Fmake_local_variable): Doc fix.
21458
21459 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
21460 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 21461
048addec 21462 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
21463 bindings along with or instead of the buffer local map.
21464 Make the overriding maps override what they should.
21465
f00691a3 214662001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
21467
21468 * window.c (grow_mini_window): Fix typo in comment.
21469
27188d11
GM
214702001-11-01 Gerd Moellmann <gerd@gnu.org>
21471
7b49b9d2
GM
21472 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
21473 (XTset_vertical_scroll_bar): Likewise.
21474
43f7c3ea
GM
21475 * xfns.c (x_build_heuristic_mask): Use four_corners_best
21476 instead of IMAGE_BACKGROUND.
c22e59e1 21477
b350c2e5
GM
21478 * xfns.c (four_corners_best): Reindent.
21479
c22e59e1 21480 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
21481 Handle :box so that it is possible to specify sexprs.
21482
bf00d461
EZ
214832001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
21484
21485 * s/hpux11.h: New file.
21486
f00691a3 214872001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 21488
2b209b97
PJ
21489 * emacs.c (USAGE1): Show command line option --no-window-system
21490 instead of --no-windows in usage.
21491 (standard_args): Rename --no-windows to --no-window-system.
21492 (bug_reporting_address): Follow Emacs coding conventions.
21493
9dbc9081
PJ
21494 * eval.c (Fcommandp): Doc fix.
21495 Change doc-string comments to `new style' [w/`doc:' keyword].
21496
4e10df59
PJ
21497 * frame.c (Fframe_live_p): Doc fix.
21498
21499 * buffer.c (selective-display-ellipses): Doc fix.
21500
dd387b25
GM
215012001-10-31 Gerd Moellmann <gerd@gnu.org>
21502
fe957e65
GM
21503 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
21504
dd387b25
GM
21505 * xfaces.c (realize_x_face): If C is not a single-byte character,
21506 set the face's colors_copied_bitwise_p instead of the defaulted_p
21507 members which have a different meaning.
21508 (free_face_colors): Do nothing for a face whose colors have been
21509 copied bitwise.
21510
c22e59e1 21511 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 21512
f00691a3 215132001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 21514
687784e8
PJ
21515 * marker.c, mocklisp.c: Change doc-string comments to `new style'
21516 [w/`doc:' keyword].
2e1280f8 21517
b9d9a9b9
GM
215182001-10-31 Gerd Moellmann <gerd@gnu.org>
21519
21520 * fns.c (require_unwind): Return Lisp_Object.
21521
f00691a3 215222001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 21523
fa1361cb
PJ
21524 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
21525 (last-input-char): Revert doc-string to be the same as the
21526 doc-string of `last-input-event'.
21527
6c465a15 21528 * xdisp.c: Fix typos in comments.
48400103 21529
eafa3196
GM
215302001-10-31 Gerd Moellmann <gerd@gnu.org>
21531
21532 * window.c (grow_mini_window): Handle case that the root
21533 window is already smaller than the nominal mininum height.
21534
747d3f2a
SM
215352001-10-30 Stefan Monnier <monnier@cs.yale.edu>
21536
bf9bb76f
SM
21537 * emacs.c (main): Don't call keys_of_macros any more.
21538
21539 * lisp.h (keys_of_macros): Remove.
21540
21541 * macros.c (keys_of_macros): Remove.
21542
747d3f2a
SM
21543 * xfaces.c (Fface_attribute_relative_p): Declare args.
21544
5e905a57
JR
215452001-10-30 Jason Rumney <jasonr@gnu.org>
21546
21547 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
21548 (enum_font_cb2): Ignore fonts with vertical orientation.
21549
3a426197
RS
215502001-10-30 Richard M. Stallman <rms@gnu.org>
21551
21552 * keyboard.c (Finput_pending_p): Doc fix.
21553
a742d646
GM
215542001-10-30 Gerd Moellmann <gerd@gnu.org>
21555
259cf6bc
GM
21556 * xterm.c (x_after_update_window_line): Don't run the code
21557 clearing in borders for rows whose visible height is 0.
21558
3f99f948
GM
21559 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
21560 resized_p flag is set. If not set, use the much less flickering
21561 method previously used.
21562
21563 * dispnew.c (change_frame_size_1): Set frame's resized_p.
21564
21565 * frame.h (struct frame) <resized_p>: New member.
21566
b4a3be43
GM
21567 * lread.c (to_multibyte): Ensure read_buffer is at least twice
21568 as large as the number of bytes to convert.
747d3f2a 21569
a742d646
GM
21570 * lread.c (to_multibyte): New function.
21571 (read1): Use it.
21572
cacbb9e9
EZ
215732001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
21574
21575 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
21576
99cb6b2f
GM
215772001-10-30 Gerd Moellmann <gerd@gnu.org>
21578
327f42ee 21579 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
21580 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
21581 if the row's fill_line_p is set and drawing the last glyph with
21582 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 21583
99cb6b2f
GM
21584 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
21585
8e8223e2
SM
215862001-10-29 Stefan Monnier <monnier@cs.yale.edu>
21587
21588 * xmenu.c: Include coding.h and charset.h.
21589 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
21590 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
21591 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
21592 Explicitly set wv->help. Use `TRUE' rather than `True'.
21593 (menu_help_callback): Use empty_string.
21594
21595 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
21596 (Fx_popup_dialog): Explicitly init f.
21597 (w32_menu_display_help): Use empty_string.
21598
4d083a8f
RS
215992001-10-29 Richard M. Stallman <rms@gnu.org>
21600
b2304472
RS
21601 * fns.c (Frequire): Detect recursive try to require the same
21602 feature 3 or more levels deep, and get error.
21603 (require_unwind): New subroutine.
21604 (require_nesting_list): New variable.
21605 (syms_of_fns): Init and staticpro it.
21606
4d083a8f
RS
21607 * print.c (print_object): Clarify indication of insertion type.
21608
2fe41216
EZ
216092001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
21610
90480000
EZ
21611 * coding.c (syms_of_coding): Document that locale-coding-system is
21612 used for decoding input on X.
21613
2fe41216
EZ
21614 * window.c (Fscroll_left, Fscroll_right): Doc fix.
21615
f00691a3 216162001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
21617
21618 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
21619 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
21620
60ebcfe8
GM
216212001-10-29 Gerd Moellmann <gerd@gnu.org>
21622
9a7bdceb
GM
21623 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
21624 use NO_CURSOR if cursor_in_non_selected_windows is false.
21625
3f08fcd2
GM
21626 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
21627 the slant attribute if FRAME is t.
21628
0ccfdad2
GM
21629 * xfns.c (x_set_internal_border_width): Set frame garbaged
21630 when X window doesn't exist yet.
21631
ef253080
GM
21632 * xterm.c (x_after_update_window_line): Clear internal border
21633 in different circumstances.
b116830b 21634
60ebcfe8
GM
21635 * xterm.c (XTread_socket) <KeyPress>: Don't use
21636 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
21637 <handa@etl.go.jp>.
21638
73d25f9c
EZ
216392001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
21640
21641 * m/ibms390.h: New file. From Adam Thornton
21642 <athornton@sinenomine.net>.
21643
cac1daf0
GM
216442001-10-28 Gerd Moellmann <gerd@gnu.org>
21645
053b3256 21646 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 21647
cac1daf0
GM
21648 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
21649 a loop counter.
21650
f00691a3 216512001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 21652
f9711de4 21653 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 21654
4707d2d0
PJ
21655 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
21656 keyword].
21657 Fix typos in comments.
b116830b 21658
d883731c
PJ
21659 * emacs.c (bug_reporting_address): New function.
21660 Use it when displaying usage message.
21661
04012254
PJ
21662 * minibuf.c (read_minibuf): Remove unused external declaration of
21663 variable `Qread_only'.
21664
13b1a09c
PJ
21665 * keymap.c (access_keymap): Remove unused variable `charset'.
21666
5bbf4378
MB
216672001-10-28 Miles Bader <miles@gnu.org>
21668
21669 * xfaces.c (merge_face_heights): Handle TO being relative as well.
21670 Remove #ifdef'd-out code.
21671 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
21672 (syms_of_xfaces): Initialize them.
21673
1ce1e4ee
JR
216742001-10-27 Jason Rumney <jasonr@gnu.org>
21675
21676 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
21677 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
21678 position using the system caret.
21679
21680 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
21681 (w32_system_caret_height, w32_system_caret_x)
21682 (w32_system_caret_y): New variables for tracking system caret.
21683 (w32_initialize): Initialize them.
c2d53558 21684 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 21685
c2d53558
SM
21686 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
21687 New messages types.
1ce1e4ee
JR
21688
21689 * w32term.c (note_mouse_highlight): Clear old help_echo.
21690
f00691a3 216912001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 21692
bb4600a4
PJ
21693 * xterm.c: Fix typo in a comment.
21694
7db35a48
PJ
21695 * emacs.c: Fix typos in comments.
21696 Remove unnecessary spaces.
21697 Change doc-string comments to `new style' [w/`doc:' keyword].
21698 (USAGE2): Fix typos in usage string.
21699
a7248e4f
PJ
21700 * xterm.c: Fix typo in a comment.
21701
52eb0373 21702 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
21703 emacs.c.
21704
62725a92
GM
217052001-10-27 Gerd Moellmann <gerd@gnu.org>
21706
798dbe1f 21707 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 21708 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
21709 farther backward when target_y was not reached.
21710
62725a92
GM
21711 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
21712 Display errno only if non-zero.
21713 (sound_warning): New function.
21714 (vox_configure): Don't treat failing to set sample rate as error.
21715 (various places): Improve error messages.
21716
d4e34d24
EZ
217172001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
21718
944e6f60
EZ
21719 * fileio.c (Faccess_file): Run the argument filename through
21720 Fexpand_file_name, before using it.
21721
d4e34d24
EZ
21722 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
21723 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
21724
38d2af0c
GM
217252001-10-26 Gerd Moellmann <gerd@gnu.org>
21726
da80a8d5
GM
21727 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
21728
38d2af0c
GM
21729 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21730 Fix clearing in the case of scroll bars on the right.
c2d53558 21731
45de4a6f 217322001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
21733
21734 * w32gui.h (XImage): Add a dummy typedef.
21735
fbd5ceb2
GM
217362001-10-26 Gerd Moellmann <gerd@gnu.org>
21737
c2d53558 21738 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 21739
b23236fb
EZ
217402001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
21741
21742 * frame.c (Fframe_parameter): Fix last change.
21743
5d991fc4
EZ
21744 * fileio.c: Revert last change (which removed old commented-out
21745 version of expand-file-name). Add a comment that explains why
21746 this old version should not be removed.
21747
879eadc3
GM
217482001-10-25 Gerd Moellmann <gerd@gnu.org>
21749
75700ff2
GM
21750 * frame.c (Fframe_parameter): Fix a bug whereby some
21751 ``artificial'' frame parameters, like `minibuffer' were not
21752 obtained by calling Fframe_parameters.
21753
dfe92a6a
GM
21754 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
21755 cursor differently.
21756
879eadc3
GM
21757 * xdisp.c (move_it_vertically_backward): Compute line height
21758 differently. Add heuristic to try to be more compatible to 20.x.
21759
e1010ebe
SM
217602001-10-25 Stefan Monnier <monnier@cs.yale.edu>
21761
d73a471b
SM
21762 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
21763
d6da5a06
GM
21764 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
21765 boolean.
e1010ebe 21766
f66bd220
MB
217672001-10-25 Miles Bader <miles@gnu.org>
21768
21769 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
21770 BG is a pointer to a structure, not a structure.
21771 (gif_format, png_format): Add missing commas.
21772
d436d538
RS
217732001-10-24 Richard M. Stallman <rms@gnu.org>
21774
21775 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 21776 (syms_of_xfaces): Defsubr it.
d436d538 21777
f00691a3 217782001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
21779
21780 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
21781 variable `area'.
21782
f00691a3 217832001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 21784
c2d53558 21785 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 21786
e2a57b34
MB
217872001-10-25 Miles Bader <miles@gnu.org>
21788
21789 * dispextern.h (struct image): Add `background',
21790 `background_valid', and `background_transparent' fields.
21791 (image_background, image_background_transparent): New declarations.
21792 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
21793 * xfns.c (image_background, image_background_transparent)
21794 (four_corners_best): New functions.
c2d53558 21795 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
21796 (gs_format): Add `:background' entry.
21797 (lookup_image): Set IMG's background color if specified.
21798 (pbm_load, xbm_load_image, png_load): Set IMG's background field
21799 when appropriate.
21800 (x_clear_image_1): Reset `background_valid' and
21801 `background_transparent_valid' fields.
21802 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
21803 calculating it here. Set IMG's background_transparent field.
21804 (enum xpm_keyword_index): Add XPM_BACKGROUND.
21805 (enum png_keyword_index): Add PNG_BACKGROUND.
21806 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
21807 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
21808 (enum gif_keyword_index): Add GIF_BACKGROUND.
21809 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 21810 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
21811 Pre-calculate image background color where necessary.
21812 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
21813 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
21814 color to use for image glyph reliefs.
21815
b547b6e8
GM
218162001-10-24 Gerd Moellmann <gerd@gnu.org>
21817
d9e3b8c6
GM
21818 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
21819 in full-width rows.
c2d53558 21820
b547b6e8
GM
21821 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21822 Fix clearing of area not covered by scroll bar.
21823
f00691a3 218242001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 21825
52eb0373 21826 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 21827 and `real_start'.
c2d53558 21828 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
21829 (glyph_rect): Remove unused variable `area'.
21830
76cb5e06
GM
218312001-10-24 Gerd Moellmann <gerd@gnu.org>
21832
bdbdebff 21833 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
21834
21835 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
21836 (row_containing_pos): Take additional argument DY.
21837 Treat rows ending in middle of char differently.
62e33982
GM
21838 (display_line): Handle tabs on window systems differently.
21839
21840 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
21841 with additional argument.
21842
21843 * dispextern.h (row_containing_pos): Adjust prototype.
21844
76cb5e06
GM
21845 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
21846 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
21847 (try_window_id, try_window_reusing_current_matrix)
21848 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 21849 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 21850
f00691a3 218512001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 21852
c9e60620
PJ
21853 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
21854 gnuemacs).
21855 (HAVE_BOXES): Fix typo in comment.
21856 (push_menu_pane): Fix typo in comment.
21857
52eb0373 21858 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
21859 of `Qwhen'.
21860 (single_display_prop_string_p): Remove unused local declarations
21861 of `Qwhen' and `Qmargin'.
21862 (string_buffer_position): Remove unused variable `around'.
21863 (store_frame_title): Remove unused variable `width'.
21864
15c565ac
PJ
21865 * window.c: Don't define max.
21866 (coordinates_in_window): Remove unused variable `uy'.
21867
a8818eb9
PJ
21868 * widget.c: Don't define max.
21869
996fee11
PJ
21870 * process.c: Don't define max.
21871 (create_process): Remove unused variable `buffer'.
21872
496e1a5b
GM
218732001-10-23 Gerd Moellmann <gerd@gnu.org>
21874
c2d53558 21875 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 21876
5905ae8b
EZ
218772001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
21878
21879 * xfaces.c (Finternal_set_lisp_face_attribute)
21880 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
21881 frame is on a windowed display.
21882
24db49fb
GM
218832001-10-23 Gerd Moellmann <gerd@gnu.org>
21884
c2d53558
SM
21885 * dispnew.c (sync_window_with_frame_matrix_rows):
21886 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
21887 of marginal areas.
21888
c2d53558 21889 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 21890
f0487f05
EZ
218912001-10-23 Andreas Schwab <schwab@suse.de>
21892
21893 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
21894 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
21895
f0a48a01
GM
218962001-10-23 Gerd Moellmann <gerd@gnu.org>
21897
c2d53558 21898 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
21899 REAL_END. Notice if cursor gets overwritten.
21900 (notice_overwritten_cursor): Take X positions as parameters.
21901 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
21902 around call to x_draw_glyphs.
21903
f00691a3 219042001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 21905
fc11dff0
PJ
21906 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
21907 instead of C) and usage.
a50a10a0 21908
fc11dff0
PJ
21909 * editfns.c (char-to-string): Fix argument names (use CHAR instead
21910 of C) and usage.
a50a10a0
PJ
21911
21912 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
21913 `left', `max_width' and `max_height'.
21914
8738febd
GM
219152001-10-23 Gerd Moellmann <gerd@gnu.org>
21916
21917 * xdisp.c (display_line): For a tab continued to the next line,
21918 set row's ends_in_middle_of_char_p.
21919
653c329b
GM
219202001-10-22 Gerd Moellmann <gerd@gnu.org>
21921
21922 * xdisp.c (display_line): Fix computation of continuation lines
21923 width for TABs.
21924
f00691a3 219252001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 21926
7ba51063
PJ
21927 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
21928 `Qlaplace'.
21929
f958c5ac
PJ
21930 * fileio.c: Remove unused code.
21931
eb360291
MB
219322001-10-22 Miles Bader <miles@gnu.org>
21933
21934 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
21935 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
21936 Remove `DOC_STRINGS_IN_COMMENTS' cases.
21937
98515cf0
JR
219382001-10-21 Jason Rumney <jasonr@gnu.org>
21939
21940 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
21941
93026d88
EZ
219422001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
21943
21944 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
21945 (Finsert_string): Avoid the multi-line string literals warning.
21946
c9a95b79
MB
219472001-10-22 Miles Bader <miles@gnu.org>
21948
21949 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
21950 (Fdocumentation): Don't use it.
21951 (syms_of_doc): Don't initialize it.
21952
21953 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
21954 * print.c (Fwith_output_to_temp_buffer): Likewise.
21955 * window.c (Fsave_window_excursion): Likewise.
c2d53558 21956 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 21957 (Fsave_restriction): Likewise.
c2d53558
SM
21958 * eval.c (Frun_hooks, Frun_hook_with_args)
21959 (Frun_hook_with_args_until_failure)
21960 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
21961 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
21962 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
21963 (Funwind_protect, Fcondition_case): Likewise.
21964 * coding.c (Ffind_operation_coding_system): Likewise.
21965 * keyboard.c (Ftrack_mouse): Likewise.
21966
a3b10252
MB
219672001-10-21 Miles Bader <miles@gnu.org>
21968
c2d53558 21969 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
21970 (Fmake_hash_table): Add usage: string to doc string.
21971 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 21972 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
21973 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
21974 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
21975 (Fml_prefix_argument_loop): Likewise.
21976
f00691a3 219772001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 21978
c2d53558 21979 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 21980
c6f73eec
PJ
21981 * sysdep.c (init_sys_modes): Change doc-string comments to `new
21982 style' [w/`doc:' keyword].
21983
21984 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
21985 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
21986 comments to `new style' [w/`doc:' keyword].
21987
3cf3436e
JR
219882001-10-21 Jason Rumney <jasonr@gnu.org>
21989
21990 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
21991
c169b8f1
JR
21992 * w32term.c (remember_mouse_glyph): New function.
21993 (w32_mouse_position): Use it.
21994 (note_mouse_movement): If the mouse moved off the glyph, remember
21995 its new position.
c2d53558 21996
4fdd691b
JR
21997 * w32term.h (struct w32_output): Correct spelling of x_compatible.
21998 (w32_display_info): Add mouse_face_overlay.
21999
c169b8f1
JR
22000 * w32term.c (notice_overwritten_cursor): Renamed from
22001 note_overwritten_text_cursor. Rewritten to take glyph widths into
22002 account.
22003 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
22004 (fast_find_string_pos): New function.
22005 (fast_find_position): Return the correct vpos. Add parameter
22006 STOP. In the final row, stop before glyphs having STOP as object.
22007 Don't consider glyphs that are not from a buffer.
22008 (fast_find_position) [0]: Add a presumably more correct version
22009 for after 21.1.
22010 (expose_window_tree, expose_frame): Don't compute intersections here.
22011 (expose_window): Do it here instead.
22012 (expose_window_tree, expose_window, expose_line): Return 1 when
22013 overwriting mouse-face.
22014 (expose_window): If W is the window currently being updated, mark
22015 the frame garbaged.
22016 (expose_frame): If mouse-face was overwritten, redo it.
22017 (x_use_underline_position_properties): New variable.
22018 (syms_of_xterm): DEFVAR_BOOL it.
22019 (x_draw_glyph_string): Add comment to use it in future.
22020 (x_draw_glyph_string): Restore clipping after drawing box.
22021 Fix a computation of the underline position.
22022 (w32_get_glyph_string_clip_rect): Minor cleanup.
22023 (x_fill_stretch_glyph_string): Remove an assertion.
22024 (x_produce_glyphs): Don't convert multibyte characters
22025 to unibyte characters in unibyte buffers.
22026 (cursor_in_mouse_face_p): New function.
22027 (x_draw_stretch_glyph_string): Use it to choose a different GC
22028 when drawing a cursor within highlighted text. Don't draw
22029 background again if it has already been drawn.
22030 (x_draw_glyph_string_box): Don't draw a full-width
22031 box just because the glyph row's full_width_p flag is set.
22032 (x_draw_glyphs): Fix computation of rightmost x for
22033 full-width rows.
22034 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
22035 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 22036 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
22037 (x_update_window_end): Handle overwritten mouse face
22038 also for tool bar windows.
22039 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
22040 DRAW is DRAW_IMAGE_RAISED.
22041 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
22042 actually redrawn. Make the function static.
22043 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
22044 optimize away highlighting if we pass over that same overlay again.
22045 (note_mouse_highlight): Call mouse_face_overlay_overlaps
22046 to detect a case where we have to highlight a different region
22047 despite not having left the currently highlighted region.
22048 Set mouse_face_overlay in the x_display_info. Avoid changing the
22049 mouse pointer shape when show_mouse_face has already done it, or
22050 there is no need. Handle mouse-face and help-echo in strings.
22051 (glyph_rect): New function.
22052 (w32_mouse_position): Use it to raise the threshold for mouse
22053 movement event generation.
22054 (w32_initialize_display_info): Initialize the x_display_info's
22055 mouse_face_overlay.
22056 (w32_set_vertical_scroll_bar): Don't clear a zero height
22057 or width area.
22058 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
22059 a widget to zero height.
22060
3cf3436e 22061 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 22062 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
22063 equivalents in menu_items.
22064 (w32_menu_show): Don't overwrite an item's name with its key
22065 description in case the description is a multibyte string.
22066 (single_submenu): Some cleanup.
22067
22068 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
22069 (postprocess_image): New function.
22070 (lookup_image): Call it for all image types except PostScript.
22071 (x_kill_gs_process): Call postprocess_image.
22072 (tiff_error_handler, tiff_warning_handler): New functions.
22073 (tiff_load): Install them as handlers.
22074 (x_kill_gs_process): Recognize if someone has cleared the image
22075 cache under us.
22076 (valid_image_p): Protect better against invalid image
22077 specifications. Previous code could signal an error.
22078 (Fx_hide_tip, Fshow_tip): Doc fix.
22079 (Fv_max_tooltip_size): New variable.
22080 (syns_of_xfns): DEFVAR_LISP it.
22081 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 22082 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
22083 window_width. Use a maximum tooltip size specified by
22084 Vx_max_tooltip_size, if that has valid contents.
22085 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
22086 Make sure the tooltip is completely visible.
22087 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
22088 (Fx_create_frame): Adjust the frame's height for presence
22089 of the tool bar before calling x_figure_window_size.
22090 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
22091 when the window gets smaller.
22092 (x_set_foreground_color): Set frame's cursor_pixel.
22093 (x_set_foreground_color, x_set_background_color): Cleaned up.
22094 (x_set_font): Handle case of x_new_fontset returning the same name
22095 as before, although there was a change in fontsets.
22096
386ca361
MB
220972001-10-21 Miles Bader <miles@gnu.org>
22098
c2d53558 22099 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
22100 (Flogxor): Add usage: string to doc string.
22101 * charset.c (Fstring): Likewise.
22102 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
22103 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
22104
f00691a3 221052001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 22106
03be2694
PJ
22107 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
22108
22109 * alloc.c: Reindent DEFUNs with doc: keywords.
22110
22111 * abbrev.c (Finsert_abbrev_table_description): Reindent.
22112
14ff1ee0
PJ
22113 * frame.c: Change doc-string comments to `new style' [w/`doc:'
22114 keyword].
22115
2f147815 22116See ChangeLog.9 for earlier changes.
6922b018
KH
22117
22118;; Local Variables:
49b3bd82 22119;; coding: iso-2022-7bit
6922b018 22120;; End:
2a34a036 22121
2f147815 22122 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
22123 Copying and distribution of this file, with or without modification,
22124 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
22125
22126;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4