extern last_point_position_window.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
0ad017ce
LT
12005-12-26 Luc Teirlinck <teirllm@auburn.edu>
2
403c00a5
LT
3 * keyboard.h: extern last_point_position_window.
4
0ad017ce
LT
5 * undo.c: include keyboard.h.
6
403c00a5 7 * Makefile.in (undo.o): Depend on keyboard.h.
0ad017ce 8
91e25f5e
RS
92005-12-26 Richard M. Stallman <rms@gnu.org>
10
11 * undo.c: Depend on window.h.
12 (record_point): Save old point from the correct window.
13
14 * keyboard.c (last_point_position_window): New variable.
15 (command_loop_1): Set last_point_position_window.
16 (syms_of_keyboard): Init it.
17
18 * Makefile.in (undo.o): Depend on window.h.
19
cad1051b
RS
202005-12-25 Richard M. Stallman <rms@gnu.org>
21
22 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
23 to undo a `provide'.
24
25 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
26
d52c26e9
KB
272005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
28
29 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
30 define for FreeBSD on this platform.
31
14af1e44
YM
322005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
33
34 * macterm.h (TYPE_FILE_NAME): New define.
35 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
36
37 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Add
38 prototypes. Make static.
39 (mac_aedesc_to_lisp): Initialize err to noErr.
40 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
41 (init_coercion_handler): New functions.
42 (Fmac_coerce_ae_data): Use coercion of Apple event data for
43 translation from/to file names.
44
45 * macterm.c: Don't include sys/param.h.
46 (init_coercion_handler): Add extern.
47 [MAC_OS8] (main): Call init_coercion_handler.
48 (mac_initialize) [MAC_OSX]: Likewise.
49 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
50 Apple event data for translation from/to file names.
51
52 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
53
54 * image.c [MAC_OS] (find_image_fsspec): Likewise.
55
bab3eee1
EZ
562005-12-23 Martin Rudalics <rudalics@gmx.at> (tiny change)
57
58 * insdel.c (insert, insert_and_inherit, insert_before_markers)
59 (insert_before_markers_and_inherit): Make sure FROM is correct
60 when `after-change-functions' are called.
61
90f2e16b
JD
622005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
63
64 * xfns.c (Fx_uses_old_gtk_dialog): New function.
65
66 * gtkutil.c (xg_uses_old_file_dialog): New function.
67 (xg_get_file_name): Use xg_uses_old_file_dialog.
68
69 * gtkutil.h: Declare xg_uses_old_file_dialog.
70
0ee01fff
RS
712005-12-22 Richard M. Stallman <rms@gnu.org>
72
73 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
74
b73e4d84
YM
752005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
76
77 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
78
79 * macgui.h (XCharStruct): Remove member `valid_p'.
80 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
81 (XCharStructRow): New typedef.
82 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID): New
83 macros.
84 (struct MacFontStruct): Add member `bounds'. Remove member
85 `per_char'. All uses for QuichDraw Text fonts are changed to
86 `bounds.per_char'. ATSUI font bounds are represented as an array
87 `bounds.rows' of XCharStructRow's, each of which consists of a
88 bitmap of valid entries and an array of char bounds.
89
90 * macterm.c (mac_per_char_metric): Add prototype.
91 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
92 (mac_query_char_extents): New function.
93 (x_per_char_metric): Use it.
94 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
95 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Use
96 mac_per_char_metric instead of x_per_char_metric.
97 (mac_text_extents_16): New function.
98 (mac_compute_glyph_string_overhangs): Use it.
99 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
100
a425bd03
SM
1012005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
102
103 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
104 (Fminibuffer_completion_help): Remove duplicates before display.
105
aa0b0cd9
KL
1062005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
107
da3863b5 108 * print.c (print_preprocess): Don't lose print_depth levels while
aa0b0cd9
KL
109 iterating.
110
5a61ec18
YM
1112005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
112
113 * macmenu.c (Qmac_apple_event): Add extern.
114 (set_frame_menubar, mac_menu_show keymp_panes)
115 (single_keymap_panes, list_of_panes, list_of_item)
116 (single_menu_item): Add argument types to prototypes.
117 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
118 (struct skp): New struct (from xmenu.c).
119 (single_keymap_panes, single_menu_item, list_of_panes)
120 (list_of_item): Sync with xmenu.c.
121 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
122 POSITION if it is mac-apple-event event.
123 (menubar_selection_callback): Don't use menu_command_in_progress.
124 (set_frame_menubar): First parse all submenus, then make
125 widget_value trees from them. Don't allocate any widget_value
126 objects until we are done with the parsing.
127 (parse_single_submenu, digest_single_submenu): New functions.
128 (single_submenu): Function deleted, replaced by those two.
129 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
130 create or dispose of EventHandlerUPP. Install hander to all submenus.
131 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
132 instead of ENCODE_SYSTEM.
133 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
134 integer values.
135 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
136 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
137 format menu item string. Don't use NULL for integer value.
138
139 * macterm.h (struct mac_output): Remove unused member
140 menu_command_in_progress.
141
3bdba51d
JL
1422005-12-20 Juri Linkov <juri@jurta.org>
143
144 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
145 position is non-nil, else set it to nil.
146
147 * macmenu.c (Fx_popup_menu): Add `else' to set
148 Vmenu_updating_frame to nil only if position is nil.
149
150 * w32menu.c (Fx_popup_menu): Add `else' to set
151 Vmenu_updating_frame to nil only if position is nil.
152
d6a90a49
YM
1532005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
154
155 * keyboard.c (make_lispy_event): Drag-and-drop items are now
156 stored in member `args' of struct input_event.
157
158 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
159
160 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
161 stored in member `args' of struct input_event.
162
163 * w32term.c (construct_drag_n_drop): Likewise.
164
165 * macterm.c (mac_do_receive_drag): Likewise.
166 (x_use_underline_position_properties): Undo 2005-07-13 change.
167 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
168 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
a425bd03
SM
169 (mac_pass_command_to_system, mac_pass_control_to_system):
170 New boolean variables renamed from Lisp_Object ones
d6a90a49 171 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
a425bd03
SM
172 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
173 All uses changed.
d6a90a49
YM
174 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
175 Make them user options.
a425bd03
SM
176 (mac_handle_command_event, mac_store_services_event):
177 Call create_apple_event_from_event_ref without 5th argument.
d6a90a49
YM
178 (backtranslate_modified_keycode): Mask off modifier keys that are
179 mapped to some Emacs modifiers before passing it to KeyTranslate.
180 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
181 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
182 Fix docstrings of `mac-*-modifier'.
183
184 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
a425bd03
SM
185 (do_applescript): Change argument types to Lisp_Object.
186 All uses changed.
d6a90a49
YM
187
188 * macterm.h (create_apple_event_from_event_ref): Remove 5th
189 argument from extern.
190
20d1c5c5
DN
1912005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
192
193 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
194 the answer, return `lambda', not nil.
195
abeb5855
EZ
1962005-12-17 Eli Zaretskii <eliz@gnu.org>
197
198 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
199 enclosed in $(ARGQUOTE)s should not be split between two lines, as
200 that will break with GNU Make >3.80, when sh.exe is used and
201 arg quoting is with '..'.
202
6b8dfbf7
CY
2032005-12-17 Chong Yidong <cyd@stupidchicken.com>
204
205 * print.c (print_preprocess): Just signal an error if print_depth
206 is exceeded.
207
d912b87a
EZ
2082005-12-17 Eli Zaretskii <eliz@gnu.org>
209
210 * .gdbinit: Set a breakpoint on w32_abort.
211
2a502a32
JL
2122005-12-16 Juri Linkov <juri@jurta.org>
213
214 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
215 created from minibuffer_completion_contents.
216 (minibuffer_completion_contents): Remove.
217 (do_completion, Fminibuffer_complete_word)
218 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
219 with Fminibuffer_completion_contents.
220 (syms_of_minibuf): Add Sminibuffer_completion_contents.
221 (Fdisplay_completion_list): Doc fix.
222 (display_completion_list_1): Use `nil' for second arg of
223 `Fdisplay_completion_list'.
224
bf63eb69
JD
2252005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
226
227 * xfns.c (compute_tip_xy): Handle negative dx and dy.
228
a425bd03 229 * w32fns.c (compute_tip_xy): Ditto.
bf63eb69 230
a425bd03 231 * macfns.c (compute_tip_xy): Ditto.
bf63eb69 232
9b98e161
CY
2332005-12-14 Chong Yidong <cyd@stupidchicken.com>
234
235 * print.c (print_preprocess): Go to a deeper print_depth to avoid
236 print_object loop.
237
89aa725a
KH
2382005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
239
240 * coding.c (code_convert_region_unwind): GCPRO arg.
241
3b006f5b
JD
2422005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
243
57134802
JD
244 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
245 i.e. dy is offset from top of frame instead of bottom.
246
247 * macfns.c (compute_tip_xy): Ditto.
248
249 * w32fns.c (compute_tip_xy): Ditto.
250
3b006f5b
JD
251 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
252 (xg_get_image_for_pixmap, xg_create_frame_widgets)
253 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
254
255 * xmenu.c (menubar_selection_callback): Do nothing if the callback
256 is for an unselected radio menu item.
257
2cb33a98
RS
2582005-12-11 Richard M. Stallman <rms@gnu.org>
259
260 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
261
262 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
263
264 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
265 (Flookup_key): Doc fix.
266 (syms_of_keymap) <function-key-map>: Doc fix.
267
268 * fns.c (Frequire): Treat evaluating from a source file
269 like loading the file.
270
271 * floatfns.c (Flog): Doc fix.
272
273 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
274 when we change the buffer.
275
d7d1f75e
JL
2762005-12-11 Juri Linkov <juri@jurta.org>
277
278 * minibuf.c (display_completion_list_1):
279 Call `minibuffer_completion_contents' instead of using `nil' as
280 second arg of `Fdisplay_completion_list'.
281 (keys_of_minibuf): Unbind SPC in
282 Vminibuffer_local_filename_completion_map (see also related
283 change on 2005-12-06).
284
ac8fcf0f
YM
2852005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
286
287 * emacs.c (main) [MAC_OS8]: Undo previous change.
288
289 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
290 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
291
4b3eb407
YM
2922005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
293
294 * Makefile.in (macselect.o): Depend on keymap.h.
295
296 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
297 syms_of_macselect.
298
299 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
300 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
301
302 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
303 (syms_of_keyboard) [MAC_OS]: Initialize it.
304 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
305
306 * mac.c (Qundecoded_file_name): New variable.
307 (syms_of_mac): Initialize it.
308 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
a425bd03 309 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4b3eb407
YM
310 (Fmac_coerce_ae_data): New defun.
311 (syms_of_mac): Defsubr it.
312
313 * macselect.c: Include keymap.h.
314 (mac_ready_for_apple_events): New variable.
315 (Vmac_apple_event_map, Qmac_apple_event_class)
316 (Qmac_apple_event_id): New variables.
317 (syms_of_macselect): Initialize them.
318 (Qundefined, mac_store_apple_event): Add externs.
319 (struct apple_event_binding): New struct.
320 (find_event_binding_fun, find_event_binding)
321 (mac_find_apple_event_spec, defer_apple_events)
322 (mac_handle_apple_event, init_apple_event_handler)
323 (copy_scrap_flavor_data): New functions.
324 (Fmac_process_deferred_apple_events): New defun.
325 (syms_of_macselect): Defsubr it.
326 (mac_store_services_event): Fix extern.
327 (mac_handle_service_event): Don't allocate Lisp objects during
328 asynchronous input processing. Use mac_store_services_event
329 instead of mac_store_application_menu_event.
330
331 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
332 (Qpreferences): Remove variables.
333 (syms_of_macterm) : Don't initialize them.
334 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
335 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
336 (init_required_apple_events, do_ae_open_application)
337 (do_ae_print_documents, do_ae_open_documents)
338 (do_ae_quit_application): Remove functions and prototypes.
339 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
340 (mac_find_apple_event_spec): Add externs.
341 (mac_store_application_menu_event): Remove function.
342 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
343 (mac_handle_command_event): Create Apple event from Carbon event.
344 Use mac_store_apple_event instead of mac_store_application_menu_event.
345 [MAC_OSX] (mac_store_services_event): Likewise.
346 (struct SelectionRange, SelectionRange): Remove struct and typedef.
347 [MAC_OS8] (main): Call init_apple_event_handler instead of
348 init_required_apple_events.
349 (mac_initialize) [MAC_OSX]: Likewise.
350 [!USE_CARBON_EVENTS] (mac_wait_next_event): Use
351 mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
352
353 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp): Add
354 externs.
355 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
356 (Fmac_get_preference): Add EXFUN.
357
358 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
359 event.
360
e358e052
RS
3612005-12-09 Richard M. Stallman <rms@gnu.org>
362
363 * xfns.c (Fx_create_frame): Reinstate previous change.
364
9ea74bfb
EZ
3652005-12-09 Eli Zaretskii <eliz@gnu.org>
366
367 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
368 GDB to the abort dialog.
369
84fdb82c
KS
3702005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
371
372 * indent.c (Fvertical_motion): Force move if starting on
373 stretch glyph.
374
2fda6977
RS
3752005-12-08 Richard M. Stallman <rms@gnu.org>
376
2663a204
RS
377 * lread.c (read_escape) <\s>: Don't treat strings specially.
378
2fda6977
RS
379 * xfns.c (Fx_create_frame): Comment out previous change.
380
225c13a5
KL
3812005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
382
383 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
384 when needed.
385
da8ec671
SM
3862005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
387
388 * minibuf.c (keys_of_minibuf): Just unbind SPC in
389 Vminibuffer_local_filename_completion_map rather than forcing it
390 explicitly to the same binding as the global map.
391
88fde92a
KR
3922005-12-06 Ken Raeburn <raeburn@gnu.org>
393
394 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP
395 argument.
396 * bytecode.c (Fbyte_code): Likewise.
397 * fileio.c (internal_delete_file, Fread_file_name_internal):
398 Likewise.
399 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
400 * undo.c (truncate_undo_list): Likewise.
401
fa0d4d0c
RS
4022005-12-05 Richard M. Stallman <rms@gnu.org>
403
404 * window.c (enlarge_window): Eliminate arg preserve_before.
405 Assume it is 0. All callers changed.
406 (Fenlarge_window, Fshrink_window): Likewise.
407
5a98616e
EZ
4082005-12-02 Eli Zaretskii <eliz@gnu.org>
409
410 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
411 fit below.
412
1dbacb90
JD
4132005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
414
415 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
416
417 * xfns.c (x_real_positions): int ign => unsigned int.
418 (xg_set_icon_from_xpm_data): Remove unused variable err.
419 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
420 to remove compiler warning.
421 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
422
0a79da1b
EZ
4232005-12-02 David Reitter <david.reitter@gmail.com>
424
425 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
426 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
427 and Vminibuffer_local_must_match_filename_map keymaps.
428 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
429
430 * keymap.c (Vminibuffer_local_filename_completion_map)
431 (Vminibuffer_local_must_match_filename_map): New variables.
432 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
433 parent to be Vminibuffer_local_completion_map and
434 Vminibuffer_local_must_match_map, respectively.
435
436 * commands.h (Vminibuffer_local_filename_completion_map)
437 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
438
e67a1dea
SM
4392005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
440
441 * window.c (Fset_window_configuration): Don't accidentally copy the
442 window-point of one window to another.
443
6ad0f04d
KL
4442005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
445
7854b2a3 446 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6ad0f04d 447
4269a2fd
KS
4482005-11-30 Kim F. Storm <storm@cua.dk>
449
450 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
451 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
452 passing it to `emacs_write'.
453
96013ba9
SM
4542005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
455
456 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
457
161ef3be
RS
4582005-11-27 Richard M. Stallman <rms@gnu.org>
459
460 * window.c (adjust_window_trailing_edge): New function.
461 (Fadjust_window_trailing_edge): New function.
96013ba9 462 (syms_of_window): Defsubr it.
161ef3be
RS
463 (window_deletion_count): New variable.
464 (delete_window): Update window_deletion_count.
465
02b1a164
EZ
4662005-11-26 Eli Zaretskii <eliz@gnu.org>
467
468 * minibuf.c (syms_of_minibuf): Mention the extension of
469 `completion-auto-help's meaning by complete.el.
470
07908aec
EZ
4712005-11-26 Henrik Enberg <henrik.enberg@telia.com>
472
96013ba9 473 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
07908aec
EZ
474 Handle :inherit property as a lisp expression.
475
b9c7cbf9
YM
4762005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
477
478 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
479 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
480 Qsuper, and Qmodifier_value.
481 (Vmac_control_modifier, Vmac_option_modifier)
482 (Vmac_command_modifier, Vmac_function_modifier)
483 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
484 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
485 (Vmac_charset_info_alist): Doc fixes.
486
2c012c41
YM
4872005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
488
489 * emacs.c (main) [MAC_OSX]: Change working directory to home
490 directory if `-psn_*' option is specified.
491
492 * mac.c (DECODE_UTF_8): Remove macro.
493 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
494 created from cfstring_to_lisp.
495 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
496 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
497
498 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
499 Add prototype.
500
88fde92a 5012005-11-21 Ken Raeburn <raeburn@gnu.org>
d7c0be75
KR
502
503 * keymap.c (shadow_lookup): Use make_number to pass a number to
504 Fsubstring.
505
17c1971a
JL
5062005-11-21 Juri Linkov <juri@jurta.org>
507
508 * puresize.h (BASE_PURESIZE): Increment to 1180000.
509
0268cef3
CY
5102005-11-20 Chong Yidong <cyd@stupidchicken.com>
511
96013ba9
SM
512 * xfaces.c (Finternal_set_lisp_face_attribute):
513 Use :ignore-defface for new frame defaults when `unspecified' is
0268cef3
CY
514 supplied.
515 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
67d23e01
CY
516 (merge_face_vectors): Don't do :ignore-defface overwriting here.
517 (Finternal_merge_in_global_face): Do it here.
0268cef3 518
dd949173
JL
5192005-11-20 Juri Linkov <juri@jurta.org>
520
521 * charset.c (invalid_character): Use Lisp-readable syntax
522 for octal and hex. Reorder decimal, octal and hex values.
523
76986433
NR
5242005-11-20 Nick Roberts <nickrob@snap.net.nz>
525
526 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
527 this type is recognised when debugging.
528
603add2d
AS
5292005-11-19 Andreas Schwab <schwab@suse.de>
530
531 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
532 Lisp_Cons and Lisp_Float.
533
125ce9ec
YM
5342005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
535
536 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
537 New variable.
96013ba9 538 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
125ce9ec
YM
539 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
540 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
541 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
542
2ff10663
CY
5432005-11-17 Chong Yidong <cyd@stupidchicken.com>
544
96013ba9 545 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
fe45ad15 546
2ff10663
CY
547 * xfaces.c (Qignore_defface): New variable.
548 (syms_of_xfaces): Provide `:ignore-defface'.
549 (IGNORE_DEFFACE_P): New macro.
05338727
CY
550 (check_lface_attrs, lface_fully_specified_p)
551 (Finternal_set_lisp_face_attribute)
96013ba9
SM
552 (Fface_attribute_relative_p, Fmerge_face_attribute):
553 Handle Qignore_defface as a possible value.
2ff10663
CY
554 (merge_face_vectors): The merged face is `unspecified' if the
555 mergee specifies `:ignore-defface'.
556
c01f0ed3
SM
5572005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
558
559 * lread.c (readevalloop): Add missing GCPROs.
560
786a43d6
CY
5612005-11-16 Chong Yidong <cyd@stupidchicken.com>
562
9f7b984b
CY
563 * xfns.c (xg_set_icon_from_xpm_data): New function.
564
c01f0ed3
SM
565 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
566 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
786a43d6
CY
567
568 * xterm.c (x_bitmap_icon): Use the xpm if available.
569
570 * image.c (x_create_bitmap_from_xpm_data): New function.
54188d8f 571 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
786a43d6 572
8ab84823
LT
5732005-11-15 Luc Teirlinck <teirllm@auburn.edu>
574
575 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
576
3671718b
NR
5772005-11-16 Nick Roberts <nickrob@snap.net.nz>
578
579 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
580
28a099a4
AS
5812005-11-15 Andreas Schwab <schwab@suse.de>
582
583 * lisp.h (struct Lisp_Cons): Make cdr a union.
584 (XCDR_AS_LVALUE): Adjust.
585 (struct Lisp_Float): Make data a union.
586 (XFLOAT_DATA): Adjust.
587
588 * alloc.c (free_float): Make free list chaining aliasing-safe.
589 (make_float): Likewise.
590 (free_cons): Likewise.
591 (Fcons): Likewise.
592 (check_cons_list): Likewise.
593 (Fmake_symbol): Likewise.
594 (allocate_misc): Likewise.
595 (free_misc): Likewise.
596 (gc_sweep): Likewise.
597
308a6607
YM
5982005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
599
fc09d07f
YM
600 * mac.c (HASHKEY_QUERY_CACHE): New define.
601 (xrm_create_database, xrm_q_put_resource): Empty query cache.
602 (xrm_get_resource): Use query cache.
603
308a6607
YM
604 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
605 inhibit_window_system is set.
606
29b585db
YM
6072005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
608
609 * macgui.h (USE_CG_TEXT_DRAWING): New define.
610 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
611 and cg_glyphs.
612
613 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
614 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
615 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
616 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
617 not used and font substitution never occurs for ASCII and Latin-1
618 characters.
619 (XLoadQueryFont): Maximum and minimum metrics are now those among
620 ASCII characters.
621 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
622 height adjustments for Courier, Helvetica, and Times.
623
624 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
625
b02e3f7b
ST
6262005-11-11 David Reitter <david.reitter@gmail.com>
627
dff79d04
ST
628 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
629 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
630 Vmac_control_modifier / mac-control-modifier,
631 Vmac_option_modifier / mac-option-modifier,
632 Vmac_command_modifier / mac-command-modifier.
633 (mac_to_emacs_modifiers): Use the new style modifier
c01f0ed3
SM
634 variables. Return UInt32 (modifiers are longs now.)
635 (backtranslate_modified_keycode): New function (refactoring).
636 (XTread_socket): Use new modifier variables and refactored function.
637 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
638 no dedicated meta key. Not in use anyway.)
b02e3f7b
ST
639 (convert_fn_keycode): Map Fn-keys to their original keycode
640 using a table (english keyboard only).
b02e3f7b 641
6a77a9f5
KS
6422005-11-11 Kim F. Storm <storm@cua.dk>
643
ab4d879e
KS
644 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
645 Add post hook to "backtrace" to always dump lisp call stack to
646 increase chance of people sending it to us when reporting bugs.
647
8c41220c
KS
648 * doc.c (Fsubstitute_command_keys): Doc fix.
649
6a77a9f5
KS
650 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
651
652 * xdisp.c (handle_stop): Skip overlay string handling if
653 ignore_overlay_strings_at_pos_p is set.
654 (set_iterator_to_next): At end of display vector, set
655 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
656 string, so we skip those overlay strings at current pos.
657
19a9c3b7
LH
6582005-11-10 Lars Hansen <larsh@soem.dk>
659
660 * fileio.c (file-regular-p): Doc fix.
661
932954d1
KS
6622005-11-10 Kim F. Storm <storm@cua.dk>
663
664 * alloc.c (valid_lisp_object_p): New function to validate that
665 an object is really a valid Lisp_Object.
666
667 * lisp.h (valid_lisp_object_p): Add prototype.
668
669 * print.c (safe_debug_print): New function to be called from gdb
670 to print Lisp objects; use valid_lisp_object_p to avoid crashing
671 if user tries to print something which is not a Lisp object.
672
673 * .gdbinit (pp, pp1): Use safe_debug_print.
674 (pv, pv1): New commands to print value of a lisp variable.
675
78e5988d
NR
6762005-11-10 Nick Roberts <nickrob@snap.net.nz>
677
678 * .gdbinit (pp1): New user-defined function.
679
f56a5bd8
YM
6802005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
681
682 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
683
684 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
685 related variables for dumped executable.
686
687 * unexmacosx.c (unexec_write_zero): New function.
688 (copy_data_segment): Clear uninitialized local variables in
689 statically linked libraries.
690
691 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
692
58b6f884
JL
6932005-11-09 Juri Linkov <juri@jurta.org>
694
695 * keymap.c (shadow_lookup): If Flookup_key returns a number,
696 call it again with a sub-key-sequence, and if its return value
697 is non-nil (sub-key is bound), return nil.
698
1f5f957a
KS
6992005-11-08 Kim F. Storm <storm@cua.dk>
700
701 * process.c (Fsignal_process): Recognize signal names with and
702 without SIG prefix, e.g. SIGHUP and HUP.
703
704 * search.c (search_buffer): No need to initialize base_pat.
705
20b69789
SM
7062005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
707
708 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
709 Don't abuse the `mini' arg. Use the `obj' arg instead.
710
7353f169
KS
7112005-11-04 Kim F. Storm <storm@cua.dk>
712
713 * xdisp.c (show_mouse_face): Clear mouse face to eol.
714
1f7b1131
DN
7152005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
716
717 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
718 font-lock.elc and jit-lock.elc.
719
e082564e
RS
7202005-11-03 Richard M. Stallman <rms@gnu.org>
721
722 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
723 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
724 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
725
726 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
727
728 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
729
49e99345
SM
7302005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
731
732 * window.c (Fdisplay_buffer): Fix last change to not use
733 a dedicated window.
734
8f15921b
KS
7352005-11-01 Kim F. Storm <storm@cua.dk>
736
737 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
738 Instead, rotate the bottom angle bitmap 180 degrees to indicate
739 that the bottom row does not end in a newline.
740
b4235a80
AS
7412005-11-01 Andreas Schwab <schwab@suse.de>
742
743 * unexelf.c (unexec): Handle .plt section in BSS segment.
744
3cbb13c8
SM
7452005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
746
e5f64be2
SM
747 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
748
3cbb13c8
SM
749 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
750 determine whether to consider dedicated windows as well.
751 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
752 (Fdisplay_buffer): Do consider dedicated windows in those cases where
753 we will split the window rather than reuse it.
754 Don't try to use windows on other displays.
755
c94f08ff
DN
7562005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
757
758 * puresize.h (BASE_PURESIZE): Increment to 1170000.
759
edf84ae9
RF
7602005-10-31 Romain Francoise <romain@orebokech.com>
761
762 * macfns.c: Update copyright year.
763 * m/gould.h: Likewise.
764
6f07f649
KS
7652005-10-30 Kim F. Storm <storm@cua.dk>
766
767 * xdisp.c (display_line): Restore it->current_x and call
768 extend_face_to_end_of_line when last glyph doesn't fit on line.
769 (set_glyph_string_background_width): Remove specific tests here
770 to see if face background should extend to end of line. Simplify.
771
4d74a5fc
RS
7722005-10-30 Richard M. Stallman <rms@gnu.org>
773
774 * alloc.c (BYTES_USED): Use uordblks, not arena.
775 (bytes_used_when_reconsidered): New variable.
776 (emacs_blocked_free): Set that.
777
bccfb310
CY
7782005-10-29 Chong Yidong <cyd@stupidchicken.com>
779
780 * alloc.c (emacs_blocked_free): Fix typo.
781
f5b8d5f2
RS
7822005-10-29 Richard M. Stallman <rms@gnu.org>
783
4d74a5fc
RS
784 * data.c (Fmake_variable_frame_local): Doc fix.
785
f5b8d5f2
RS
786 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
787 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
788 controls whether to save and restore mode_line_proptrans_alist.
789 Callers changed.
790 (unwind_format_mode_line): Work with that feature.
791 (redisplay_internal): Don't call prepare_menu_bars if memory full.
792 (move_elt_to_front): New function.
793 (display_mode_element): Use move_elt_to_front.
794 Don't bother munging text props on a null string.
795 Delete obsolete elts from mode_line_proptrans_alist.
796 (decode_mode_spec): Test Vmemory_full, not spare_memory.
685abb98 797 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
f5b8d5f2 798
49e99345
SM
799 * lisp.h (memory_full_cons_threshold): Declare.
800 (internal_lisp_condition_case): Declare.
f5b8d5f2
RS
801
802 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
803 (Fmemory_full_p): Function deleted.
804 (syms_of_alloc): Don't defsubr it.
805 (memory_full_cons_threshold): New variable.
806 (spare_memory): Now a vector of 7 elts.
807 (buffer_memory_full): Don't set Vmemory_full here.
808 (xfree): Don't try to refill here.
809 (emacs_blocked_free): Record BYTES_USED in local var.
810 (memory_full): Now free all the slots in spare_memory.
811 (refill_memory_reserve): Allocate each slot in spare_memory.
812 (init_alloc_once): Call refill_memory_reserve.
813
814 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
815
816 * eval.c (internal_lisp_condition_case): New function.
817 (Fcondition_case): Use internal_lisp_condition_case.
818 (Feval): Test Vmemory_full and memory_full_cons_threshold.
819 (Ffuncall): Likewise.
820
821 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
822
c390e28c
SM
8232005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
824
825 * syntax.c (Fparse_partial_sexp): Fix docstring.
826
ab5d87b3
RF
8272005-10-28 Romain Francoise <romain@orebokech.com>
828
c390e28c 829 * puresize.h (BASE_PURESIZE): Increment to 1130000.
ab5d87b3 830
107fb6c9
RS
8312005-10-28 Richard M. Stallman <rms@gnu.org>
832
833 * xfns.c (syms_of_xfns): Provide `x' as feature.
834
835 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
836
837 * editfns.c (Fformat): Don't include string padding
838 between info[n].start and info[n].end.
839
840 * alloc.c (spare_memory): No longer static.
841 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
842
c390e28c 843 * puresize.h (BASE_PURESIZE): Increment to 1120000.
107fb6c9 844
f351b58b
CY
8452005-10-27 Chong Yidong <cyd@stupidchicken.com>
846
c390e28c 847 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
437610c5 848
f351b58b
CY
849 * fringe.c (update_window_fringes): Handle case where buffer ends
850 with a newline.
851
581e7427
KH
8522005-10-27 Kenichi Handa <handa@m17n.org>
853
854 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
855
8562005-10-24 Kenichi Handa <handa@m17n.org>
857
858 * charset.h (charset_mule_unicode_0100_24ff)
859 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
860 Extern them.
861
862 * charset.c (charset_mule_unicode_0100_24ff)
863 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
864 New variables.
865 (Fsetup_special_charsets): Initialize them.
866
867 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
868 supported Unicode characters.
869
813fa8a8
JR
8702005-10-25 Jason Rumney <jasonr@gnu.org>
871
872 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
873
05f7d868
YM
8742005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
875
876 * image.c [MAC_OS] (image_load_qt_1): Check image size.
877 Use GraphicsImportGetImageDescription instead of
878 GraphicsImportGetNaturalBounds.
879 [MAC_OSX] (image_load_quartz2d): Check image size.
880 [MAC_OS] (xpm_load_image): Likewise.
881
882 * macterm.c (last_mouse_glyph_frame): New var.
883 (note_mouse_movement): Say mouse moved if current frame differs
884 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
885 (XTmouse_position): Set last_mouse_glyph_frame.
886 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
29b585db 887 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
05f7d868
YM
888 Use EndianU16_BtoN.
889 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
890 (x_per_char_metric, XLoadQueryFont)
891 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
892 glyph bounds.
893 (mac_to_x_fontname, mac_do_list_fonts)
894 (mac_initialize_display_info): Change screen resolutions to 72dpi.
895
128e729d
MY
8962005-10-25 Masatake YAMATO <jet@gyve.org>
897
898 * minibuf.c (Fdisplay_completion_list): Small doc fix.
899
59017afb
KS
9002005-10-24 Kim F. Storm <storm@cua.dk>
901
94717db1
KS
902 * xterm.c: Undo 2005-10-23 change.
903 (last_mouse_glyph_frame): New var.
904 (note_mouse_movement): Say mouse moved if current frame differs
905 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
906 (XTmouse_position): Set last_mouse_glyph_frame.
907 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
908 last_mouse_glyph] on mouse up/down event.
909
59017afb
KS
910 * editfns.c (Fcompare_buffer_substrings): Fix last change.
911
7c5ba0d2
SM
9122005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
913
914 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
915
a4b0e228
JD
9162005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
917
918 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
919 so tool tips don't interfere with press on tool bar button.
920
f6a18aa2
RS
9212005-10-23 Richard M. Stallman <rms@gnu.org>
922
923 * casetab.c (Fset_case_table): Doc fix.
924
925 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
926 (readevalloop): Compute ENTIRE properly.
927 (syms_of_lread) <load-history>: Doc fix.
928
45158e77
RS
9292005-10-21 Richard M. Stallman <rms@gnu.org>
930
931 * lread.c (Fload): Simplify gcpro structure.
932 Gcpro FOUND as well as FILE, but not EFOUND.
933 Unless preloading, record FOUND instead of FILE in Vload_history.
934 Rename repeat local FILE to MSG_FILE.
935 (syms_of_lread) <load-history>: Doc fix.
936
dfa1cd4d
KH
9372005-10-21 Kenichi Handa <handa@m17n.org>
938
96664fc0 939 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 940
1064a9ea
KS
9412005-10-20 Kim F. Storm <storm@cua.dk>
942
943 * buffer.c (clone_per_buffer_values): Remove unused var tem.
944 (init_buffer): Remove unused vars dotstat, pwdstat.
945
946 * ccl.c (check_ccl_update): Remove unused var vp.
947
948 * fileio.c (auto_save_error): Call SAFE_FREE.
949
950 * fns.c (Fchar_table_range): Remove unused var i.
951
952 * minibuf.c (display_completion_list_1): New wrapper function
953 for Fdisplay_completion_list.
954 (Fminibuffer_completion_help): Use it.
955
956 * term.c (encode_terminal_code): Remove unused var src_start.
957
958 * window.c (Fwindow_tree): Remove unused var alist.
959
960 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
961
ce13796f
EZ
9622005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
963
20b69789 964 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
ce13796f 965
ad9c16d3
EZ
9662005-10-20 Olli Savia <ops@iki.fi> (tiny change)
967
968 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
969
26e9d2cf
AS
9702005-10-20 Andreas Schwab <schwab@suse.de>
971
972 * minibuf.c (Fdisplay_completion_list): Doc fix.
973
e50165ec
KS
9742005-10-19 Kim F. Storm <storm@cua.dk>
975
976 * image.c (check_image_size): Handle integer Vmax_image_size value
977 directly as max pixel value. Use default frame size for null frame.
978 (syms_of_image) <max-image-size>: Describe integer value.
979
d7b94c98
RF
9802005-10-19 Romain Francoise <romain@orebokech.com>
981
982 * emacs.c (main): Update copyright year.
983
f1f25b99
CY
9842005-10-18 Chong Yidong <cyd@stupidchicken.com>
985
986 * image.c (Vmax_image_size): New variable.
987 (check_image_size): New function.
988 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
989 (gif_load, gs_load): Use it.
990 (lookup_image): Try loading again if previous load failed.
991 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
992 to display in, NULL if none.
993 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
994 argument.
995
f42d19a2
RS
9962005-10-18 Richard M. Stallman <rms@gnu.org>
997
998 * search.c (Fstring_match): Doc fix.
999
bcbdafce
YM
10002005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1001
1002 * macterm.c (note_mouse_movement): Use PtInRect.
1003 (XTread_socket): Also ignore mouse motion just before a button
1004 release event. Don't process button release event when mouse is
1005 not grabbed.
1006
f5fab556
MY
10072005-10-16 Masatake YAMATO <jet@gyve.org>
1008
1009 * minibuf.c (Fdisplay_completion_list): Add new optional
e5f64be2 1010 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
1011 to the optional argument during running `completion-setup-hook'.
1012
2ef1363e
YM
10132005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1014
1015 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
1016 Allow nil as argument.
1017 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
1018 for encoding arguments as UTF-16 in native byte order, no BOM.
1019
1020 * macfns.c (Fx_create_frame): Add debugging code.
1021 (Fx_show_tip): Set frame pixel width and height.
1022
1023 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
1024 (FRAME_NORMAL_GC): New macro.
1025 (mac_draw_line, mac_clear_area, mac_clear_window)
1026 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
1027 (mac_draw_image_string, mac_draw_image_string_16): Rename from
1028 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
1029 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
1030 All uses changed.
1031 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
1032 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
1033 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
1034 (mac_draw_string_16, mac_draw_image_string)
1035 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
1036 (mac_scroll_area): Drawing functions now take frame as destination.
1037 All uses changed.
1038 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
1039 (x_draw_fringe_bitmap): Set clipping area in face->gc.
1040
1041 * macterm.h (mac_clear_area): Add extern.
1042
fc5c7550
YM
10432005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1044
1045 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
1046 changes for xterm.c.
1047
1048 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
1049
fed91c38
KH
10502005-10-14 Kenichi Handa <handa@m17n.org>
1051
1052 * search.c (search_buffer): Give up BM search on case-fold-search
1053 if one of a target character has a case-equivalence of different
1054 charset even if that target charcter is an ASCII.
1055
1056 * casefiddle.c (casify_object): Fix for the case that case
1057 conversion change the byte length.
1058
0ea1a8af
KS
10592005-10-14 Kim F. Storm <storm@cua.dk>
1060
1061 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
1062 (handle_one_xevent): Only clear help_echo_string; restore it if
1063 note_mouse_movement didn't record any mouse movement.
1064
1065 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
1066 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
1067
1068 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
1069 (Fposn_at_x_y): Fix calculation of x coordinate.
1070 (Fposn_at_point): Return nil if point is hscrolled out of view.
1071
6e5b2385
AS
10722005-10-13 Andreas Schwab <schwab@suse.de>
1073
1074 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
1075 non-interactive mode.
1076
6de0e1a2
YM
10772005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1078
1079 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
1080
78f3b91f
KS
10812005-10-12 Kim F. Storm <storm@cua.dk>
1082
1083 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
1084
b639c9be
RF
10852005-10-12 Romain Francoise <romain@orebokech.com>
1086
1087 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
1088
76d8f04c
YM
10892005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1090
1091 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
1092 get end of text rows. Obtain header-line/mode-line rows directly.
1093
96013ba9
SM
1094 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
1095 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
621036f9 1096
d76432f5
KS
10972005-10-12 Kim F. Storm <storm@cua.dk>
1098
7a127784
KS
1099 * xdisp.c (remember_mouse_glyph): New generic version based on
1100 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
1101 properly handle all different window areas.
1102
1103 * dispextern.h (remember_mouse_glyph): Add prototype.
1104
1105 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
1106 (note_mouse_movement, XTmouse_position): Use generic
1107 remember_mouse_glyph, add last_mouse_glyph arg.
1108
1109 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
1110 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
1111 (note_mouse_movement, w32_mouse_position): Use generic
1112 remember_mouse_glyph, add last_mouse_glyph arg.
1113
1114 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
1115 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
1116 (XTmouse_position): Adapt to use generic remember_mouse_glyph
1117 instead of pixel_to_glyph_coords.
1118
d76432f5
KS
1119 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
1120 Fix x position for ON_TEXT when left margin width > 0.
1121
55a4ac3e
KS
11222005-10-11 Kim F. Storm <storm@cua.dk>
1123
d76432f5 1124 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
1125
1126 * keyboard.c (make_lispy_position): Fix buffer calculations for
1127 mouse click or movement in right fringe and the margins.
1128
2d4713aa
JB
11292005-10-11 Juanma Barranquero <lekktu@gmail.com>
1130
1131 * image.c (fn_jpeg_stdio_src): Don't define it.
1132 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
1133 (our_common_init_source): Rename from `our_init_source'.
1134 (our_common_term_source): Rename from `our_term_source'.
1135 (our_memory_fill_input_buffer): Rename from
1136 `our_fill_input_buffer'.
1137 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
1138 (jpeg_memory_src): Use the new names.
1139 (struct jpeg_stdio_mgr): New struct.
1140 (JPEG_STDIO_BUFFER_SIZE): New constant.
1141 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
1142 (jpeg_file_src): New functions.
1143 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
1144
71b7a47f
YM
11452005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1146
1147 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
1148 (fm_font_family_alist): New variable.
1149 (syms_of_macterm): Initialize and staticpro it.
1150 (decode_mac_font_name): Replace '-' in family name with '_' if it
1151 occurs just once. Lower family name.
1152 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
1153 All uses changed. Remove argument MF and code conversion for it.
1154 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
1155 to CHARSET. Parse font size. Lower family name. Return integer
1156 value for status of parsing.
1157 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
1158 Don't use Fdowncase because family name is already lowered by
1159 decode_mac_font_name.
96013ba9
SM
1160 (init_font_name_table): Always call decode_mac_font_name.
1161 Add pair of family name and its reference to fm_font_family_alist.
71b7a47f
YM
1162 (mac_clear_font_name_table): Clear fm_font_family_alist.
1163 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
1164 Lookup fm_font_family_alist to get font family reference.
1165 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
1166 name is already lowered by parse_x_font_name.
1167
74051a92
KS
11682005-10-11 Kim F. Storm <storm@cua.dk>
1169
31ab1f05
KS
1170 * xterm.c (glyph_rect): Return 0 if position is outside text area.
1171
74051a92
KS
1172 * keyboard.c (make_lispy_position): Fix buffer position calculation for
1173 mouse click or movement in fringe.
1174
9b909870
JR
11752005-10-10 Jason Rumney <jasonr@gnu.org>
1176
1177 * xterm.c (remember_mouse_glyph): New function.
58af5591 1178 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 1179 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 1180 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 1181
f9e36a6d
JD
11822005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1183
58af5591 1184 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 1185
04bc7945
JB
11862005-10-10 Juanma Barranquero <lekktu@gmail.com>
1187
1188 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
1189 (next_frame, prev_frame, set_term_frame_name): Make static.
1190
1191 * window.c (Fwindow_tree): Fix spelling.
1192
41791a20
RF
11932005-10-09 Romain Francoise <romain@orebokech.com>
1194
1195 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
1196
e313fc07
JD
11972005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1198
58af5591
KS
1199 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
1200 Add options -nb, --no-bitmap-icon.
e313fc07
JD
1201
1202 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
1203
61e62f5f
YM
12042005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1205
1206 * macgui.h (MAX_CLIP_RECTS): New define.
1207 (struct _XGC): New member clip_region.
1208 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
1209 clip_rects.
1210
1211 * macterm.c (GC_CLIP_REGION): New macro.
1212 (saved_port_clip_region): New variable.
1213 (mac_begin_clip, mac_end_clip): New functions.
1214 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
1215 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
1216 (mac_copy_area_with_mask, mac_scroll_area): Use them.
1217 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
1218 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
1219 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
1220 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
1221 rectangles stored in gc.
71b7a47f 1222 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
1223 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
1224 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
1225 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
1226 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
1227 (x_draw_bar_cursor): Use them.
1228 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
1229 get multiple clipping rectangles.
1230
1231 * macterm.h (mac_term_init): Add types to extern.
1232 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 1233 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
1234 scroll_bar_background_pixel in #if 0.
1235 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
1236
1237 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 1238 Add debugging code.
61e62f5f 1239
ef1b4c9e
KS
12402005-10-08 Kim F. Storm <storm@cua.dk>
1241
1242 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
1243
f1010549
KS
12442005-10-07 Kim F. Storm <storm@cua.dk>
1245
1246 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
1247 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
1248 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
1249
c2ded1b7
YM
12502005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1251
1252 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
1253 to for_overlaps. Now occupy 3 bits.
1254 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
1255 (OVERLAPS_ERASED_CURSOR): New defines.
1256 (struct redisplay_interface): Add new OVERLAPS arg to member
1257 fix_overlapping_area.
1258 (x_fix_overlapping_area): Add new OVERLAPS arg.
1259 (get_glyph_string_clip_rects): Add extern.
1260
96013ba9
SM
1261 * dispnew.c (redraw_overlapping_rows):
1262 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
c2ded1b7
YM
1263
1264 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
1265 for_overlaps.
1266 (get_glyph_string_clip_rects): New function created from
f1010549
KS
1267 get_glyph_string_clip_rect. Set clipping rectangles according to the
1268 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
1269 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
1270 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
1271 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 1272 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 1273 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
1274 calculating clipping rectangles later. Call x_fix_overlapping_area
1275 with new OVERLAPS arg to draw only erased cursor area.
f7270128 1276 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 1277 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
1278
1279 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
1280 struct glyph_string to for_overlaps.
1281
a19a0003
RS
12822005-10-04 Richard M. Stallman <rms@gnu.org>
1283
1284 * alloc.c (refill_memory_reserve): Conditionalize the body,
1285 not the function's existence.
1286
abc8ce50
KS
12872005-10-04 Kim F. Storm <storm@cua.dk>
1288
1289 * window.c (window_split_tree): New function.
1290 (Fwindow_split_tree): New defun.
1291 (syms_of_window): Defsubr it.
1292
66533b25
YM
12932005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1294
1295 * macterm.c (mac_invert_rectangle): New function.
1296 (XTflash): Use it.
1297
4156359e
SM
12982005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
1299
4e2f601f
SM
1300 * regex.h (re_char): Don't expose it in the interface.
1301 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
1302
1303 * regex.c (re_char): Move it back here.
1304 (re_set_whitespace_regexp): Change the arg's type to not use it.
1305
4156359e
SM
1306 * keyboard.c (make_lispy_event): If point has moved between down and up
1307 event, make it a drag, not a click, to mirror what
1308 mouse-drag-region expects.
1309
eb27c2ca
DN
13102005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
1311
1312 * lisp.h (fatal): Undo previous change.
1313 * term.c (fatal): Undo previous change.
1314
b059f7d0
RS
13152005-10-01 Richard M. Stallman <rms@gnu.org>
1316
1317 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
1318
21a9a7be
KS
13192005-10-01 Kim F. Storm <storm@cua.dk>
1320
1321 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
1322
ddcb7665
YM
13232005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1324
1325 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
1326
1327 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 1328 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
1329 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
1330 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
1331
1332 * macgui.h (struct _XCharStruct): New member valid_p.
1333 (STORE_XCHARSTRUCT): Set valid_p.
1334 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
1335
1336 * macterm.c (mac_draw_string_common, x_per_char_metric)
1337 (mac_compute_glyph_string_overhangs, init_font_name_table)
1338 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
1339 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
1340 (x_draw_glyph_string_background)
1341 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
1342 XDrawImageString. Always draw background and foreground separately.
1343 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
1344 functions for one-byte chars when using ATSUI-compatible fonts.
1345 (atsu_font_id_hash) [USE_ATSUI]: New variable.
1346 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
1347 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
1348 max_char_or_byte2 more in detail.
1349 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
1350
fa8459a3
DN
13512005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
1352
4156359e 1353 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
1354 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
1355
1356 * unexelf.c (fatal): Fix prototype.
1357
1358 * term.c (fatal): Implement using varargs.
1359
21a9a7be 1360 * regex.c (re_char): Move typedef ...
fa8459a3 1361 * regex.h (re_char): ... here.
4156359e 1362 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
1363
1364 * emacs.c (malloc_set_state): Fix return type.
1365 (endif): Fix type.
1366
1367 * lisp.h (fatal): Add argument types.
1368
1369 * dispextern.h (fatal): Delete prototype.
1370
1371 * systime.h: (make_time): Prototype moved from ...
1372 * editfns.c (make_time): ... here.
1373
1374 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
1375 * dired.c:
1376 * xsmfns.c:
fa8459a3 1377 * process.c: Likewise.
21a9a7be 1378
fa8459a3
DN
1379 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
1380 Add parameter types.
1381 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
1382 (emacs_blocked_free): Change definition to match __free_hook.
1383 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 1384 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 1385
97c3e4cc
RF
13862005-09-30 Romain Francoise <romain@orebokech.com>
1387
1388 * minibuf.c (Fread_buffer): Follow convention for reading from the
1389 minibuffer with a default value. Doc fix.
1390
8ad8c5ce
JL
13912005-09-29 Juri Linkov <juri@jurta.org>
1392
1393 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
1394 Rename argument name `string' to `format-string'.
1395 (Fformat): Doc fix.
1396
64da5759
KS
13972005-09-28 Kim F. Storm <storm@cua.dk>
1398
1399 * image.c (gif_load): Fix size of allocated image buffer
1400 for images where a sub-image may be larger than the image's
1401 total height/width specifications.
1402
eaf92438
YM
14032005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1404
1405 * macgui.h (struct _XCharStruct): Each member now takes short value.
1406
43f15d4a
DN
14072005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
1408
1409 * xfaces.c (lookup_derived_face): Add parameter type.
1410
1411 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
1412
1413 * marker.c (verify_bytepos): Add parameter type.
1414
1415 * process.c (get_operating_system_release): Move prototype ...
1416
1417 * systime.h (get_operating_system_release): ... here.
1418
04bc7945
JB
1419 * xterm.c (handle_one_xevent): Refer to union field to match the
1420 type required by the function definition.
1421 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
1422
1423 * xterm.h: ... here.
1424
1425 * fns.c (internal_equal, seed_random): Fix prototypes.
1426 (internal_equal): Add missing parameter.
1427
c769dcac
RS
14282005-09-25 Richard M. Stallman <rms@gnu.org>
1429
1430 * keyboard.c (update_menu_bindings): Variable deleted.
1431 (syms_of_keyboard): Don't defvar it.
1432 (parse_menu_item): Don't test it.
1433
8dbf19c7
RS
14342005-09-23 Richard M. Stallman <rms@gnu.org>
1435
1436 * editfns.c (Fformat): Explicitly test for end of format string
1437 and don't use `index'.
1438
3480d92b
DN
14392005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
1440
4156359e
SM
1441 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
1442 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
1443
1444 * sysdep.c (get_current_dir_name): Also define if
64da5759 1445 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
1446
1447 * m/ibmrs6000.h: Test for USG5, not USG5_4.
1448
5db60f31
KS
14492005-09-22 Kim F. Storm <storm@cua.dk>
1450
1451 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
1452 (message2): Fix commentary. Ok to use alloca'ed memory.
1453 Still not ok to use Lisp string data (because of GC).
1454 (set_message): Add comment why GC cannot happen.
1455
7c3d233d
YM
14562005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1457
1458 * macterm.c (xlfdpat_block_match_1): Fix assertion.
1459 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
1460 variants for a scalable font multiple times.
1461
acde1152
YM
14622005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1463
1464 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
1465 Setup slave tty options before forking.
1466
52d166e0
JD
14672005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1468
1469 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
1470 positions have been set for the frame (as is done for frames in
1471 special-display-buffer-names).
1472
12d10bc7
KS
14732005-09-19 Kim F. Storm <storm@cua.dk>
1474
1475 * editfns.c (Fformat): Don't scan past end of format string that
1476 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
1477
9f1cf0e3
AS
14782005-09-18 Andreas Schwab <schwab@suse.de>
1479
1480 * window.h (struct window): Remove height_fixed_p, no longer set.
1481
1482 * window.c (make_window): Don't initialize height_fixed_p.
1483 (window_fixed_size_p): Don't use it.
1484
8a658a52
JPW
14852005-09-18 John Paul Wallington <jpw@pobox.com>
1486
1487 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
1488
be9bb408
YM
14892005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1490
1491 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
1492
1493 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
1494 New variables.
1495 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
1496 file selection.
1497
1498 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
1499
cbf223e1
EZ
15002005-09-17 Eli Zaretskii <eliz@gnu.org>
1501
1502 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
1503 (obj): Use XMENU_OBJ, not a literal xmenu.o.
1504
e3f509dd
RF
15052005-09-16 Romain Francoise <romain@orebokech.com>
1506
8ccd3630 1507 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 1508
5c4757d3
RS
15092005-09-15 Richard M. Stallman <rms@gnu.org>
1510
1511 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
1512 (display_mode_element): Instead of `lisp_string' and `this',
1513 record `offset' and increment that.
1514 `last_offset' replaces `last'.
1515
1516 * Makefile.in (XMENU_OBJ): Variable deleted.
1517 (obj): Use xmenu.o unconditionally.
1518 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
1519
1520 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
1521
01978521
KS
15222005-09-15 Kim F. Storm <storm@cua.dk>
1523
1524 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
1525 (reseat_at_next_visible_line_start): Likewise (in xassert).
1526
ccf61795
RF
15272005-09-14 Romain Francoise <romain@orebokech.com>
1528
1529 * fileio.c (write_region_inhibit_fsync): New variable.
1530 (Fwrite_region): Use it to skip call to fsync.
1531 (syms_of_fileio): Initialize it.
1532
2b046a72
KH
15332005-09-14 Kenichi Handa <handa@m17n.org>
1534
24a2b282
KH
1535 * coding.c (code_convert_region_unwind): Argument format changed.
1536 (run_pre_post_conversion_on_str): If pre-write-conversion function
1537 changed the current buffer, delete the new buffer.
1538 (run_pre_write_conversin_on_c_str): Likewise.
1539
2b046a72
KH
1540 * fileio.c (Fexpand_file_name): Check multibyteness of
1541 default_directory.
1542
d008f7b7
KH
15432005-09-13 Kenichi Handa <handa@m17n.org>
1544
1545 * composite.c (compose_chars_in_text): Delete it.
1546
1547 * composite.h (compose_chars_in_text): Delete extern.
1548
2ada8ac5
KS
15492005-09-13 Kim F. Storm <storm@cua.dk>
1550
1551 * print.c (print_error_message): Fix last change.
1552
48c60938
KS
15532005-09-12 Kim F. Storm <storm@cua.dk>
1554
0fdbe302
KS
1555 * composite.c (compose_chars_in_text): Fix setup of `pend'.
1556 Unconditionally reload `ptr' and `pend' after eval.
1557
48c60938
KS
1558 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
1559
1560 * print.c (print_error_message): Pass copy of caller name to
1561 message_dolog.
1562
1563 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
1564
5add1986
KH
15652005-09-12 Kenichi Handa <handa@m17n.org>
1566
1567 * xdisp.c (display_mode_element): Be sure to make variables THIS
1568 and LISP_STRING point into a string data of ELT.
1569
18bb66c7
KS
15702005-09-12 Kim F. Storm <storm@cua.dk>
1571
1572 * editfns.c (Ftranslate_region_internal): Reload `tt' after
1573 signal_after_change that may have GC'ed.
1574 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
1575
1576 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
1577 after insert while runs signal_after_change.
1578
1579 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
1580 declaration to where it is used.
1581
1582 * w32.c (check_windows_init_file): Fix allocation of error buffer.
1583
1584 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
1585 (x_set_name_internal): Call x_encode_text with new FREEP arg to
1586 know if xfree is needed instead of guessing.
1587
1588 * xterm.h (x_encode_text): Remove prototype.
1589
945a75f8
JR
15902005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
1591
1592 * w32term.c (x_bitmap_icon): Load small icons too.
1593
156bdb41
RF
15942005-09-10 Romain Francoise <romain@orebokech.com>
1595
1596 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 1597 and terminal zero. Fix typos.
156bdb41 1598
67b8391b
EZ
15992005-09-10 Eli Zaretskii <eliz@gnu.org>
1600
a17b5ed1
EZ
1601 * buffer.c (init_buffer): Fix error message for failed call to
1602 get_current_dir_name.
1603 (get_current_dir_name): Remove prototype.
1604
1605 * xsmfns.c: (get_current_dir_name): Remove prototype.
1606
96013ba9
SM
1607 * lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
1608 Add prototype.
a17b5ed1 1609
ed326e35 1610 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 1611 Don't #undef NULL after including blockinput.h.
ed326e35 1612
67b8391b
EZ
1613 * config.in: Regenerated.
1614
c187839d
EZ
16152005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
1616
1617 Remove the MAXPATHLEN limitations:
1618
1486d036
EZ
1619 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
1620 New function.
c187839d
EZ
1621
1622 * buffer.c (init_buffer): Use it.
1623
1624 * xsmfns.c (smc_save_yourself_CB): Ditto.
1625
ae8a5689
KS
16262005-09-09 Kim F. Storm <storm@cua.dk>
1627
39cac6b3
KS
1628 * doc.c (Fsubstitute_command_keys): Lookup key binding for
1629 commands that are remapped from some other command.
1630
aeb55c44
KS
1631 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
1632 flag in disabled rows below the window.
1633
ae8a5689
KS
1634 * frame.h (struct frame): New member updated_p.
1635
1636 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
1637 member. Remove local `updated' array and associated variables.
1638
821f6dae
KS
16392005-09-07 Kim F. Storm <storm@cua.dk>
1640
6e5395f2
KS
1641 * xdisp.c (handle_display_prop): Respect overlay window property.
1642
821f6dae
KS
1643 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
1644 Fixes crash reported by YAMAMOTO Mitsuharu.
1645
9655b404
YM
16462005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1647
1648 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
1649 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
1650 (xlfdpat_block_match_1, xlfdpat_match): New functions.
1651 (xlfdpat_block_match): New macro.
1652 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
1653 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
1654 (add_font_name_table_entry): Increase font_name_table_size more
1655 rapidly.
1656 (mac_c_string_match): Remove function.
1657 (mac_do_list_fonts): Use XLFD pattern match instead of regular
1658 expression match.
1659
1660 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
1661
d7ea8b71
RS
16622005-09-03 Richard M. Stallman <rms@gnu.org>
1663
1664 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
1665 (move_it_in_display_line_to): Stop after last char on line even
1666 on a windowing terminal, if that's the specified stop position.
1667
1668 * fns.c (Fsort): Doc fix.
1669
1670 * editfns.c (Fpropertize): Don't insist that properties be symbols.
1671
1550ae60
SM
16722005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
1673
1674 * dired.c (directory_files_internal_unwind, directory_files_internal)
1675 (file_name_completion): Use a Save_Value object rather than a cons of
1676 two 16bit ints to store the DIR*.
1677 (directory_files_internal, file_name_completion): Handle both EINTR and
1678 EAGAIN consistently after `readdir'.
1679
bdb4d6d8
SM
16802005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1681
1550ae60
SM
1682 * intervals.c (update_interval): Add position info in error.
1683
bdb4d6d8
SM
1684 * dispnew.c (window_to_frame_hpos, update_window):
1685 Avoid gcc warning about unused variable `f'.
1686
6bcc3ca4
JR
16872005-08-31 Jason Rumney <jasonr@gnu.org>
1688
1689 * w32menu.c (add_menu_item): If unicode_append_menu returns an
1690 error, revert to using AppendMenu.
1691
07c5948c
YM
16922005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1693
bdb4d6d8
SM
1694 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
1695 All uses changed.
07c5948c
YM
1696 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
1697 cases.
1698 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
1699 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
1700 Use posix_pathname_to_fsspec.
07c5948c
YM
1701 [MAC_OS] (xpm_load_image): Fill in background_transparent field
1702 while we have mask.
1703
1704 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
1705
1706 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
1707
5a774522
SM
17082005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1709
1710 * syntax.c (update_syntax_table): Properly reproduce the special +1
1711 setting of e_property at the end of the buffer when bumping into the
1712 INTERVALS_AT_ONCE limit.
1713
0fb57cc0
EZ
17142005-08-27 Eli Zaretskii <eliz@gnu.org>
1715
1716 * emacs.c (USAGE1): Fix the description of the -Q option.
1717
5a774522
SM
17182005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
1719
1720 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
1721
4e6b8c5a
KS
17222005-08-26 Kim F. Storm <storm@cua.dk>
1723
1724 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
1725 Don't move PT to new window start.
1726
1f98fbb4
YM
17272005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1728
1729 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
1730 ICONIFY/DEICONIFY_EVENT.
1731
5a774522
SM
1732 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
1733 Restore background color.
1f98fbb4
YM
1734 (mac_handle_visibility_change): New function.
1735 (x_make_frame_invisible, x_iconify_frame)
1736 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
1737 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 1738 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
1739 (x_make_frame_visible): Don't reposition window if it is iconified
1740 or asked for visible before. Select and uncollapse window when it
1741 is made visible.
1742 (x_make_frame_invisible): Don't reset x_highlight_frame.
1743 (x_iconify_frame): Likewise. Make invisible frame visible before
1744 it is iconified.
1745 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
1746 (do_window_update): Don't change visibility of invisible frame.
1747
16691d29
JL
17482005-08-22 Juri Linkov <juri@jurta.org>
1749
1750 * term.c (turn_on_face): Check for TS_set_foreground and
1751 TS_set_background depending on standout_mode. Simplify.
1752
7c3f805b
KS
17532005-08-21 Kim F. Storm <storm@cua.dk>
1754
0f467468
KS
1755 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
1756 bitmaps on fully visible rows.
1757
7c3f805b
KS
1758 * fringe.c (update_window_fringes): Replace FORCE_P arg with
1759 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
1760 and return 0.
1761
1762 * xdisp.c (redisplay_window): Call update_window_fringes with
1763 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
1764
40b388f9
RS
17652005-08-20 Richard M. Stallman <rms@gnu.org>
1766
1767 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
1768 (resize_mini_window): Set w->start, and PT, so as to display the tail
1769 end of the buffer, if it doesn't all fit.
1770
581360f0
KS
17712005-08-18 Kim F. Storm <storm@cua.dk>
1772
1773 * xdisp.c (calc_pixel_width_or_height): Use actual display
1774 resolution when available instead of Vdisplay_pixels_per_inch.
1775
0eefa6fb
KS
17762005-08-17 Kim F. Storm <storm@cua.dk>
1777
1778 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
1779
1780 * dispnew.c (buffer_posn_from_coords): Check that target row is
1781 within matrix.
1782
ada192ba
JD
17832005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1784
1785 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
1786 xg_set_frame_icon and call it.
1787
1788 * gtkutil.c (xg_set_frame_icon): New function.
1789
0eefa6fb 1790 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 1791
ab89a403
KS
17922005-08-16 Kim F. Storm <storm@cua.dk>
1793
1794 * dispnew.c (increment_row_positions): Skip non-enabled rows.
1795
1796 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
1797 (Fcurrent_window_configuration): Use VECSIZE macro instead.
1798
8d34b5e1
RS
17992005-08-15 Richard M. Stallman <rms@gnu.org>
1800
1801 * xdisp.c (message3_nolog): Clear echo_message_buffer.
1802
71e37f3c
KS
18032005-08-15 Kim F. Storm <storm@cua.dk>
1804
0781c303
KS
1805 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
1806
71e37f3c
KS
1807 * process.c (deactivate_process, status_notify, read_process_output)
1808 (update_status, status_convert, decode_status, allocate_pty)
1809 (make_process, remove_process, list_processes_1)
1810 (create_process_1, unwind_request_sigio, read_process_output)
1811 (send_process, keyboard_bit_set): Declare static.
1812 (Fdelete_process): Simplify. Pass process to status_notify, so we
1813 don't try to read output from it.
1814 (status_notify): New arg deleting_process--don't try to read
1815 output from that process.
1816
1817 * lisp.h (deactivate_process, status_notify, read_process_output):
1818 Remove prototypes.
1819
0bf14bfd
RS
18202005-08-14 Richard M. Stallman <rms@gnu.org>
1821
bdb4d6d8
SM
1822 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
1823 define_image_type.
0bf14bfd 1824
6c7eb721
JD
18252005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1826
1827 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
1828 (xg_get_image_for_pixmap): Move some code to
1829 xg_get_pixbuf_from_pix_and_mask, and call it.
1830
1831 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
1832
1833 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
1834 to get an GTK icon and set it with GTK functions to avoid having GTK
1835 override an icon set with just X functions.
1836
6e2d14c8
RS
18372005-08-11 Richard M. Stallman <rms@gnu.org>
1838
bdb4d6d8
SM
1839 * image.c (syms_of_image): Init image_types here, and call
1840 define_image_type.
6e2d14c8
RS
1841 (init_image): Not here.
1842
61298e17
RS
18432005-08-09 Richard M. Stallman <rms@gnu.org>
1844
1845 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
1846
1847 * lisp.h (QUIT): Throw t to Vthrow_on_input.
1848
5a9807a8
TTN
18492005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
1850
1851 * floatfns.c (Fexpt): Use floats for negative exponent.
1852
93469010
JD
18532005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1854
1855 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
1856 should not be there, causing menu display errors with GTK 2.6.9.
1857
44edd521
RS
18582005-08-07 Richard M. Stallman <rms@gnu.org>
1859
8b6a9551
RS
1860 * floatfns.c (Fexpt): Undo previous change.
1861
44edd521
RS
1862 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
1863 so it can be used with various state vectors.
1864
1865 * emacs.c (endif): Convert -script into -scriptload.
1866 (standard_args): Add -scriptload. Allow -basic-display with one dash.
1867
1868 * fns.c (syms_of_fns): Add `emacs' to features.
1869
1870 * term.c (set_terminal_modes): If no TS_termcap_modes string,
1871 output newlines to scroll the old screen contents off the screen.
1872
cac87e30
TTN
18732005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
1874
2a205424
TTN
1875 * floatfns.c (Fexpt): Use floats for negative exponent.
1876 Reported by D Goel.
cac87e30 1877
31b7cc74
JB
18782005-08-02 Richard M. Stallman <rms@gnu.org>
1879
1880 * frame.c (Fframe_char_width): Doc fix.
1881
e2b64074
JB
18822005-07-30 Juanma Barranquero <lekktu@gmail.com>
1883
1884 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
1885 Defvar it.
1886
0962822d
JB
18872005-07-28 Juanma Barranquero <lekktu@gmail.com>
1888
1889 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
1890 (my_create_window, my_create_tip_window): Make static.
1891
1892 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
1893 (my_set_foreground_window, my_destroy_window): Make static.
1894
9eff9fe3
PE
18952005-07-26 Paul Eggert <eggert@cs.ucla.edu>
1896
1897 Merge gnulib getopt implementation into Emacs.
1898
1899 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
1900 now part of lib-src.
1901
1c9916a1
SM
19022005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
1903
1904 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
1905
94c7f257
JR
19062005-07-25 Jason Rumney <jasonr@gnu.org>
1907
1908 * w32menu.c (w32_menu_display_help): Suppress tooltip when
1909 navigating menus with the keyboard.
1910
bf0bf758
RS
19112005-07-23 Richard M. Stallman <rms@gnu.org>
1912
1913 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
1914
1915 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
1916 gc_relative_threshold, one by one.
1917
1918 * keyboard.c (read_char): Test gc_cons_threshold.
1919 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
1920
1921 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
1922 gc_relative_threshold, one by one.
1923
1924 * alloc.c (gc_cons_threshold): Not static.
1925 (gc_cons_combined_threshold): Var deleted.
1926 (gc_relative_threshold): New variable.
1927 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
1928 instead of gc_cons_combined_threshold.
1929
1c9916a1 1930 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
1931 (gc_cons_combined_threshold): Declaration deleted.
1932
99f963e4
YM
19332005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1934
1935 * mac.c: Don't include stdlib.h or string.h.
1936 (Fdo_applescript, Fmac_file_name_to_posix)
1937 (Fmac_file_name_to_posix): Doc fixes.
1938 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
1939 (Fmac_code_convert_string): Likewise.
1940 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
1941 if the executable is not contained in a bundle.
1942
1943 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
1944 (gray_width, gray_height): Remove defines.
1945 (gray_bits, gray_bitmap_width, gray_bitmap_height)
1946 (gray_bitmap_bits): Remove variables.
1947 (lispy_function_keys): Remove extern.
1948 (free_frame_menubar): Add extern.
1949 (x_window_to_frame): Remove function.
1950 (unwind_create_tip_frame): Add declaration.
1951 (x_set_name_internal): New function.
1952 (x_set_name, x_set_title): Use it.
1953 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
1954 (Fx_display_pixel_height, Fx_display_planes)
1955 (Fx_display_color_cells, Fx_server_max_request_size)
1956 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1957 (Fx_display_mm_height, Fx_display_mm_width)
1958 (Fx_display_backing_store, Fx_display_visual_class)
1959 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
1960
1961 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
1962
bdb4d6d8 1963 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
1964 (Fx_get_selection_internal, Fx_selection_owner_p)
1965 (Fx_selection_exists_p): Doc fixes.
1966 (syms_of_macselect) <selection-converter-alist>: Likewise.
1967
1d256714
JB
19682005-07-21 Juanma Barranquero <lekktu@gmail.com>
1969
1970 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1971
1972 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
1973 (Fccl_execute_on_string): Likewise; add usage info.
1974
1975 * composite.c (Fcompose_region_internal)
1976 (Fcompose_string_internal):
1977 Improve argument/docstring consistency.
1978
1979 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
1980 Fix typos in docstrings.
1981
1982 * textprop.c (Fnext_char_property_change)
1983 (Fprevious_char_property_change): Doc fixes.
1984
1985 * window.c (Fset_window_margins, Fset_window_fringes):
1986 Improve argument/docstring consistency.
1987
1988 * xfaces.c (Finternal_lisp_face_p): Doc fix.
1989
538f78c3
AS
19902005-07-21 Andreas Schwab <schwab@suse.de>
1991
1992 * eval.c (restore_stack_limits): Return a value.
1993
a5b5bf44
JB
19942005-07-20 Juanma Barranquero <lekktu@gmail.com>
1995
1996 * eval.c (Fdefvar): Doc fix.
1997
ae643123
KS
19982005-07-20 Kim F. Storm <storm@cua.dk>
1999
0ed4bf15
KS
2000 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
2001 Use make_save_value to unwind protect stream.
2002
2003 * lread.c (Fload, load_unwind):
2004 Use make_save_value to unwind protect stream.
ae643123 2005
82fc29a1
JB
20062005-07-19 Juanma Barranquero <lekktu@gmail.com>
2007
2008 * eval.c (Fprog2, Fcalled_interactively_p),
2009 (syms_of_eval) <debug-on-quit>: Doc fixes.
2010 (syms_of_eval) <max-specpdl-size>:
2011 (Finteractive_p): Fix typos in docstrings.
2012
73b90087
KS
20132005-07-19 Kim F. Storm <storm@cua.dk>
2014
2015 * w32fns.c (Vx_hand_shape): Variable removed.
2016 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
2017
dfc434d0
KH
20182005-07-19 Kenichi Handa <handa@m17n.org>
2019
bdb4d6d8 2020 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 2021
bcd98331
SM
20222005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
2023
2024 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
2025
2a85a754
KS
20262005-07-18 Kim F. Storm <storm@cua.dk>
2027
2028 * frame.h (struct frame): New member already_hscrolled_p.
2029
2030 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
2031 to avoid redisplay looping hscrolling back and forth ad infinitum.
2032
426179e1
JL
20332005-07-18 Juri Linkov <juri@jurta.org>
2034
2035 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
2036 * keymap.c (Fminor_mode_key_binding):
2037 * macterm.c (mac-emulate-three-button-mouse):
2038 Delete duplicate duplicate words.
2039
9f4a578d
KR
20402005-07-18 Ken Raeburn <raeburn@gnu.org>
2041
2042 * minibuf.c (Ftest_completion): Fix odd syntax in test.
2043
d005338b
YM
20442005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2045
bcd98331 2046 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
2047
2048 * macgui.h (struct _XGC): New struct.
2049 (GC): Use it.
2050 (GCForeground, GCBackground, GCFont): Use X11 mask values.
2051 (XCreateGC, XParseGeometry): Move externs to macterm.h.
2052
bcd98331 2053 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 2054 (XSetFont): Add declaration.
bcd98331
SM
2055 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
2056 Remove functions.
2057 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
2058 New defines.
d005338b
YM
2059 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
2060 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
2061 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
2062 Use them.
d005338b
YM
2063 (mac_erase_rectangle): New function.
2064 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
2065 (x_draw_stretch_glyph_string): Use it.
2066 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
2067 (XSetBackground, XSetFont): Adjust for new GC implementation.
2068 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
2069 (XTset_vertical_scroll_bar): Clear area under scroll bar.
2070
2071 * macterm.h (struct mac_display_info): Change types of
2072 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
2073 (XCreateGC, XParseGeometry): Move externs from macgui.h.
2074
2075 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
2076
9b0c2c56
RS
20772005-07-16 Richard M. Stallman <rms@gnu.org>
2078
2079 * buffer.c (Fmake_overlay): Doc fix.
2080
2e9c1c6d
EZ
20812005-07-16 Eli Zaretskii <eliz@gnu.org>
2082
2083 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
2084 Vw32_valid_locale_ids, and Vw32_valid_codepages.
2085
407289a4
YM
20862005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2087
bcd98331
SM
2088 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
2089 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 2090
e4b477a1
RS
20912005-07-15 Richard M. Stallman <rms@gnu.org>
2092
2093 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
2094
a8613adf
KS
20952005-07-15 Kim F. Storm <storm@cua.dk>
2096
2097 * xdisp.c: Fix redisplay loop in last change.
2098 (IT_POS_VALID_AFTER_MOVE_P): New macro.
2099 (move_it_vertically_backward, move_it_by_lines): Use it.
2100
2d5324c5
JR
21012005-07-14 Jason Rumney <jasonr@gnu.org>
2102
2103 * w32.c (init_environment): Default HOME directory to user's
2104 appdata directory if possible.
2105
3ed70dc4
KS
21062005-07-14 Kim F. Storm <storm@cua.dk>
2107
7b9389b0
KS
2108 * .gdbinit (pitx): Fix output format. Print string charpos.
2109
3ed70dc4
KS
2110 * lread.c (syms_of_lread): Initialize seen_list.
2111
2112 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
2113
2114 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
2115 Staticpro re_match_object.
2116
ef029e5a
YM
21172005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2118
2119 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
2120 dereference.
2121
2122 * macterm.c (mac_window_to_frame): Remove duplicate define.
2123
16ef9c56
KH
21242005-07-14 Kenichi Handa <handa@m17n.org>
2125
2126 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 2127 (code_convert_region): Adjust for the above change.
16ef9c56
KH
2128 (set_conversion_work_buffer): If the work buffer is already in
2129 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 2130 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
2131 (run_pre_write_conversin_on_c_str): Likewise.
2132
098e1273
KS
21332005-07-13 Kim F. Storm <storm@cua.dk>
2134
010b9a45
KS
2135 * xdisp.c (start_display): Don't reseat to next visible line start
2136 if current start position is in a string or image.
2137 (move_it_vertically_backward): Be sure to move out of strings and
2138 images when moving it2 forward.
2139 (move_it_by_lines): When moving forward, move to next buffer
2140 position if we end up in a string or image. When moving backward,
2141 count rows moved over when moving to start of current row in case
2142 row starts in middle of a string or image. Also move further
2143 backward if we end up in a string or image.
bcd98331 2144 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
2145 move backward to set cursor on start of an overlay string.
2146 (cursor_row_p): Row is ok if cursor is at newline from string, but
2147 string starts on this line (so we always position cursor at start
2148 of string).
2149
2150 * indent.c (Fvertical_motion): If start position is on an image,
2151 don't move back if we move too far (that's almost certain to happen).
2152
098e1273
KS
2153 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
2154 row in minibuffer windows.
2155 (try_window): Don't check margins in minibuffer windows.
2156
c229fb15
YM
21572005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2158
2159 * macterm.c: Don't include stdlib.h or composite.h.
2160 (x_use_underline_position_properties, last_mouse_press_frame)
2161 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
2162 (syms_of_macterm, mac_initialize): Don't initialize them.
2163 (waiting_for_input, initial_argv, initial_argc)
2164 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
2165 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
2166 (extra_keyboard_modifiers): Fix type in extern.
2167 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
2168 (x_scroll_bar_report_motion): Add argument types to declaration.
2169 (mac_compute_glyph_string_overhangs): Add declaration.
2170 (disable_mouse_highlight): Remove unused variable.
2171 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
2172 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
2173 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
2174 All callers changed.
c229fb15
YM
2175 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
2176 timestamp.
2177 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
2178 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
2179 only when its width is less than the height.
2180 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
2181 (font_name_table, font_name_table_size, font_name_count):
2182 Make static.
c229fb15
YM
2183 (drag_and_drop_file_list): Remove variable. Previous use is now
2184 local to function.
2185 (do_ae_open_documents): Move DRAG_N_DROP event construction part
2186 from XTread_socket.
bcd98331
SM
2187 (XTread_socket): Consolidate setting of event timestamp.
2188 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
2189 Support extra_keyboard_modifiers.
2190
2191 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
2192 beginning with that for ASCII.
2193
69d05d83
SM
21942005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
2195
2196 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
2197 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
2198 (syms_of_alloc): Declare gc-cons-percentage.
2199
2200 * eval.c (Feval, Ffuncall):
2201 * keyboard.c (read_char):
2202 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
2203
2204 * lisp.h (gc_cons_combined_threshold): Declare.
2205
5c7f9de1
KS
22062005-07-12 Kim F. Storm <storm@cua.dk>
2207
2208 * coding.c (Qprocess_argument):
2209 * coding.h (Qprocess_argument): Remove unused var.
2210
2211 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
2212
c37efb7a
YM
22132005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2214
2215 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
2216 Endian.h.
2217 [!MAC_OSX] (fchmod, fchown): New functions.
2218 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
2219 Use SBYTES and EndianU32_BtoN.
2220 (mac_get_object_from_code): Return 4 byte string even if argument
2221 is 0. Use make_unibyte_string and EndianU32_NtoB.
2222 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
2223 (Fmac_set_file_type): Fix documents and argument declarations.
2224 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
2225
a4429c5b
SM
22262005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
2227
2228 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
2229
a2d7e722
JD
22302005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2231
2232 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
2233 Lucid if X_I18N, font otherwise.
2234
9a4183e9
ST
22352005-07-10 Steven Tamm <steventamm@mac.com>
2236
a4429c5b
SM
2237 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
2238 (Fmac_set_file_type, Fmac_set_file_creator): Add.
2239 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 2240
51f74c37
RS
22412005-07-10 Richard M. Stallman <rms@gnu.org>
2242
2243 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
2244 (syms_of_lread): Set up eval-buffer-list.
2245 (Feval_buffer, Feval_region): Bind eval-buffer-list.
2246
93c7da4c
RS
22472005-07-08 Richard M. Stallman <rms@gnu.org>
2248
2249 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
2250
64af5917
KS
22512005-07-08 Kim F. Storm <storm@cua.dk>
2252
2253 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
2254 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
2255
a96b333c
KS
22562005-07-07 Kim F. Storm <storm@cua.dk>
2257
2258 * window.c (Frecenter): Fix last change (set iarg before use).
2259
dc2204be
RS
22602005-07-06 Richard M. Stallman <rms@gnu.org>
2261
2262 * window.c (Frecenter): When arg is inside the scroll margin,
2263 move it out of the margin.
2264
3fb1d72b
JR
22652005-07-06 Jason Rumney <jasonr@gnu.org>
2266
2267 * w32console.c (initialize_w32_display): Detect when the console
2268 dimensions are insane, and default to 80x25 instead.
a4429c5b 2269 (w32_use_full_screen_buffer): Default to NIL.
3fb1d72b 2270
dd15724d
YM
22712005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2272
2273 * macterm.c (mac_draw_vertical_window_border): Use foreground of
2274 VERTICAL_BORDER_FACE_ID for vertical border line.
2275 (mac_encode_char): Call check_ccl_update in advance.
2276 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
2277 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
2278 Don't assume that font family length is less than 32.
dd15724d
YM
2279 (x_compute_min_glyph_bounds): Make static.
2280 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 2281
68003d6b
LK
22822005-07-04 Lute Kamstra <lute@gnu.org>
2283
dc2204be 2284 * Update FSF's address in GPL notices.
68003d6b 2285
3d393029
RS
22862005-07-03 Richard M. Stallman <rms@gnu.org>
2287
2288 * xdisp.c (try_window): Fix previous change in how it handles
2289 a partially-visible line or one only partly past the margin.
2290
2291 * window.c (window_scroll_pixel_based): Take account
2292 of this_scroll_margin when finding point when scrolling up.
2293
22942005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
2295
2296 * window.c (window_scroll_pixel_based, window_scroll_line_based):
2297 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
2298 (syms_of_window): <scroll-preserve-screen-position>: Doc fix.
2299
d6951bb4
EZ
23002005-07-02 Juri Linkov <juri@jurta.org>
2301
2302 * w32term.c (w32_draw_vertical_window_border): Use foreground of
2303 VERTICAL_BORDER_FACE_ID for vertical border line.
2304
b016179b
EZ
23052005-07-02 Eli Zaretskii <eliz@gnu.org>
2306
2307 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
2308 fchmod so that chmod doesn't get called on MSDOS before the file
2309 is closed.
2310
c2baa2b6
JR
23112005-07-01 Jason Rumney <jasonr@gnu.org>
2312
2313 * w32term.c (cleartype_active): New flag for enabling sub-pixel
2314 workaround.
2315 (w32_initialize): Initialize it.
2316 (w32_native_per_char_metric): Allow a couple of extra pixels when
2317 Cleartype is active.
2318
2319 * w32term.c (w32_initialize): Move check for screen reader here
2320 from syms_of_w32term.
2321
a6d0ae55
JD
23222005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2323
2324 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
2325 is not zero.
2326
711877f3
MY
23272005-07-01 Masatake YAMATO <jet@gyve.org>
2328
a4429c5b 2329 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 2330
63f7ffb3
JL
23312005-06-30 Juri Linkov <juri@jurta.org>
2332
2333 * xdisp.c (x_draw_vertical_border): If left fringe is not present
2334 decrease x coord of vertical border by 1 pixel to not occupy text
2335 area of the right window.
2336
2337 * xterm.c (x_draw_vertical_window_border): Use foreground of
2338 VERTICAL_BORDER_FACE_ID for vertical border line.
2339
2340 * term.c (turn_on_face): In standout mode apply specified
2341 fg to bg, and specified bg to fg (this makes the logic of
2342 inversion on terminal consistent with X).
2343
b26860ad
JB
23442005-06-29 Juanma Barranquero <lekktu@gmail.com>
2345
2346 * eval.c (user_variable_p_eh): New function.
2347 (Fuser_variable_p): Use it. Clarify docstring.
2348 Return t for aliases of user options, nil for alias loops.
2349
3a1f1d79
RS
23502005-06-27 Richard M. Stallman <rms@gnu.org>
2351
2352 * eval.c (Fdefvar): Improve error message.
2353
92de1e01
YM
23542005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2355
2356 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
2357 change.
2358
69410484
JB
23592005-06-27 Juanma Barranquero <lekktu@gmail.com>
2360
2361 * eval.c (Fdefvar): Don't try to set constant symbols.
2362
09352e8f
RS
23632005-06-25 Richard M. Stallman <rms@gnu.org>
2364
a68d870b
RS
2365 * macfns.c (Fx_show_tip): Pass new arg to try_window.
2366
2367 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
2368
2369 * xfns.c (Fx_show_tip): Pass new arg to try_window.
2370
2371 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
2372 (redisplay_window): Handle try_window reporting point in scroll margin.
2373
2374 * dispextern.h (try_window): Declare new arg.
2375
2376 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
2377 Use fchmod to copy the file modes.
2378 (Frename_file): Don't copy UID and GID here;
2379 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
2380
df13531d
RS
2381 * eval.c (call_debugger): Take full care of extending stack limits
2382 to make space for the debugger, and restore the change afterward.
2383 Bind debug-on-error to nil.
2384 (restore_stack_limits): New subroutine.
2385 (Fsignal): Extend specpdl bound along with eval depth bound,
2386 for calling edebug. Don't do either one, for calling debugger.
2387 (find_handler_clause): Don't bind debug-on-error here.
2388 Don't unbind anything either.
2389 Temporarily advance max_specpdl_size for calling
2390 internal_with_output_to_temp_buffer.
2391 (grow_specpdl): Don't alter max_specpdl_size before signaling
2392 an error.
2393 (syms_of_eval) <max-specpdl-size>: Doc fix.
2394
09352e8f
RS
2395 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
2396
90296dd3
EZ
23972005-06-24 Eli Zaretskii <eliz@gnu.org>
2398
2399 * fileio.c (Frename_file): Undo last change: no need to ifdef away
2400 chown on DOS_NT platforms.
2401
2402 * w32.c (sys_chown): New function.
2403
2404 * s/ms-w32.h (chown): New; define to sys_chown.
2405
c4f6ca24
JB
24062005-06-24 Juanma Barranquero <lekktu@gmail.com>
2407
3338c0ad
JB
2408 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
2409 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
2410
9a1505e9 2411 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 2412
528b6abc
RS
24132005-06-23 Richard M. Stallman <rms@gnu.org>
2414
2415 * xdisp.c (get_next_display_element): Finish reversing the tests of
2416 Vnobreak_char_display.
2417
9a1505e9 2418 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 2419 All uses changed.
9a1505e9 2420 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
2421 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
2422
2423 * fileio.c (Frename_file): Preserve owner and group, if possible,
2424 when copying.
2425
1d1c7e75
JB
24262005-06-23 Juanma Barranquero <lekktu@gmail.com>
2427
253b2298
JB
2428 * abbrev.c (Funexpand_abbrev):
2429 * category.c (Fmake_category_set):
2430 * dispnew.c (Fsleep_for, Fsit_for):
2431 * editfns.c (Fsubst_char_in_region):
2432 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
2433 * frame.c (make_frame_without_minibuffer):
2434 * lread.c (read_vector):
2435 * macfns.c (check_x_frame):
2436 * process.c (Fstop_process, Fcontinue_process):
2437 * search.c (Freplace_match):
2438 * syntax.c (Fstring_to_syntax):
2439 * w32fns.c (check_x_frame, check_x_display_info):
2440 * xfaces.c (x_supports_face_attributes_p):
2441 * xselect.c (Fx_own_selection_internal): Follow error conventions.
2442
1d1c7e75
JB
2443 * image.c (fn_png_init_io): Don't define it.
2444 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
2445 (png_read_from_file): New function, based on png_read_from_memory.
2446 (png_load): Use it, instead of fn_png_init_io.
2447
d1fab151
KS
24482005-06-23 Kim F. Storm <storm@cua.dk>
2449
2450 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 2451 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
2452 Add commentary explaining evaporate arg (for internal use only).
2453 (unwind_set_match_data): Add comment on evaporate use.
2454
53abc3bf
MB
24552005-06-22 Miles Bader <miles@gnu.org>
2456
a4429c5b 2457 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
2458 (realize_basic_faces, syms_of_xfaces): Update references to it.
2459 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
2460 to `VERTICAL_BORDER_FACE_ID'.
2461 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
2462
36a3b076
JL
24632005-06-21 Juri Linkov <juri@jurta.org>
2464
2465 * dispextern.h: Add extern Qframe_set_background_mode.
2466
2467 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
2468 Qframe_set_background_mode.
2469
2470 * frame.c (Fmodify_frame_parameters):
2471 Call frame-set-background-mode after changing the background color
2472 on non-window non-dos branch.
2473
23873c96
JB
24742005-06-21 Juanma Barranquero <lekktu@gmail.com>
2475
2476 * fns.c (Fchar_table_range):
2477 * process.c (Fmake_network_process): Fix spellings.
2478
b7d1f38f
KS
24792005-06-20 Kim F. Storm <storm@cua.dk>
2480
2481 * fns.c (Fsort): Doc fix.
2482
b4e49aee
MB
24832005-06-20 Miles Bader <miles@gnu.org>
2484
2485 * xfaces.c (Qvertical_divider): New variable.
2486 (realize_basic_faces): Realize its face.
2487 (syms_of_xfaces): Initialize it.
2488
2489 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
2490
2491 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
2492 window-separator on ttys using `vertical-divider' face by default.
2493
b7da00ba
RS
24942005-06-17 Richard M. Stallman <rms@gnu.org>
2495
a4429c5b
SM
2496 * xdisp.c (get_next_display_element):
2497 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
2498
2499 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
2500 (Ftty_no_underline): New function.
2501 (syms_of_term): defsubr it.
b7d1f38f 2502
b7da00ba
RS
2503 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
2504
2505 * dispnew.c (spec_glyph_lookup_face): New function.
2506 (build_frame_matrix_from_leaf_window): Use it.
2507
2508 * dispextern.h (spec_glyph_lookup_face): Add declaration.
2509
2510 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2511
25122005-06-12 Richard M. Stallman <rms@gnu.org>
2513
2514 * keyboard.c (read_char): After catching a longjmp,
2515 call restore_getcjmp.
2516
289824a3
JB
25172005-06-17 Juanma Barranquero <lekktu@gmail.com>
2518
2519 * xselect.c (lisp_data_to_selection_data): Fix spelling.
2520
95085023
YM
25212005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2522
2523 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
2524 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
2525 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
2526 events.
2527 (XTread_socket): Don't pass keyboard events with the option
2528 modifier to the system when Vmac_command_key_is_meta is nil or
2529 Vmac_option_modifier is non-nil.
2530 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
2531 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
2532 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
2533 handler function.
2534 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
2535 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
2536 handler part to mac_handle_mouse_event.
2537
4a9308b8
JB
25382005-06-14 Juanma Barranquero <lekktu@gmail.com>
2539
2540 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
2541 NEW-ALIAS and BASE-VARIABLE, respectively.
2542
5aa6db57
SM
25432005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
2544
2545 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
2546 (get_phys_cursor_geometry, format_mode_line_unwind_data)
2547 (get_line_height_property, x_produce_glyphs): Remove unused vars.
2548
2549 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
2550
0e0dddda
EZ
25512005-06-13 Eli Zaretskii <eliz@gnu.org>
2552
2553 * w32term.c (x_use_underline_position_properties): New variable.
2554 (x_draw_glyph_string): Remind in a comment to change doc string of
2555 x-use-underline-position-properties if/when underline positioning
2556 is implemented.
2557 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
2558 and initialize it to nil.
2559
7f2b4738
JR
25602005-06-12 Jason Rumney <jasonr@gnu.org>
2561
2562 * w32fns.c (NEWOPENFILENAME): New struct.
2563 (Fx_file_dialog): Use it to trick the system into giving us up to
2564 date dialogs on systems that are documented to support it.
2565 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
2566
a1e8cad6
EZ
25672005-06-12 Eli Zaretskii <eliz@gnu.org>
2568
2569 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
2570 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
2571
099a3eea
EZ
25722005-06-11 Eli Zaretskii <eliz@gnu.org>
2573
2e09fef1
EZ
2574 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
2575 to CreateDIBSection to avoid a compiler warning.
2576 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
2577 warning.
2578 (png_load): Cast return values of fn_png_create_read_struct and
2579 fn_png_create_info_struct, to avoid compiler warnings on W32.
2580 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
2581 to avoid compiler warnings.
2582 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
2583 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
2584 avoid a compiler warning.
2585 (tiff_load): Cast return values of fn_TIFFOpen and
2586 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
2587 to IMAGE_BACKGROUND to avoid a compiler warning.
2588 (gif_load): Cast return values of fn_DGifOpenFileName and
2589 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
2590 IMAGE_BACKGROUND to avoid a compiler warning.
2591 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
2592 before redefining.
2593
099a3eea
EZ
2594 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
2595 the call to CreateDIBSection, to avoid a compiler warning.
2596
d11f8e1a
JR
25972005-06-11 Jason Rumney <jasonr@gnu.org>
2598
2599 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
2600 minibuffer.
2601 * macfns.c (Fx_file_dialog): Likewise.
2602
cd4344a3
EZ
26032005-06-10 Eli Zaretskii <eliz@gnu.org>
2604
2605 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
2606
578c1340
JB
26072005-06-10 Juanma Barranquero <lekktu@gmail.com>
2608
2609 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
2610 * w32fns.c (syms_of_w32fns): Fix spellings.
2611
4162f25f
EZ
26122005-06-10 Eli Zaretskii <eliz@gnu.org>
2613
2614 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
2615 `verbose'; print diagnostic messages only if it is non-zero.
2616 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
2617 in the environment.
2618 (copy_executable_and_dump_data): Print section names with %.8s.
2619
121c59a3
MY
26202005-06-10 Masatake YAMATO <jet@gyve.org>
2621
2622 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
2623 when mouse_face is not given.
121c59a3 2624
c869384d
LT
26252005-06-09 Luc Teirlinck <teirllm@auburn.edu>
2626
2627 * window.c (Fselect_window): Adapt call to Fselect_frame.
2628
2629 * lisp.h: Update EXFUN of Fselect_frame.
2630
2631 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
2632
6ecf436d
LT
2633 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
2634 no_enter.
2635 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
2636 Adapt to above change.
2637
c14ec135
JB
26382005-06-10 Juanma Barranquero <lekktu@gmail.com>
2639
2640 * fns.c (Fmemq, Fmaphash): Doc fixes.
2641
9fed2905
JB
26422005-06-09 Juanma Barranquero <lekktu@gmail.com>
2643
2644 * xfaces.c (Fdisplay_supports_face_attributes_p):
2645 Fix typo in docstring.
2646
427c5b1b
ST
26472005-06-08 Steven Tamm <steventamm@mac.com>
2648
2649 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
2650 used by gcc4 on intel mac.
2651
b7aae902
KS
26522005-06-09 Kim F. Storm <storm@cua.dk>
2653
2654 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
2655 in REUSE list if non-nil; free them if equal to evaporate.
2656 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
2657 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
2658 (restore_search_regs): Rename from restore_match_data. Uses changed.
2659 (unwind_set_match_data): New function.
2660 (record_unwind_save_match_data): New function like save-match-data.
2661
2662 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
2663 (record_unwind_save_match_data): Add prototype.
2664 (restore_search_regs): Rename from restore_match_data.
2665
2666 * composite.c (compose_chars_in_text):
2667 * eval.c (do_autoload):
2668 * macmenu.c (set_frame_menubar):
2669 * process.c (read_process_output, exec_sentinel):
2670 * xmenu.c (set_frame_menubar):
2671 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
2672 * w32menu.c (set_frame_menubar):
2673 Use record_unwind_save_match_data.
2674
547d2b37
RS
26752005-06-08 Richard M. Stallman <rms@gnu.org>
2676
2677 * xdisp.c (get_next_display_element): Alter previous change:
2678 Distinguish Vshow_nonbreak_escape = t or not t.
2679 For t, use escape_glyph once again, as before previous change.
2680 Use space or hyphen for display, instead of the non-ASCII char.
2681 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
2682
2683 * process.c (Fstart_process): Don't touch command_channel_p slot.
2684
99598737 2685 * process.h (struct process): Delete command_channel_p.
547d2b37 2686
602907ae
MY
26872005-06-07 Masatake YAMATO <jet@gyve.org>
2688
5aa6db57
SM
2689 * xdisp.c (note_mode_line_or_margin_highlight):
2690 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 2691 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
2692 is not ON_MODE_LINE nor ON_HEADER_LINE.
2693
8b793bed
KS
26942005-06-07 Kim F. Storm <storm@cua.dk>
2695
2696 * process.c: Improve commentary for adaptive read buffering.
2697
3d031334
SM
26982005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
2699
2700 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
2701 if available.
2702
16d2e704
JD
27032005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2704
5aa6db57
SM
2705 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
2706 New functions for popping down menus on C-g.
16d2e704
JD
2707 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
2708
2709 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
2710 non-static.
2711
9fed2905 2712 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 2713
b6cc2ad0
EZ
27142005-06-06 Eli Zaretskii <eliz@gnu.org>
2715
9a1505e9 2716 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 2717
5aa6db57 2718 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
2719
2720 * w32proc.c (RVA_TO_PTR): New macro.
2721
2722 * w32heap.c (RVA_TO_PTR): No need to #undef now.
2723
2724 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
2725 Depend on w32heap.h.
2726
24e55feb
LT
27272005-06-06 Luc Teirlinck <teirllm@auburn.edu>
2728
2729 * keyboard.c (command_loop_1): Update Vthis_original_command.
2730
ce6e10af
RS
27312005-06-06 Richard M. Stallman <rms@gnu.org>
2732
2733 * xmenu.c (popup_get_selection): Undo previous change.
2734
c476bcb0
JL
27352005-06-06 Juri Linkov <juri@jurta.org>
2736
2737 * xdisp.c (Qno_break_space): New variable.
2738 (syms_of_xdisp): Initialize it.
2739 (get_next_display_element): Add no-break space and soft hypen
2740 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
2741 Use `no-break-space' face for no-break spaces.
2742
5494d7bc
JD
27432005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2744
2745 * window.c (delete_window): Handle the case where a h/vchild has
2746 a h/vchild.
2747
a0c38328
EZ
27482005-06-05 Eli Zaretskii <eliz@gnu.org>
2749
2750 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
2751 call to pfn_setsockopt, cast optval to `const char *'.
2752
91018229
EZ
27532005-06-04 Eli Zaretskii <eliz@gnu.org>
2754
1a8fb426
EZ
2755 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
2756 (open_unc_volume): Cast return value of map_w32_filename, to avoid
2757 compiler warnings.
2758
b6f0a397
EZ
2759 * s/ms-w32.h (fileno): Don't define if already defined.
2760
17a7c5c2 2761 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 2762
91018229
EZ
2763 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
2764
196ac78c
RS
27652005-06-04 Richard M. Stallman <rms@gnu.org>
2766
2767 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
2768
b8987570
JD
27692005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2770
2771 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 2772 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
2773 mac_menu_show Quit:s.
2774 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
2775 a dialog).
2776
555228aa
KS
27772005-06-04 Kim F. Storm <storm@cua.dk>
2778
2779 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
2780
2781 * callproc.c (Fcall_process): Don't use alloca to gradually
2782 increase size of buf, as it effectively uses twice the necessary
2783 space on the stack. Instead, pre-allocate buf of full size, and
2784 gradually increase the read size.
2785
2786 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
2787
2788 * eval.c (unbind_to): Preserve value of Vquit_flag.
2789
2790 * xterm.c (handle_one_xevent): Also ignore mouse motion just
2791 before a button release event.
2792
6312e5f7
JB
27932005-06-03 Juanma Barranquero <lekktu@gmail.com>
2794
2795 * xfaces.c (Finternal_lisp_face_equal_p): Really report
2796 on faces in a frame, if the argument FRAME is non-nil.
2797 Improve argument/docstring consistency.
2798
0493f7be
KS
27992005-06-02 Kim F. Storm <storm@cua.dk>
2800
2801 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
2802 (x_consider_frame_title, Fformat_mode_line): Save offset into
2803 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
2804
89fe657e
KS
28052005-06-01 Kim F. Storm <storm@cua.dk>
2806
2807 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
2808
02a6375c
YM
28092005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2810
2811 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
2812 resolution fields for scalable fonts to 0.
2813
2814 * xfaces.c (build_scalable_font_name): Round pixel size to the
2815 nearest integer.
2816
95d4fad8
KS
28172005-06-01 Kim F. Storm <storm@cua.dk>
2818
2819 * xdisp.c (display_mode_line): Support nested calls to redisplay
2820 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
2821
3c1b433a
SM
28222005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2823
2824 * fileio.c (Finsert_file_contents):
2825 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
2826
13cc7d61
KS
28272005-05-31 Kim F. Storm <storm@cua.dk>
2828
2829 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
2830 (mode_line_noprop_ptr): Rename from frame_title_*.
2831 (store_mode_line_noprop_char): Rename from store_frame_title_char.
2832 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 2833 (mode_line_target): New enum to specify current output target
13cc7d61
KS
2834 for mode line formatting.
2835 (display_mode_element): Test it rather than frame_title_ptr and
2836 mode_line_string_list to determine where output should go.
2837 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
2838 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
2839 (format_mode_line_unwind_data, unwind_format_mode_line):
2840 New functions for unwind protection in mode line formatting.
13cc7d61 2841 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
2842 to support nested calls to format-mode-line and redisplay.
2843 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 2844 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
2845 support nested calls to format-mode-line and redisplay.
2846 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 2847 Don't trim trailing dashes.
13cc7d61
KS
2848 (decode_mode_spec): Don't make infinite number of trailing dashes
2849 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
2850 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
2851 mode_line_string_face_prop, and Vmode_line_unwind_vector.
2852 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
2853 Initialize mode_line_target to MODE_LINE_DISPLAY.
2854
c16b1394
RS
28552005-05-29 Richard M. Stallman <rms@gnu.org>
2856
2857 * buffer.c (Fbuffer_local_value): Call indirect_variable.
2858
edfaeb4e
MY
28592005-05-28 Masatake YAMATO <jet@gyve.org>
2860
2861 * xdisp.c (note_mode_line_or_margin_highlight): Change the
2862 pointer to a hand cursor when hoovering over a mouse-face.
2863
7cf49add
KH
28642005-05-27 Kenichi Handa <handa@m17n.org>
2865
2866 * xterm.c (x_encode_char): Call check_ccl_update in advance.
2867
2868 * ccl.c: Now an element of Vccl_program_table is a vector of
2869 length 4, not 3.
3c1b433a
SM
2870 (ccl_get_compiled_code): New arg idx. Caller changed.
2871 Adjust for the change of Vccl_program_table.
2872 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
2873 (check_ccl_update): New function.
2874 (Fregister_ccl_program): Use ASET to set an element of a vector.
2875 Adjusted for the change of Vccl_program_table.
2876
2877 * ccl.h (struct ccl_program): New member idx.
2878 (check_ccl_update): Extern it.
2879
5e2ad10b
JB
28802005-05-27 Juanma Barranquero <lekktu@gmail.com>
2881
3c1b433a 2882 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
2883 (syms_of_image): Defvar it.
2884 (lookup_image_type): Use it.
2885
5e2ad10b
JB
2886 * buffer.c (Fbuffer_local_value): Make argument name match its use
2887 in docstring.
2888
6e604a9b
JB
28892005-05-26 Juanma Barranquero <lekktu@gmail.com>
2890
2891 * keyboard.c (Frecursive_edit): Fix typo in docstring.
2892 (Fposn_at_x_y): Make argument name match its use in docstring.
2893
59244a3f
LK
28942005-05-26 Lute Kamstra <lute@gnu.org>
2895
2896 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
2897
55ce5058
MY
28982005-05-24 Masatake YAMATO <jet@gyve.org>
2899
2900 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
2901 as loop sentinels.
2902
cb5db137
NR
29032005-05-24 Nick Roberts <nickrob@snap.net.nz>
2904
2905 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
2906 select frame title ("Question"/"Information").
2907 (xdialog_show): Use it.
2908
13dcfc35
NR
2909 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
2910
2911 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
2912
d3393daa
NR
2913 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
2914 a third argument (Qnil).
2915
2916 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
2917
2918 * editfns.c (Fmessage_box): Use "Information" for frame title.
2919
71d4fba1
TTN
29202005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
2921
2922 * termcap.c [VMS]: Include <starlet.h>.
2923
359e4563
MY
29242005-05-23 Masatake YAMATO <jet@gyve.org>
2925
6e604a9b
JB
2926 * xdisp.c (note_mode_line_or_margin_highlight): Add code
2927 for mouse-face. Change the type of the first argument from `window'
2928 to `Lisp_Object'.
359e4563
MY
2929 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
2930 window instead of w.
2931
edceb51c
AS
29322005-05-22 Andreas Schwab <schwab@suse.de>
2933
41c4895c 2934 * process.c (send_process): Move misplaced volatile.
edceb51c 2935
5c213fcc
RS
29362005-05-21 Richard M. Stallman <rms@gnu.org>
2937
2938 * xdisp.c (display_mode_element): If we're processing a list and
2939 padding is specified, put it after the last element.
2940
aa4060b9
EZ
29412005-05-21 Eli Zaretskii <eliz@gnu.org>
2942
2943 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
2944 "superroot" on DOS_NT systems.
2945
a2c9aee6
EZ
29462005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
2947
2948 * process.c (send_process): Restore the SIGPIPE handler if we
2949 catch a SIGPIPE.
2950
09e8eb5b
JB
29512005-05-20 Juanma Barranquero <lekktu@gmail.com>
2952
2953 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
2954 misleading comments).
2955 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
2956
f3fbdb1f
LK
29572005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2958
2959 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
2960 Correct the right value.
2961
639ec765
NR
29622005-05-19 Nick Roberts <nickrob@snap.net.nz>
2963
240d926e 2964 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
2965 post-command-idle-hook and post-command-idle-delay.
2966 (command_loop_1): Don't try to execute post-command-idle-hook.
2967
03d42907
KS
29682005-05-16 Kim F. Storm <storm@cua.dk>
2969
1cb83e13
KS
2970 * xdisp.c (handle_display_prop): Handle empty replacement.
2971 (handle_single_display_spec): Return -1 for empty replacement.
2972
2973 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
2974
03d42907
KS
2975 * .gdbinit (pitx): Print more info about iterator.
2976
0da46b6e
AS
29772005-05-16 Andreas Schwab <schwab@suse.de>
2978
3c1b433a 2979 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 2980
d06ba294
RS
29812005-05-14 Richard M. Stallman <rms@gnu.org>
2982
2983 * xdisp.c (message3): Call cancel_echoing.
2984
2985 * alloc.c (Fmemory_full_p): New function.
2986 (syms_of_alloc): defsubr it.
2987
2988 * process.c (send_process_trap): Unblock SIGPIPE.
2989 (send_process): Reset SIGPIPE handler before reporting error.
2990
90713743
NR
29912005-05-14 Nick Roberts <nickrob@snap.net.nz>
2992
2993 * emacs.c (syms_of_emacs): Fix doc string for system-type.
2994
68780e2a
RS
29952005-05-13 Richard M. Stallman <rms@gnu.org>
2996
2997 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
2998 (Finsert_file_contents): If we read 0 bytes from a special file,
2999 unlock the visited file if we locked it.
3000 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 3001 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 3002
5063dbbf
YM
30032005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3004
3005 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
3006
3c1b433a
SM
3007 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
3008 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
3009 redisplay from being paused by them.
3010
3011 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
3012 [!MAC_OSX] (target_ticks): Remove variable.
3013 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
3014 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
3015 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 3016 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
3017 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
3018 handling using Time Manager routines.
3c1b433a
SM
3019 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
3020 New variables.
5063dbbf
YM
3021 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
3022 (setitimer): New functions.
3023
3024 * macfns.c, macmenu.c: Don't include signal.h.
3025
3026 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
3027 Rename from get_control_part_bound. All callers changed.
3028 (x_scroll_bar_clear): New function.
3029 (x_clear_frame): Use it.
3030 (XTset_vertical_scroll_bar): Don't call Draw1Control.
3031 (x_scroll_bar_handle_click): Change type of second argument from
3032 int to ControlPartCode.
3033 (check_alarm): Remove declaration.
02a6375c
YM
3034 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
3035 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
3036
30372005-05-13 Nozomu Ando <nand@mac.com>
3038
3039 * unexmacosx.c: Include assert.h.
3040 (MACOSX_MALLOC_MULT16): New define.
3041 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
3042 ptr is in unexec regions by checking it is multiple of 16.
3043 (unexec_malloc_header_t): New typedef.
3044 (unexec_malloc, unexec_realloc, unexec_free): Store and use
3045 allocated size information in unexec_malloc_header.
3046
d101bf56
RS
30472005-05-10 Richard M. Stallman <rms@gnu.org>
3048
3049 * xterm.c (noinclude): Add #undef.
3050
3051 * image.c, xfns.c, xmenu.c: Don't include signal.h.
3052
2f60660a
JB
30532005-05-09 Juanma Barranquero <lekktu@gmail.com>
3054
f1701e65
JB
3055 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
3056 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
3057 Doc fixes.
3058
2f60660a
JB
3059 * dired.c (Ffile_name_completion): Make argument name
3060 match its use in docstring.
3061
9f29e806
LT
30622005-05-08 Luc Teirlinck <teirllm@auburn.edu>
3063
3064 * eval.c (Fdefvaralias): Remove any pre-existing
3065 variable-documentation property of the alias.
3066
a790bcd4
TTN
30672005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
3068
3069 * xfns.c (start_hourglass): Do nothing when running on a tty.
3070
d5fb8dab
JB
30712005-05-07 Juanma Barranquero <lekktu@gmail.com>
3072
3073 * fns.c (Fchar_table_range): Fix typos in docstring.
3074
7ec64183
SM
30752005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3076
3077 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
3078
6ff95f1d
EZ
30792005-05-06 Eli Zaretskii <eliz@gnu.org>
3080
2c6b25c7
EZ
3081 * lread.c (Flocate_file_internal): Doc fix.
3082
6ff95f1d
EZ
3083 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
3084
17d28d26
YM
30852005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3086
3087 * macselect.c (x_own_selection): Accept Lisp string as result of
3088 selection converter function.
3089 (x_clear_frame_selections): Don't call x-lost-selection-functions
3090 if Emacs is not owner of the selection.
3091 (Vmac_services_selection): Put variable and initialization in
3092 #ifdef MAC_OSX.
3093 (syms_of_macselect) [MAC_OSX]: Set default value of
3094 Vmac_services_selection to PRIMARY.
3095
7ec64183
SM
3096 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
3097 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
3098 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
3099 (install_scroll_bar_timer, set_scroll_bar_timer)
3100 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
3101 (get_control_part_bound, x_scroll_bar_handle_press)
3102 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
3103 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
3104 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
3105 (scroll_bar_timer_event_posted_p): New variables.
3106 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
3107 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
3108 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
3109 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
3110 Initialize track_top and track_height to nil.
3111 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
3112 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
3113 (XTset_vertical_scroll_bar): Don't make space between scroll bar
3114 and associated window.
3115 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
3116 from window config.
7ec64183
SM
3117 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3118 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
3119 Recalculate them if they are nil.
3120 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
3121 clicked control is a scroll bar.
3122 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
3123 event handler functions. Don't add modifiers to scroll bar click
7ec64183 3124 events. Call scroll bar release handler when window is deactivated.
17d28d26 3125 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
3126 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
3127 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 3128
7ec64183
SM
3129 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3130 New members track_top and track_height.
17d28d26
YM
3131
3132 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
3133 init_process when including sys/select.h.
3134
643b4cf5
LT
31352005-05-05 Luc Teirlinck <teirllm@auburn.edu>
3136
3137 * eval.c (Fdefvaralias): Doc fix.
3138
3139 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
3140
99bda128
KS
31412005-05-05 Kim F. Storm <storm@cua.dk>
3142
3143 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
3144 default value.
3145 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
3146 Fix type of cursor-in-non-selected-windows.
3147
3a3563e9
JD
31482005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3149
3150 * mac.c: #undef init_process so not to conflict with system headers.
3151
0124c5bd
RS
31522005-05-02 Richard M. Stallman <rms@gnu.org>
3153
3154 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
3155
3156 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
3157
3158 * xdisp.c (Vcursor_in_non_selected_windows)
3159 (Qcursor_in_non_selected_windows): Vars deleted.
3160 (syms_of_xdisp): Don't initialize them.
3161 (get_window_cursor_type): Use cursor_in_non_selected_windows
3162 buffer slot.
3163
4b3f161f
KS
31642005-05-02 Kim F. Storm <storm@cua.dk>
3165
e40527dc
KS
3166 * macros.c (executing_kbd_macro_index): Rename from
3167 executing_macro_index. All uses changed.
3168 (executing_kbd_macro_iterations): Rename from
3169 executing_macro_iterations. All uses changed.
3170 (executing_kbd_macro): Rename from executing_macro.
3171 All uses changed.
3172 (syms_of_macros): Rename Lisp var executing-macro-index to
3173 executing-kbd-macro-index.
3174
4b3f161f
KS
3175 * xdisp.c (move_it_in_display_line_to): Fix last change.
3176
4d49edf6
LT
31772005-05-01 Luc Teirlinck <teirllm@auburn.edu>
3178
f6b1b15a
LT
3179 * xmenu.c (Fx_popup_menu): Doc fix.
3180
4d49edf6
LT
3181 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
3182
4a766fe6
JR
31832005-05-02 Jason Rumney <jasonr@gnu.org>
3184
3185 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
3186
c924d3ff
TTN
31872005-05-02 Nozomu Ando <nand@mac.com>
3188
3189 * sysselect.h: Fix typo.
3190
b161ea4e 31912005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 3192
b161ea4e
NR
3193 * charset.c (Fchars_in_region): Remove as obsolete.
3194
d37e919d 31952005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
3196
3197 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 3198 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 3199 glyph.
5c2e5a5e 3200
bec0b768
LT
32012005-05-01 Luc Teirlinck <teirllm@auburn.edu>
3202
3203 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
3204
ebbfa918
RS
32052005-05-01 Richard M. Stallman <rms@gnu.org>
3206
3207 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
3208 If user cancels the menu, quit unless FOR_CLICK.
3209
7ec64183 3210 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
3211 All uses changed.
3212 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
3213 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
3214 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
3215 * commands.h (Vexecuting_kbd_macro): Likewise.
3216
a72c2d97
TTN
32172005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
3218
3219 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
3220
7e995a23
RS
32212005-04-30 Richard M. Stallman <rms@gnu.org>
3222
3223 * fileio.c (Ffind_file_name_handler): Handle the `operations'
3224 property of the file name handler.
3225 (Qoperations): New variable.
3226 (syms_of_fileio): Initialize and staticpro it.
3227
3228 * xdisp.c (set_message_1): Delete xassert.
3229
7a92caf8
YM
32302005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3231
7ec64183 3232 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
3233
3234 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
3235
3236 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
3237 before/after including Carbon.h if there is a working mktime.
3238
5ae91803
KS
32392005-04-28 Kim F. Storm <storm@cua.dk>
3240
3241 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
3242 Fix cyclic alias check. If alias loop is detected, signal
3243 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
3244
d79b6c21
LK
32452005-04-28 Lute Kamstra <lute@gnu.org>
3246
3247 * eval.c (do_autoload): Record only autoloads in the autoload
3248 property of symbols.
3249
8c75afbf
NR
32502005-04-28 Nick Roberts <nickrob@snap.net.nz>
3251
3252 * emacs.c (USAGE1): Add --basic-display and --quick options.
3253
832e294f
KS
32542005-04-27 Kim F. Storm <storm@cua.dk>
3255
3256 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
3257
f03f317a
RS
32582005-04-26 Richard M. Stallman <rms@gnu.org>
3259
c019856e
RS
3260 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
3261 (syms_of_window): Doc fixes.
3262
f03f317a
RS
3263 * indent.c (Fvertical_motion): Undo previous change.
3264
38f60cd9
KH
32652005-04-26 Kenichi Handa <handa@m17n.org>
3266
3267 * fns.c (char_table_range): New function.
3268 (Fchar_table_range): Signal an error if characters in the range
3269 have inconsistent values. Don't check the parent.
3270
87ede5a1
KH
32712005-04-25 Kenichi Handa <handa@m17n.org>
3272
3273 * fontset.c (fontset_set): Fix previous change.
3274
a6390474
RS
32752005-04-24 Richard M. Stallman <rms@gnu.org>
3276
3277 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
3278
7fce7dfe
EZ
32792005-04-24 Eli Zaretskii <eliz@gnu.org>
3280
cf1982d9
EZ
3281 * regex.c (re_search_2, re_match_2_internal): Convert second arg
3282 of RE_TRANSLATE to int, to shut up GCC warnings.
3283
7fce7dfe
EZ
3284 * fileio.c (Fcopy_file): Doc fix.
3285 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
3286 not needed.
3287
49ed33c7
YM
32882005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3289
3290 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
3291 (SOME_MACHINE_OBJECTS): Likewise.
3292 (mac.o): Depend on ccl.h.
3293 (macselect.o): New target.
3294
7ec64183
SM
3295 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
3296 Call syms_of_macselect.
49ed33c7
YM
3297
3298 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
3299
7ec64183 3300 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
3301 (QCLIPBOARD): Remove variable.
3302 (syms_of_mac): Don't initialize it.
3303 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
3304 Remove functions.
3305 (syms_of_mac): Don't defsubr them.
3306 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
3307 (QHFS_plus_D, QHFS_plus_C): New variables.
3308 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3309 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
3310 (cfstring_create_normalized): New functions.
3311 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
3312 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3313
7ec64183
SM
3314 * macterm.c (handling_window_update, terminate_flag):
3315 Remove variables.
3316 (do_window_update, do_ae_quit_application, XTread_socket):
3317 Don't use them.
49ed33c7
YM
3318 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
3319 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
3320 (init_service_handler): Move to macselect.c. Remove declarations.
3321 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
3322 (Qapplication, Qabout): New variables.
3323 (syms_of_mac): Initialize them.
3324 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
3325 (Qperform): New variables.
3326 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 3327 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
3328 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
3329 (mac_store_application_menu_event, init_menu_bar): New functions.
3330 [USE_CARBON_EVENTS] (mac_handle_command_event)
3331 (init_command_handler): New functions.
3332 (mac_handle_window_event): Return noErr on window update event.
3333 (do_ae_quit_application): Call mac_store_application_menu_event.
3334 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
3335 and init_menu_bar.
3336
3337 * macterm.h (x_clear_frame_selections): Add extern.
3338
3339 * macselect.c: New file for selection processing on Mac OS.
3340
469bc679
RS
33412005-04-23 Richard M. Stallman <rms@gnu.org>
3342
3343 * fileio.c (Fcopy_file): New arg MUSTBENEW.
3344 (Frename_file): Pass new arg to Fcopy_file.
3345
3346 * window.c (window_size_fixed): Variable deleted.
3347 (syms_of_window): Initialize window-size-fixed to nil.
3348 But don't DEFVAR window_size_fixed.
3349
d379c558
AS
33502005-04-23 Andreas Schwab <schwab@suse.de>
3351
3352 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
3353 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
3354 use lib64 instead of lib.
3355 (_LP64) [_ARCH_PPC64]: Define if not defined.
3356
007d105b
TTN
33572005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
3358
3359 * s/ms-w32.h (HAVE_PWD_H): Define.
3360
b9c15916
KH
33612005-04-22 Kenichi Handa <handa@m17n.org>
3362
3363 * fns.c (copy_sub_char_table): Explicitly copy the default value
3364 of the sub-chartable.
3365
3366 * fontset.c (fontset_set): When a sub-chartable is created,
3367 explicitly sets the defalt value.
3368
1ba52906
KS
33692005-04-22 Kim F. Storm <storm@cua.dk>
3370
3371 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
3372 (Fsafe_plist_get): Rename to Fplist_get.
3373 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
3374 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
3375
3376 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
3377
3378 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
3379 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3380 Use Fplist_get instead of Fsafe_plist_get.
3381
3382 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
3383
e235145c
MB
33842005-04-21 Miles Bader <miles@gnu.org>
3385
3386 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
3387
766c5349
TTN
33882005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
3389
c164a7e6
TTN
3390 * sysdep.c: Remove reference to defunct vms-pwd.h.
3391 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
3392 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
3393
766c5349
TTN
3394 * config.in: Regenerate.
3395
2b048bf5
KH
33962005-04-20 Kenichi Handa <handa@m17n.org>
3397
3398 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
3399 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
3400 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
3401
3402 * alloc.c (make_sub_char_table): Argument changed to initial
3403 value of the slots.
3404
3405 * data.c (Faref): Handle special slots used as default values of
3406 ascii, eight-bit-control, eight-bit-control. Don't ignore a
3407 default value set for a group of characters.
3408 (Faset): Signal an error if IDXVAL is not a valid character code.
3409 Make a sub-chartable with correct initial value.
3410
3411 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
3412 values for ascii, eight-bit-control, eight-bit-graphic.
3413 Don't call Faref with charset-id.
2b048bf5
KH
3414 (Fset_char_table_default): Document how to treat normal character
3415 argument. Handle special slots used as default values of ascii,
3416 eight-bit-control, eight-bit-control. Make a sub chartable if
3417 necessary.
3418
b0a35939
KH
34192005-04-20 Kenichi Handa <handa@m17n.org>
3420
3421 * search.c (boyer_moore): Fix previous change.
3422
98dde726
KS
34232005-04-19 Kim F. Storm <storm@cua.dk>
3424
3425 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
3426 face unless last visible char and first invisible char have the
3427 same face. Also use default face if saved_face_id is undefined.
3428
327a3376
YM
34292005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3430
3431 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
3432 `full_name'.
3433 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
3434 mac_scriptcode member.
3435
3436 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
3437 (syms_of_mac): Don't initialize them.
3438 (Vmac_charset_info_alist): New variable.
3439 (syms_of_mac): Defvar it.
3440 (create_text_encoding_info_alist): New function.
3441 (decode_mac_font_name, mac_to_x_fontname)
3442 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
3443 code the correspondence among XLFD charsets, Mac script codes, and
3444 Emacs coding systems. Use Vmac_charset_info_alist and result of
3445 create_text_encoding_info_alist instead.
3446 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
3447 routines also on Mac OS Classic.
7ec64183
SM
3448 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
3449 Use add_font_name_table_entry.
327a3376
YM
3450 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
3451 specified. Derive unspecified scalable fields from specified one.
3452 (x_list_fonts): Consider Valternate_fontname_alist.
3453 (kDefaultFontSize): Change value from 9 to 12.
3454 (XLoadQueryFont): Get decoded font family, font face, and charset
3455 from x_font_name_to_mac_font_name. Set full name of loaded font.
3456 (mac_unload_font): Free `full_name' member.
3457 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
3458 NULL. Copy full_name member of struct MacFontStruct to that of
3459 struct font_info.
3460
d0636839
KS
34612005-04-19 Kim F. Storm <storm@cua.dk>
3462
5827e9d4
KS
3463 * xdisp.c (handle_stop): Set saved_face_id to current face if
3464 selective_display_ellipsis_p so ellipsis will be shown in same
3465 face as preceding text.
3466 (setup_for_ellipsis): Don't set saved_face_id here.
3467 (next_element_from_display_vector): Default to saved_face_id.
3468
d0636839
KS
3469 * fns.c (Fsafe_get): New function.
3470 (syms_of_fns): Defsubr it.
3471
3472 * lisp.h (Fsafe_get): EXFUN it.
3473
3474 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
3475 loops in case of bad face property lists. Limit number of face
3476 alias lookups to 10 (in case of face alias loops).
3477
e5c78c9d
KS
34782005-04-18 Kim F. Storm <storm@cua.dk>
3479
3480 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
3481 It replaces the corresponding member from struct window, as a
3482 window may now show multiple overlay arrows.
3483 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
3484
3485 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
3486 Compare overlay_arrow_bitmap than overlay_arrow_p members.
3487
3488 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
3489 rather than from window.
3490 (update_window_fringes): Compare overlay_arrow_bitmap rather than
3491 overlay_arrow_p members.
3492 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
3493 if not default.
3494
3495 * window.h (struct window): Remove member overlay_arrow_bitmap.
3496
3497 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
3498
3499 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
3500 Calls changed. Don't check for overlay-arrow-bitmap property here.
3501 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
3502 fringe is present, return Lisp integer for bitmap (or -1 for default).
3503 Fix value of overlay-arrow-bitmap property to be a symbol, use
3504 lookup_fringe_bitmap to parse it.
3505 (display_line): Change call to overlay_arrow_at_row. Store integer
3506 return value as overlay bitmap in row rather than window.
3507 Only show overlay arrow if row displays text, or if no other overlay
3508 arrow is seen in window (if overlay marker is at point-max).
3509
7d603e3f
TTN
35102005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
3511
3512 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
3513
9942fa0c
LK
35142005-04-18 Lute Kamstra <lute@gnu.org>
3515
3516 * lread.c (Vloads_in_progress): Static.
3517 * fns.c (Vloads_in_progress): Remove extern.
3518 (load_in_progress): Add extern.
3519 (Frequire): Use load_in_progress instead of Vloads_in_progress.
3520
999cdb8f
TTN
35212005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
3522
3523 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
3524
3f4413f8
YM
35252005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3526
3527 * macterm.c (XTread_socket): Don't beep on keyboard input even if
3528 no frame is visible.
3529
60ec7b7e
DN
35302005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3531
3532 * term.c (struct keys): Add support for shifted keys.
3533
a8a1c0ee
RS
35342005-04-16 Richard M. Stallman <rms@gnu.org>
3535
3536 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
3537 (set_message): Call with_echo_area_buffer with WHICH = 0.
3538 (set_message_1): Erase the echo area buffer first thing.
3539 (echo_area_display): Don't clear echo_message_buffer.
3540
f3cf04d3
YM
35412005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3542
3543 * Makefile.in (mac.o): Depend on charset.h and coding.h.
3544
3545 * mac.c: Include charset.h and coding.h.
3546 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 3547 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
3548 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
3549
3550 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
3551
3552 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
3553
3554 * macterm.c (x_autoselect_window_p): Remove variable.
3555 (last_window): New variable.
7ec64183
SM
3556 (XTreassert_line_highlight, x_change_line_highlight):
3557 Remove declarations.
f3cf04d3
YM
3558 (mac_focus_changed, x_detect_focus_change): New functions and
3559 declarations.
3560 (XTextExtents16, front_emacs_window): Remove function.
3561 (mac_focus_frame): New function.
3562 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
3563 (mac_check_for_quit_char): Use it instead of front_emacs_window.
3564 (x_scroll_bar_report_motion): Obtain window from control owner.
3565 (x_make_frame_invisible): Set window manager size hint.
3566 (do_mouse_moved): Remove function.
3567 (XTread_socket): Move its contents here. Generate select-window
3568 event on mouse movement if needed. Use x_detect_focus_change on
3569 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
3570 window rectangle when dnd items are dropped.
3571 Don't activate/deactivate root control.
f3cf04d3
YM
3572 (frame_highlight, frame_unhighlight): Activate/deactivate root
3573 control here.
3574 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
3575
3576 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
3577 New extern.
3578
9e5b2858
LT
35792005-04-15 Luc Teirlinck <teirllm@auburn.edu>
3580
3581 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
3582 (lisp): Use it.
3583 (SOME_MACHINE_LISP): Add tooltip.
3584
42c6741e
YM
35852005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3586
7ec64183
SM
3587 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
3588 Don't include TextEncodingConverter.h.
42c6741e
YM
3589 (mac_system_script_code, Vmac_system_locale): New variables.
3590 (syms_of_mac): Defvar them.
3591 (mac_get_system_locale): New function.
3592
7ec64183
SM
3593 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
3594 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 3595 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
3596 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
3597 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
3598
3599 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
3600 TextEncodingConverter.h.
3601
0614c575
ST
36022005-04-13 Steven Tamm <steventamm@mac.com>
3603
7e26f91b
KS
3604 * macterm.c (syms_of_macterm): Remove redundant definition of
3605 mac-pass-control-to-system.
0614c575 3606
203eb0aa
SM
36072005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3608
3609 * window.c (Fset_window_configuration): Be careful when you choose
3610 among several possible points for the new_current_buffer.
3611
a56e6111
YM
36122005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3613
3614 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
3615 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
3616 (Qlanguage_change) [MAC_OS]: New variable.
3617 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 3618 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
3619
3620 * macterm.c (mac_keyboard_text_encoding)
3621 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
3622 (XTread_socket): Store language-change event if keyboard script change
3623 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 3624 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 3625
7e26f91b 3626 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 3627
6695c528
RS
36282005-04-10 Richard M. Stallman <rms@gnu.org>
3629
3630 * emacs.c (standard_args): Rename --bare-bones to --quick.
3631 Add -D aka --basic-display.
3632
3633 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
3634
18e2d91f
RS
36352005-04-09 Richard M. Stallman <rms@gnu.org>
3636
3637 * keymap.c (where_is_internal): Convert a string used as event type
3638 into "(any string)".
3639
3640 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
3641 * fns.c (Vloads_in_progress): Add extern.
3642 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
3643
36442005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
3645
3646 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
3647
1cf21850
LK
36482005-04-09 Lute Kamstra <lute@gnu.org>
3649
3650 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
3651 within the accessible part of the buffer.
3652
bfd93240
KS
36532005-04-09 Kim F. Storm <storm@cua.dk>
3654
3655 * lread.c (readevalloop): Add args START and END as region in
3656 current buffer to read. Callers changed.
3657 When specified, narrow to this region only when reading,
3658 not during eval. Track next point to read from during eval.
3659 Also restore point to "real" buffer position before eval.
3660 (Feval_region): Don't save excursion and restriction here, and
3661 don't narrow to region. Just pass region to readevalloop.
3662 Note: Point is now preserved even when PRINTFLAG is nil.
3663
9ba27690
KS
36642005-04-08 Kim F. Storm <storm@cua.dk>
3665
3666 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
3667
73f0d996
KS
36682005-04-06 Kim F. Storm <storm@cua.dk>
3669
3670 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
3671
369f76bb
YM
36722005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3673
3674 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
3675 (Fmac_get_preference): Doc fix.
3676
203eb0aa
SM
3677 * macfns.c (Fx_create_frame, x_create_tip_frame):
3678 Add "fontset-mac" to fallback font/fontsets.
369f76bb 3679
2ba613a6
KS
36802005-04-04 Kim F. Storm <storm@cua.dk>
3681
4d5ddddc
KS
3682 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
3683
2ba613a6
KS
3684 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
3685 Call it again after autoload.
3686
1673df2e
JD
36872005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3688
3689 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
3690 mallopt.
3691
3692 * ralloc.c (r_alloc_init): Ditto.
3693
41639988
KH
36942005-04-01 Kenichi Handa <handa@m17n.org>
3695
1cf21850
LK
3696 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
3697 (Vascii_eqv_table): Extern them.
41639988
KH
3698
3699 * casetab.c (set_case_table): If standard is nonzero, setup
3700 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
3701
3702 * search.c (looking_at_1): Use current_buffer->case_canon_table,
3703 not DOWNCASE_TABLE.
3704 (string_match_1): Likewise.
3705 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
3706 Vascii_downcase_table.
3707 (fast_string_match_ignore_case): Likewise.
3708 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
3709 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
3710 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
3711 simple_translate.
3712
6ca53601
SM
37132005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3714
3715 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
3716 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
3717 Use XtNtopShadowPixel and XtNbottomShadowPixel.
3718 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
3719 really work and that breaks with some versions of Xaw3d.
3720
fafbb99d 37212005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
3722
3723 * coding.c (syms_of_coding): Fix previous change.
3724
6ca53601
SM
37252005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
3726
3727 * fileio.c (search_embedded_absfilename): Fix last change.
3728
bf762c98
KH
37292005-03-25 Kenichi Handa <handa@m17n.org>
3730
3731 * coding.c (syms_of_coding): Suggest to use set-coding-category in
3732 the docstring of coding-category-list.
3733
f793f885
KS
37342005-03-31 Kim F. Storm <storm@cua.dk>
3735
3736 * keyboard.c (Qmouse_fixup_help_message): New var.
3737 (syms_of_keyboard): Intern and staticpro it.
3738 (show_help_echo): Apply mouse-fixup-help-message to help string.
3739
c364fe19
KS
37402005-03-30 Kim F. Storm <storm@cua.dk>
3741
3742 * xdisp.c (display_line): Allow multiple overlay arrows in window.
3743
c70a4df6
SM
37442005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3745
3746 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
3747 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
3748 (Ffile_name_absolute_p): Use it.
3749 (search_embedded_absfilename): New fun, extracted from
3750 Fsubstitute_in_file_name. Use file_name_absolute_p.
3751 Free the pw data after use.
3752 (Fsubstitute_in_file_name): Use it.
3753 After cutting a prefix, re-check file-name-handler.
3754
6e7d0438
JR
37552005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
3756
6ca53601 3757 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
3758
3759 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
3760 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
3761
65671706
SM
37622005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
3763
3764 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
3765 Use Fexit_minibuffer.
3766 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
3767
0de4dad4
SM
37682005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3769
781da985
SM
3770 * dired.c (Ffile_attributes): Add a missing gcpro.
3771
0de4dad4
SM
3772 * alloc.c (make_number): The arg can be bigger than `int'.
3773 * lisp.h (make_number): Make prototype more precise.
3774
3775 * process.c, dired.c (Vfile_name_coding_system)
3776 (Vdefault_file_name_coding_system):
3777 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
3778 (Vdefault_file_name_coding_system): Remove unused declarations.
3779
ff18668f
JD
37802005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3781
3782 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
3783 if it failed to pop up (Gnome "show pointer on ctrl" option makes
3784 menus fail to pop up).
3785
0de4dad4 37862005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
3787
3788 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 3789 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 3790
8df0ffbe
KS
37912005-03-22 Kim F. Storm <storm@cua.dk>
3792
3793 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
3794 * dispextern.h (lookup_derived_face): Fix prototype.
3795 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
3796
3797 * xdisp.c (handle_single_display_spec): Derive left-fringe and
3798 right-fringe face from fringe face.
3799
3800 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
3801 Derive face from fringe face.
3802
6ca30ba4
JD
38032005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3804
3805 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
3806
d615870a
DK
38072005-03-22 David Kastrup <dak@gnu.org>
3808
3809 * textprop.c (Fnext_char_property_change)
66347da7 3810 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
3811 (Fnext_single_char_property_change)
3812 (Fprevious_single_char_property_change): Check that limit is a
3813 number in strings.
3814 (Fnext_single_char_property_change): Coerce position to integer.
3815 (Fprevious_single_char_property_change): Same here.
3816
32b939ea
TTN
38172005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
3818
3819 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
3820
6027e473
SM
38212005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3822
3823 * frame.c (Fignore_event): Remove.
3824 (syms_of_frame): Don't defsubr it.
3825
3826 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
3827 redundant `ignore-event'.
3828
730f4d72
EZ
38292005-03-19 Eli Zaretskii <eliz@gnu.org>
3830
3831 * unexec.c (write_segment, unexec): Move these functions to avoid
3832 forward references (which cause errors with "gcc -gcoff").
3833
c7f6afd5
JD
38342005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3835
6027e473 3836 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 3837 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 3838
c7f6afd5
JD
3839 * xrdb.c (x_load_resources): Use different char *helv when I18N
3840 is present.
3841
db328182
KH
38422005-03-17 Kenichi Handa <handa@m17n.org>
3843
66347da7 3844 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 3845
211f2210
SM
38462005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3847
3848 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
3849 Use xic_create_fontsetname even for non-Motif menus.
3850 Don't forget to free the fontsetname.
3851
3852 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
3853
c7bd5d57
RS
38542005-03-17 Richard M. Stallman <rms@gnu.org>
3855
3856 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
3857
3858 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
3859 (Fmake_symbolic_link): Use G to read the new file name.
3860
3861 * callint.c (Finteractive): Document G option.
3862 (Fcall_interactively): Implement G option.
3863
3864 * buffer.c (buffer_lisp_local_variables): New function,
3865 broken out from Fbuffer_local_variables.
3866 (clone_per_buffer_values): Use buffer_lisp_local_variables.
3867
888953f1
SM
38682005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3869
3c916d65
SM
3870 * xfns.c (xic_create_fontsetname): Add `motif' argument.
3871 Always return a freshly allocated string.
3872 (xic_create_xfontset): Adjust call.
3873
3874 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
3875 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
3876 (dump_realized_face): Fix warning.
3877
9f9e5275
SM
3878 * emacs.c (Fkill_emacs): YAILOM.
3879
888953f1
SM
3880 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
3881
48502d68
YM
38822005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3883
3884 * mac.c (HASHKEY_TERMINAL): Remove.
3885 (HASHKEY_MAX_NID): New macro.
3886 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
3887 argument.
888953f1 3888 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
3889 (xrm_create_database, xrm_q_put_resource)
3890 (xrm_merge_string_database, xrm_q_get_resource_1)
3891 (xrm_q_get_resource): Change resource database representation so
3892 that it may not use multiple hash tables for a single database.
3893 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
3894
d5161e8c
SM
38952005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
3896
11a646cd
SM
3897 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
3898
3899 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
3900 locale-coding-system, as was already done for WINDOWSNT.
3901
d5161e8c
SM
3902 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
3903 translation for chars in the 0-255 range.
3904
568b6e41
LK
39052005-03-16 Lute Kamstra <lute@gnu.org>
3906
3907 * floatfns.c (Ffloor): Doc fix.
3908
469fb3cf
YM
39092005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3910
3911 * mac.c: Include macterm.h instead of directly including Carbon.h.
3912 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
3913 (Qarray, Qdictionary): New variables.
3914 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3915 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
3916 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
3917 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
3918 in callback for CFDictionaryApplyFunction.
3919 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3920 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3921 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
3922 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
3923 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
3924 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3925 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 3926 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
3927 (parse_binding, parse_component, parse_resource_name, parse_value)
3928 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
3929 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
3930 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
3931 New functions.
469fb3cf
YM
3932
3933 * macfns.c (mac_get_rdb_resource): Remove function.
3934 (x_get_string_resource): Use xrm_get_resource.
3935
3936 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
3937
3938 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
3939 name_list_element.
3940 (mac_make_rdb): Create resource database from preferences and
3941 argument string.
3942 (mac_term_init): Save resource database to cddr part of
3943 name_list_element.
3944
3945 * macterm.h (xrm_merge_string_database, xrm_get_resource)
3946 (xrm_get_preference_database): Add externs.
3947 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3948 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3949 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
3950
3951 * process.c (init_process): Change `#ifdef DARWIN' to `#if
3952 defined (DARWIN) || defined (MAC_OSX)'
3953
3954 * s/darwin.h (DARWIN): Don't define.
3955
6a3fac90
YM
39562005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3957
3958 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
3959 Remove unused variables.
3960 (syms_of_macfns): Don't initialize them. Likewise for
3961 Qface_set_after_frame_default. Defvar and initialize
3962 Vx_window_horizontal_drag_shape.
3963 (x_set_mouse_color): Change mouse pointer shape.
3964 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 3965 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
3966 (hourglass_started): New function (from xfns.c).
3967 (start_hourglass, cancel_hourglass): Put function body in #ifdef
3968 MAC_OSX.
3969 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
3970 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 3971 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
3972
3973 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
3974 Controls.h. Use ThemeCursor instead of CursHandle.
3975
d5161e8c
SM
3976 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
3977 Remove functions and declarations.
3978 (mac_set_colors): Take argument for saving background color.
3979 All callers changed.
6a3fac90
YM
3980 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
3981 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
3982 background color.
3983 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
3984 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
3985 Use SetThemeCursor.
6a3fac90
YM
3986 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
3987 indicator control to the upper-right corner of the window.
3988 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
3989 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
3990 (do_window_update): Update controls after updating content area.
3991 (mac_handle_window_event): Remove unused extern.
3992 (XTread_socket): Check both control handle and control part code
3993 to determine whether a scroll bar is clicked. Activate/deactivate
3994 root control instead of contained scroll bar controls.
3995 (make_mac_terminal_frame): Use ThemeCursor constants.
3996
d5161e8c
SM
3997 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
3998 New member hourglass_control.
6a3fac90 3999 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 4000 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 4001
a7321976
YM
40022005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4003
4004 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 4005 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
4006 laptops, and fn + `enter' on laptops.
4007
f7b758bd
SM
40082005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
4009
4010 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
4011 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
4012 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
4013
4014 * xfns.c (xic_defaut_fontset): New constant.
4015 (xic_create_fontsetname): New function.
4016 Extracted from create_frame_xic. Try to generate a slightly
4017 better fontset.
4018 (xic_create_xfontset): Use it.
4019 (create_frame_xic): Simplify.
4020
dac24db4
SM
40212005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
4022
4023 * fileio.c (Fmake_symbolic_link): Fix last change.
4024
e0402468
RS
40252005-03-11 Richard M. Stallman <rms@gnu.org>
4026
4027 * fileio.c (Frename_file, Fadd_name_to_file)
4028 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
4029 expand the basename of FILE relative to it.
4030
fa815b14
KH
40312005-03-11 Kenichi Handa <handa@m17n.org>
4032
4033 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
4034 before calling setup_coding_system so that autoloading of a coding
4035 system work.
4036
817d354b
JD
40372005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4038
68a505ef
JD
4039 * xfns.c (hourglass_started): New function.
4040
4041 * dispextern.h: Declare hourglass_started.
4042
4043 * keyboard.c (Fexecute_extended_command): Restart hourglass
4044 after call to Fcompleting_read if already started.
4045
817d354b
JD
4046 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
4047 GTK main loop is entered in xterm.c, thus doing the redraw.
4048
b0a6f45c
KS
40492005-03-10 Kim F. Storm <storm@cua.dk>
4050
4051 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
4052
ee5d57b0
KH
40532005-03-08 Kenichi Handa <handa@m17n.org>
4054
4055 * frame.c (x_set_font): Call set_default_ascii_font if an
4056 available font is found.
4057
4058 * fontset.c (set_default_ascii_font): New function.
dac24db4 4059 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
4060
4061 * fontset.h (set_default_ascii_font): Extern it.
4062
f30c4a5c
KS
40632005-03-07 Kim F. Storm <storm@cua.dk>
4064
3fb26a86
KS
4065 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
4066 (clear_image_cache_count): New var.
4067 (redisplay_internal): Don't clear face and image caches in the
4068 middle of redisplay; do it afterwards.
4069
a54595d4
KS
4070 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
4071
f30c4a5c
KS
4072 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
4073 is valid. If not, clear phys_cursor_on_p and return.
4074
3d182f9d
AS
40752005-03-07 Andreas Schwab <schwab@suse.de>
4076
4077 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
4078
85d964de
RS
40792005-03-06 Richard M. Stallman <rms@gnu.org>
4080
4081 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
4082
4083 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
4084 (Feval, Ffuncall): Use CHECK_CONS_LIST.
4085
4086 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
4087
4088 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
4089 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
4090
3ff96c81
JL
40912005-03-05 Juri Linkov <juri@jurta.org>
4092
4093 * emacs.c (USAGE1): Replace Info node name "command arguments"
4094 with "emacs invocation".
4095 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
4096 allow arguments `--color' and `MODE' to be separated by space.
4097 Add --no-blinking-cursor, -nbc.
4098 (standard_args): Add -nbc, --no-blinking-cursor.
4099
64eb0083
TTN
41002005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
4101
4102 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
4103 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
4104 * fileio.c (Fexpand_file_name) [VMS]:
4105 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
4106 * doc.c (munge_doc_file_name) [VMS]: Likewise.
4107 (Fsnarf_documentation): Call munge_doc_file_name.
4108
ad708ae5
TTN
41092005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
4110
4111 * s/vms.h (FILE_SYSTEM_CASE): New macro.
4112 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
4113 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
4114
ba025f6d
YM
41152005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4116
4117 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
4118 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 4119
dac24db4 4120 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
4121
4122 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4123 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 4124 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
4125 (mac_clear_font_name_table): Move extern to macterm.h.
4126
4127 * macfns.c (install_window_handler): Move extern to macterm.h.
4128 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
4129 valid. Don't check !NILP (dir) because it is already checked with
4130 CHECK_STRING.
4131 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 4132 specifying the default location and obtaining the selected filename.
ba025f6d
YM
4133
4134 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4135
2313f861 4136 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
4137 are included via Carbon.h.
4138
dac24db4
SM
4139 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
4140 Define USE_CARBON_EVENTS to 1.
2313f861 4141 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
4142 (x_free_frame_resources): Call remove_window_handler for
4143 non-tooltip windows.
4144 [TARGET_API_MAC_CARBON]: Don't include headers that are included
4145 via Carbon.h.
4146 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
4147 (mac_do_receive_dragUPP): New variables.
4148 (mac_handle_service_event, init_service_handler): Put declarations
4149 and definitions in #ifdef MAC_OSX.
4150 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
4151 drag-and-drop handler functions and register them.
4152 (remove_window_handler): New function.
dac24db4
SM
4153 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
4154 Use fsspec_to_posix_pathname.
ba025f6d
YM
4155 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
4156 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
4157 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
4158 Set default cursors.
ba025f6d
YM
4159 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
4160 init_service_handler or init_quit_char_handler.
4161 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
4162
4163 * macterm.h (install_window_handler, remove_window_handler)
4164 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
4165 (mac_clear_font_name_table): New externs.
ad708ae5 4166
c1558952
TTN
41672005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
4168
4169 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
4170 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
4171 (Fexpand_file_name): Likewise.
4172
fa439170
TTN
41732005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
4174
4175 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
4176 no longer special-case VMS. Add bogus return value.
4177
db2dacf6
KS
41782005-03-02 Kim F. Storm <storm@cua.dk>
4179
4180 * dispextern.h (XASSERTS): Define to 0 if not already defined.
4181 (xassert) [!XASSERTS]: Define dummy version.
4182
0870514c
KS
41832005-03-02 Kim F. Storm <storm@cua.dk>
4184
4185 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
4186 Reported by David Kastrup.
4187
6b640092
KS
41882005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
4189
4190 * xdisp.c (get_next_display_element): Fix control and escape
4191 glyph from display vector.
4192
f4a5a485
SM
41932005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
4194
4195 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
4196
85d964de
RS
41972005-02-27 Richard M. Stallman <rms@gnu.org>
4198
4199 * xdisp.c (fast_find_position): Rename END to BEG.
4200 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
4201
6e8db3ea
JD
42022005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4203
f4a5a485 4204 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
4205 gtk_window_resize and x_wm_set_size_hint.
4206
0f465b55
KS
42072005-02-25 Kim F. Storm <storm@cua.dk>
4208
4209 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
4210
4211 * xdisp.c (init_from_display_pos): Don't read past end of
4212 it->overlay_strings array.
4213
d5fb8dab 42142005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
4215
4216 * buffer.c (syms_of_buffer): Fix typo.
4217
b02c3eed
LK
42182005-02-23 Lute Kamstra <lute@gnu.org>
4219
4220 * buffer.c (Foverlay_buffer): Doc fix.
4221
c8500765
KS
42222005-02-22 Kim F. Storm <storm@cua.dk>
4223
b686dd59
KS
4224 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
4225 and symbol keys in alists and hash tables.
4226
c8500765
KS
4227 * xdisp.c (fast_find_position): Fix search for start of overlay.
4228
81c85b53
KS
42292005-02-21 Kim F. Storm <storm@cua.dk>
4230
4231 * window.c (window_scroll_pixel_based): When scrolling backwards,
4232 handle partial visible line at end of window even when we hit PT.
4233
f4a5a485 42342005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
4235
4236 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
4237
0dd5a842
KS
42382005-02-21 Kim F. Storm <storm@cua.dk>
4239
4240 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
4241 I think those asserts are bogus if buffer contains invisible text
4242 or images.
4243
d5fb8dab 42442005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
4245
4246 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
4247
0fba9f25
KS
42482005-02-20 Kim F. Storm <storm@cua.dk>
4249
4250 * xdisp.c (pos_visible_p): Be sure to move to the specified
4251 position. Always get the full ascent / descent of the
4252 corresponding row, to return reliable rtop and rbot values.
4253 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
4254 Must look one character back, as back_to_previous_line_start
4255 returns position after the newline.
4256 (move_it_vertically_backward): Fix heuristic for when to move further
4257 back in case line_height * 2/3 is larger than window height.
4258 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
4259 as it does not do anything anymore. Add arg current_matrix_p to
4260 use current matrix rather than desired matrix when set.
4261 (try_cursor_movement): Don't scroll to make cursor row fully
4262 visible if cursor didn't move. This avoids unexpected recentering
4263 in case of blinking cursor or accepting process output.
4264 Use current matrix to check cursor row visibility.
4265 (redisplay_window): Fix whether to recenter or move to top in case
4266 cursor line is taller than window height.
4267 (find_first_unchanged_at_end_row): Stop search if we reach a row
4268 which not enabled (instead of abort).
4269
b1c2adc3
KS
42702005-02-18 Kim F. Storm <storm@cua.dk>
4271
c2ee48fb
KS
4272 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
4273 to be nil in a :box attribute value list; customize prints that
4274 as lisp value when no box color is specified.
4275
b1c2adc3
KS
4276 * .gdbinit (pitx, pit): Pretty print display iterator.
4277 (prowx, prow): Pretty print glyph row.
4278 (pcursorx, pcursor): Pretty print a window cursor.
4279 (pwinx, pwin): Pretty print struct window.
4280
f102186f
SM
42812005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4282
4283 * alloc.c (BLOCK_BYTES): Harmless typo.
4284
9b516537
AS
42852005-02-17 Andreas Schwab <schwab@suse.de>
4286
4287 * xfns.c (hack_wm_protocols): Use correct type for last parameter
4288 of XGetWindowProperty to avoid aliasing issues.
4289 (Fx_window_property): Likewise.
4290
4291 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 4292 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
4293
4294 * xterm.c (handle_one_xevent): Use union of struct input_event and
4295 struct selection_input_event to avoid aliasing issues.
4296 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
4297
886b1418
KS
42982005-02-17 Kim F. Storm <storm@cua.dk>
4299
4300 * dispextern.h (enum it_method): New enum.
4301 (GET_FROM_*): Its members.
4302 (struct it): Change member method from function pointer to enum.
4303
4304 * xdisp.c (check_it, init_from_display_pos, handle_stop)
4305 (setup_for_ellipsis, handle_single_display_spec)
4306 (handle_composition_prop, next_overlay_string)
4307 (get_overlay_strings, reseat_1, reseat_to_string)
4308 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
4309 (in_display_vector_p, display_line, get_next_display_element):
4310 Change it->method from function pointer to enum.
4311 (get_next_element): New array to map it->method to function.
4312 (get_next_display_element): Use it.
4313 (set_iterator_to_next): Use switch instead of if/else chain.
4314
99ee2c6a 43152005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
4316
4317 * w32select.c: Summary: Thorough rework to implement Unicode
4318 clipboard operations and delayed rendering.
4319
4320 Drop last_clipboard_text and related code, keep track of
f4a5a485 4321 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
4322
4323 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
4324 (clipboard_owner, modifying_clipboard, cfg_coding_system)
4325 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
4326 (current_coding_system, current_requires_encoding)
f4a5a485
SM
4327 (current_num_nls, current_clipboard_type, current_lcid):
4328 New static variables.
52c7f9ee
JR
4329
4330 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
4331 (render, render_all, run_protected, lisp_error_handler)
4332 (owner_callback, create_owner, setup_config)
f4a5a485
SM
4333 (enum_locale_callback, cp_from_locale, coding_from_cp):
4334 New local functions.
52c7f9ee
JR
4335
4336 (term_w32select, globals_of_w32select): New global functions.
4337
4338 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
4339 clipboard_owner instead. Use delayed rendering and provide
4340 all text formats. Provide CF_LOCALE if necessary.
4341
4342 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
4343 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
4344 available. Force DOS line-ends for decoding.
4345
4346 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
4347
4348 (syms_of_w32select): Init and register new variables.
4349
4350 * w32.h: Add prototypes for globals_of_w32select and
4351 term_w32select. Make the neighboring K&R declarations into
4352 prototypes, too.
4353
4354 * emacs.c: Include w32.h to get function prototypes.
4355 (main): Call globals_of_w32select.
4356
886b1418 4357 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
4358
4359 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
4360
86e61586
KS
43612005-02-16 Kim F. Storm <storm@cua.dk>
4362
4363 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
4364 at end of display vector.
4365
6407f07b
RS
43662005-02-15 Richard M. Stallman <rms@gnu.org>
4367
4368 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
4369 for mode and header lines.
4370
4371 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
4372
4373 * keymap.h (describe_map_tree): Change decl.
4374
4375 * keyboard.c (command_loop_1): Always use safe_run_hooks
4376 to run Qdeferred_action_function.
4377
4378 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
4379 (describe_map, describe_vector): Likewise. When it's 1,
4380 don't omit shadowed bindings, instead mark them as shadowed.
4381
4382 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
4383 for describe_map_tree. Pass 1 for MENTION_SHADOW.
4384
4385 * data.c (Fsetq_default): Allow no arg case.
4386
3bb917bf
KH
43872005-02-14 Kenichi Handa <handa@m17n.org>
4388
4389 * coding.c (encode_coding_string): Always return a unibyte string.
4390 If NOCOPY is nonzero and there's no need of encoding, make STR
4391 unibyte directly.
4392
4393 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
4394 multibyte string, signal an error instead of aborting.
4395
e31d908f
DN
43962005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
4397
4398 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
4399
48e029b6
KS
44002005-02-12 Kim F. Storm <storm@cua.dk>
4401
4402 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
4403
c10bb00a
KS
44042005-02-10 Kim F. Storm <storm@cua.dk>
4405
4406 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
4407 if it moves outside window or it doesn't display text.
4408
9ca0f64a
KS
44092005-02-09 Kim F. Storm <storm@cua.dk>
4410
4411 * undo.c (Fprimitive_undo): Check that undo function does not
4412 switch buffer.
4413
b8d6f4af
JD
44142005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4415
4416 * xselect.c (selection_data_to_lisp_data): For the special case
4417 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
4418 (x_property_data_to_lisp, selection_data_to_lisp_data):
4419 Comment update: data must be array of int for format == 32.
b8d6f4af 4420
3419757d
SM
44212005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4422
4423 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
4424
3a441526
JD
44252005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4426
fc34503b
JD
4427 * xfns.c (Fx_change_window_property): Use long array when format is 32.
4428 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
4429 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
4430 (x_set_tool_bar_lines): Check that width and height is greater than
4431 zero before clearing area.
fc34503b
JD
4432
4433 * xselect.c (x_reply_selection_request): Pass long array to
4434 XChangeProperty so that 64 bit longs are handeled correctly.
4435 (x_get_window_property): If format is 32 and long is bigger than 32
4436 bits convert data from XGetWindowProperty from long array to int array.
4437 (lisp_data_to_selection_data): When the input is a vector and the
4438 format is 32, allocate a long array even if long is bigger than 32 bits.
4439 (x_fill_property_data): Use char, short and long as the man page
4440 for XChangeProperty specifies. This way the data returned is OK for
4441 both 32 and 64 bit machines.
4442 (x_handle_dnd_message): Calculate size correctly even for 64 bit
4443 machines.
4444 (Fx_send_client_event): Undo change from 2005-02-05,
4445 x_fill_property_data now handles that case.
4446
3419757d 4447 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
4448 reason for the approach in the code.
4449
82ec225b
KS
44502005-02-07 Kim F. Storm <storm@cua.dk>
4451
4452 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
4453
ba2c991c
RS
44542005-02-06 Richard M. Stallman <rms@gnu.org>
4455
4456 * eval.c (Frun_hook_with_args)
4457 (Frun_hook_with_args_until_success)
4458 (Frun_hook_with_args_until_failure): Doc fixes.
4459
e120ea40
AS
44602005-02-05 Andreas Schwab <schwab@suse.de>
4461
3419757d 4462 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 4463
31f16913
JD
44642005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4465
4466 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
4467 the longs in a XClientMessageEvent correctly when long is 64 bits.
4468
6082a820
EZ
44692005-02-05 Eli Zaretskii <eliz@gnu.org>
4470
4471 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
4472 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
4473
0e95095b
JD
44742005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4475
4476 * xmenu.c (menubar_selection_callback): Force out GTK buffered
4477 events so the menu event comes after them. This is to prevent sit-for
4478 from exiting on buffered events directly after a menu selection,
4479 lisp code for Help => About Emacs uses sit-for.
4480
4481 * gtkutil.c (create_menus): Connect selection-done event instead of
4482 the deactivate event to deactivate_cb. This will make the last
4483 leave event come before the call to deactivate_cb, so the leave
4484 event does not make sit-for exit after a menu selection.
4485
5bb6a3c1
KS
44862005-02-03 Kim F. Storm <storm@cua.dk>
4487
4488 * dispnew.c (build_frame_matrix_from_leaf_window)
4489 [!GLYPH_DEBUG]: Fix xassert.
4490
4491 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
4492
4493 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4494
e9859e26
YM
44952005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4496
4497 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
4498 the compiling OS version.
4499
4500 * macfns.c (x_create_tip_frame): Likewise.
4501
3419757d 4502 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 4503
4e07258f
RS
45042005-02-03 Richard M. Stallman <rms@gnu.org>
4505
4506 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
4507
4508 * xdisp.c (echo_area_display): Clear echo_message_buffer.
4509
4510 * buffer.c (Fbury_buffer): Doc fix.
4511
4a34b529
ST
45122005-02-02 Steven Tamm <steventamm@mac.com>
4513
7e26f91b 4514 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 4515 xassert being uncondition, but predicate is.
7e26f91b 4516 * dispnew.c (update_window): Fix compile error due to
f6c62d96 4517 xassert being uncondition, but predicate is.
4a34b529 4518
d78f30b8
MB
45192005-02-02 Miles Bader <miles@gnu.org>
4520
4521 * dispextern.h (xassert): Enable unconditionally.
4522
b044278d
KS
45232005-02-02 Kim F. Storm <storm@cua.dk>
4524
4525 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
4526
56072160
KH
45272005-02-02 Kenichi Handa <handa@m17n.org>
4528
4529 * casefiddle.c (casify_object): Enable changing characters of
4530 different byte length.
4531 (casify_region): Fix loop condition, args to replace_range_2, and
4532 update opoint_byte.
4533
f4a5a485 4534 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 4535
5e1674c5
KS
45362005-02-01 Kim F. Storm <storm@cua.dk>
4537
4538 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
4539 stack before calling handle_display_prop.
4540
fb89c330
KS
45412005-01-31 Kim F. Storm <storm@cua.dk>
4542
4543 * undo.c (Qapply): New lisp var.
4544 (syms_of_undo): Intern and staticpro it.
4545 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
4546 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
4547
4548 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
4549
7bf72fa6
JH
45502005-01-30 Jesper Harder <harder@phys.au.dk>
4551
a050b1a9
KS
4552 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
4553 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 4554
03c64f2e
LT
45552005-01-29 Luc Teirlinck <teirllm@auburn.edu>
4556
4557 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 4558 Increase value to 3 Meg.
03c64f2e 4559
49b8b5dc
JD
45602005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4561
4562 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
4563 button events are not received otherwise.
4564
5a92a9eb
RS
45652005-01-29 Richard M. Stallman <rms@gnu.org>
4566
4567 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
4568
4569 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
4570
5c243ee4
SM
45712005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
4572
4573 * keymap.c (access_keymap): YAILOM.
4574
caf533af
KS
45752005-01-27 Kim F. Storm <storm@cua.dk>
4576
4577 * xdisp.c (get_phys_cursor_geometry): New function to calculate
4578 phys cursor position and size for hollow cursor. Position is
4579 aligned with get_glyph_string_clip_rect and ensures that a hollow
4580 cursor is shown, even when the actual glyph is not visible.
4581
4582 * dispextern.h (get_phys_cursor_geometry): Add prototype.
4583
4584 * xterm.c (x_clip_to_row): Ensure y >= 0.
4585 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4586
4587 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4588
4589 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4590
043f7f73
SM
45912005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
4592
4593 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
4594
889f3641
KS
45952005-01-27 Kim F. Storm <storm@cua.dk>
4596
4597 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
4598 glyph, even when row is only partially visible and actual cursor
4599 position is not visible.
4600
29099c2f
RS
46012005-01-24 Richard M. Stallman <rms@gnu.org>
4602
4603 * xterm.c (x_error_quitter): No longer static, and moved after
4604 x_error_handler.
4605
6adb6f01
KS
46062005-01-24 Kim F. Storm <storm@cua.dk>
4607
4608 * xdisp.c (move_it_by_lines): If we move forward after going too
4609 far back, cancel move if end position is same as start position.
4610
4d904fa0
ST
46112005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4612
4613 * dispextern.h (struct glyph_string): New members clip_head and
4614 clip_tail.
6adb6f01 4615
4d904fa0
ST
4616 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
4617 region to the area between clip_head and clip_tail.
4618 (draw_glyphs): Record the area that need to be actually redrawn to
4619 the new variables clip_head and clip_tail when there are
4620 overhangs. Set values of these variables to the corresponding
4621 members in struct glyph_string. Refine x coordinates for
4622 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 4623
4d904fa0
ST
4624 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
4625
4626 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
4627 QDTextBounds.
4628 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 4629 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 4630 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 4631 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 4632
f2417699
KS
46332005-01-24 Kim F. Storm <storm@cua.dk>
4634
6f67f013
KS
4635 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
4636 direction if window height was smaller than next-screen-context-lines.
4637 Now always scroll at least one line in the requested direction.
4638 Ensure that we actually do scroll backwards when requested to do so.
4639
f2417699
KS
4640 * xdisp.c (redisplay_window): Only try to make cursor line fully
4641 visible once (to avoid redisplay loop).
4642
a354b72c
KS
46432005-01-23 Kim F. Storm <storm@cua.dk>
4644
6b3d88f7 4645 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 4646 partially visible rows.
6b3d88f7
KS
4647 (window_scroll_pixel_based): Adapt to that change.
4648
5c20cae2
KS
4649 * window.c (window_scroll_pixel_based): Force moving to next line
4650 if scrolling doesn't move start point, e.g. if looking at tall image.
4651
a354b72c 4652 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
4653 Clear last_height before calling line_bottom_y to get real height.
4654 Fix calculation of y.
a354b72c 4655
d9e7c622
ST
46562005-01-22 Steven Tamm <steventamm@mac.com>
4657
4658 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 4659 (DARWIN): Define.
7e26f91b 4660
d9e7c622
ST
4661 * process.c (init_process): Default process-connection-type to
4662 nil on darwin 6 or less, t if it is 7 or higher. This way the
4663 broken pty behavior is still allowed on darwin 6 for interactive
4664 processes for people that know what they are doing.
4665
d00e399a
KS
46662005-01-22 Kim F. Storm <storm@cua.dk>
4667
4668 * window.c (auto_window_vscroll_p): New boolean.
4669 (syms_of_window): DEFVAR_BOOL it.
4670 (Fpos_visible_in_window_p): Extend return value to include RTOP
4671 and RBOT values if FULLY is nil.
4672 (window_scroll_pixel_based): Adjust vscroll for partially visible
4673 rows if auto_window_vscroll_p is set.
4674 (Fset_window_vscroll): Do nothing if vscroll is not modified.
4675
4676 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
4677 to return number of partially invisible pixels at top and bottom
4678 of the dislay row at POS.
4679
4680 * lisp.h (pos_visible_p): Fix prototype.
4681
f95a20e7
RS
46822005-01-21 Richard M. Stallman <rms@gnu.org>
4683
4684 * fileio.c (Fcopy_file): Doc fix.
4685
eee141ce
JD
46862005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4687
4688 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
4689 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
4690 start of function for older compilers.
4691
6f771c32
RS
46922005-01-20 Richard M. Stallman <rms@gnu.org>
4693
4694 * editfns.c (Fmessage): If arg is "", return "" (as before).
4695
4696 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
4697
4698 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
4699 variable.
4700
a15252fd
ST
47012005-01-20 Steven Tamm <steventamm@mac.com>
4702
043f7f73 4703 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
4704 (init_editfns): Assign new variable operating-system-release
4705 based on call to uname if available.
043f7f73 4706 (get_operating_system_release): Add function to
d00e399a 4707 allow c-level access to operating system release.
a15252fd
ST
4708
4709 * config.h: Regenerated.
4710
043f7f73
SM
4711 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
4712 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
4713 using ptys as '7'.
4714
3d6a4b2d
KS
47152005-01-20 Kim F. Storm <storm@cua.dk>
4716
62fc9b0f
KS
4717 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
4718
c310aca4
KS
4719 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
4720 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
4721
4722 * macterm.c (x_draw_glyph_string_box): Likewise.
4723
4724 * w32term.c (x_draw_glyph_string_box): Likewise.
4725
3d6a4b2d
KS
4726 * indent.c (Fvertical_motion): Temporarily disable selective display.
4727
27c8be45
KS
47282005-01-19 Kim F. Storm <storm@cua.dk>
4729
77db5cf3
KS
4730 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
4731 image property.
4732
27c8be45
KS
4733 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
4734
81f498dc
KS
47352005-01-18 Kim F. Storm <storm@cua.dk>
4736
4737 * xdisp.c (fast_find_position): Backtrack to find first row if
4738 charpos is inside a display overlay that spans multiple lines.
4739
1cdb0707
KH
47402005-01-18 Kenichi Handa <handa@m17n.org>
4741
4742 * coding.c (decode_coding_iso2022): Translate invalid codes if
4743 translation-table is specified.
4744
677159ce
KS
47452005-01-18 Kim F. Storm <storm@cua.dk>
4746
4747 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
4748 change. If handle_display_prop indicates newline is replaced by
4749 image or text, move back to start of relevant overlay or interval
4750 and continue scan from there. Simplify.
4751
977284cc
KS
47522005-01-17 Kim F. Storm <storm@cua.dk>
4753
043f7f73
SM
4754 * dispnew.c (mode_line_string, marginal_area_string):
4755 Fix off-by-one error in search for glyph.
977284cc 4756
e24531b7
KS
47572005-01-16 Kim F. Storm <storm@cua.dk>
4758
4759 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
4760
5ddd7664
ST
47612005-01-16 Steven Tamm <steventamm@mac.com>
4762
043f7f73 4763 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 4764
fc2ff44b
AS
47652005-01-16 Andreas Schwab <schwab@suse.de>
4766
4767 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
4768
50af5100
JD
47692005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4770
4771 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
4772 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
4773
a2d5fca0
JD
47742005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4775
4776 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
4777 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
4778 New flags for readable_events.
043f7f73 4779 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
4780 (tracking_off): Call readable_events and get_input_pending with
4781 flag READABLE_EVENTS_DO_TIMERS_NOW.
4782 (readable_events): Move code from old readable_filtered_events here,
4783 but check new READABLE_EVENTS_* in argument flags instead of previous
4784 two boolean arguments do_timers_now and filter_events.
4785 If we are doing mouse tracking and the mouse moved, return only if
4786 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
4787 (swallow_events): Call get_input_pending with flag
4788 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 4789 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
4790 here. Replace boolean arguments do_timers_now, filter_events with
4791 flags, and pass flags to readable_events. Document new
4792 READABLE_EVENTS_* flags.
4793 (detect_input_pending_ignore_squeezables): New function.
4794 (detect_input_pending_run_timers): Call get_input_pending with flag
4795 READABLE_EVENTS_DO_TIMERS_NOW.
4796 (Finput_pending_p): Call get_input_pending with flags
4797 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
4798
4799 * dispnew.c (update_window, update_frame_1): Replace calls to
4800 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 4801 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
4802 mouse movements.
4803
4804 * lisp.h: Declare detect_input_pending_ignore_squeezables.
4805
42afbcda
ST
48062005-01-15 Steven Tamm <steventamm@mac.com>
4807
e24531b7
KS
4808 * macterm.c (Vmac_use_core_graphics): Declare variable for
4809 mac-allow-anti-aliasing.
4810 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 4811 (mac_draw_string_common): Use core graphics text rendering if
0530c679 4812 mac-allow-anti-aliasing is enabled.
743d0696 4813
42afbcda
ST
4814 * macfns.c (Fx_file_dialog): Save As dialog includes only the
4815 file name in the text box.
4816
9cdd4884
ST
48172005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4818
043f7f73
SM
4819 * macfns.c (x_set_foreground_color, x_set_background_color):
4820 Sync with xfns.c.
9cdd4884
ST
4821 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
4822 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
4823 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
4824
88948d55
KS
48252005-01-14 Kim F. Storm <storm@cua.dk>
4826
4827 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
4828
20d6de82
RS
48292005-01-13 Richard M. Stallman <rms@gnu.org>
4830
4831 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
4832 if Voverriding_terminal_local_map is non-nil.
4833
4834 * keyboard.c (syms_of_keyboard): Doc fix.
4835
f75a592e
KS
48362005-01-13 Kim F. Storm <storm@cua.dk>
4837
4838 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 4839 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 4840
28f94a34
RS
48412005-01-12 Richard M. Stallman <rms@gnu.org>
4842
4843 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
4844 face property for characters that don't specify one.
4845
4846 * fns.c (Frequire): Record in load-history unconditionally.
4847
57a230b1
KS
48482005-01-10 Kim F. Storm <storm@cua.dk>
4849
4850 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
4851
4852 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
4853 Callers changed.
4854 Add support to merge with lisp face id too (if face_name is t).
4855
4856 * xdisp.c (get_next_display_element, next_element_from_display_vector):
4857 Don't lookup lface_id from display table glyphs here; instead use
4858 merge_faces to merge the lisp face id into current face.
4859
8ab2c119
KS
48602005-01-09 Kim F. Storm <storm@cua.dk>
4861
4862 * dispextern.h (struct it): New member dpvec_face_id.
4863 (merge_into_realized_face): Add prototype.
4864
4865 * xfaces.c (merge_into_realized_face): New function. Used to
4866 merge escape-glyph face or face from display table into current face.
4867
4868 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
4869 (syms_of_xdisp): DEFVAR_LISP it.
4870 (escape_glyph_face): Remove var.
4871 (redisplay_window): Don't initialize it.
4872 (setup_for_ellipsis, get_next_display_element):
4873 Set it->dpvec_face_id to -1.
4874 (get_next_display_element): Test Vshow_nonbreak_escape.
4875 Do not setup escape_glyph_face.
4876 Properly merge escape-glyph face or face from display table with
043f7f73
SM
4877 current face for escape and control characters.
4878 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
4879 element of display vector.
4880 (next_element_from_display_vector): If it->dpvec_face_id is set,
4881 use that instead of lface_id from glyph itself.
4882
e0910857
JD
48832005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4884
4885 * xterm.h (struct x_output): New member, toolbar_detached.
4886
4887 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
4888 38.
4889 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
4890 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
4891 (xg_create_tool_bar): Initialize toolbar_detached.
4892 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
4893 toolbar_detached is zero.
4894
ff59904a
JD
48952005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4896
9b85e63d
JD
4897 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
4898 gtk_menu_popup if not for_click, so callbacks for the menu are called.
4899
ff59904a
JD
4900 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
4901 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 4902 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
4903
4904 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 4905 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
4906 XFLOAT_DATA to get extract number from Lisp object.
4907
f9a23a6f
KS
49082005-01-07 Kim F. Storm <storm@cua.dk>
4909
4910 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
4911 Set stop_charpos to current charpos instead of 0.
4912
28f94a34
RS
49132005-01-06 Nick Roberts <nickrob@snap.net.nz>
4914
4915 * xdisp.c (Fformat_mode_line): First arg now required.
4916
a6fffcdc
ST
49172005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4918
4919 * macterm.c (XLoadQueryFont): Correctly handle 0 size
4920 font widths that are returned from some Japanese fonts.
4921
c35b0c6b
KS
49222005-01-06 Kim F. Storm <storm@cua.dk>
4923
4924 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
4925 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
4926 (destroy_fringe_bitmap): Set fringe_faces element to nil.
4927 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
4928 fringe_faces array and init elements to nil.
4929 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
4930 non-persistent face id.
4931 (mark_fringe_data): New function for GC.
4932
4933 * alloc.c (mark_fringe_data): Declare extern.
4934 (Fgarbage_collect): Call mark_fringe_data.
4935
4936 * alloc.c (overrun_check_free): Invalidate freed memory if
4937 XMALLOC_CLEAR_FREE_MEMORY is defined.
4938
e0e76ab9
ST
49392005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4940
4941 * macfns.c: Include sys/param.h.
4942 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
4943 and function.
4944 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
4945 of filename string. Set event callback function when creating
4946 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 4947 of apple event descriptor record if failed to create it.
e0e76ab9
ST
4948
4949 * macterm.c: Include sys/param.h.
4950 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
4951 kEventWindowUpdate.
4952 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
4953 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
4954 of FSSpec from apple event descriptor record.
4955 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
4956 size of filename string.
4957 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
4958 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
4959 file dialog is in action.
043f7f73
SM
4960 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
4961 Reject only when there are no filename items. Set background color
e0e76ab9 4962 before (un)highlighting the window below the dragged items.
2313f861 4963 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 4964
043bc640
KH
49652005-01-05 Romain Francoise <romain@orebokech.com>
4966
4967 * term.c (encode_terminal_code): Fix buffer size computation.
4968
dd496df6
RS
49692005-01-04 Richard M. Stallman <rms@gnu.org>
4970
4971 * xdisp.c (Fformat_mode_line): Doc fix.
4972
026cdede
SM
49732005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4974
4975 * alloc.c (refill_memory_reserve): Move.
4976 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
4977 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
4978
d57c7572
RS
49792005-01-03 Richard M. Stallman <rms@gnu.org>
4980
4981 * window.c (window_scroll_pixel_based): Don't correct preserve_y
4982 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
4983
b14f868c
JR
49842005-01-03 Jason Rumney <jasonr@gnu.org>
4985
4986 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
4987 fontp->space_width to FONT_WIDTH so they are valid.
4988
4989 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 4990 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
4991 their appropriate values.
4992
4993 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4994 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
4995 fontp->space_width.
4996
e169f939
ST
49972005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4998
4999 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
5000 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
5001 metrics for max and min bounds.
5002 (x_load_font): Correctly calculate average font width metrics.
5003
19996af4
RS
50042005-01-02 Richard M. Stallman <rms@gnu.org>
5005
5006 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
5007
42d02da0
JD
50082004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5009
5010 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
5011
1db7dd46
RS
50122004-12-31 Richard M. Stallman <rms@gnu.org>
5013
b437860a
RS
5014 * xdisp.c (setup_for_ellipsis, get_next_display_element):
5015 Set it->ellipsis_p to 1 or 0.
5016 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 5017 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
5018 (cursor_row_p): If PT's at the end of the ellipsis the row
5019 ends within, don't display cursor on this row.
5020
5021 * dispextern.h (struct it): New element ellipsis_p.
5022 (struct glyph_row): New element ends_in_ellipsis_p.
5023
5024 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
5025 position if we're reading from something other than the buffer.
5026
1db7dd46
RS
5027 * window.c (window_scroll_pixel_based): Only look at
5028 Vscroll_preserve_screen_position if the old PT can't be kept.
5029 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5030
1225f637
KS
50312004-12-30 Kim F. Storm <storm@cua.dk>
5032
5033 * xdisp.c (get_line_height_property): New function extracted from
5034 original calc_line_height_property.
5035 (calc_line_height_property): Rework. Handle t and (nil . ratio).
5036 (x_produce_glyphs): Use them to handle line-height and
5037 line-spacing according to new height spec.
5038 (Qtotal): Remove.
33b2f4ea 5039 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 5040
c243063e
KH
50412004-12-30 Kenichi Handa <handa@m17n.org>
5042
5043 * fileio.c (Finsert_file_contents): Don't use
5044 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 5045 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
5046
5047 * fontset.h (struct font_info): New members space_width and
5048 average_width.
5049
5050 * frame.h (struct frame): New member space_width.
5051 (FRAME_SPACE_WIDTH): New macro.
5052
5053 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
5054
5055 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5056 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 5057 fontp->space_width.
043f7f73 5058 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
5059 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
5060
5061 * xdisp.c (x_produce_glyphs): Calculate tab width by
5062 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
5063
456e761b
ST
50642004-12-29 Sanghyuk Suh <han9kin@mac.com>
5065
5066 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 5067 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 5068
188577ce
LT
50692004-12-29 Luc Teirlinck <teirllm@auburn.edu>
5070
5071 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
5072
99ec74b9
RS
50732004-12-29 Richard M. Stallman <rms@gnu.org>
5074
5075 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
5076
30c92fab
ST
50772004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5078
5079 * macfns.c (install_window_handler): Modify extern to return OSErr
5080 value.
5081 (mac_window): Handle return value of install_window_handler.
5082
5083 * macterm.c (reflect_byte): Remove function.
5084 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
5085 Lookup table instead.
5086 (mac_do_font_lists): Simplify calculation of the longest
5087 nonspecial string.
5088 (init_mac_drag_n_drop): Remove function and declaration.
5089 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
5090 init_mac_drag_n_drop.
5091 (mac_do_track_drag): New function and declaration.
5092 (install_window_handler): Return OSErr value.
043f7f73
SM
5093 (install_window_handler) [TARGET_API_MAC_CARBON]:
5094 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 5095 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
5096 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
5097 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 5098
4b982924
DN
50992004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
5100
5101 * coding.c (decode_coding): Fix previous change.
5102
93fdf45f
RS
51032004-12-28 Richard M. Stallman <rms@gnu.org>
5104
5105 * xdisp.c (back_to_previous_visible_line_start):
5106 Don't call handle_display_prop.
5107
5bdca8af
DN
51082004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
5109
5110 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
5111 (decode_coding_emacs_mule, encode_coding_emacs_mule)
5112 (decode_coding_iso2022, encode_designation_at_bol)
5113 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
5114 (decode_coding): Constify arguments and local vars.
5115
33385c6f
JD
51162004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5117
5118 * xmenu.c (popup_get_selection): Only pop down dialogs
5119 on C-g and Escape.
95bdef2e 5120 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
5121 (create_and_show_popup_menu, create_and_show_dialog):
5122 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 5123
b15325b2
ST
51242004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5125
5126 * dispextern.h: Change HAVE_CARBON to MAC_OS.
5127 (struct glyph_string): Likewise.
a2c7e69a 5128
b15325b2
ST
5129 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
5130 mac_initialize.
a2c7e69a 5131
b15325b2
ST
5132 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
5133 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 5134
b15325b2 5135 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 5136
b15325b2
ST
5137 * frame.c (x_set_frame_parameters, x_report_frame_params)
5138 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
5139 (x_set_border_width, Vdefault_frame_scroll_bars):
5140 Change HAVE_CARBON to MAC_OS.
a2c7e69a 5141
b15325b2
ST
5142 * image.c [MAC_OS]: Include sys/stat.h.
5143 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
5144 QuickTimeComponents.h.
a2c7e69a 5145
b15325b2
ST
5146 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
5147 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 5148 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
5149 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
5150 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
5151 (mac_clear_font_name_table): Add extern.
5152 (Fmac_clear_font_name_table): New defun.
5153 (syms_of_mac): Defsubr it.
5154 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
5155 [MAC_OSX] (select_and_poll_event): New function.
5156 [MAC_OSX] (sys_select): Use it.
5157 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
5158 [MAC_OSX && SELECT_USE_CFSOCKET]
5159 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
5160 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
5161 RunLoop for simultaneously monitoring two kinds of inputs, window
5162 events and process outputs, without periodically polling.
a2c7e69a 5163
b15325b2
ST
5164 * macfns.c (mac_initialized): Remove extern.
5165 (stricmp): Put in #if 0. All callers changed to use xstricmp in
5166 xfaces.c.
043f7f73
SM
5167 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
5168 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
5169 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
5170 (mac_get_rdb_resource): New function (from w32reg.c).
5171 (x_get_string_resource): Use it.
5172 (install_window_handler): Add extern.
5173 (mac_window): New function.
043f7f73
SM
5174 (Fx_create_frame): Use it instead of make_mac_frame.
5175 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
5176 (Fx_open_connection, Fx_close_connection): New defuns.
5177 (syms_of_macfns): Defsubr them.
043f7f73
SM
5178 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
5179 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
5180 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
5181 (x_create_tip_frame): Don't call ShowWindow.
5182 (Fx_show_tip): Call ShowWindow.
5183 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
5184 TARGET_API_MAC_CARBON'.
5185 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
5186 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 5187
043f7f73 5188 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
5189 (Window): Typedef to WindowPtr and move outside `#if
5190 TARGET_API_MAC_CARBON'.
5191 (XSizeHints): New struct.
a2c7e69a 5192
b15325b2
ST
5193 * macterm.c (x_update_begin, x_update_end)
5194 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
5195 frame.
5196 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5197 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
5198 (construct_mouse_click): Put in #if 0.
5199 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
5200 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
5201 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
5202 (activate_scroll_bars, deactivate_scroll_bars)
5203 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
5204 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
5205 if the position is neither user-specified nor program-specified.
5206 (x_free_frame_resources): Free size_hints.
043f7f73 5207 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
5208 (mac_clear_font_name_table): New function.
5209 (mac_do_list_fonts): Initialize font_name_table if needed.
5210 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
5211 around mac_do_list_fonts.
5212 (mac_unload_font): New function.
5213 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
5214 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
5215 and definitions with #if TARGET_API_MAC_CARBON.
5216 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
5217 (install_window_handler): Add decl.
5218 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
5219 window. Use UpdateControls. Get the rectangle that should be
5220 updated and restrict the target of expose_frame to it.
043f7f73 5221 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
5222 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
5223 (do_zoom_window): Don't use x_set_window_size.
5224 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
5225 (install_window_handler): New function.
5226 [!USE_CARBON_EVENTS] (mouse_region): New variable.
5227 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
5228 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
5229 GetEventDispatcherTarget inside BLOCK_INPUT.
5230 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
5231 Update mouse_region when mouse is moved.
5232 (make_mac_frame): Remove.
043f7f73
SM
5233 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
5234 Initialize mouse pointer shapes. Change values of f->left_pos and
5235 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
5236 Don't call ShowWindow.
b15325b2
ST
5237 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
5238 Vinvocation_name and Vsystem_name.
5239 (mac_make_rdb): New function (from w32term.c).
5240 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
5241 already been opened. Don't pass argument to
5242 mac_initialize_display_info. Don't set dpyinfo->height/width.
5243 Add entries to x_display_list and x_display_name_list.
5244 (x_delete_display): New function.
5245 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
5246 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
5247
b15325b2
ST
5248 * macterm.h (check_mac): Add extern.
5249 (struct mac_output): New member size_hints.
5250 (FRAME_SIZE_HINTS): New macro.
5251 (mac_unload_font): Add extern.
a2c7e69a 5252
b15325b2 5253 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 5254
1d1c7e75 5255 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 5256
92d2947b
RS
52572004-12-27 Richard M. Stallman <rms@gnu.org>
5258
043f7f73 5259 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
5260 (syms_of_buffer): Don't defsubr it.
5261
5262 * process.c (list_processes_1): Set undo_list instead
5263 of calling Fbuffer_disable_undo.
5264
043f7f73 5265 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 5266 single_display_prop_string_p.
043f7f73 5267 (single_display_spec_intangible_p): Rename from
92d2947b 5268 single_display_prop_intangible_p.
043f7f73 5269 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
5270 Rewritten to be easier to understand.
5271
a2c7e69a 5272 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
5273 and variables get just NAME.
5274
5275 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
5276
5277 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
5278 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
5279 (Qdefvar): Var deleted.
5280 (syms_of_eval): Don't initialze it.
5281
5282 * lread.c (syms_of_lread) <load-history>: Doc fix.
5283
9f6fcdc5
JD
52842004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5285
5286 * xmenu.c (popup_get_selection): Pop down on C-g.
5287 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
5288 pops down menu on C-g.
5289 (xdialog_show): If dialog popped down and no button in the dialog was
5290 pushed, call Fsignal to quit.
5291 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
5292 Fsignal to quit.
5293
1d1c7e75 5294 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
5295
5296 * gtkutil.c (xg_initialize): Install bindings for C-g so that
5297 dialogs and menus pop down.
5298
d8ca23a0
KH
52992004-12-27 Kenichi Handa <handa@m17n.org>
5300
5301 * coding.c (code_convert_region): Fix calculation of `ratio'.
5302
857ae68b
JD
53032004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5304
133c0116
JD
5305 * gtkutil.c (update_frame_tool_bar): Make the value of
5306 tool-bar-button-margin control margins of images in tool bar.
5307
857ae68b
JD
5308 * alloc.c (check_depth): New variable.
5309 (overrun_check_malloc, overrun_check_realloc): Only add
5310 overhead and write check pattern if check_depth is 1 (to handle
5311 recursive calls). Increase/decrease check_depth in entry/exit.
5312 (overrun_check_free): Only check for overhead if check_depth is 1.
5313 Increase/decrease check_depth in entry/exit.
5314
bd55c35c
JD
53152004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5316
5317 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
5318 before touching input_available_clear_time, to avoid accessing it
5319 from multiple threads.
5320
66354420
JR
53212004-12-23 Jason Rumney <jasonr@gnu.org>
5322
5323 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
5324 of JPEG library.
5325
55f4edbc
RS
53262004-12-22 Richard M. Stallman <rms@gnu.org>
5327
5328 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
5329
5330 * lisp.h (Vundo_outer_limit): Fix decl.
5331
5332 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
5333 Uses changed.
5334 (syms_of_undo): Initialize appropriately.
5335 (truncate_undo_list): If it's nil, there's no limit.
5336
7a0ea9e3
KH
53372004-12-22 Kenichi Handa <handa@m17n.org>
5338
5339 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
5340
fda2922a
RS
53412004-12-21 Richard M. Stallman <rms@gnu.org>
5342
5343 * eval.c (unwind_to_catch): Clear immediate_quit.
5344
5345 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
5346 specially as `\ ' and `\-'.
5347
5348 * keyboard.c (kbd_buffer_store_event_hold):
5349 In the code for while-no-input, handle immediate_quit.
5350
5351 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
5352 Call that at the very start.
043f7f73 5353 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
5354 (syms_of_alloc): Don't define undo-limit,
5355 undo-strong-limit and undo-outer-limit here.
5356
5357 * undo.c (truncate_undo_list): Return void.
5358 Take just one argument, the buffer.
5359 Make it current, and inhibit recursive GC.
5360 Access and update the undo list directly; return void.
5361 Refer to the undo...limit variables directly.
5362 Test undo_outer_limit only after counting the whole current command.
5363 When it's exceeded, call the function in undo-outer-limit-function.
5364 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
5365 (Vundo_outer_limit_function): New variable.
5366 (syms_of_undo): Define undo-limit, undo-strong-limit
5367 and undo-outer-limit here, and undo-outer-limit-function.
5368 Doc fixes.
5369
5370 * lisp.h (truncate_undo_list): Update decl.
5371
53722004-12-21 Piet van Oostrum <piet@cs.uu.nl>
5373
5374 * fileio.c (Fread_file_name): Delete duplicates in
5375 file-name-history when history_delete_duplicates is true.
5376
68c69027
ST
53772004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5378
5379 * macterm.c (mac_do_list_fonts): Fix memory leak
5380
134579f2
RS
53812004-12-20 Richard M. Stallman <rms@gnu.org>
5382
5383 * regex.c (re_match_2_internal) <symend, wordend>:
5384 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
5385
fbe6152f
ST
53862004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5387
043f7f73
SM
5388 * macterm.c (endif, x_font_name_to_mac_font_name):
5389 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
5390 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
5391 quickly finding a specific font without needing regexps.
5392
fecad3f6
JD
53932004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5394
333f1b6f
JD
5395 * syssignal.h: Declare main_thread.
5396 (SIGNAL_THREAD_CHECK): New macro.
5397
5398 * keyboard.c (input_available_signal): Move thread checking code
5399 to macro SIGNAL_THREAD_CHECK and call that macro.
5400 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
5401
5402 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
5403
5404 * emacs.c: Define main_thread.
5405 (main): Initialize main_thread.
5406 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
5407 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
5408
5409 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
5410
5411 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
5412
5413 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
5414
043f7f73
SM
5415 * process.c (send_process_trap, sigchld_handler):
5416 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
5417
5418 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
5419
5420 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
5421
fecad3f6
JD
5422 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
5423 returning when xg_ignore_gtk_scrollbar is true.
5424
2a84c6da
KS
54252004-12-14 Kim F. Storm <storm@cua.dk>
5426
5427 * keyboard.c (read_char): Save and restore echo_string when
5428 handling input method.
5429
d9c1ce9d
RS
54302004-12-13 Richard M. Stallman <rms@gnu.org>
5431
5432 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
5433
5434 * keyboard.c (Vthrow_on_input): New variable.
5435 (syms_of_keyboard): Defvar and initialize it.
5436 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
5437
5438 * lisp.h (QUIT): Check for Vthrow_on_input.
5439 (Vthrow_on_input): Declare it.
5440
a6495ed5
KS
54412004-12-13 Kim F. Storm <storm@cua.dk>
5442
5443 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
5444 vector.
5445
24a0e22f
RS
54462004-12-12 Richard M. Stallman <rms@gnu.org>
5447
5448 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
5449
5450 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
5451 (Ftry_completion): Really use outer `zero'; eliminate inner one.
5452
d6d31e57
KH
54532004-12-12 Kenichi Handa <handa@m17n.org>
5454
5455 * term.c (encode_terminal_code): Fix previous change.
5456
6f8ffb88
SM
54572004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
5458
fb6f5cbf
SM
5459 * keyboard.c (handle_async_input): Remove pthread mutex handling.
5460 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
5461
6f8ffb88
SM
5462 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
5463 in macro arguments.
5464
5465 * minibuf.c (Ftry_completion, Fall_completions): Don't use
5466 XFASTINT blindly.
5467
5468 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
5469
c83c9f9d
JD
54702004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5471
2f25767f
JD
5472 * w32term.c (x_calc_absolute_position): Remove calculation of
5473 difference between inner and outer window. Don't subtract difference
5474 for left and top calculations.
5475
c83c9f9d
JD
5476 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
5477 for left and top calculations. Remove call to x_real_positions.
24a0e22f 5478 [Bug report by Drew Adams in November]
c83c9f9d
JD
5479 (x_check_expected_move): Do not set change_gravity to 1 when calling
5480 x_set_offset.
5481
cc1caa4e
RS
54822004-12-08 Richard M. Stallman <rms@gnu.org>
5483
5484 * xdisp.c (get_next_display_element): Use `escape-glyph' for
5485 control chars and escaped octal codes.
5486 (Qescape_glyph): New variable.
5487 (syms_of_xdisp): Initialize it.
5488 (escape_glyph_face): New variable.
5489 (redisplay_window): Initialize it.
5490
e0e30823
RS
54912004-12-07 Paul Eggert <eggert@cs.ucla.edu>
5492
5493 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
5494 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
5495
f415cacd
JD
54962004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5497
cf435f39
JD
5498 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
5499 reset_malloc_hooks.
5500
6f8ffb88
SM
5501 * keyboard.c (handle_async_input, input_available_signal):
5502 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 5503
f415cacd
JD
5504 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
5505
043f7f73 55062004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
5507
5508 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
5509
5510 * config.in: Regenerate.
5511
ded997c1
JD
55122004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5513
453a4f1b
JD
5514 * xmenu.c (Fx_popup_menu): Correct documentation about position.
5515 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
5516 if not given by a mouse click to correspond with x-popup-menu
5517 documentation.
5518
9a38524c
JD
5519 * config.in: Regenerate.
5520
aa477689
JD
5521 * gtkutil.c: Include signal.h and syssignal.h.
5522 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
5523
5524 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
5525 new variables main_thread and alloc_mutex,
5526 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
5527 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
5528 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
5529 (UN)BLOCK_INPUT.
5530 (emacs_blocked_free, emacs_blocked_malloc)
5531 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
5532 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
5533 (reset_malloc_hooks): New function.
5534
5535 * lisp.h: Declare reset_malloc_hooks.
5536
5537 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
5538
5539 * keyboard.c: Conditionally include pthread.h
6f8ffb88 5540 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
5541 thread, block signal, send signal to main thread and return.
5542
ded997c1 5543 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 5544 Set current folder in file chooser if default_filename is a directory.
ded997c1 5545
c72b0edd
SM
55462004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
5547
5548 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
5549 Remove redundant correctness checks.
5550 (regex_compile): Fix up error codes for \{..\} expressions.
5551
c721eee5
RS
55522004-12-05 Richard M. Stallman <rms@gnu.org>
5553
5554 * regex.c (regex_compile): Fix end-of-pattern case for space.
5555
d8f96db8
ST
55562004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5557
6108209e
KS
5558 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
5559 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 5560 crashes with invalid characters.
6108209e
KS
5561 * macmenu.c (add_menu_item): Use it.
5562 * image.c (image_load_quartz2d): Likewise.
5563 * macfns.c (x_set_name, x_set_title): Likewise.
5564 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
5565 creating them each time for labels.
d8f96db8 5566
ab67e8b6
RS
55672004-12-02 Richard M. Stallman <rms@gnu.org>
5568
5569 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
5570 don't use it here.
5571
5572 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
5573 (interactive_p): Skip Scalled_interactively_p frames
5574 like Sinteractive_p frames.
b8217ea6 5575 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
5576
5577 * data.c (Fmake_variable_buffer_local): Doc fix.
5578 (Fmake_local_variable): Doc fix.
5579
5580 * insdel.c (insert_from_string_before_markers)
5581 (insert_from_string): Don't modify buffer on empty insertion.
5582
5583 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
5584
f86bdc80
ST
55852004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5586
5587 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
5588 menu text as UTF8 fails.
5589
1cae6d39
KS
55902004-12-01 Kim F. Storm <storm@cua.dk>
5591
5592 * alloc.c: Add commentary for last change.
5593 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
5594 sizeof(size_t) != 4.
5595 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
5596 Use them. Also clear header and trailer of freed memory.
5597 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
5598 (string_overrun_cookie): Rename from string_overrun_pattern.
5599 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
5600
77ea0764
AS
56012004-12-01 Andreas Schwab <schwab@suse.de>
5602
5603 * lisp.h: Declare string_to_multibyte.
5604
2d5cd4e6
KH
56052004-12-01 Kenichi Handa <handa@m17n.org>
5606
5607 * w32console.c (w32con_write_glyphs): Decide coding here.
5608 Adjusted for the change of encode_terminal_code.
5609
5610 * term.c (encode_terminal_code): Don't make it "static".
5611
25a0994a
KH
56122004-11-30 Kenichi Handa <handa@m17n.org>
5613
19b1f29a 5614 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 5615 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
5616 characters at once, and return a pointer to the result of encoding.
5617 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
5618 (insert_glyphs): Likewise.
5619 (term_init): Initialize encode_terminal_bufsize to 0.
5620
5621 * coding.c (Vcode_conversion_workbuf_name): New variable.
5622 (syms_of_coding): Initialize and staticpro it.
5623 (set_conversion_work_buffer): New function.
5624 (run_pre_post_conversion_on_str): Use it.
5625 (run_pre_write_conversin_on_c_str): New function.
5626
5627 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
5628
fc7a70cc
ST
56292004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5630
5631 * keyboard.c: Don't undef SIGIO
5632 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
5633 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
5634 (macfns.o): Don't depend on ccl.h.
5635 * macfns.c (mac_frame_parm_handlers): Set handlers for
5636 Qleft_fringe and Qright_fringe.
5637 * macterm.c (mac_fill_rectangle_to_pixmap)
5638 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
5639 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
5640 Put in #if 0.
5641 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
5642 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
5643 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
5644 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5645 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
5646 XDrawImageString. Always draw background and foreground separately.
5647 (x_draw_image_foreground): Use clipping instead of computing the
5648 intersection rectangle.
5649 (x_draw_image_glyph_string): Don't draw an image with mask to a
5650 pixmap.
5651 (x_redisplay_interface): Set flush_display_optional member to 0.
5652 (XTread_socket): Correctly reset the TEConverter
5653 object.
5654
fc368889
KS
56552004-11-30 Kim F. Storm <storm@cua.dk>
5656
5657 * lisp.h: New defines to enable buffer overrun checking.
5658 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
5659 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
5660
5661 * alloc.c: Add more checks for buffer overruns.
5662 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
5663 xmalloc_overrun_check_trailer, overrun_check_malloc)
5664 overrun_check_realloc, overrun_check_free): Add.
5665 (GC_STRING_EXTRA, string_overrun_pattern): Add.
5666 (check_sblock, allocate_string_data, compact_small_strings):
5667 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
5668 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
5669 (check_string_free_list): Add.
5670 (allocate_string, sweep_strings): Call check_string_free_list.
5671
5672 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
5673 XMALLOC_OVERRUN_CHECK to avoid crash during load.
5674
0af8cfe1
KS
56752004-11-29 Kim F. Storm <storm@cua.dk>
5676
5677 * fns.c (concat): Use SAFE_ALLOCA.
5678
77220eeb
SM
56792004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
5680
5681 * sysdep.c (emacs_write): Don't use QUIT.
5682
a778cf63
KH
56832004-11-29 Kenichi Handa <handa@m17n.org>
5684
5685 * buffer.c (init_buffer): Set current_buffer->directory to a
5686 multibyte string made by string_to_multibyte.
5687
77220eeb 5688 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 5689
e3177e43
AS
56902004-11-27 Andreas Schwab <schwab@suse.de>
5691
5692 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
5693
5694 * s/gnu-linux.h: Enable no-op gcpros on ia64.
5695 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
5696
77220eeb
SM
5697 * filelock.c (lock_file_1): Call get_boot_time early.
5698 Increase buffer size.
e3177e43 5699
ca5e6fef
EZ
57002004-11-27 Eli Zaretskii <eliz@gnu.org>
5701
5702 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
5703 is not defined.
5704
e2811828
KS
57052004-11-27 Kim F. Storm <storm@cua.dk>
5706
5707 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
5708 marker out of doc string.
5709
7a262394
SM
57102004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
5711
5712 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
5713 which was not mentioned in the log.
5714
f33cc5a9
KS
57152004-11-26 Kim F. Storm <storm@cua.dk>
5716
048bb03f
KS
5717 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
5718 angle bitmaps at top/bottom line.
5719
52eb0373 5720 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
5721 set it when it->method is set to next_element_from_display_vector.
5722 (setup_for_ellipsis): Add LEN argument. Callers changed.
5723 Set it->saved_face_id.
5724 (get_next_display_element): Use loop instead of recursion.
5725 Set it->saved_face_id. Combine duplicate code for ctr chars.
5726 (next_element_from_display_vector): Do not set it->saved_face_id.
5727 (next_element_from_ellipsis): Use setup_for_ellipsis.
5728
670e8906
EZ
57292004-11-26 Eli Zaretskii <eliz@gnu.org>
5730
5731 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
5732 prevent compiler warnings.
5733
275464e7
SM
57342004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
5735
1bf0e604
SM
5736 * keyboard.c (command_loop_1): Print a message describing the key
5737 the user just pressed when this key has no binding.
5738
275464e7
SM
5739 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
5740 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
5741
5742 * lread.c (readchar): Check QUIT when `getc' is interrupted.
5743
261b01c6
RS
57442004-11-24 Richard M. Stallman <rms@gnu.org>
5745
5746 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
5747
5748 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
5749
a5bd504e
KS
57502004-11-24 Kim F. Storm <storm@cua.dk>
5751
5752 * xdisp.c (move_it_in_display_line_to, display_line):
5753 Restore saved_face_id also when truncate-lines or hscrolled.
5754
255e4140
JD
57552004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5756
5757 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
5758 x-use-old-gtk-file-dialog.
5759
5760 * xfns.c: Define x_use_old_gtk_file_dialog.
5761 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
5762 outside ifdef USE_GTK.
5763
cab27d04
SM
57642004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
5765
5766 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
5767 Don't use XFASTINT blindly.
5768
5769 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
5770
5771 * indent.c (skip_invisible): Avoid non-idempotent side-effects
5772 in macro arguments.
5773
5774 * keymap.c (Flookup_key): Check INTEGERP before XINT.
5775
5776 * lread.c (oblookup): Don't use XFASTINT blindly.
5777
5778 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
5779 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
5780
11e0be49
KS
57812004-11-23 Kim F. Storm <storm@cua.dk>
5782
4d721114
KS
5783 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
5784 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
5785
11e0be49
KS
5786 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
5787 signal_p is zero and face name is unknown.
5788 (Fx_list_fonts): Don't signal error in lookup_named_face.
5789 (Fface_font): Signal error in lookup_named_face.
5790 (ascii_face_of_lisp_face): Likewise.
5791
5792 * dispextern.h (lookup_named_face): Fix prototype.
5793
5794 * xdisp.c (handle_single_display_prop): Don't signal error in
5795 lookup_named_face for unknown fringe face name.
5796 (highlight_trailing_whitespace): Don't signal error in
5797 lookup_named_face if trailing-whitespace face unknown.
5798 (calc_line_height_property): Don't signal error in
5799 lookup_named_face if specified face name is unknown.
5800
5801 * fringe.c (update_window_fringes): Show top row indicator if
5802 window has header-line. Don't show arrow at bob and eob
5803 if the boundary indicators are not used.
5804 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
5805
5806 * window.c (set_window_buffer): Clear display_error_modiff.
5807
0960a582
KS
58082004-11-22 Kim F. Storm <storm@cua.dk>
5809
5810 * fringe.c (update_window_fringes): Provide sensible fall-back
5811 value for non-nil indicate-buffer-boundaries setting.
5812
b0e9bb28
MR
58132004-11-22 Markus Rost <rost@ias.edu>
5814
5815 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
5816
d0bce91e
SM
58172004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
5818
5819 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
5820
e1814672
KS
58212004-11-21 Kim F. Storm <storm@cua.dk>
5822
b7fd3518
KS
5823 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
5824
5825 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
5826 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5827
5828 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
5829 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5830
5831 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
5832 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5833
d0bce91e
SM
5834 * xdisp.c (move_it_in_display_line_to, display_line):
5835 Restore saved_face_id if overflow-newline-into-fringe is enabled and
5836 line is continued before or in middle of element from display vector.
f01d4d05 5837
f1a61389
KS
5838 * indent.c (Fvertical_motion): Fix last change. Use another
5839 method to detect if iterator moved too far ahead after reseat.
5840
e1814672
KS
5841 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
5842 expand matrix width for overflow in zero-width area.
5843 (append_glyph, append_composite_glyph, produce_image_glyph)
5844 (append_stretch_glyph): Use it to avoid loop in redisplay.
5845 (note_mode_line_or_margin_highlight): Don't let help-echo from
5846 string override help-echo from image map.
5847
2dafe1c9
LT
58482004-11-20 Luc Teirlinck <teirllm@auburn.edu>
5849
d0bce91e 5850 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
5851 * callint.c (Fcall_interactively): Ditto.
5852
fd6866c8 58532004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
5854
5855 * minibuf.c (Fminibuffer_complete_and_exit):
5856 Fixup the case of the completed value, for case-indep completion.
5857
dedbac89
RS
58582004-11-20 Richard M. Stallman <rms@gnu.org>
5859
fd6866c8
RS
5860 * lisp.h (Fread_from_minibuffer): Add arg in decl.
5861
9d00469f 5862 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 5863 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 5864
dedbac89 5865 * search.c (Vsearch_spaces_regexp):
d0bce91e 5866 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 5867
2f672bb5
TTN
58682004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
5869
5870 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
5871
f31a9a68
RS
58722004-11-19 Richard M. Stallman <rms@gnu.org>
5873
5874 * search.c (Vsearch_whitespace_regexp): New variable.
5875 (syms_of_search): Defvar it.
5876 (compile_pattern_1): Call re_set_whitespace_regexp with it.
5877 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
5878 is non-nil.
6de891db
RS
5879 (struct regexp_cache): New element whitespace_regexp.
5880 (syms_of_search): Initialize whitespace_regexp elements.
5881 (compile_pattern): Compare whitespace_regexp elements.
5882 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
5883
5884 * regex.c (regex_compile): Substitute whitespace_regexp
5885 for spaces, if it is nonzero.
5886 (whitespace_regexp): New variable.
5887 (re_set_whitespace_regexp): New function.
5888
cbc34cb3
KS
58892004-11-19 Kim F. Storm <storm@cua.dk>
5890
5891 * indent.c (Fvertical_motion): Fix last change.
5892
b54a7539
KS
58932004-11-18 Kim F. Storm <storm@cua.dk>
5894
5895 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
5896 Instead, move back again if reseating moves too far ahead.
5897
58982004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
5899
5900 * xdisp.c (message3): Call clear_message.
5901
5ff504fe
KS
59022004-11-17 Kim F. Storm <storm@cua.dk>
5903
5904 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
5905
5ae53dcf
JD
59062004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5907
d0bce91e 5908 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 5909
6abf3a27 5910 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
5911 (x_menu_set_in_use): Also set popup_activated_flag.
5912
5ff504fe 5913 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
5914 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
5915
52eb0373 5916 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 5917
ee31cd78
RS
59182004-11-16 Richard M. Stallman <rms@gnu.org>
5919
6abf3a27
SM
5920 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
5921 Use map-keymap-internal to implement that.
ee31cd78
RS
5922
5923 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
5924
6abf3a27
SM
59252004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
5926
5927 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
5928 a window before using XWINDOW.
5929
5930 * window.c (make_window, Fselect_window, make_dummy_parent)
5931 (save_window_save):
5932 * frame.c (make_frame):
5933 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
5934
5935 * lisp.h (NILP): Use EQ rather than XFASTINT.
5936
b4d61105
KS
59372004-11-16 Kim F. Storm <storm@cua.dk>
5938
6abf3a27 5939 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 5940
b4d61105
KS
5941 * indent.c (Fvertical_motion): Fix last change. Only reseat when
5942 moving backwards.
5943
59442004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
5945
5946 * dispextern.h: Extern reseat_at_previous_visible_line_start.
5947
ab5b02b0
KH
59482004-11-16 Kenichi Handa <handa@m17n.org>
5949
5950 * xdisp.c (display_mode_element): Fix previous change (calculate
5951 end position of substring to display correctly).
5952
c482cf97
KS
59532004-11-16 Kim F. Storm <storm@cua.dk>
5954
5955 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
5956 Reported by Andrew M. Scott.
5957
9f89426b
KS
59582004-11-15 Kim F. Storm <storm@cua.dk>
5959
5960 * fns.c (Fsafe_plist_get): New defun.
5961 (syms_of_fns): Defsubr it.
5962
5963 * lisp.h (Fsafe_plist_get): Add EXFUN.
5964
5965 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
5966 Use Fsafe_plist_get.
5967 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5968 Fix image map element parsing. Use Fsafe_plist_get.
5969
27418463
RS
59702004-11-15 Richard M. Stallman <rms@gnu.org>
5971
5972 * xdisp.c (get_next_display_element): Fix previous change.
5973
a130b901
JD
59742004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5975
ef614e04
JD
5976 * window.c (shrink_windows): Handle special case of one window left
5977 when trying to shrink the final reminder. Grow windows if
5978 total_removed is less than total_shrink.
5979
a130b901
JD
5980 * xmenu.c (pop_down_menu): Remove global variable current_menu,
5981 extract pointer from arg with XSAVE_VALUE.
46303896
KS
5982 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
5983 Construct arg to record_unwind_protect with make_save_value.
a130b901 5984
d9a03ad2
RS
59852004-11-13 Richard M. Stallman <rms@gnu.org>
5986
5987 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
5988 (get_next_display_element): Fix previous change to apply only to \n.
5989
5990 * indent.c (Fvertical_motion): Scan to PT from start of line to
5991 make iterator consistent.
5992
5993 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
5994
b3935289
JD
59952004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5996
5997 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
5998
5999 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
6000 Record unwind with clean_up_file_dialog.
6001
78819ebb
KS
6002 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
6003 Declare.
b3935289
JD
6004
6005 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
6006
af89e871
JD
60072004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6008
457a8155 6009 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 6010 (xg_file_sel_destroy): Remove.
46303896
KS
6011 (xg_file_response_cb, pop_down_file_dialog)
6012 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 6013 New functions.
6abf3a27
SM
6014 (xg_get_file_with_chooser, xg_get_file_with_selection):
6015 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
6016 Move common code to xg_get_file_name. Return widget created.
6017 (xg_get_file_name): Set name, transient for, modal and destroy
6018 with parent here. Connect response signal to xg_file_response_cb,
6019 connect delete-event to gtk_true. Record pop_down_file_dialog
6020 for unwind. Do event loop and call x_menu_wait_for_event in loop.
6021 (xg_create_widget): Make dialogs modal.
6022
af89e871
JD
6023 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
6024 Lisp_Object.
6025 (popup_get_selection): Move unwind protect ...
6026 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6027 Move destroy of widget to pop_down_menu.
6028 (popup_widget_loop): Move unwind protect ...
6029 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6030 Move destroy of widget to pop_down_menu.
6031 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 6032 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
6033 x_mouse_leave and grabbed = 0 to pop_down_menu.
6034
5596fbf1
KS
60352004-11-13 Kim F. Storm <storm@cua.dk>
6036
6037 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
6038 (syms_of_xdisp): DEFVAR_BOOL it.
6039 (make_cursor_line_fully_visible, try_cursor_movement)
6040 (try_window_id): Use it.
6041
b9de078a
KS
60422004-11-12 Kim F. Storm <storm@cua.dk>
6043
381f7091
KS
6044 * dispextern.h (struct glyph_row): New member extra_line_spacing.
6045 (struct it): New member max_extra_line_spacing.
6046 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
6047 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
6048 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
6049 part of last line is only extra line spacing (so the text on the
52eb0373 6050 line is fully visible). Use helper macros.
381f7091
KS
6051 Add W arg (to use them). All callers changed.
6052 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
6053 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
6054
6abf3a27
SM
6055 * window.c (window_scroll_pixel_based, Frecenter):
6056 Use move_it_vertically_backward directly.
381f7091
KS
6057 (Frecenter): Fix calculation of new start pos for negative arg.
6058 Before, the new start pos was sometimes chosen too far back, so
6059 the last line became only partially visible, and thus would be
6060 either only semi-visible or automatically scrolled to the middle
6061 of the window by redisplay.
6062
6063 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
6064 (move_it_vertically_backward): Don't recure to move further back.
6065 (move_it_vertically): Remove superfluous condition.
6066 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 6067 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
6068 (display_tool_bar_line): Clear row->extra_line_spacing.
6069 (try_scrolling): Use move_it_vertically_backward directly.
6070 (redisplay_window): Likewise.
6071 (compute_line_metrics): Set row->extra_line_spacing.
6072 (display_line, display_string): Likewise.
6073 (x_produce_glyphs): Update it->max_extra_line_spacing.
6074
b9de078a
KS
6075 * xmenu.c (pop_down_menu): Return nil.
6076
c3438661
JD
60772004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6078
6079 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 6080 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 6081 to handle timers.
df00f436
JD
6082 (popup_widget_loop): Add argument do_timers.
6083 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
6084 do_timers to popup_widget_loop.
c3438661
JD
6085 (xmenu_show): Call XMenuActivateSetWaitFunction so that
6086 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 6087 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 6088 popup_get_selection.
f1d1cd24
JD
6089 (pop_down_menu): New function.
6090 (popup_get_selection, popup_widget_loop): Unwind protect to
6091 pop_down_menu.
6092 (popup_widget_loop): Add argument widget.
6093 (create_and_show_popup_menu, create_and_show_dialog): Pass new
6094 argument widget to popup_widget_loop.
c3438661 6095
32e2fb04
SM
60962004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6097
6098 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
6099
0faf6806
KS
61002004-11-09 Kim F. Storm <storm@cua.dk>
6101
6102 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
6103 Fix various comments referring to XEvents instead of input events.
6104 (x_queue_event): Fix format strings.
6105 (x_stop_queuing_selection_requests): Likewise.
6106
6107 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
6108 (pint2hrstr): Add extra braces to silence compiler.
6109
6110 * print.c (print_object): Fix format string.
6111
6112 * lread.c (read1): Fix next_char matching.
6113
6114 * lisp.h (Fdelete): Add EXFUN.
6115 (replace_range_2): Add prototype.
6116
6117 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
6118
6119 * intervals.h (NULL_INTERVAL_P): Add separate version when
6120 ENABLE_CHECKING is not defined to silence compiler.
6121 (compare_string_intervals): Add prototype.
6122
6123 * fringe.c (destroy_fringe_bitmap): Fix return type.
6124 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
6125
6126 * emacs.c (Fdump_emacs): Fix format string.
6127
6128 * doc.c: Include <ctype.h>.
6129 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
6130
6131 * data.c (store_symval_forwarding): Remove unused variables.
6132
6133 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
6134
16bf4e32
JD
61352004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6136
6137 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
6138 to ${OLDXMENU}.
6139
cdb805a9
KS
61402004-11-09 Kim F. Storm <storm@cua.dk>
6141
6142 * process.c (Fmake_network_process): Remove kludge for interrupted
6143 connects on BSD. If connect is interrupted, just close socket and
6144 start over rather than sleeping and retry with same socket.
6145
d87a9ab8 61462004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 6147
a8b16c80
JD
6148 * .cvsignore: Add buildobj.lst.
6149
d87a9ab8
JD
6150 * doc.c: New variable Vbuild_files.
6151 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 6152 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
6153 that are in Vbuild_files.
6154 (syms_of_doc): Defvar Vbuild_files.
6155
6156 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
6157 and w32*.o.
6158 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 6159 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
6160
6161 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
6162 is linked.
6163
b6709e77
KS
61642004-11-09 Kim F. Storm <storm@cua.dk>
6165
6166 * fringe.c (update_window_fringes): Update fringe bitmaps if
6167 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
6168 also update previous row to get rid of misc. artifacts.
6169
bae9677d
KS
61702004-11-08 Kim F. Storm <storm@cua.dk>
6171
6172 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 6173 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 6174
3f8ea68c
EZ
61752004-11-08 Eli Zaretskii <eliz@gnu.org>
6176
6177 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
6178 Don't include <sys/time.h> explicitly.
6179 Include <stdio.h> unconditionally, not just on MacOS.
6180
a653f812
KH
61812004-11-08 Kenichi Handa <handa@m17n.org>
6182
6183 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
6184 don't pay attention to '\' before '*'.
6185 (fontset_pattern_regexp): Change the meaning of the second arg.
6186 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
6187 (check_fontset_name): Try NAME as literal at first, and if it
6188 failes, try NAME as pattern.
6189
c37caf9d
JD
61902004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6191
6192 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
6193
b72915a7
AS
61942004-11-07 Andreas Schwab <schwab@suse.de>
6195
78819ebb
KS
6196 * lisp.h (Fmsdos_downcase_filename): Declare.
6197 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
6198 * fileio.c: Likewise.
6199
238a44a8
JD
62002004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6201
6202 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
6203 comparisons with integers instead of Lisp_Object address.
6204 (Fmsdos_set_keyboard): Declare argument allkeys.
6205
6206 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
6207
78819ebb 6208 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
6209 int/Lisp_Object mixup.
6210
6211 * fileio.c: Ditto.
6212
31141c13
ST
62132004-11-06 Steven Tamm <steventamm@mac.com>
6214
6215 * editfns.c: Need to include sys/time.h before resource.h on darwin.
6216
f28c1bd9
RS
62172004-11-06 Richard M. Stallman <rms@gnu.org>
6218
6219 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
6220
6221 * xfaces.c (merge_named_face): GCPRO the face_name in the
6222 named_merge_point struct that we make.
6223 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
6224
6225 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
6226 before deciding whether to inactivate mark.
6227
59dede22
EZ
62282004-11-06 Lars Brinkhoff <lars@nocrew.org>
6229
6230 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
6231 * editfns.c (Fget_internal_run_time): New function.
6232 (syms_of_data): Defsubr it.
6233 * fns.c (sxhash): As far as possible, merge calculation of
6234 hash code for symbols and strings.
59dede22 6235
27540e81
EZ
62362004-11-06 Eli Zaretskii <eliz@gnu.org>
6237
6238 * frame.c (syms_of_frame): Fix the example in the doc string.
6239
df470e3b
JD
62402004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6241
6242 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
6243
6244 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
6245 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 6246
4cc8522c
LT
62472004-11-05 Luc Teirlinck <teirllm@auburn.edu>
6248
6249 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
6250
d4a42098
KS
62512004-11-05 Kim F. Storm <storm@cua.dk>
6252
a8490886
KS
6253 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
6254
d4a42098
KS
6255 * fileio.c (Ffile_modes): Doc fix.
6256 (auto_save_1): Check for Ffile_modes nil value.
6257
36a2b04c
KS
62582004-11-05 Kim F. Storm <storm@cua.dk>
6259
6260 * xselect.c (struct selection_event_queue, selection_queue)
6261 (x_queue_selection_requests, x_queue_event)
6262 (x_start_queuing_selection_requests)
6263 (x_stop_queuing_selection_requests): Add new queue for selection
6264 input events to replace previous XEvent queue in xterm.c.
6265 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
6266 (x_reply_selection_request): Adapt to new queue.
6267 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
6268 (x_handle_selection_request, x_handle_selection_clear): Make static.
6269 (x_handle_selection_event): New function. May queue selection events.
6270 (wait_for_property_change_unwind): Use save_value instead of cons.
6271 Clear property_change_reply_object.
6272 (wait_for_property_change): Abort if already waiting.
6273 Use save_value instead of cons for unwind data.
6274 (x_handle_property_notify): Skip events already arrived, but don't
6275 free them, as "arrived" field is checked by wait_for_property_change,
6276 and it will be freed by unwind or explicit unexpect_property_change.
6277 (x_get_foreign_selection): Add to new queue.
6278 (receive_incremental_selection): Don't unexpect wait_object when done
6279 as it has already been freed by previous wait_for_property_change.
6280
6281 * xterm.h (x_start_queuing_selection_requests)
6282 (x_stop_queuing_selection_requests, x_handle_selection_request)
6283 (x_handle_selection_clear): Remove prototypes.
6284 (x_handle_selection_event): Add prototype.
6285
6286 * xterm.c (handle_one_xevent): Don't queue X selection events
6287 here, it may be too late if we start queuing after we have already
6288 stored some selection events into the kbd buffer.
6289 (struct selection_event_queue, queue, x_queue_selection_requests)
6290 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
6291 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
6292 (x_catch_errors_unwind): Block input around final XSync.
6293
6294 * keyboard.h (kbd_buffer_unget_event): Add prototype.
6295
6296 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
6297 (kbd_buffer_unget_event): New function.
6298 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
6299 and use x_handle_selection_event.
6300 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
6301
9c3ad9e1
JD
63022004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6303
6304 * xselect.c (TRACE3): New debug macro.
6305 (x_reply_selection_request): Use it.
6306 (receive_incremental_selection): In call to TRACE0, the name of
6307 a symbol is in xname.
6308
a33b89de
KS
63092004-11-05 Kim F. Storm <storm@cua.dk>
6310
6311 * fontset.c (fontset_pattern_regexp): Use unsigned char.
6312
a872928c
JD
63132004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6314
88208bb8
JD
6315 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
6316
78819ebb 6317 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
6318
6319 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 6320 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
6321 * xfns.c (syms_of_xfns): ... to here.
6322
a872928c
JD
6323 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
6324 it doesn't start with /.
6325
b912921c
KH
63262004-11-04 Kenichi Handa <handa@m17n.org>
6327
6328 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
6329 treat it as a literal character.
6330
c524d9a6
KS
63312004-11-03 Kim F. Storm <storm@cua.dk>
6332
6333 * .gdbinit (ppt): New function.
6334
8cfd0f36
JD
63352004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6336
a11e1dce
JD
6337 * xterm.c (x_window_to_scroll_bar): Only call
6338 xg_get_scroll_id_for_window if toolkit scroll bars are used.
6339
8cfd0f36
JD
6340 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
6341 of save.
6342
a93563fd
AS
63432004-11-02 Andreas Schwab <schwab@suse.de>
6344
6345 * window.c (Fscroll_right): Fix last change.
6346
2b2d59d8
KS
63472004-11-02 Kim F. Storm <storm@cua.dk>
6348
6349 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
6350
63512004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6352
6353 * callproc.c (Fcall_process): Block input around vfork.
6354
ca28104d
KS
63552004-11-02 Kim F. Storm <storm@cua.dk>
6356
6357 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
6358 (syms_of_eval): Defsubr it.
6359
29bb7127
RS
63602004-11-02 Richard M. Stallman <rms@gnu.org>
6361
6362 * insdel.c (replace_range_2): New function.
6363
6364 * casefiddle.c (casify_region): Handle changes in byte-length
6365 using replace_range_2.
6366
6367 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
6368
b6189c3b 6369 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
6370 Subtract 1 from pos when checking previous newline for invisibility.
6371
6372 * window.c (window_scroll_pixel_based): Update preserve_y
6373 for header line if any.
6374 (Fscroll_left, Fscroll_right): Don't call interactive_p;
6375 use a new second argument instead.
6376
6377 * eval.c (Fcall_interactive_p): New function.
6378 (interactive_p): Don't test INTERACTIVE here.
6379 (Finteractive_p): Doc fix.
6380
6381 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
6382
b6189c3b 63832004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
6384
6385 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 6386 comparing font names.
a3fe4aaf 6387
2a00cdb4
JD
63882004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6389
f9d64bb3
JD
6390 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
6391 Fx_file_dialog if only directories should be read.
6392
6393 * lisp.h: Fx_file_dialog takes 5 parameters.
6394
32e2fb04
SM
6395 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
6396 Add parameter only_dir_p.
f9d64bb3
JD
6397 In Motif version, don't put DEFAULT_FILENAME in filter part of the
6398 dialog, just text field part. Do not add DEFAULT_FILENAME
6399 to list of files if it isn't there.
6400 In GTK version, pass only_dir_p parameter to xg_get_file_name.
6401
32e2fb04
SM
6402 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
6403 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
6404 a save dialog, add option kNavDontConfirmReplacement, change title
6405 to "Enter name", change text for save button to "Ok".
6406
32e2fb04
SM
6407 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
6408 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
6409
6410 * gtkutil.c (xg_get_file_with_chooser)
6411 (xg_get_file_with_selection): New functions, only defined ifdef
6412 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
6413 respectively.
6414 (xg_get_file_name): Add parameter only_dir_p.
6415 Call xg_get_file_with_chooser or xg_get_file_with_selection
6416 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
6417 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
6418
6419 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
6420
2a00cdb4
JD
6421 * config.in: Rebuild (added HAVE_GTK_FILE_*).
6422
f6749d5d
KS
64232004-11-01 Kim F. Storm <storm@cua.dk>
6424
32e2fb04
SM
6425 * process.c (connect_wait_mask, num_pending_connects):
6426 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 6427 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
6428 (IF_NON_BLOCKING_CONNECT): New helper macro.
6429 (wait_reading_process_output): Only declare and use local vars
6430 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 6431
1a99fe1a
JR
64322004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
6433
6434 * w32term.c (x_scroll_run): Delete region objects after use.
6435
fcdb28b4
JD
64362004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6437
495ef86b
JD
6438 * xmenu.c: Add prototypes for forward function declarations.
6439 (popup_get_selection): Remove parameter do_timers, remove call to
6440 timer_check.
32e2fb04
SM
6441 (create_and_show_popup_menu, create_and_show_dialog):
6442 Remove parameter do_timers from call to popup_get_selection.
495ef86b 6443
12e6566a
JD
6444 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
6445 tool_bar_items and assign the result to f->tool_bar_items if
6446 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
6447 tool_bar_items to assignment of result.
6448
fcdb28b4
JD
6449 * atimer.c (alarm_signal_handler): Do not call set_alarm if
6450 pending_atmers is non-zero.
6451
1a1a0c4c
KS
64522004-10-31 Kim F. Storm <storm@cua.dk>
6453
6454 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
6455
a36f1680
JW
64562004-10-28 Will <will@glozer.net>
6457
1d1c7e75 6458 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
6459 key via a 'mac-option-modifier' variable.
6460
32e2fb04 64612004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
6462
6463 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
6464 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
6465 (x_handle_selection_request, x_handle_selection_clear)
6466 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
6467
4f71c13f
RS
64682004-10-28 Richard M. Stallman <rms@gnu.org>
6469
6470 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
6471
6472 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
6473
068f3848
SM
64742004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
6475
6476 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
6477 comment-starter over a 1-char one.
6478
4660a9e3
RS
64792004-10-27 Richard M. Stallman <rms@gnu.org>
6480
6481 * xdisp.c (get_next_display_element): In mode lines,
6482 treat newline and tab like other control characters.
6483
6484 * editfns.c (Fmessage): Doc fix.
6485
6486 * indent.c (vmotion): When moving up, check the newline before.
6487 Make prevline an int, not a Lisp_Object.
6488
233f3db6
KS
64892004-10-27 Kim F. Storm <storm@cua.dk>
6490
6491 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
6492 Only allocate info and discarded tables once.
6493
6494 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
6495 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
6496 (SAFE_FREE): Test it to determine if we need to unwind to free.
6497 Remove size arg. All users changed.
6498 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
6499
1442465d
JD
65002004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6501
6502 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
6503 (xg_destroy_widgets): Rename from remove_from_container.
6504 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
6505 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
6506 instead of remove_from_container.
6507 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
6508 (free_frame_tool_bar): Add comment.
6509
6510 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
6511 is not NULL before strcmp.
6512
c8636435
KS
65132004-10-26 Kim F. Storm <storm@cua.dk>
6514
6515 * callint.c (Fcall_interactively): Add 'U' code to get the
6516 up-event discarded by a previous 'k' or 'K' argument.
6517
5629f29b
DK
65182004-10-26 David Kastrup <dak@gnu.org>
6519
6520 * buffer.c (syms_of_buffer): Fix a few typos.
6521
4f2f546e
JD
65222004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6523
6524 * xsmfns.c: Put empty line between comment and function body.
6525 Use two spaces before comment end.
6526
fc1062f5
KH
65272004-10-25 Kenichi Handa <handa@m17n.org>
6528
6529 * fontset.c (fontset_pattern_regexp): Optimize for the case that
6530 PATTERN is full XLFD.
6531
be13f5e5
KH
65322004-10-24 Kenichi Handa <handa@m17n.org>
6533
6534 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
6535
6536 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
6537 (regex_compile): Return REG_ERANGEX if appropriate.
6538
d0ee2ed3
KH
65392004-10-22 Kenichi Handa <handa@m17n.org>
6540
6541 * editfns.c (Ftranslate_region_internal): New function.
6542 (syms_of_editfns): Defsubr it.
6543
63ea8ea5
JD
65442004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6545
6546 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
6547
9ba27690 65482004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 6549
068f3848
SM
6550 * xterm.h (x_output): New member `xic_base_fontname'.
6551 (FRAME_XIC_BASE_FONTNAME): New macro.
6552 (xic_free_xfontset): Declare.
c27ed90a 6553
068f3848
SM
6554 * xfns.c (xic_create_xfontset): Share fontsets between frames
6555 based on base_fontname.
6556 (xic_free_xfontset): New function.
6557 (free_frame_xic): Use it.
6558 (xic_set_xfontset): Ditto.
c27ed90a 6559
068f3848 6560 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
6561
6562
59508699
JR
65632004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
6564
6565 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
6566
dede2792
JD
65672004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6568
3aca2078
JD
6569 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
6570 XSync.
6571
dede2792
JD
6572 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
6573 New variables and constant.
6574 (main): Calculate heap_bss_diff. If we are dumping and the
6575 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
6576 and exec ourself again.
6577 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
6578 print a warning.
6579
6580 * lastfile.c: Make my_endbss and my_endbss_static available on all
6581 platforms.
6582
6583 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
6584 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
6585
1dc5ba01
LT
65862004-10-19 Luc Teirlinck <teirllm@auburn.edu>
6587
6588 * data.c (Flocal_variable_if_set_p): Doc fix.
6589
950090be
JR
65902004-10-19 Jason Rumney <jasonr@gnu.org>
6591
6592 * w32.c (init_environment): Set emacs_dir correctly when running
6593 emacs from the build directory.
6594
8550b998
RS
65952004-10-19 Richard M. Stallman <rms@gnu.org>
6596
6597 * editfns.c (Fdelete_and_extract_region):
6598 If region is empty, return null string.
6599
08dedea6
JD
66002004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6601
1dc5ba01 6602 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 6603 and canon_width.
068f3848 6604 (xg_frame_cleared): Remove.
08dedea6 6605
068f3848
SM
6606 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
6607 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
6608 (xg_create_scroll_bar): Put an event box widget between
6609 the scroll bar widget and the edit widget.
6610 (xg_show_scroll_bar): Show the parent widget (the event box).
6611 (xg_remove_scroll_bar): Destroy parent (the event box) also.
6612 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
6613 Move the parent (the event box) widget inside the fixed widget.
6614 Move window clear to xterm.c.
6615
068f3848 6616 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 6617
08dedea6 6618 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
6619 (x_scroll_bar_create, XTset_vertical_scroll_bar):
6620 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
6621 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
6622
8550b998 66232004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
6624
6625 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 6626
84338890
JD
66272004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6628
6629 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
6630 gdk_window_clear and move gdk_window_process_all_updates after
6631 clear so events are sent to the X server in correct order.
6632
6e1b0d8c
KH
66332004-10-18 Kenichi Handa <handa@m17n.org>
6634
6635 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
6636 comparing font names.
8550b998 6637 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
6638 (list_fontsets): Likewise.
6639
6640 * search.c (fast_string_match_ignore_case): New function.
6641
6642 * lisp.h (fast_string_match_ignore_case): Extern it.
6643
345e75a8
KS
66442004-10-17 Kim F. Storm <storm@cua.dk>
6645
6646 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
6647 than bitmap if there is not left fringe.
6648 (get_overlay_arrow_glyph_row): Also used on windows system.
6649 (display_line): Display overlay string if no left fringe.
6650
be13cbb7
JR
66512004-10-16 Jason Rumney <jasonr@gnu.org>
6652
6653 * w32fns.c (w32_font_match): Encode font name being matched.
6654
c2e2ede7
RS
66552004-10-16 Richard M. Stallman <rms@gnu.org>
6656
6657 * window.c (Fspecial_display_p): Doc fix.
6658
043f7f73 66592004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
6660
6661 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
6662 Don't ignore menus, because where-is-internal already does it for us.
6663
699a0392
KS
66642004-10-15 Kim F. Storm <storm@cua.dk>
6665
b3c7a89b
KS
6666 * xdisp.c (redisplay_window): Only update fringes and vertical
6667 border on window frames.
699a0392 6668
4e382b0f
AS
66692004-10-14 Andreas Schwab <schwab@suse.de>
6670
6671 * m/ia64.h (DATA_SEG_BITS): Don't define.
6672
329a7be2
KS
66732004-10-14 Kim F. Storm <storm@cua.dk>
6674
6675 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 6676 in some X versions.
329a7be2 6677
982241b1
SM
66782004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
6679
6680 * fns.c (map_char_table): Add missing gcpros.
6681
9238467d
SM
66822004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
6683
6684 * keymap.c (get_keymap): An autoload form is not a keymap.
6685
6686 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
6687
4440e3ca
KS
66882004-10-13 Kim F. Storm <storm@cua.dk>
6689
7cfdabde
KS
6690 * callproc.c (Fcall_process): Simplify handling of display arg.
6691 Resume `display_on_the_fly' once a coding system is determined.
6692
4440e3ca
KS
6693 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
6694
1c8dec6a
KS
66952004-10-12 Kim F. Storm <storm@cua.dk>
6696
6697 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
6698 caller, such as call-process, is not going to poll for input.
6699 (calc_line_height_property): Handle case where it->object is nil.
6700
6701 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
6702
170b174c
KH
67032004-10-12 Kenichi Handa <handa@m17n.org>
6704
9238467d
SM
6705 * xdisp.c (get_next_display_element):
6706 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
6707 chars in octal in unibyte buffer.
6708
b583964c
KS
67092004-10-12 Kim F. Storm <storm@cua.dk>
6710
6711 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
6712 are no ordinary bindings.
6713
29fabd8c
JD
67142004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6715
9238467d 6716 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 6717
c3f4c690
ST
67182004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6719
9238467d
SM
6720 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
6721 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 6722 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
6723 terminal frame.
6724 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
6725 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
6726 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
6727 Make a cancel file-open dialog be like C-g.
9238467d
SM
6728 * mac.c (mktime): Use emacs_mktime.
6729 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
6730 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 6731
9688f9eb
KS
67322004-10-10 Kim F. Storm <storm@cua.dk>
6733
6734 * keyboard.c (timer_resume_idle): New function to resume idle
6735 timer without resetting timers on the idle list.
52eb0373 6736 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
6737 (timer_start_idle, timer_stop_idle): Declare static.
6738 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
6739
6740 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
6741
f7f3a65f
ST
67422004-10-08 Steven Tamm <steventamm@mac.com>
6743
9238467d 6744 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 6745 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 6746 NULL where 0 should be used.
f7f3a65f
ST
6747 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
6748 objc/malloc.h
9238467d 6749 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 6750
3c7d999a
KS
67512004-10-07 Kim F. Storm <storm@cua.dk>
6752
6753 * xdisp.c (redisplay_window): Fix flicker on vertical line between
6754 windows. Update vertical line after drawing window fringes, but
6755 only if actually drawing any bitmaps--or there is no fringe.
6756
6757 * xterm.c (x_update_window_end): Likewise.
6758 * macterm.c (x_update_window_end): Likewise.
6759 * w32term.c (x_update_window_end): Likewise.
6760
6761 * fringe.c (draw_window_fringes): Return value now indicates if
6762 any fringe bitmaps were redrawn (or there are no fringes).
6763
6764 * dispextern.h (draw_window_fringes): Update prototype.
6765
bf06c82f
ST
67662004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6767
6768 * macfns.c (mac_get_window_bounds): Add extern.
6769 (x_real_positions): Use mac_get_window_bounds.
6770
6771 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
6772 xmenu.c (YAILOM).
3c7d999a 6773
bf06c82f
ST
6774 * macterm.c [!MAC_OSX]: Include Windows.h.
6775 (front_emacs_window): Rename from mac_front_window. All uses
6776 changed. Return the frontmost non-tooltip emacs window.
6777 (mac_get_window_bounds): New function.
6778 (x_calc_absolute_position): Use the difference of width and height
6779 between the inner and outer window.
6780 (x_set_offset): Specify window position by the coordinae of the
6781 outer window. Adjust the position if the title bar is completely
6782 outside the screen.
6783 (app_is_suspended, app_sleep_time): Remove unused variables.
6784 (do_app_resume, do_app_suspend): Remove their contents because
6785 window-activate/deactivate events will do the job.
6786 (do_zoom_window): Remove unused variables. Make compliant to the
6787 standard way of zooming. Set f->left_pos and f->top_pos.
6788 (XTread_socket): Don't use argument `expected'. Don't use
6789 FrontWindow to determine the clicked window. Exclude unprocessed
6790 mouseUp cases in the early stage. Add parentheses to fix operator
6791 precedence.
6792 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
6793
4cbbf6b7 67942004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
6795
6796 * config.in: Regenerate.
6797
6798 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
6799 HAVE_EXECSHIELD.
6800
b90ee8b5
JD
68012004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6802
6803 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
6804 a row if Alt or Meta has been found for that row. Also stop scanning
6805 for Keysyms for that row.
6806
904db1a2
KS
68072004-10-04 Kim F. Storm <storm@cua.dk>
6808
0207b8ad
KS
6809 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
6810 to list. Include overlay arrow bitmap in return value.
6811
25f7220c
KS
6812 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
6813 bars with fractional column width. If scroll bar separates two
6814 windows, move it towards the window it belongs to. Only update
6815 the padding area below the scroll bar widget when necessary,
6816 i.e. when scroll bar widget is created, moved, or resized.
6817
562020fe
KS
6818 * xdisp.c (define_frame_cursor1): Do not change frame cursor
6819 while tracking/dragging mouse.
6820 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
6821
37e34af7
KS
6822 * window.c (coordinates_in_window): Relax check for cursor
6823 on vertial border between mode lines.
6824 (Fset_window_fringes): Do not allow negative widths.
6825 (Fset_window_scroll_bars): Likewise.
6826
904db1a2
KS
6827 * .gdbinit (pp): Shorthand for p ARG + pr.
6828 (ff): New command: flush frame updates (X only).
6829
38fe4f64
MA
68302004-10-03 Michael Albinus <michael.albinus@gmx.de>
6831
6832 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
6833
9de36315
KH
68342004-09-30 Kenichi Handa <handa@m17n.org>
6835
07c381ad 6836 * process.c (send_process): Free composition data.
9de36315 6837
07c381ad 6838 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
6839
6840 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
6841 compositions to encode.
6842 (encode_coding_string): Likewise. Free composition data.
6843
d5fb8dab 68442004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
6845
6846 * coding.c (code_convert_region): Free composition data.
9de36315 6847
f2a54fbc
KS
68482004-09-29 Kim F. Storm <storm@cua.dk>
6849
dc5d6435
KS
6850 * fringe.c: Remove limit on number of bitmaps.
6851 (fringe_bitmaps, fringe_faces): Change to pointers.
6852 (max_fringe_bitmaps): New var.
6853 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
6854 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
6855
6856 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
6857 (struct glyph_row): Reorder fringe_bitmap related fields.
6858 (struct it): Likewise.
6859
6860 * w32term.c (fringe_bmp): Change to pointer.
6861 (max_fringe_bmp): New var.
6862 (w32_define_fringe_bitmap): Expand fringe_bmp.
6863 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
6864 (w32_destroy_fringe_bitmap): Likewise.
6865
68662004-09-29 Kim F. Storm <storm@cua.dk>
6867
6868 * fringe.c: Simplify last change.
f2a54fbc
KS
6869 (lookup_fringe_bitmap): New function.
6870 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
6871 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
6872 Keep standard bitmaps in Vfringe_bitmaps.
6873 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
6874 (Fset_fringe_bitmap_face): Likewise.
6875
6876 * dispextern.h (lookup_fringe_bitmap): Add prototype.
6877 (valid_fringe_bitmap_p): Remove prototype.
6878
6879 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
6880
841a8bca
KS
68812004-09-29 Kim F. Storm <storm@cua.dk>
6882
1f2da365
KS
6883 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
6884 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
6885
841a8bca
KS
6886 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
6887
6888 * fringe.c (Vfringe_bitmaps): New variable.
6889 (syms_of_fringe): DEFVAR_LISP it.
6890 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
6891 Change arg to Lisp_Object and fail if not an integer.
6892 (get_fringe_bitmap_name, resolve_fringe_bitmap)
6893 (destroy_fringe_bitmap): New functions.
9238467d
SM
6894 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
6895 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
6896 clear its fringe property.
6897 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
6898 Fdestroy_fringe_bitmap.
6899 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
6900 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
6901 and set fringe property. Signal error if no free slots.
6902 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
6903 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
6904
6905 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
6906 symbols with a fringe property.
6907
4d965590
KS
69082004-09-27 Kim F. Storm <storm@cua.dk>
6909
6910 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
6911 Doc fix. Format may now be a symbol or alist, not a cons.
6912
6913 * fringe.c (update_window_fringes): Handle new formats of
6914 indicate-buffer-boundaries (symbol or alist). No longer
6915 allow a simple cons.
6916 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
6917
e888c2b3
JD
69182004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6919
9238467d 6920 * config.in: Rebuild.
e888c2b3 6921
83f1cb94
JD
69222004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6923
6924 * config.in: Rebuild.
6925
dd3b1d60 6926 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 6927
2c51754c
SM
69282004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
6929
6930 * xterm.c (x_term_init): Work around a bug in some X servers.
6931
3df5f8aa
RS
69322004-09-18 Richard M. Stallman <rms@gnu.org>
6933
557ca2c1
RS
6934 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
6935
3df5f8aa
RS
6936 * xdisp.c (try_window_reusing_current_matrix):
6937 Handle the case where we reach the old displayed text,
6938 out of sync with the old line boundary.
6939
9238467d 69402004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
6941
6942 * fileio.c (Finsert_file_contents): Fix case of replacement in a
6943 narrowed buffer.
6944
bfa02563
KS
69452004-09-14 Kim F. Storm <storm@cua.dk>
6946
a25fe164
KS
6947 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
6948
bfa02563
KS
6949 * xfaces.c (Qface_no_inherit): New var.
6950 (syms_of_xfaces): Intern and staticpro it.
6951 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
6952 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
6953 Don't increment face_change_count when face has non-nil
6954 face-no-inherit property.
6955
126f9c02
SM
69562004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
6957
892a8eb5
SM
6958 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
6959 (Fbyte_code): Remove dead code after `wrong_type_argument'.
6960
126f9c02 6961 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 6962 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 6963
c0ad3b38
KS
69642004-09-12 Kim F. Storm <storm@cua.dk>
6965
6966 * editfns.c (Fformat): Handle format strings with multiple text
6967 properties. Reverse text property list from the format string,
6968 so the positions are in increasing order.
6969
844fc085
JD
69702004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6971
6972 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
6973 x_uncatch_errors so that possible protocol errors are delivered.
6974
b106731c
EZ
69752004-09-10 Eli Zaretskii <eliz@gnu.org>
6976
21065c92
EZ
6977 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
6978 blockinput.h.
6979 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
6980 charset.h, and coding.h
9238467d 6981 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
6982 (term.o): Depend on window.h and keymap.h.
6983 (abbrev.o): Depend on syntax.h.
6984 (callint.o): Depend on keymap.h.
6985 (casefiddle.o): Depend on charset.h and keymap.h.
6986 (category.o): Depend on keymap.h.
6987 (coding.o): Depend on dispextern.h.
6988 (cmds.o): Depend on keyboard.h and keymap.h.
6989 (dispnew.o): Depend on indent.h and intervals.h.
6990 (doc.o): Depend on keymap.h.
6991 (editfns.o): Depend on frame.h.
6992 (emacs.o): Depend on dispextern.h.
6993 (fileio.o): Don't depend on ccl.h.
6994 (filelock.o): Depend on charset.h and coding.h.
6995 (frame.o): Depend on w32term.h and macterm.h.
6996 (insdel.o): Depend on region-cache.h.
6997 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
6998 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
6999 (search.o): Depend on $(INTERVALS_SRC).
7000 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
7001 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
7002 xterm.h, w32term.h, and macterm.h.
7003 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
7004 w32term.h, and macterm.h.
7005 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
7006 region-cache.h, xterm.h, w32term.h, and macterm.h.
7007 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
7008 (data.o): Depend on frame.h.
7009 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
7010 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
7011 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
7012 (intervals.o): Depend on keymap.h.
7013
9238467d
SM
7014 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
7015 Add debugging print-out to termscript.
b106731c 7016
64b7122d
RS
70172004-09-09 Richard M. Stallman <rms@gnu.org>
7018
7019 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
7020
5670531e
RS
70212004-09-08 Richard M. Stallman <rms@gnu.org>
7022
6cb4a892
RS
7023 * window.c (Fset_window_buffer): Doc fix.
7024
5670531e
RS
7025 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
7026
7e388eb7
JL
70272004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
7028
7029 * minibuf.c (history_delete_duplicates): New variable.
7030 (read_minibuf): Use it.
7031 (syms_of_minibuf): Create the corresponding lisp variable.
7032
370e3587
KS
70332004-09-08 Kim F. Storm <storm@cua.dk>
7034
7035 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
7036 overlay just before point.
7037
f844ba4e
LT
70382004-09-07 Luc Teirlinck <teirllm@auburn.edu>
7039
7040 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
7041 * buffer.c (reset_buffer, init_buffer_once):
7042 Handle auto_save_file_format field.
f844ba4e
LT
7043 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
7044 `buffer-auto-save-file-format'.
f844ba4e
LT
7045 * fileio.c: Delete declaration for removed Vauto_save_file_format.
7046 (build_annotations): Adapt to replacement of
7047 `auto-save-file-format' with the new buffer-local variable
7048 `buffer-auto-save-file-format'.
7049 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
7050
f0f90717
JR
70512004-09-07 Jason Rumney <jasonr@gnu.org>
7052
7053 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
7054
9238467d
SM
7055 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
7056 Handle Unicode menu titles.
f0f90717 7057
4e14f66c
KS
70582004-09-07 Kim F. Storm <storm@cua.dk>
7059
7060 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
7061 property from text property or overlay strings at point.
7062
9238467d 70632004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
7064
7065 * xmenu.c (update_submenu_strings): YAILOM.
7066 (set_frame_menubar): Make sure last_i is initialized.
7067
1f06d367
JR
70682004-09-03 Jason Rumney <jasonr@gnu.org>
7069
1806714a 7070 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
7071 (digest_single_submenu): Set lname and lkey in widget_value
7072 instead of name and key.
7073 (update_submenu_strings): New function.
7074 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7075 call update_submenu_strings.
7076
7077 * w32menu.c (globals_of_w32menu): Check for Unicode API.
7078 (digest_single_submenu, w32_menu_show): Encode menu strings as
7079 UTF-8 if Unicode API is available.
7080 (utf8to16): New function.
7081 (add_menu_item): Use it when calling Unicode API.
1806714a 7082
46540080
KS
70832004-09-03 Kim F. Storm <storm@cua.dk>
7084
7085 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
7086 in overlay or text-property strings; set cursor on corresponding
7087 glyph rather than at end of the string.
7088
9277ba61 70892004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 7090
9277ba61 7091 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
7092 set a new one before obtaining the global coordinate.
7093 Use FRAME_MAC_WINDOW.
7094 (x_set_name, x_set_title): Encode title to UTF8.
7095 Use SetWindowTitleWithCFString.
9277ba61
ST
7096 (Fx_server_version): Get correct OS version.
7097
1806714a
SM
7098 * macmenu.c (add_menu_item): Remove unused variable `i'.
7099 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
7100
7101 * macterm.c (x_update_end): Move SetPortWindowPort to inside
7102 BLOCK_INPUT.
7103 (x_set_offset): Use FRAME_MAC_WINDOW.
7104
7105 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
7106 nontext_cursor if it is on a scroll bar.
7107
7108 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
7109 Carbon support.
1806714a
SM
7110 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
7111 Use LIBS_CARBON.
9277ba61 7112
b10daec7
JD
71132004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7114
7115 * xfns.c (x_set_name_internal): New function. Check if we shall call
7116 xfree before ENCODE_UTF_8.
7117 (x_set_name, x_set_title): Call x_set_name_internal.
7118
f7e22385
JR
71192004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
7120
7121 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
7122 reload it.
7123
2bf436c3
JD
71242004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7125
1806714a 7126 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
7127 (single_submenu): Set lname and lkey in widget_value
7128 instead of name and key.
7129 (update_submenu_strings): New function.
7130 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7131 call update_submenu_strings.
7132
2bf436c3
JD
7133 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
7134 instead of name and key.
7135 (update_submenu_strings): New function.
7136 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 7137 call update_submenu_strings.
2bf436c3
JD
7138
7139 * gtkutil.h (_widget_value): Added lname and lkey.
7140
11715f92
ST
71412004-08-30 Steven Tamm <steventamm@mac.com>
7142
7143 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
7144 by using different names for inner loop variables.
7145
5500be54
JD
71462004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7147
059cd329
JD
7148 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
7149 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
7150
5500be54
JD
7151 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
7152 tool bar items is 0.
7153
383418e5
ST
71542004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7155
7156 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
7157 strings in menu items.
7158 (single_submenu): Use ENCODE_MENU_STRING
7159 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
7160 button release isn't passed to event loop
7161 (add_menu_item): Use SetMenuItemWithCFString
7162
6eb3ee72
ST
71632004-08-26 Steven Tamm <steventamm@mac.com>
7164
7165 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
7166 tool-bar/menu click.
7167 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 7168
10b43ac3
JD
71692004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7170
2728b5d0
JD
7171 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
7172
10b43ac3
JD
7173 * xfns.c (x_window_to_frame, x_any_window_to_frame)
7174 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7175 (x_top_window_to_frame): Return 0 if wdesc is None.
7176
2ee3b79e
RS
71772004-08-22 Richard M. Stallman <rms@gnu.org>
7178
7179 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
7180 HAVE_TERMIOS]: If there's no char for this signal, drop through
7181 and use system calls.
7182
7183 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
7184
9a1ba2ea
KS
71852004-08-20 Kim F. Storm <storm@cua.dk>
7186
7187 * process.c (wait_reading_process_output): Rename from
7188 wait_reading_process_input. All uses changed.
7189 (wait_reading_process_output_1): Rename from
7190 wait_reading_process_input_1. All uses changed.
7191
7192 * dispnew.c (Fsleep_for): Remove obsolete code.
7193
295f3b30
KH
71942004-08-20 Kenichi Handa <handa@m17n.org>
7195
7196 * syntax.c (skip_chars): Fix for unibyte case.
7197
27615979
SM
71982004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7199
7200 * syntax.c (char_quoted): Mixup byte/char pos.
7201 (back_comment): Fixup globals in all cases.
7202
00267f94
JD
72032004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7204
7205 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
7206 passing it to gtk_window_set_title.
7207
2439909e
KS
72082004-08-19 Kim F. Storm <storm@cua.dk>
7209
6ba0f14c
KS
7210 * process.c (wait_reading_process_input): Clean up.
7211 Add wait_for_cell, wait_proc, and just_wait_proc args
7212 to avoid overloading `read_kbd' and `do_display' args.
7213 Change read_kbd arg to int. All callers changed.
7214
2439909e
KS
7215 * process.c (process_send_signal): Use CDISABLE.
7216
7217 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
7218
101c421e
KS
72192004-08-18 Kim F. Storm <storm@cua.dk>
7220
7221 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
7222 forward to wait_reading_process_input via DO_DISPLAY arg.
7223 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
7224 object, only process output from that process; also inhibit
7225 running timers if DO_DISPLAY==-2.
7226
c438dc33
KS
72272004-08-17 Kim F. Storm <storm@cua.dk>
7228
7229 * process.c (process_send_signal): Fix last change--use
7230 _POSIX_VDISABLE instead of CVDISABLE when available.
7231
8afc13c6
RS
72322004-08-16 Richard M. Stallman <rms@gnu.org>
7233
7234 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
7235 Set VQUIT and VINTR chars to the standard ones if they are unset.
7236 [AIX]: Don't do that here. And don't force VINTR to standard
7237 when SIGNALS_VIA_CHARACTERS.
7238
c438dc33 7239 * process.c (process_send_signal)
8afc13c6
RS
7240 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
7241 Do nothing if the character is CVDISABLE.
7242
7243 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
7244
c438dc33 7245 * intervals.c (move_if_not_intangible):
8afc13c6
RS
7246 Force POSITION to be between BEGV and ZV.
7247
6dad1714
JPW
72482004-08-14 John Paul Wallington <jpw@gnu.org>
7249
7250 * buffer.c (Frestore_buffer_modified_p): Doc fix.
7251
7252 * fileio.c (Fread_file_name): Doc fix.
7253
7254 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
7255
2bd77330
LT
72562004-08-09 Luc Teirlinck <teirllm@auburn.edu>
7257
7258 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
7259
c90e7e43
LT
72602004-08-08 Luc Teirlinck <teirllm@auburn.edu>
7261
7262 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 7263 Qdisabled_command_hook.
c90e7e43 7264 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 7265 Qdisabled_command_hook.
c90e7e43
LT
7266 (syms_of_keyboard): Ditto.
7267
81909a1a
LT
72682004-08-07 Luc Teirlinck <teirllm@auburn.edu>
7269
7270 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
7271 (syms_of_keymap) <key-translation-map>: Doc fixes.
7272
0cedd530
SM
72732004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
7274
1725a7c9
SM
7275 * window.c (window_list_1): YAILOM.
7276
0cedd530
SM
7277 * fileio.c (make_temp_name): Handle multibyte prefixes.
7278
2515a131
LT
72792004-08-06 Luc Teirlinck <teirllm@auburn.edu>
7280
7281 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
7282 Doc fix.
7283
c8b20fb7
KH
72842004-08-03 Kenichi Handa <handa@m17n.org>
7285
7286 * coding.c (decode_coding_string): Adjust coding->consumed, and
7287 etc. with shrinked_bytes.
7288
fb8b092b
KS
72892004-08-03 Kim F. Storm <storm@cua.dk>
7290
7291 * indent.c (compute_motion): Fix check for full width window
7292 in non-window case. Do not count left truncation glyph on
7293 window systems.
7294
df133612
LT
72952004-08-02 Luc Teirlinck <teirllm@auburn.edu>
7296
7297 * data.c (Finteractive_form): Doc fix.
7298
0f7a93c1
KS
72992004-08-02 Kim F. Storm <storm@cua.dk>
7300
7301 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
7302 properly accounting for continuation glyph on non-window systems.
7303 (Fcompute_motion): Use actual window width if WIDTH is nil, and
7304 actual window width/height if TOPOS is nil, properly accounting for
7305 continuation glyphs on non-window systems, and optional header lines.
7306 (vmotion): Let compute_motion calculate actual window width.
7307
7308 * window.c (window_scroll_line_based): Let compute_motion
7309 calculate actual window width.
7310
f491e1ed
KS
73112004-08-02 Kim F. Storm <storm@cua.dk>
7312
7313 * process.c (read_process_output): Use whole read buffer.
7314 Don't trigger adaptive read buffering on errors.
7315
83f64226
LT
73162004-07-31 Luc Teirlinck <teirllm@auburn.edu>
7317
7318 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
7319
1d1c7e75 7320 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
7321
7322 * callint.c (Fcall_interactively): Doc fix.
7323
8afc13c6
RS
73242004-07-30 Richard M. Stallman <rms@gnu.org>
7325
7326 * abbrev.c (Fexpand_abbrev): Undo previous change.
7327
7c111482
KS
73282004-07-30 Kim F. Storm <storm@cua.dk>
7329
7330 * editfns.c (Fformat): Allocate extra (dummy) element in info.
7331
ee945d08
LT
73322004-07-28 Luc Teirlinck <teirllm@auburn.edu>
7333
7334 * eval.c (Fdefvar, Fdefconst): Doc fixes.
7335
3f911c94
KS
73362004-07-27 Kim F. Storm <storm@cua.dk>
7337
7338 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
7339 we have ensured that the glyph fits on the current line (or returned
7340 MOVE_LINE_CONTINUED otherwise).
7341
f29ff8c7
KS
73422004-07-26 Kim F. Storm <storm@cua.dk>
7343
7344 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
7345 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
7346 if target position is at end of display line but char is not a newline.
7347
81159bb9
RS
73482004-07-25 Richard M. Stallman <rms@gnu.org>
7349
ab431b61
RS
7350 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
7351 instead of ON_VERTICAL_BORDER, when on scroll bar.
7352 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
7353
7354 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
7355
f29ff8c7 7356 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
7357 Take account of FRAME_INTERNAL_BORDER_WIDTH.
7358
7359 * alloc.c (check_cons_list): New function (contents commented out).
7360
fc820cc5
LT
73612004-07-24 Luc Teirlinck <teirllm@auburn.edu>
7362
7363 * xfaces.c (Fcolor_supported_p): Doc fix.
7364
7365 * frame.c (Fselect_frame, Fset_frame_selected_window)
7366 (Fframe_visible_p, Fraise_frame): Doc fixes.
7367
289978b5
LT
73682004-07-24 Richard M. Stallman <rms@gnu.org>
7369
78819ebb 7370 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
7371
7372 * fileio.c (Fwrite_region): Doc fix.
7373
7374 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
7375
7376 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
7377 only when a real abbrev is present.
7378
289978b5
LT
7379 * xfns.c (x_icon_verify): New function.
7380 (Fx_create_frame): Use it.
7381
d5fb8dab 73822004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
7383
7384 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
7385
36f826d4
KS
73862004-07-21 Kim F. Storm <storm@cua.dk>
7387
7388 * window.h (struct glyph_matrix): New members nrows_scale_factor
7389 and ncols_scale_factor.
7390
7391 * window.c (make_window): Initialize nrows_scale_factor and
7392 ncols_scale_factor members.
7393
7394 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
7395 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
7396 (required_matrix_height): Apply nrows_scale_factor.
7397 (required_matrix_width): Apply ncols_scale_factor.
7398
7399 * xdisp.c (display_line): Increment nrows_scale_factor and set
7400 fonts_changed_p if past last allocated row.
7401 (append_glyph, append_composite_glyph, produce_image_glyph)
7402 (append_stretch_glyph): Increment ncols_scale_factor and set
7403 fonts_changed_p if current area is full.
7404
5fc1c546
JD
74052004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7406
7407 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
7408
cb7516e5
LT
74092004-07-19 Luc Teirlinck <teirllm@auburn.edu>
7410
7411 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
7412 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
7413 (Fset_window_start, Fscroll_up, Fscroll_down)
7414 (Fother_window_for_scrolling, Fscroll_other_window)
7415 (Fsave_window_excursion, Fset_window_vscroll)
7416 (syms_of_window) <window-size-fixed>: Doc fixes.
7417
b6189c3b 74182004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
7419
7420 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
7421 ENCODE_SYSTEM for filenames.
7422
bfcf6608
ST
74232004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7424
7425 * mac.c (sys_select): Block input around call to
7426 ReceiveNextEvent to prevent breakage. Correctly handle
7427 blocking on event queue only by calling ReceiveNextEvent
7428 instead of select (since GUI events aren't on an fd).
7429 (sys_read): Remove function
7430 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
7431
e082ac9d
ST
74322004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7433
7434 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 7435 polling instead of 1 sec timeouts (like solaris).
e082ac9d 7436
cb7516e5 7437 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
7438 frame creation.
7439
7440 * keyboard.c: Undef SIGIO on Carbon
7441
7442 * atimer.c (alarm_signal_handler): Call alarm handlers after
7443 scheduling.
7444
7445 * eval.c (Feval): Remove quit_char test
7446
7447 * process.c (wait_reading_process_input): Remove clearing
7448 stdin for select call on process input.
7449
4b9da0fb
LT
74502004-07-18 Luc Teirlinck <teirllm@auburn.edu>
7451
1204e81c
LT
7452 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
7453 capitalization error in docstring.
4b9da0fb 7454
26503ad2
JB
74552004-07-17 Juanma Barranquero <lektu@terra.es>
7456
7457 * keyboard.c (not_single_kboard_state): Do nothing unless
7458 MULTI_KBOARD is defined.
7459
3751eb00
RS
74602004-07-17 Richard M. Stallman <rms@gnu.org>
7461
7462 * window.c (coordinates_in_window): Inside the window but outside
7463 its box to the L or R, return ON_VERTICAL_BORDER.
7464 (window_list_1): Rotate the list to start with WINDOW.
7465
7466 * print.c (print_preprocess): Test for print_depth at limit
7467 before entering in being_printed.
7468
7469 * keyboard.c (not_single_kboard_state): New function.
7470 (stuff_buffered_input): Now no-op only if no SIGTSTP.
7471
7472 * frame.c (Fdelete_frame): If we're in single_bboard_state on
7473 this kboard, and we delete its last frame, go to any_kboard_state.
7474
7475 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
7476
b6189c3b 74772004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
7478
7479 * w32fns.c (Fx_file_dialog): Encode strings in system coding
7480 system before passing them to OS functions for display.
7481
0f6af254
DK
74822004-07-15 David Kastrup <dak@gnu.org>
7483
f9253326
KS
7484 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
7485 Apparently fixes an abort condition.
0f6af254 7486
386c8f42
LT
74872004-07-14 Luc Teirlinck <teirllm@auburn.edu>
7488
7489 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
7490 instead of a cons.
7491
366511da
MB
74922004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
7493
7494 * keyboard.c (echo_dash): Do nothing if there already is a dash
7495 at the end of the echo string.
7496
f85409d3
KS
74972004-07-12 Kim F. Storm <storm@cua.dk>
7498
7499 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
7500 if GC_MARK_STACK.
7501
0ba2e87b
LT
75022004-07-10 Luc Teirlinck <teirllm@auburn.edu>
7503
da38045d
LT
7504 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
7505
0ba2e87b
LT
7506 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
7507 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
7508 (Freplace_buffer_in_windows, Fset_window_buffer)
7509 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
7510 (syms_of_window): Expand docstring of `display-buffer-function'.
7511
5668fbb8
LT
75122004-07-09 Luc Teirlinck <teirllm@auburn.edu>
7513
7514 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
7515 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
7516 that time values of the type (HIGH . LOW) are considered obsolete.
7517
a085bf9d
LT
75182004-07-06 Luc Teirlinck <teirllm@auburn.edu>
7519
669de2fb
LT
7520 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
7521 docstring.
7522
bac66325 7523 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 7524
8e975df9
JPW
75252004-07-06 John Paul Wallington <jpw@gnu.org>
7526
7527 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
7528
fa164e6a
JPW
7529 * fns.c (Fclear_string): Signal an error if STRING is not a string.
7530
2bac9bb1
JD
75312004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7532
7533 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
7534 instead of CGMainDisplayID (only in OSX 10.2 and later).
7535
316ef0dc
JPW
75362004-07-04 John Paul Wallington <jpw@gnu.org>
7537
7538 * fileio.c (read_file_name_completion_ignore_case): New variable.
7539 (syms_of_fileio): Declare and initialise it.
7540 (Fread_file_name): Bind `completion-ignore-case' to respect it.
7541
2a1a35c6
EZ
75422004-07-03 Eli Zaretskii <eliz@gnu.org>
7543
7544 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
7545 for event.x and event.y.
7546
33a72331
KH
75472004-07-01 Kenichi Handa <handa@m17n.org>
7548
7549 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
7550 after getting a new string by pre-write-conversion.
7551
9238467d 75522004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
7553
7554 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
7555 (x_calc_absolute_position): Remove unused var `child'.
7556
7557 * xfaces.c (x_supports_face_attributes_p)
7558 (Fdisplay_supports_face_attributes_p): YAILOM.
7559 (tty_supports_face_attributes_p): Remove unused var `i'.
7560
7561 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
7562 back_unibyte_ok.
7563
7564 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
7565
7566 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
7567
7568 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
7569
f96ec754
AS
75702004-06-30 Andreas Schwab <schwab@suse.de>
7571
7572 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
7573 (Finit_image_library): Pass LIBRARIES through to
7574 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
7575 (lookup_image_type): Pass Qnil as second argument to
7576 Finit_image_library.
7577
78819ebb 7578 * lisp.h (Finit_image_library): Declare.
f96ec754 7579
59feca74 75802004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 7581
31983645
AS
7582 * macterm.c (do_window_activate, do_window_deactivate): Remove.
7583 (XTread_socket): Send mouse button events to the toolbox
7584 dispatcher even when the mouse is grabbed. Don't process window
7585 activate events for non-Emacs windows. Replace function calls to
7586 do_window_activate and do_window_deactivate with their contents.
7587 Reset mouse grabbing status when a window is deactivated.
59feca74 7588
c61278bb
ST
75892004-06-29 Steven Tamm <steventamm@mac.com>
7590
7591 * macterm.c (mac_get_emulated_btn)
7592 (mac_event_to_emacs_modifiers): Fix emulated mouse button
7593 support to correctly mask out modifiers.
7594
c3762cbd
DK
75952004-06-29 David Kastrup <dak@gnu.org>
7596
7597 * search.c (Fset_match_data): Allow buffer before end of list
7598 which can happen if set-match-data is using a pre-consed list.
7599
c61278bb 76002004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
7601
7602 * macterm.c (XTread_socket): Correctly set the frame position
7603 after the window is moved.
7604
74cdfe05
JD
76052004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7606
7607 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
7608 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
7609 (xg_get_image_for_pixmap): Add workaround for monochrome displays
7610 so insensitive and activated icons look ok.
74cdfe05 7611
ef544dc8
JR
76122004-06-27 Jason Rumney <jasonr@gnu.org>
7613
7614 * w32fns.c (file_dialog_callback): Disable edit control if set
7615 to directories only on CDN_INITDONE message.
7616 (Fx_file_dialog): Default to directories only when prompt starts
7617 with "Dired".
7618
7b7990cc
KS
76192004-06-25 Kim F. Storm <storm@cua.dk>
7620
7621 * alloc.c (allocate_misc): Update total_free_markers.
7622 (free_misc): New function.
7623 (safe_alloca_unwind, free_marker): Use it.
7624
7625 * lisp.h (free_misc): Add prototype.
7626
7627 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
7628
d8c379f8
RS
76292004-06-24 Richard M. Stallman <rms@gnu.org>
7630
7631 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
7632 (syms_of_emacs): Lisp variables deleted.
7633
559cdd07
DK
76342004-06-23 David Kastrup <dak@gnu.org>
7635
94939b84
DK
7636 * search.c (Freplace_match): Adjust the match-data more thoroughly
7637 when replacing strings in the buffer.
7638 (Fmatch_data): When INTEGERS is non-nil and the last match was in
7639 a buffer, add the buffer as last element to the match data.
7640 (Fset_match_data): If an additional element of the match-data is a
7641 buffer, restore it to last_thing_searched.
c8d09ad8 7642 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
7643 (restore_match_data): Restore it again.
7644
dce417e7
LT
76452004-06-23 Luc Teirlinck <teirllm@auburn.edu>
7646
7647 * keymap.c (Ftext_char_description): Doc fix.
7648 * doc.c (Fsnarf_documentation): Doc fix.
7649
ef54b2d0
KS
76502004-06-22 Kim F. Storm <storm@cua.dk>
7651
b5bc4d05
KS
7652 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
7653
ef54b2d0
KS
7654 * lisp.h (struct Lisp_Save_Value): New member dogc.
7655 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
7656 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
7657 (SAFE_FREE_LISP): New macro.
7658
7659 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
7660 (make_save_value): Init new dogc member.
7661 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
7662
7663 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
7664 SAFE_FREE_LISP macros.
7665
3d33d993
KS
76662004-06-22 Kim F. Storm <storm@cua.dk>
7667
7668 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
7669 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
7670 in that memory area are unknown to GC. Add comments.
7671
7672 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
7673
5c917f98
KS
76742004-06-21 Kim F. Storm <storm@cua.dk>
7675
7676 * lisp.h (MAX_ALLOCA): Define here.
7677 (safe_alloca_unwind): Add prototype.
7678 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
7679
7680 * alloc.c (safe_alloca_unwind): New function.
7681
7682 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
7683
7684 * charset.c (Fstring): Use SAFE_ALLOCA.
7685
7686 * coding.c (MAX_ALLOCA): Remove define.
7687
7688 * data.c (MAX_ALLOCA): Remove define.
7689 (Faset): Use SAFE_ALLOCA.
7690
7691 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
7692
7693 * fns.c (string_make_multibyte, string_to_multibyte)
7694 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
7695 (MAX_ALLOCA): Remove define.
7696 (Fbase64_encode_region, Fbase64_encode_string)
7697 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
7698 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
7699 memory leak if encoding fails.
7700
7701 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
7702
9a09408e
EZ
77032004-06-21 Eli Zaretskii <eliz@gnu.org>
7704
7705 * print.c (Fwith_output_to_temp_buffer): Doc fix.
7706
376de739
RS
77072004-06-20 Richard M. Stallman <rms@gnu.org>
7708
7709 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
7710
7711 * search.c (match_limit): Cleaner err msg when no match data available.
7712
7713 * window.c (syms_of_window): Doc fix.
7714
7715 * keyboard.c (command_loop_1): Handle values `only' and `identity'
7716 for Vtransient_mark_mode.
7717
7718 * buffer.c (syms_of_buffer): Doc fix.
7719
acd81db9
DK
77202004-06-21 David Kastrup <dak@gnu.org>
7721
7722 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
7723 and unbinding of `case-fold-search' according to
7724 `completion-ignore-case' around calls of string-match and
7725 predicates, respectively. Should give satisfactory performance
7726 in all relevant cases.
7727
f303762d
JD
77282004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7729
95911c74
JD
7730 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
7731 clip_x/y_origin.
7732
a6cb6b78
JD
7733 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
7734
f303762d
JD
7735 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
7736
7737 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
7738 on Mac OSX.
7739
bbdb2684
LT
77402004-06-16 Luc Teirlinck <teirllm@auburn.edu>
7741
7742 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
7743
5ea48b1c
KS
77442004-06-16 Kim F. Storm <storm@cua.dk>
7745
7746 * dispextern.h (Vimage_types): Remove extern.
7747
803aac3e
MB
77482004-06-16 Miles Bader <miles@gnu.org>
7749
7750 * image.c (lookup_image_type): Initialize image type if necessary.
7751
cdc97764
KS
77522004-06-15 Kim F. Storm <storm@cua.dk>
7753
c4a5739c
KS
7754 * xdisp.c (try_cursor_movement): Exclude header line from scroll
7755 margin at top of window.
7756 (try_window_reusing_current_matrix): Calculate proper cursor position
7757 after scrolling up with non-zero scroll margin, as the old cursor
7758 position corresponds to value of PT before executing this command.
7759 (try_window_id): Consider scroll margin at bottom of window too;
7760 otherwise we fail to scroll when hl-line-mode is enabled.
7761
cdc97764
KS
7762 * syntax.c (skip_chars): Only recognize [:class:] when it has the
7763 proper format and class is a lower-case word.
7764
5b166323
JD
77652004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7766
7767 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 7768 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
7769 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
7770 xg_get_gdk_pixmap_and_mask.
cdc97764 7771
5b166323
JD
7772 * xterm.h (struct x_display_info): Typo in comment fixed.
7773
1ebd4f78
JB
77742004-06-14 Juanma Barranquero <lektu@terra.es>
7775
7776 * dispextern.h (Vimage_types): Make it conditional on
7777 HAVE_WINDOW_SYSTEM.
7778
7779 * image.c (Vimage_types): Move from xdisp.c.
7780 (Vimage_type_cache): New variable.
7781 (define_image_type): New argument indicating whether an image
7782 library was loaded; cache loaded status and return t on success,
7783 nil otherwise.
7784 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
7785 (w32_delayed_load): New function to load an image library from a
7786 list of possible filenames.
7787 (init_xpm_functions, init_png_functions, init_jpeg_functions)
7788 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 7789 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
7790 (Finit_image_library): New function, extracted from `init_image'.
7791 Try to initialize an image library on demand and cache whether we
7792 were successful or not.
7793 (syms_of_image): Initialize `Vimage_types' and
7794 `Vimage_type_cache'. Add recognized image types to Vimage_types.
7795 Export `init-image-library'.
7796 (init_image): Remove initialization of all image types, except xbm
7797 and pbm.
7798
7799 * xdisp.c (Vimage_types): Delete (moved to image.c).
7800
904ee128
AS
78012004-06-14 Andreas Schwab <schwab@suse.de>
7802
7803 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
7804 Avoid calling specbind when completion-regexp-list is empty.
7805
092de21d
RS
78062004-06-13 Richard M. Stallman <rms@gnu.org>
7807
7808 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
7809 (re_wctype, re_iswctype, re_wctype_to_bit):
7810 Non-function definitions moved here from regex.c.
1ebd4f78 7811
092de21d
RS
7812 * regex.c (re_wctype, re_iswctype): Function defs longer static.
7813 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
7814 (re_wctype, re_iswctype, re_wctype_to_bit):
7815 Non-function definitions moved to regex.h.
7816
7817 * window.c (Fselect_window): Doc fix.
7818
7819 * syntax.c: Include regex.h.
7820 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
7821 If requested, make a list of classes, then check the scanned
7822 chars for membership in them.
7823 (in_classes): New function.
7824 Doc fix.
7825
7826 * keyboard.c (cmd_error): Don't call any_kboard_state
7827 if inside a recursive edit level.
7828
9ba27690 78292004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
7830
7831 * keyboard.c (command_loop): Call any_kboard_state before
7832 command_loop_2 when at top level.
7833
3ebc0939
AS
78342004-06-13 Andreas Schwab <schwab@suse.de>
7835
cea5d0d4
AS
7836 * print.c (print_object): Always use %ld for printing EMACS_INT.
7837
7838 * keyboard.c (cancel_hourglass_unwind): Return a value.
7839 (modify_event_symbol): Always use %ld for printing EMACS_INT.
7840 (Fexecute_extended_command): Likewise.
7841
7842 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
7843 avoid clashes.
7844 (SYNTAX): Likewise.
7845 (SYNTAX_WITH_FLAGS): Likewise.
7846 (SYNTAX_MATCH): Likewise.
7847
7848 * syntax.c (char_quoted): Avoid warning about undefined operation.
7849 (find_defun_start): Likewise.
7850 (scan_lists): Likewise.
7851 (INC_FROM): Likewise.
7852 (scan_sexps_forward): Likewise.
7853
be8c4ce4
AS
7854 * image.c: Include <ctype.h>.
7855
3ebc0939
AS
7856 * xfaces.c (face_attr_equal_p): Declare parameters.
7857
6fb41b5b
KH
78582004-06-13 Kenichi Handa <handa@m17n.org>
7859
7860 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
7861
fc3095ce
EZ
78622004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
7863
7864 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
7865
66189a40
KH
78662004-06-12 Kenichi Handa <handa@m17n.org>
7867
7868 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
7869 ccl_prog_stack_struct and update it.
7870 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
7871 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
7872 ccl->eof_ic on EOF.
7873 (ccl_debug_hook): New function.
7874 (struct ccl_prog_stack): New member eof_ic.
7875 (ccl_driver): Handle EOF in subrountine call correctly.
7876
78772004-06-11 Kenichi Handa <handa@m17n.org>
7878
a9b43336 7879 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 7880
1da71023
KS
78812004-06-11 Kim F. Storm <storm@cua.dk>
7882
7883 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
7884
e9efcef4
JB
78852004-06-11 Juanma Barranquero <lektu@terra.es>
7886
7887 * keyboard.c (Fposn_at_point): Doc fix.
7888
9b9ceb61
DK
78892004-06-11 David Kastrup <dak@gnu.org>
7890
7891 * search.c (match_limit): Don't flag an error if match-data
7892 exceeding the allocated search_regs.num_regs gets requested, just
7893 return Qnil.
7894
6e87ac8f
MB
78952004-06-08 Miles Bader <miles@gnu.org>
7896
7897 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
7898
0b0dea7b
JB
78992004-06-07 Juanma Barranquero <lektu@terra.es>
7900
7901 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
7902 (Fcurrent_time_string, Fcurrent_time_zone)
7903 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
7904
a0a23346
MB
79052004-06-07 Miles Bader <miles@gnu.org>
7906
08384afd 7907 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
7908 (push_named_merge_point): New function.
7909 (merge_named_face): New function.
7910 (merge_face_ref, face_at_buffer_position, face_at_string_position):
7911 Use `merge_named_face'.
7912 (merge_face_inheritance): Function removed.
c8d09ad8 7913 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
7914 Add new `err_msgs' and `named_merge_points' args. Return error
7915 status. Only print error messages if ERR_MSGS is true. Don't try to
7916 do :inherit attribute validation.
7917 (merge_face_heights): Handle `unspecified' in both directions.
7918 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
7919 Call `merge_face_ref' instead of `merge_face_inheritance'.
7920 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
7921 (compute_char_face, face_at_buffer_position)
7922 (face_at_string_position): Call `merge_face_ref' instead of
7923 `merge_face_vector_with_property'.
7924
12d5b185
KH
79252004-06-07 Kenichi Handa <handa@m17n.org>
7926
7927 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
7928 the necessary places.
7929
2e2d7ee6
KS
79302004-06-07 Kim F. Storm <storm@cua.dk>
7931
7932 * process.c (Fdelete_process): Undo 2004-05-28 change.
7933 Instead, call status_notify also for network process.
7934 (status_message): Use process instead of status as arg.
7935 Give messages "deleted" or "connection broken by remote peer" for
7936 an exited network process.
7937 (status_notify): Change call to status_message.
7938 (read_process_output): Increase readmax to 4096. Do not increase
7939 buffer size for datagram channels (default is now large enough).
7940
fcf0d299
ST
79412004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
7942
7943 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
7944 problem due to newly defined variable.
7945
0722292b
MB
79462004-06-06 Miles Bader <miles@gnu.org>
7947
7948 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
7949 immediately if non-interactive or not initialized.
7950
ddfb8369
RS
79512004-06-05 Richard M. Stallman <rms@gnu.org>
7952
7953 * minibuf.c (Fcompleting_read): Doc fix.
7954
57015754
AS
79552004-06-05 Andreas Schwab <schwab@suse.de>
7956
7957 * macfns.c (x_create_tip_frame): Fix declaration after statement.
7958
23715ea6
JB
79592004-06-05 Juanma Barranquero <lektu@terra.es>
7960
7961 * keymap.c (Fdescribe_vector): Fix docstring.
7962 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
7963
8e330b22
MB
79642004-06-05 Miles Bader <miles@gnu.org>
7965
7966 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
7967 attributes have different values than the default face.
7968
9742a3a6
EZ
79692004-06-04 Eli Zaretskii <eliz@gnu.org>
7970
7971 * xfaces.c (x_supports_face_attributes_p): Make this function
7972 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
7973 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
7974 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 7975
9717e36c
MB
79762004-06-04 Miles Bader <miles@gnu.org>
7977
7978 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
7979 from Ftty_supports_face_attributes_p.
7980 (x_supports_face_attributes_p): New function.
7981 (Ftty_supports_face_attributes_p): Function deleted.
7982 (Fdisplay_supports_face_attributes_p): New function.
7983 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 7984 (face_attr_equal_p): New function.
9717e36c
MB
7985 (lface_equal_p): Use it.
7986
52deb19f
JB
79872004-06-03 Juanma Barranquero <lektu@terra.es>
7988
7989 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
7990 (Vw32_color_map): Fix typo in docstring.
7991 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
7992 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
7993 Make argument names match their use in docstring.
7994
86d373e6
JB
79952004-06-02 Juanma Barranquero <lektu@terra.es>
7996
7997 Work around bugs/problems with MinGW builds of graphics libraries
7998 called from MSVC builds of Emacs.
7999
8000 * image.c (lookup_image): Make pointer to img static.
8001 (png_read_from_memory): Disable "global" optimization.
8002
2fb0ce67
SM
80032004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8004
c8d09ad8
SM
8005 * eval.c (Fcondition_case): Fix usage. Simplify.
8006
2fb0ce67
SM
8007 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
8008
50bf7673
ST
80092004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8010
8011 * macfns.c: Don't include ccl.h.
8012 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
8013 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
8014 TextUtils.h.
c8d09ad8 8015 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
8016 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
8017 display height/width.
8018 (compute_tip_xy, Vx_max_tooltip_size): Declare.
8019 (unwind_create_tip_frame, compute_tip_xy): New functions.
8020 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
8021 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
8022 and last_show_tip_args.
2fb0ce67 8023
50bf7673
ST
8024 * macgui.h [!MAC_OSX]: Include Gestalt.h.
8025 (Cursor, No_Cursor): New defines.
c8d09ad8 8026 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
8027 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
8028
8029 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
8030
8031 * macterm.c: Don't include Gestalt.h.
8032 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
8033 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
8034 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
8035 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
8036 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
8037 (construct_mouse_click, XTmouse_position)
8038 (x_scroll_bar_report_motion, x_calc_absolute_position)
8039 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
8040 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
8041 (note_mouse_movement): Clear the mouse face and reset the pointer
8042 shape when the pointer goes outside the frame without grabbing.
8043 (mac_front_window): New function.
8044 (mac_window_to_frame): New macro.
8045 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
8046 (do_window_activate, do_window_deactivate, do_app_resume)
8047 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
8048 (do_zoom_window, mac_do_receive_drag, XTread_socket)
8049 (mac_check_for_quit_char): Use mac_front_window and/or
8050 mac_window_to_frame.
8051 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
8052 scroll-bar click event.
8053 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
8054 (x_free_frame_resources): Reset tip_window to NULL when it is
8055 disposed of.
50bf7673 8056 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 8057 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
8058 (do_window_update): Don't do anything if the updated window is the
8059 tooltip window.
8060 (do_mouse_moved): Handle mouse movement events here (previously in
8061 XTread_socket). Clear the mouse face if
8062 dpyinfo->mouse_face_hidden is set.
8063 (do_os_event, do_events): Remove (now in XTread_socket).
8064 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
8065 Loop until all the events in the queue are processed.
8066 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
8067 contents of do_os_event and do_events. Remove mouse movement
8068 handling (now in do_mouse_moved). Add the case where
8069 Vmouse_highlight has an integer value.
8070 (NewMacWindow): Remove.
8071 (make_mac_frame): Do what NewMacWindow previously did. Don't do
8072 excess initializations.
8073 (make_mac_terminal_frame): Previous initializations in
8074 make_mac_frame are moved here.
c8d09ad8
SM
8075 (mac_initialize_display_info):
8076 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
8077
8078 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
8079 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
8080
08fd1251
RS
80812004-05-29 Richard M. Stallman <rms@gnu.org>
8082
8083 * lisp.h (truncate_undo_list): Update decl.
8084
8085 * alloc.c (undo_outer_limit): New variable.
8086 (syms_of_alloc): Defvar it.
8087 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
8088
8089 * undo.c (truncate_undo_list): New arg LIMITSIZE.
8090
8091 * alloc.c (lisp_align_malloc): Check for base == 0
8092 regardless of HAVE_POSIX_MEMALIGN.
8093 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
8094
227ef0ff
SM
80952004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8096
8097 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
8098 (marker_blocks_pending_free): Remove.
8099 (Fgarbage_collect): Sweep after cleaning up undo-lists.
8100 Mark the undo lists after claning them up.
8101 Don't free block in marker_blocks_pending_free.
8102 (mark_buffer): Don't mark undo_list.
8103 (gc_sweep): Sweep hash-tables and strings first.
8104 Do free marker blocks that are empty.
8105
034a6113
SM
81062004-05-28 Jim Blandy <jimb@redhat.com>
8107
8108 * regex.c (print_partial_compiled_pattern): Add missing 'break'
8109 after 'case wordend'. For symbeg and symend, print to stderr,
8110 like the other cases.
8111
33594a8d
NF
81122004-05-28 Noah Friedman <friedman@splode.com>
8113
8114 * process.c (Fdelete_process): Do not call remove_process.
8115
ce50a847
SM
81162004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8117
8118 * alloc.c (struct backtrace): Remove.
8119 (Fgarbage_collect): Use the new mark_backtrace.
8120
8121 * eval.c (mark_backtrace): New function.
8122
8123 * minibuf.c (run_exit_minibuf_hook): New function.
8124 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
8125 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
8126
1e8dae36
KS
81272004-05-27 Kim F. Storm <storm@cua.dk>
8128
8129 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
8130 over display properties, e.g. images, that replace buffer text.
8131
846faa3b
KS
81322004-05-25 Kim F. Storm <storm@cua.dk>
8133
8134 * alloc.c (marker_blocks_pending_free): New var.
8135 (gc_sweep): Store free marker blocks on that list.
8136 (Fgarbage_collect): Free them after undo-list cleanup.
8137
8138 * process.c (wait_reading_process_input): Check connect_wait_mask
8139 before actually accepting connection in case it has already been
8140 accepted due to recursion.
8141
b6189c3b 81422004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 8143
ce50a847
SM
8144 * coding.c (Fset_safe_terminal_coding_system_internal):
8145 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 8146
71d5a208
RS
81472004-05-22 Richard M. Stallman <rms@gnu.org>
8148
8149 * alloc.c (Fmake_string): Doc fix.
8150
8151 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
8152 and the alist pairs too.
8153
8154 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
8155
51391fb9
RF
8156 * emacs.c (main): Update copyright year.
8157
71d5a208
RS
8158 * fileio.c (Fread_file_name): Expand DIR if not absolute.
8159
8160 * insdel.c (del_range_2, replace_range): Don't write an anchor
8161 if the gap is empty.
8162
8163 * xdisp.c (try_scrolling): If scroll-up-aggressively or
8164 scroll-down-aggressively is small but positive, put point
8165 near the screen edge.
8166
f63fd14e
JB
81672004-05-22 Juanma Barranquero <lektu@terra.es>
8168
8169 * keymap.c (Fdefine_key): Doc fix.
8170
4d12067c
KS
81712004-05-22 Kim F. Storm <storm@cua.dk>
8172
8173 * alloc.c (struct backtrace): Add debug_on_exit member.
8174 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
8175 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
8176 the removed cons cells.
8177 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
8178 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
8179 any cons cells pointing to unallocated stings.
8180 Do not lisp_free any marker blocks, as there may still be pointers
8181 to them from buffer undo lists at this stage of GC.
8182
8183 * keyboard.c (struct backtrace): Add debug_on_exit member.
8184 (Fcommand_execute): Clear it.
8185
931285e2
LT
81862004-05-20 Luc Teirlinck <teirllm@auburn.edu>
8187
8188 * intervals.c (lookup_char_property): Do not prematurely return nil.
8189
669fa600
SM
81902004-05-19 Jim Blandy <jimb@redhat.com>
8191
8192 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 8193 beginning and end of symbols.
4d12067c 8194
669fa600
SM
8195 * regex.c (enum syntaxcode): Add Ssymbol.
8196 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
8197 (re_opcode_t): New opcodes `symbeg' and `symend'.
8198 (print_partial_compiled_pattern): Print the new opcodes properly.
8199 (regex_compile): Parse the new operators.
ce50a847 8200 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
8201 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
8202 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
8203 (re_match_2_internal): Match symbeg and symend.
8204
8205 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
8206
0d8c2e5c
KS
82072004-05-19 Kim F. Storm <storm@cua.dk>
8208
8209 * .gdbinit (xsymbol): Fix last change.
8210
669fa600
SM
82112004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
8212
8213 * .gdbinit (xprintstr): New fun.
8214 (xstring, xprintsym): Use it.
8215
8216 * w32proc.c (create_child): Use INTMASK.
8217
8218 * alloc.c (Fgarbage_collect): Do all the marking before flushing
8219 unmarked elements of the undo list.
8220
9a6a4c40
DP
82212004-05-18 David Ponce <david@dponce.com>
8222
8223 * print.c (print): Reset print_depth before to call print_object.
8224
f3c4ec74
JR
82252004-05-18 Jason Rumney <jasonr@gnu.org>
8226
8227 * w32console.c: Prefix RIF functions with w32con_ to avoid
8228 namespace clash with functions in term.c and w32term.c.
8229
8230 * w32menu.c (add_menu_item, w32_menu_display_help)
8231 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
8232
0d8c2e5c 8233 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 8234
6be49c3a
EZ
82352004-05-18 Eli Zaretskii <eliz@gnu.org>
8236
4d0b9a0a
EZ
8237 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
8238
6be49c3a
EZ
8239 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
8240 with make_number.
8241 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
8242 with XINT.
8243
0bc90bba
KS
82442004-05-18 Kim F. Storm <storm@cua.dk>
8245
89d19988
KS
8246 * blockinput.h (INPUT_BLOCKED_P): New macros.
8247
8248 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
8249 (Ftop_level): Unblock input if blocked.
8250
0bc90bba
KS
8251 * buffer.h (GET_OVERLAYS_AT): New macro.
8252 * msdos.c (IT_note_mouse_highlight): Use it.
8253 * textprop.c (get_char_property_and_overlay): Use it.
8254 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
8255 * xfaces.c (face_at_buffer_position): Use it.
8256
8257 * print.c (print_object): Increase buf size.
8258
653bd0f6
JR
82592004-05-17 Jason Rumney <jasonr@gnu.org>
8260
8261 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
8262 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
8263 Lisp_Object using i member.
8264 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
8265 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
8266 consistently.
8267
8268 * w32proc.c (create_child): Use make_number instead of masking pid.
8269
8270 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
8271 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
8272 Use EQ to compare Lisp_Objects.
8273 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
8274
8275 * w32term.c (w32_num_mouse_buttons): Rename from
8276 Vw32_num_mouse_buttons and make it an int.
8277
8278 * w32.c (init_environment): Use it.
8279
8280 * w32fns.c (w32_wnd_proc): Likewise.
8281
8282 * w32proc.c (w32_pipe_read_delay): Rename from
8283 Vw32_pipe_read_delay and make it an int.
8284
8285 * w32.c (_sys_read_ahead): Use it.
8286
8287 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
8288
8289 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
8290
8291 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
8292 (key_event): Don't mix Lisp_Object and int.
8293
8294 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
8295
8296 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
8297 modifiers in language change event.
8298
54b53ba7
KS
82992004-05-17 Kim F. Storm <storm@cua.dk>
8300
8301 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
8302 Such objects may be freed markers which still exist on an undo list.
8303
6e86a75d
JB
83042004-05-16 Juanma Barranquero <lektu@terra.es>
8305
8306 * data.c (Fset_default): Make argument names match their use in
8307 docstring.
8308
fc80da24
AS
83092004-05-15 Andreas Schwab <schwab@suse.de>
8310
8311 * emacs.c (gdb_array_mark_flag): Define.
8312 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
8313
c1380aa6
EZ
83142004-05-15 Eli Zaretskii <eliz@gnu.org>
8315
8316 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
8317 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
8318 defined for the MS-DOS build.
8319
89458937
SM
83202004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8321
8322 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
8323
08020f9a
KH
83242004-05-14 Kenichi Handa <handa@m17n.org>
8325
8326 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
8327
a433994a
ST
83282004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8329
8330 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
8331 section to frame.c section.
8332 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 8333 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 8334
a433994a 8335 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 8336
a433994a 8337 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 8338
a433994a
ST
8339 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
8340 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
8341 (XTread_socket): Fix int/Lisp_Object mixup.
8342 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 8343
a433994a
ST
8344 * macterm.h (struct frame, struct face, struct image)
8345 (display_x_get_resource, Fx_display_color_p)
89458937
SM
8346 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
8347 Add prototypes.
a433994a 8348
b51a51b9
KS
83492004-05-14 Kim F. Storm <storm@cua.dk>
8350
8351 * process.c (wait_reading_process_input): Make reentrant.
8352 Make Available and Connecting non-static. Save and restore value
8353 of waiting_for_user_input_p.
8354
2bde1dd8
KS
83552004-05-13 Kim F. Storm <storm@cua.dk>
8356
8357 * keyboard.c (mark_kboards): Don't mark x and y members
8358 that are overloaded in selection request events.
8359
a267ab4d
SM
83602004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8361
8362 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
8363
eb15ce9e
GM
83642004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
8365
8366 * window.c (Fdisplay_buffer, Fsplit_window)
8367 (split-height-threshold): Doc fix.
8368
7fc92635
JB
83692004-05-13 Juanma Barranquero <lektu@terra.es>
8370
8371 * xfaces.c (Ftty_supports_face_attributes_p)
8372 (Finternal_copy_lisp_face): Fix typo in docstring.
8373 (Finternal_get_lisp_face_attribute): Fix docstring.
8374
1ec2a572
JD
83752004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8376
8377 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
8378
ae9292e0
ST
83792004-05-11 Steven Tamm <steventamm@mac.com>
8380
8381 * macfns.c (Fx_create_frame): Default to using tool-bar by
8382 setting tool-bar-lines to 1 in default-frame-alist.
8383
83842004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
8385
8386 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
8387 (xpm_get_color_table_v, xpm_make_color_table_h)
8388 (xpm_put_color_table_h, xpm_get_color_table_h)
8389 (xpm_str_to_color_key, xpm_load_image, xpm_load)
8390 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 8391 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 8392
fe97e8df
ST
83932004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8394
a267ab4d 8395 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
8396 instead of FRAME_X_P
8397
b47e779e
KS
83982004-05-11 Kim F. Storm <storm@cua.dk>
8399
8400 * process.c (read_process_output): Grow decoding_buf when needed;
8401 this could cause a crash in allocate_string and compact_small_strings.
8402
cdc9b845
EZ
84032004-04-29 Jim Blandy <jimb@redhat.com>
8404
8405 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
8406 against proper opcode.
8407
aa7094ba
JB
84082004-05-10 Juanma Barranquero <lektu@terra.es>
8409
8410 * process.c (Fstart_process): Fix docstring.
8411
8412 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
8413 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
8414 (Fsplit_char, Fchar_charset): Make argument names match their use
8415 in docstring.
8416
e109331a
RS
84172004-05-10 Richard M. Stallman <rms@gnu.org>
8418
8419 * print.c (print_preprocess): Use being_printed, loop_count and
8420 halftail to detect overdeep nesting and cyclic cdr chains.
8421
9a28b921
AS
84222004-05-10 Andreas Schwab <schwab@suse.de>
8423
78819ebb 8424 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
8425
8426 * fileio.c (Frename_file): Remove extra argument in call to
8427 Fmake_symbolic_link.
8428
e2c02c1a
KS
84292004-05-10 Kim F. Storm <storm@cua.dk>
8430
8431 * xdisp.c (calc_line_height_property): Use string position when
8432 object is a string.
8433
cfe9d13e
KH
84342004-05-10 Kenichi Handa <handa@m17n.org>
8435
a57e8159
KH
8436 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
8437 inhibit-modification-hooks to t temporarily before calling
8438 Ferase_buffer.
8439
8440 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
8441 inhibit-modification-hooks to t temporarily before calling
8442 Ferase_buffer.
8443
8444 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
8445 inhibit-modification-hooks to t temporarily before calling
8446 Ferase_buffer.
8447
cfe9d13e
KH
8448 * fns.c (count_combining): Delete it.
8449 (concat): Don't check combining bytes.
8450
ceb96489
JR
84512004-05-09 Jason Rumney <jasonr@gnu.org>
8452
8453 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
8454 (globals_of_w32fns): Set it.
8455
b6189c3b 84562004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
8457
8458 * data.c (Fquo): Simplify.
8459
28712a21
JB
84602004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
8461
8462 * data.c (Fquo): If any argument is float, do the computation in
8463 floating point.
8464
0f0af7a8
JB
84652004-05-08 Juanma Barranquero <lektu@terra.es>
8466
88214ef6
JB
8467 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
8468 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
8469 Fix spelling of Emacs on docstring.
8470 (Fset_process_coding_system, Fprocess_coding_system)
8471 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
8472 Make argument names match their use in docstring.
8473 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
8474 Fix docstring.
8475
0f0af7a8
JB
8476 * editfns.c (Finsert_buffer_substring): Make argument names match their
8477 use in docstring.
8478
8479 * syntax.c (Fmodify_syntax_entry): Fix docstring.
8480
2a316a84
ST
84812004-05-07 Steven Tamm <steventamm@mac.com>
8482
8483 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
8484 around call to ReceiveEvent to avoid certain crashes.
8485
84862004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 8487
2a316a84
ST
8488 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
8489 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
8490 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
8491 Save/restore the current graphics port and device handle when
8492 drawing into an offscreen graphics world.
8493
8494 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
8495 (gif_load): Likewise.
8496
ab80314b
JB
84972004-05-07 Juanma Barranquero <lektu@terra.es>
8498
8499 * window.c (Fset_window_buffer): Fix docstring.
8500
70646bb5
TTN
85012004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
8502
8503 * emacs.c (main) [VMS]: Fix var ref.
8504
b6189c3b 85052004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
8506
8507 * data.c (Fsetq_default): Fix docstring.
8508
279d3293
JR
85092004-05-06 Jason Rumney <jasonr@gnu.org>
8510
8511 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
8512 to avoid name clash.
8513
f72b5416
JD
85142004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8515
8516 * fileio.c (barf_or_query_if_file_exists): Use lstat.
8517 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 8518 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 8519
6ab66799
KS
85202004-05-04 Kim F. Storm <storm@cua.dk>
8521
8522 * xdisp.c (Qtotal): New var.
8523 (syms_of_xdisp): Intern and staticpro it.
8524 (calc_line_height_property): New arg total. Set it if
8525 line-spacing property has format (total . VALUE).
8526 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
8527 Handle total line-spacing property.
8528
ab2d724b
JD
85292004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8530
8531 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
8532 "under" scroll bar when size/position changes.
8533
238add5e
JR
85342004-05-03 Jason Rumney <jasonr@gnu.org>
8535
8536 * makefile.nt: Remove.
8537
1644f4e4
EZ
85382004-05-02 Eli Zaretskii <eliz@gnu.org>
8539
a267ab4d
SM
8540 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
8541 Avoid compiler warnings.
05fdbeb8 8542
1644f4e4
EZ
8543 * Makefile.in (region-cache.o): Depend on config.h.
8544
b6189c3b 85452004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
8546
8547 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
8548 with continuation lines, too.
8549
2b98b088
TTN
85502004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
8551
8552 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
8553
d9bf7950
SM
85542004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
8555
8556 * xdisp.c (calc_line_height_property): YAILOM (yet another
8557 int/Lisp_Object mixup).
8558
affa509c
EZ
85592004-05-01 Eli Zaretskii <eliz@gnu.org>
8560
8561 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
8562 undo bad effect of pack(4) in some versions of system headers.
8563
07c07cfe
JR
85642004-05-01 Jason Rumney <jasonr@gnu.org>
8565
8566 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
8567
e71caa4e
KS
85682004-04-30 Kim F. Storm <storm@cua.dk>
8569
8570 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 8571 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
8572
8573 * dispextern.h (struct it): Remove member use_default_face.
8574 Add members override_ascent, override_descent, override_boff.
8575
8576 * xdisp.c (init_iterator): Handle line-spacing float value.
8577 Initialize override_ascent member.
8578 (append_space_for_newline): Reset override_ascent.
8579 Remove use_default_face.
8580 (calc_line_height_property): New function to calculate value of
8581 line-height and line-spacing properties. Look at overlays, too.
8582 Set override_ascent, override_descent, override_boff members when
8583 using another face than the current face. Float values are now
8584 relative to the frame default font, by default; accept a cons
8585 of ratio and face name to specify value relative to a specific face.
8586 (x_produce_glyphs): Use calc_line_height_property.
8587 Use override_ascent etc. when set to handle different face heights.
8588 A negative line-spacing property value is interpreted as a total
8589 line height, rather than inter-line spacing.
8590 (note_mouse_highlight): Allocate room for 40 overlays initially.
8591
0fddae66
SM
85922004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8593
8594 * data.c (Fsubr_name): New fun.
8595 (syms_of_data): Defsubr it.
8596
712d23dc
KS
85972004-04-29 Kim F. Storm <storm@cua.dk>
8598
8599 * xdisp.c (null_glyph_slice): New var.
8600 (append_glyph, append_composite_glyph, append_stretch_glyph):
8601 Use it to initialize glyph slice.
8602
033ad8c6
SM
86032004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
8604
8605 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
8606 (on_hot_spot_p): Make sure we always return a value.
8607 (Flookup_image_map): Remove unused var ix and iy.
8608 (note_mode_line_or_margin_highlight): Remove unused var `image'.
8609
93397360
EZ
86102004-04-27 Eli Zaretskii <eliz@gnu.org>
8611
8612 * msdos.c (init_environment): If one of the TMP... environment
8613 variables is set to a drive letter without a trailing slash,
8614 append a slash.
8615
0c54865e
EZ
86162004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
8617
8618 * editfns.c (lisp_time_argument): Provide externally.
8619
8620 * fileio.c (Fset_file_times): New function.
8621 (syms_of_fileio): Intern and staticpro it.
8622
d3b111bd
KS
86232004-04-27 Kim F. Storm <storm@cua.dk>
8624
07dc1231
KS
8625 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
8626 header line strings.
8627
360fe9d2
KS
8628 * dispextern.h (struct it): New member use_default_face.
8629
d3b111bd
KS
8630 * xdisp.c (Qline_height): New variable.
8631 (syms_of_xdisp): Intern and staticpro it.
8632 (append_space_for_newline): Partially undo 2004-04-25 change;
8633 add default_face_p arg, and restore callers.
8634 Clear it->use_default_face after use.
8635 (x_produce_glyphs): Set default font for ascii char if
8636 it->use_default_font is set. Change line-spacing property to set
8637 just extra line spacing. Handle new line-height property.
8638
0448588b
AS
86392004-04-26 Andreas Schwab <schwab@suse.de>
8640
8641 * print.c (print_object): Print non-ascii characters in bool
8642 vector representation as octal escapes.
8643
8644 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
8645 * print.c (print_object): Use it instead of BITS_PER_CHAR for
8646 bool vectors.
8647 * lread.c (read1): Likewise.
8648 * alloc.c (Fmake_bool_vector): Likewise.
8649 * data.c (Faref, Faset): Likewise.
8650 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
8651 (mapcar1): Likewise.
d3b111bd 8652
536d6baa
ST
86532004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
8654
7e26f91b 8655 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 8656
ae11577a
MB
86572004-04-26 Miles Bader <miles@gnu.org>
8658
8659 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
8660
e198ba87
JB
86612004-04-26 Juanma Barranquero <lektu@terra.es>
8662
8663 * buffer.c (Fpop_to_buffer): Fix docstring.
8664
f3d5f92d 86652004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 8666
f3d5f92d
ST
8667 * lread.c (init_lread): Don't display missing lisp directory
8668 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 8669 may be built without correct installation path.
f3d5f92d 8670
03e35edc
KS
86712004-04-25 Kim F. Storm <storm@cua.dk>
8672
9ff3aa31
KS
8673 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8674
8675 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8676
03e35edc
KS
8677 * xdisp.c (append_space_for_newline): Rename from append_space.
8678 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
8679 (x_produce_glyphs): Handle line-spacing property on newline char.
8680 If value is t, adjust ascent and descent to fit current row height.
8681 If value is an integer or float, set extra_line_spacing to integer
8682 value, or to float value x current line height.
8683
f24814e0
KH
86842004-04-23 Kenichi Handa <handa@m17n.org>
8685
8686 * fontset.c (Finternal_char_font): If POSITION is nil, return
8687 font for displaying CH with the default face.
8688
d814862a
JB
86892004-04-23 Juanma Barranquero <lektu@terra.es>
8690
8691 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
8692
063a45c5
SM
86932004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8694
8695 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
8696 Don't make assumptions about the relative place of i and val.
8697 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
8698
ae7ab2d3
KS
86992004-04-21 Kim F. Storm <storm@cua.dk>
8700
8701 * dispextern.h (struct glyph_slice): New struct.
8702 (struct glyph): New member slice.
8703 (GLYPH_SLICE_EQUAL_P): New macro.
8704 (GLYPH_EQUAL_P): Use it.
8705 (struct glyph_string): New member slice.
8706 (struct it_slice): New struct.
8707 (struct it): New member slice, add member to stack too.
8708 New member constrain_row_ascent_descent_p.
8709 (image_ascent): Add prototype.
8710
8711 * dispnew.c (buffer_posn_from_coords): Return full image width
8712 and height even for image slices (posn is relative to full image).
8713 (marginal_area_string): Adjust x0,y0 for image slice.
8714
8715 * image.c (image_ascent): Add slice arg; calculate ascent for
8716 image slice (or full image).
8717
8718 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
8719 (syms_of_keyboard): Defsubr them.
8720
8721 * lisp.h (pos_visible_p): Fix prototype.
8722
c62aec78 8723 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
8724 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8725 (x_draw_image_foreground, x_draw_image_relief)
8726 (x_draw_image_foreground_1, x_draw_image_glyph_string):
8727 Draw sliced images.
8728
8729 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
8730 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8731 (x_draw_image_foreground, x_draw_image_relief)
8732 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
8733 Draw sliced images.
8734
8735 * w32term.h (image_ascent): Remove prototype.
8736
8737 * window.c (Fpos_visible_in_window_p): Return pixel position if
8738 PARTIALLY arg is non-nil. Simplify. Doc fix.
8739 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
8740 to return/set vscroll in pixels.
8741
8742 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
8743
8744 * xdisp.c (Qslice): New variable.
8745 (syms_of_xdisp): Intern and staticpro it.
8746 (pos_visible_p): Return pixel position in new x and y args.
8747 (init_iterator): Reset it->slice info.
8748 (handle_display_prop): Parse (slice ...) property.
8749 (push_it, pop_it): Save/restore slice info.
8750 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
8751 force repositioning of tall row if window is vscrolled, as that
8752 would reset vscroll.
8753 (append_space): Set it->constrain_row_ascent_descent_p to avoid
8754 increasing row height if row is non-empty.
8755 (fill_image_glyph_string): Copy slice info.
8756 (take_vertical_position_into_account): Simplify.
8757 (produce_image_glyph): Handle iterator slice info, setup glyph
8758 slice info. Do not force minimum line height.
8759 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
8760 do not increase height (ascent/descent) of non-empty row when
8761 adding normal character glyph; instead reduce glyph ascent/descent
8762 appropriately; if row is higher than current glyph, adjust glyph
8763 descent/ascent to reposition glyph within the existing row.
8764 Likewise, when char is newline, only set ascent/descent if row is
8765 currently empty.
8766 (note_mouse_highlight): Handle hotspots with sliced image.
8767
8768 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
8769 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8770 (x_draw_image_foreground, x_draw_image_relief)
8771 (x_draw_image_foreground_1, x_draw_image_glyph_string):
8772 Draw sliced images.
8773
8774 * xterm.h (image_ascent): Remove prototype.
8775
d58f8753
SM
87762004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8777
8778 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
8779
4ce2719d
JPW
87802004-04-20 John Paul Wallington <jpw@gnu.org>
8781
8782 * fns.c (Fassoc, Feql): Fix indentation.
8783
d58f8753 8784 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 8785
95f8c3b9
JPW
87862004-04-19 John Paul Wallington <jpw@gnu.org>
8787
8788 * fns.c (Feql): New function.
d58f8753 8789 (syms_of_fns): Defsubr it.
95f8c3b9 8790
b7e85537
JR
87912004-04-18 Jason Rumney <jasonr@gnu.org>
8792
8793 * w32select.c (Fw32_set_clipboard_data): Get sequence number
8794 after closing the clipboard.
8795
5a72efd4
LT
87962004-04-16 Luc Teirlinck <teirllm@auburn.edu>
8797
8798 * buffer.c (Fbuffer_base_buffer): Doc fix.
8799
20dc8583
KS
88002004-04-17 Kim F. Storm <storm@cua.dk>
8801
60962ec4
KS
8802 * keymap.c (Fkey_description): Add optional PREFIX arg.
8803 Combine prefix with KEYS to make up the full key sequence to describe.
8804 Correlate meta_prefix_char and following (simple) key to describe
8805 as meta modifier. All callers changed.
8806 (describe_map): Rename arg `keys' to `prefix'. Remove local
8807 `elt_prefix' var. Use Fkey_description with prefix instead of
8808 elt_prefix combined with Fsingle_key_description.
8809 (describe_vector): Declare static. Replace arg `elt_prefix' with
8810 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 8811 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
8812 Fsingle_key_description.
8813
8814 * keymap.h (Fkey_description): Fix prototype.
8815 (describe_vector): Remove prototype.
8816
409368b9
KS
8817 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
8818
20dc8583
KS
8819 * image.c (PNG_BG_COLOR_SHIFT): Remove.
8820 (png_load): Fix calculation of transparent background color on X
8821 and W32 platforms.
8822
75c5501b
JB
88232004-04-16 Juanma Barranquero <lektu@terra.es>
8824
8825 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
8826 not too large before computing how much to scroll.
8827
da879ae8
SM
88282004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
8829
8830 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
8831
d01ca4a8
LT
88322004-04-14 Luc Teirlinck <teirllm@auburn.edu>
8833
8834 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
8835 Add hyperlink to Elisp manual to the docstring.
8836
572943b3
SM
88372004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
8838
8839 * callint.c (fix_command): Use XDCR.
8840
5e30a0fb
NR
88412004-04-14 Nick Roberts <nick@nick.uklinux.net>
8842
8843 * window.c (Fget_lru_window): Doc fix.
8844
a27ddfaf
KS
88452004-04-14 Kim F. Storm <storm@cua.dk>
8846
8847 * editfns.c (Fformat): Fix allocation size of precision array.
8848
8849 * dispnew.c (update_window): Only set changed_p if
8850 scrolling_window actually did scroll.
8851 (scrolling_window): Only return 1 if we actually did scroll.
8852
8853 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
8854 height to glyph height when cursor row is not fully visible.
8855 (make_cursor_line_fully_visible): Add FORCE_P arg to return
8856 failure in case row is higher than window. Callers changed.
8857 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
8858 Try to scroll partially visible, higher-than-window cursor row.
8859 (redisplay_window): Always try to scroll partially visible,
8860 higher-than-window cursor row - both initially and again with
8861 centering_position = 0.
8862 Clear desired matrix before retrying with centering_position = 0.
8863
da879ae8
SM
88642004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8865
8866 * syntax.c (scan_lists): Simplify backward string scan.
8867 Fix off-by-one boundary check for string and comment fences.
8868
5fc16e8e
SM
88692004-04-13 Joe Buehler <jbuehler@hekimian.com>
8870
8871 * sheap.c, unexcw.c: New files.
8872
c9aac8e6
LT
88732004-04-12 Luc Teirlinck <teirllm@auburn.edu>
8874
8875 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
8876 base buffer has been killed. Correct the error message if the
8877 base buffer does not exist.
8878
1e88a355
SM
88792004-04-12 Joe Buehler <jbuehler@hekimian.com>
8880
8881 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
8882 Cygwin itself. Add support for Xaw3d scrollbars.
8883
8884 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
8885
8886 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
8887
8888 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
8889 before Cygwin unexec.
8890
8891 * Makefile.in: Link changes for Cygwin unexec() support.
8892
8dbff9a0
AS
88932004-04-12 Andreas Schwab <schwab@suse.de>
8894
8895 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
8896
54dffe35
LT
88972004-04-11 Luc Teirlinck <teirllm@auburn.edu>
8898
8899 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
8900 IGNORE argument equals NAME. Doc fix.
8901
99a72bdf
MY
89022004-04-11 Masatake YAMATO <jet@gyve.org>
8903
1e88a355 8904 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
8905 empty if they are backwards.
8906
40899d7b
SM
89072004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8908
8909 * xfaces.c (face_color_supported_p): Fix compilation without X11.
8910
f8f853de
SM
89112004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
8912
8913 * doc.c (Fsnarf_documentation): Ignore new file name entries.
8914
c953fe1b
KS
89152004-04-06 Kim F. Storm <storm@cua.dk>
8916
661e85c1
KS
8917 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8918 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
8919
8920 * w32term.c (w32_read_socket): Set mouse_face_hidden after
8921 clearing highlight.
8922
8923 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8924
8925 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
8926 clearing highlight.
8927
c953fe1b
KS
8928 * indent.c (vmotion): Do not reserve one column for continuation
8929 marks on window frames.
8930
c1994268
EZ
89312004-04-04 Eli Zaretskii <eliz@gnu.org>
8932
8933 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
8934 from GCC.
8935
9f691b0d
SM
89362004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8937
8938 * .gdbinit-union: Remove.
8939
8940 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
8941 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
8942 ($nonvalbits): Remove.
8943 ($valmask): Set it by calling xreload to avoid redundancy.
8944
8945 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
8946 (gdb_emacs_intbits): Remove.
8947
7a8560d7
JD
89482004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8949
9f691b0d 8950 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 8951
3c8111fc
KH
89522004-03-30 Kenichi Handa <handa@m17n.org>
8953
8954 * editfns.c (Fformat): Fix initialization of the array info.
8955
48a0bce4
KS
89562004-03-30 Kim F. Storm <storm@cua.dk>
8957
8958 * xterm.c (x_mouse_click_focus_ignore_position): New var.
8959 (syms_of_xterm): DEFVAR_BOOL it.
8960 (ignore_next_mouse_click_timeout): New var.
8961 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
8962 Use it to filter mouse clicks following focus event.
8963
1cd0066c
KS
89642004-03-29 David Ponce <david@dponce.com>
8965
8966 * callint.c (Fcall_interactively): Fix last change.
8967
adb3b353
SM
89682004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8969
8970 * eval.c (Fcommandp): Simplify.
8971
8972 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
8973 Extend to handle all kinds of functions.
8974
8975 * lisp.h (Finteractive_form): Declare.
8976
8977 * callint.c (Fcall_interactively): Use it.
8978
6fc4c9c9
KS
89792004-03-26 Kim F. Storm <storm@cua.dk>
8980
8981 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
8982 to catch errors in calc_pixel_width_or_height during redisplay.
8983
abdb9b83
MY
89842004-03-26 Masatake YAMATO <jet@gyve.org>
8985
b17856dd 8986 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 8987
b17856dd 8988 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 8989
b17856dd 8990 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 8991
b17856dd 8992 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 8993
e8a84b6c
JD
89942004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8995
b17856dd 8996 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 8997
36a3fd05
RS
89982004-03-19 Richard M. Stallman <rms@gnu.org>
8999
9000 * s/sol2-6.h: Delete previous change.
9001
ab24c127
KS
90022004-03-19 Kim F. Storm <storm@cua.dk>
9003
9004 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
9005 to_charpos corresponds to newline in right fringe. Use local
9006 BUFFER_POS_REACHED_P macro.
9007
992126de
JD
90082004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9009
9010 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
9011 to compile on non-window system.
9012
45dbfc84
KS
90132004-03-19 Kim F. Storm <storm@cua.dk>
9014
9015 * dispextern.h (calc_pixel_width_or_height): Add prototype.
9016
9017 * image.c (Qcenter): Move to xdisp.c.
9018
9019 * xdisp.c (Qcenter): Declare here.
adb3b353 9020 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
9021 (handle_single_display_prop): Allow space display property on all
9022 platforms.
9023 (display_mode_line): Set mode_line_p before displaying line.
9024 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
9025 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 9026 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
9027 width/height. Return width or height for image specs.
9028 (produce_stretch_glyph): Improve handling of :align-to. Is now
9029 relative to left of text area by default, but other base offsets
9030 can be specified -- also for text lines.
9031
9032 * term.c (produce_glyphs): Handle IT_STRETCH.
9033 (produce_stretch_glyph): New function to handle space width and
9034 align-to display properties on non-window systems.
9035
37264101
SM
90362004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9037
9038 * fileio.c (Fread_file_name): Set completion-ignore-case for
9039 case-insensitive systems.
9040
73bc43da
MY
90412004-03-14 Masatake YAMATO <jet@gyve.org>
9042
9043 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
9044 when keymap and cursor are setup.
9045
d5fb8dab 90462004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 9047
b17856dd 9048 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 9049
e4b1b5ab
KS
90502004-03-14 Kim F. Storm <storm@cua.dk>
9051
9052 * dispextern.h (x_find_image_file): Add prototype.
9053
9054 * image.c (x_find_image_file): Make extern.
9055
9056 * xfns.c (x_find_image_file): Remove prototype.
9057
a6eeaa81 90582004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 9059
37264101 9060 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 9061
37264101 9062 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 9063
e69cfac2
RS
90642004-03-12 Richard M. Stallman <rms@gnu.org>
9065
9066 * fns.c (internal_equal): New arg PROPS controls comparing
9067 text properties. All callers changed.
9068 (Fequal_including_properties): New function.
9069 (syms_of_fns): defsubr it.
9070
45034953
KS
90712004-03-12 Kim F. Storm <storm@cua.dk>
9072
9073 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 9074
45034953
KS
9075 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
9076 (image_background, image_background_transparent): Fix prototypes.
9077
37264101 9078 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
9079
9080 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
9081 (x_query_font, x_find_ccl_program, x_set_window_size)
9082 (x_make_frame_visible, mac_initialize, XCreatePixmap)
9083 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9084 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
9085
9086 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
9087 (x_query_font, x_find_ccl_program, x_set_window_size)
9088 (x_make_frame_visible, mac_initialize, XCreatePixmap)
9089 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9090 (mac_draw_line_to_pixmap): Add prototypes.
9091
90922004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9093
9094 * macterm.c (XTread_socket): Fix mouse click on tool bar.
9095
a12d3d87
KS
90962004-03-11 Kim F. Storm <storm@cua.dk>
9097
d3ab1cf1
KS
9098 * dispextern.h: Move image related prototypes from xfns.c section
9099 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
9100 HAVE_X_WINDOWS.
37264101 9101
37de9f51 9102 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 9103 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
9104 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
9105 (GTK_OBJ) [USE_GTK]: New declaration.
9106 (obj): Add $(GTK_OBJ) to list.
9107
d5fb8dab 91082004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 9109
7e26f91b 9110 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
9111
9112 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 9113 defined in image.c.
5243c06a 9114
c0f97789
KS
91152004-03-11 Kim F. Storm <storm@cua.dk>
9116
9117 The following changes consolidates the identical/similar image
9118 support code previously found in xfns.c, w32fns.c, and macfns.c
9119 into a new file image.c.
9120
9121 * makefile.w32-in (OBJ1): Add image.o.
9122 ($(BLD)/image.$(O)): Add dependencies.
9123
9124 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
9125 (image.o): Add dependencies.
37264101 9126
c0f97789
KS
9127 * image.c: New file with consolidated image support code.
9128 (COLOR_TABLE_SUPPORT): New define to control whether
9129 color table support is available (X only).
9130 (Bitmap_Record): Common name for x_bitmap_record,
9131 w32_bitmap_record, and mac_bitmap_record.
9132 (XImagePtr): Common name for pointer to XImage or equivalent.
9133 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
9134 to XImagePtr on X+MAC, and to HDC on W32.
9135 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
9136 (NO_PIXMAP): Common name for "None" or equivalent.
9137 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
9138 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
9139 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
9140 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
9141 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
9142 (XDrawLine): Define on MAC for code sharing.
9143 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
9144 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
9145 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9146 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9147 (x_reference_bitmap, x_create_bitmap_from_data)
9148 (x_create_bitmap_from_file, x_destroy_bitmap)
9149 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9150 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9151 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9152 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9153 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9154 (define_image_type, lookup_image_type, valid_image_p)
9155 (image_error, enum image_value_type, struct image_keyword)
9156 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9157 (make_image, free_image, prepare_image_for_display, image_ascent)
9158 (four_corners_best, image_background, image_background_transparent)
9159 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9160 (make_image_cache, free_image_cache, clear_image_cache)
9161 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9162 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9163 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9164 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
9165 (init_image_func_pointer, image_load_quartz2d)
9166 (struct ct_color, init_color_table, free_color_table)
9167 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9168 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9169 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9170 (x_disable_image, x_build_heuristic_mask)
9171 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9172 (TIFF support, GIF support, Ghostscript support): Consolidate image
9173 code from xfns.c, w32fns.c, and macfns.c.
9174 (syms_of_image): Consolidate image related symbol setup here.
9175 (init_image): Consolidate image related initializations here.
37264101 9176
c0f97789
KS
9177 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
9178 and init_image. Remove call to init_xfns.
9179
37264101
SM
9180 * macterm.h (struct mac_bitmap_record): Add file member.
9181 Not currently used, but simplifies code sharing.
c0f97789
KS
9182
9183 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9184 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9185 (x_reference_bitmap, x_create_bitmap_from_data)
9186 (x_create_bitmap_from_file, x_destroy_bitmap)
9187 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9188 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9189 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9190 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9191 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9192 (define_image_type, lookup_image_type, valid_image_p)
9193 (image_error, enum image_value_type, struct image_keyword)
9194 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9195 (make_image, free_image, prepare_image_for_display, image_ascent)
9196 (four_corners_best, image_background, image_background_transparent)
9197 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9198 (make_image_cache, free_image_cache, clear_image_cache)
9199 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9200 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9201 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9202 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
9203 (init_image_func_pointer, image_load_quartz2d)
9204 (struct ct_color, init_color_table, free_color_table)
9205 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9206 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9207 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9208 (x_disable_image, x_build_heuristic_mask)
9209 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9210 (TIFF support, GIF support, Ghostscript support): Merge with image
9211 code from xfns.c and macfns.c into image.c.
9212 (syms_of_xfns): Move image related symbols to image.c.
9213 (init_external_image_libraries, init_xfns): Remove; initialization
9214 moved to init_image in image.c.
9215
9216 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9217 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9218 (x_reference_bitmap, x_create_bitmap_from_data)
9219 (x_create_bitmap_from_file, x_destroy_bitmap)
9220 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9221 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9222 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9223 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9224 (define_image_type, lookup_image_type, valid_image_p)
9225 (image_error, enum image_value_type, struct image_keyword)
9226 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9227 (make_image, free_image, prepare_image_for_display, image_ascent)
9228 (four_corners_best, image_background, image_background_transparent)
9229 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9230 (make_image_cache, free_image_cache, clear_image_cache)
9231 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9232 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9233 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9234 (struct ct_color, init_color_table, free_color_table)
9235 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9236 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9237 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9238 (x_disable_image, x_build_heuristic_mask)
9239 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9240 (TIFF support, GIF support, Ghostscript support): Merge with image
9241 code from xfns.c and macfns.c into image.c.
9242 (syms_of_xfns): Move image related symbols to image.c.
9243 (init_external_image_libraries, init_xfns): Remove; initialization
9244 moved to init_image in image.c.
9245
9246 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9247 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9248 (x_reference_bitmap, x_create_bitmap_from_data)
9249 (x_create_bitmap_from_file, x_destroy_bitmap)
9250 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9251 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9252 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9253 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9254 (define_image_type, lookup_image_type, valid_image_p)
9255 (image_error, enum image_value_type, struct image_keyword)
9256 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9257 (make_image, free_image, prepare_image_for_display, image_ascent)
9258 (four_corners_best, image_background, image_background_transparent)
9259 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9260 (make_image_cache, free_image_cache, clear_image_cache)
9261 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9262 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9263 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9264 (struct ct_color, init_color_table, free_color_table)
9265 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9266 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9267 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9268 (x_disable_image, x_build_heuristic_mask)
9269 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9270 (TIFF support, GIF support, Ghostscript support): Merge with
9271 w32fns.c and macfns.c image code into image.c.
9272 (syms_of_xfns): Move image related symbols to image.c.
9273 (init_xfns): Remove; initialization moved to init_image in image.c.
9274
9275 * lisp.h (syms_of_image, init_image): Add protoypes.
9276 (init_xfns): Remove prototype.
9277
9278 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9279 (x_reference_bitmap, x_create_bitmap_from_data)
9280 (x_create_bitmap_from_file, x_destroy_bitmap)
9281 (x_create_bitmap_mask): Move prototypes from dispextern.h.
9282 (gamma_correct) [MAC_OS]: Add prototype.
9283
9284 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9285 (x_reference_bitmap, x_create_bitmap_from_data)
9286 (x_create_bitmap_from_file, x_destroy_bitmap)
9287 (x_create_bitmap_mask): Move prototypes to dispextern.h.
9288
6eced09c
KH
92892004-03-09 Kenichi Handa <handa@etlken2>
9290
9291 * coding.c (decode_coding_emacs_mule): Handle insufficent source
9292 correctly.
9293
9a7e95f3
RS
92942004-03-04 Richard M. Stallman <rms@gnu.org>
9295
04a6e76b
RS
9296 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
9297
9a7e95f3
RS
9298 * window.c (Fdisplay_buffer): Doc fix.
9299
9300 * buffer.c (Fpop_to_buffer): Doc fix.
9301
6c2488df
KS
93022004-03-03 Kim F. Storm <storm@cua.dk>
9303
9304 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
9305
d8d95bc7
SM
93062004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
9307
9308 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
9309
357589bf
RS
93102004-03-02 Richard M. Stallman <rms@gnu.org>
9311
9312 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
9313
409949b5
KH
93142004-03-02 Kenichi Handa <handa@m17n.org>
9315
9316 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
9317
d24bc50f
KS
93182004-03-02 Kim F. Storm <storm@cua.dk>
9319
9320 * window.h (struct window): New member overlay_arrow_bitmap.
9321
9322 * window.c (make_window): Initialize overlay_arrow_bitmap.
9323
9324 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
9325 implement and integrate multiple overlay arrows with redisplay.
9326 (syms_of_xdisp): DEFVAR_LISP and initialize it.
9327 (last_arrow_position, last_arrow_string): Replace by properties.
9328 (Qlast_arrow_position, Qlast_arrow_string)
9329 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
9330 (syms_of_xdisp): Intern and staticpro them.
9331 (overlay_arrow_string_or_property, update_overlay_arrows)
9332 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
9333 (overlay_arrow_at_row): New functions for multiple overlay arrows.
9334 (redisplay_internal): Use them instead of directly accessing
9335 Voverlay_arrow_position etc. for multiple overlay arrows.
9336 (mark_window_display_accurate): Use update_overlay_arrows.
9337 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
9338 (try_window_id): Use overlay_arrows_changed_p.
9339 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
9340 (display_line): Use overlay_arrow_at_row to check multiple
9341 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 9342 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
9343 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
9344 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
9345
9346 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
9347 (update_window_fringes): Remove unused code.
9348
c1464661
JR
93492004-03-01 Jason Rumney <jasonr@gnu.org>
9350
9351 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
9352
a64387ee
JB
93532004-03-01 Juanma Barranquero <lektu@terra.es>
9354
9355 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
9356
9357 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
9358
334faa08
JD
93592004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9360
9361 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
9362 how many colors can be displayed.
9363
bb62616f
KH
93642004-03-01 Kenichi Handa <handa@m17n.org>
9365
9366 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
9367 correctly.
9368
0fd16104
KS
93692004-02-28 Kim F. Storm <storm@cua.dk>
9370
9371 * dispnew.c (update_window): Update header line also if there are
9372 no other changes in window (move code after set_cursor label).
9373
9374 * lisp.h (mark_window_display_accurate): Remove prototype.
9375
9376 * window.c (window_loop, Fforce_window_update): Force mode line
9377 updates by setting prevent_redisplay_optimizations_p and
9378 update_mode_lines.
9379
b59dd9c8
JD
93802004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9381
d8d95bc7 9382 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
9383
9384 * xterm.c (x_calc_absolute_position): Call x_real_positions
9385 to get WM window sizes and use those to calculate position.
d8d95bc7 9386 (x_set_offset): Remove code commented out.
b59dd9c8 9387
a874691c
MB
93882004-02-28 Miles Bader <miles@gnu.org>
9389
9390 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
9391
3e0c6482
KS
93922004-02-28 Kim F. Storm <storm@cua.dk>
9393
9394 * keyboard.c (kbd_buffer_store_event_hold): New function to store
9395 an event into kbd fifo, but with special handling of quit event;
9396 a quit event is saved for later, and further events are discarded
9397 until the saved quit event has been processed.
9398 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
9399 (gen_help_event): Store help event in kbd fifo.
9400 (NREAD_INPUT_EVENTS): Remove.
9401 (read_avail_input): Adapt to new read_socket_hook interface.
9402 Remove allocation and initialization of local input_event buffer,
9403 as read_socket_hook stores events directly in fifo. Allocate and
9404 initialize local hold_quit event to handle postponed quit event
9405 (and store it if set by kbd_buffer_store_event_hold).
9406
9407 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
9408 (gen_help_event): Fix prototype.
9409
a64387ee 9410 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 9411 numcharsp args. Add hold_quit arg.
f63fd14e 9412 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
9413 directly in fifo using kbd_buffer_store_event_hold.
9414
9415 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
9416 (read_input_waiting): Adapt to new read_socket_hook interface.
9417 Remove allocation and initialization of local input_event buffer,
9418 as read_socket_hook stores events directly in fifo. Allocate and
9419 initialize local hold_quit event to handle postponed quit event
9420 (and store it if set by kbd_buffer_store_event_hold).
9421
a64387ee 9422 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
9423
9424 * termhooks.h (read_socket_hook): Fix prototype.
9425
9426 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
9427 numcharsp args. Add hold_quit arg.
f63fd14e 9428 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
9429 directly in fifo using kbd_buffer_store_event_hold.
9430
9431 * w32inevt.h (w32_console_mouse_position): Fix prototype.
9432
9433 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
9434 Add hold_quit arg. Rework to use just one, local, inev
9435 input_event. Store inev directly in fifo using
3e0c6482
KS
9436 kbd_buffer_store_event_hold. Update count in one place.
9437 Postpone call to gen_help_event until inev is stored; use new
9438 local do_help for this.
9439 Remove local emacs_event in handing of ButtonPress event; just use
9440 inev instead (so no reason to copy it later).
9441
9442 * xsmfns.c (x_session_check_input): Remove numchars arg.
9443
d8d95bc7
SM
9444 * xterm.c (x_focus_changed, x_detect_focus_change):
9445 Remove numchars arg. Always store event into bufp arg.
9446 Return nothing. Callers changed accordingly.
3e0c6482
KS
9447 (glyph_rect): Simplify.
9448 (STORE_KEYSYM_FOR_DEBUG): New macro.
9449 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
9450 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
9451 (current_hold_quit) [USE_GTK]: Add.
9452 (event_handler_gdk): Adapt to new handle_one_xevent.
9453 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
9454 Add hold_quit arg. Rework to use just one, local, inev
9455 input_event. Store inev directly in fifo using
3e0c6482
KS
9456 kbd_buffer_store_event_hold. Update count in one place.
9457 Postpone call to gen_help_event until inev is stored; use new
9458 local do_help for this.
9459 Simplify handling of keysyms (consolidate common code). Fix bug
9460 where count was updated with nchars instead of nbytes.
9461 Remove local emacs_event in handing of ButtonPress event; just use
9462 inev instead (so no reason to copy it later).
9463 Remove `out' label. Rename label `ret' to `done'; add various
9464 `goto done' to clarify code flow in deeply nested blocks.
9465 (x_dispatch_event): Simplify as handle_one_xevent now calls
9466 kbd_buffer_store_event itself.
f63fd14e 9467 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
9468 arg. Call handle_one_xevent with new arglist. Store event from
9469 x_session_check_input in fifo.
9470 [USE_GTK]: Setup current_hold_quit.
9471 Decrement handling_signal before unblocking input.
9472 (x_initialize) [USE_GTK]: Initialize current_count.
9473
9474 * xterm.h (x_session_check_input): Fix prototype.
9475
e3564461 94762004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 9477
d8d95bc7 9478 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 9479
e3564461
ST
9480 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
9481 macgui.h).
a64387ee 9482
e3564461 9483 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 9484
e3564461
ST
9485 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
9486 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
9487 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
9488 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
9489 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
9490 (Bitmap): Remove typedef.
9491 (Pixmap): Change int to GWorldPtr.
9492
d8d95bc7 9493 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 9494
d8d95bc7
SM
9495 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9496 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
9497 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
9498 long representation.
9499 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
9500 colors used for masks.
9501 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 9502
e3564461
ST
9503 * macfns.c: Include sys/types.h and sys/stat.h.
9504 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
9505 Include QuickTime/QuickTime.h.
9506 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9507 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
9508 functions defined in macterm.c.
9509 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
9510 (ZPixmap): New #define for compatibility with xfns.c.
9511 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9512 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
9513 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
9514 New functions.
e3564461 9515 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
9516 (x_destroy_x_image, unwind_create_frame, x_disable_image)
9517 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
9518 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
9519 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
9520 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
9521 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
9522 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
9523 long mixup.
9524 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
9525 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
9526 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
9527 (x_set_cursor_type, Fxw_color_values, valid_image_p)
9528 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
9529 (x_alloc_image_color, clear_image_cache, lookup_image)
9530 (x_find_image_file, xbm_read_bitmap_file_data)
9531 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
9532 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
9533 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
9534 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
9535 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 9536 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
9537 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
9538 #if 0.
9539 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
9540 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
9541 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
9542 New functions (from xfns.c).
e3564461
ST
9543 (Fx_create_frame): Record unwind_create_frame.
9544 (Fxw_display_color_p): Use dpyinfo->color_p.
9545 (Fx_display_grayscale_p, Fx_display_planes): Don't use
9546 dpyinfo->n_cbits.
9547 (Fx_display_color_cells): Use dpyinfo->n_planes;
9548 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
9549 (Qheuristic, cross_disabled_images, emboss_matrix)
9550 (laplace_matrix): New variables (from xfns.c).
9551 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
9552 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
9553 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
9554 (image_background_transparent): New function (from xfns.c).
9555 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
9556 (image_load_quicktime): Add declaration.
9557 [MAC_OSX] (image_load_quartz2d): Likewise.
9558 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
9559 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 9560 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
9561 (xbm_load_image_from_file, x_laplace_read_row)
9562 (x_laplace_write_row, pbm_read_file): Remove functions.
9563 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
9564 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
9565 (colors_in_color_table): Sync with xfns.c (although not used).
9566 (lookup_rgb_color): Don't lookup color table. Just do gamma
9567 correction.
9568 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
9569 (x_disable_image): New function (from xfns.c).
9570 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
9571 (x_build_heuristic_mask): Sync with xfns.c.
9572 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
9573 (HAVE_PBM): Remove #ifdef.
9574 (pbm_load): Sync with xfns.c. Set img->width and img->height
9575 before IMAGE_BACKGROUND.
d8d95bc7 9576 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
9577 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
9578 Don't enclose with #if HAVE_PNG.
9579 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
9580 symbol _CGImageCreateWithPNGDataProvider is defined.
9581 Otherwise use image_load_quicktime.
e3564461 9582 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
9583 [HAVE_PNG] (png_load): Sync with xfns.c.
9584 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
9585 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
9586 HAVE_JPEG.
9587 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
9588 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
9589 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
9590 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
9591 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
9592 (tiff_image_p, tiff_load): Don't enclose declarations with #if
9593 HAVE_TIFF.
9594 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
9595 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
9596 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
9597 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
9598 New functions (from xfns.c).
e3564461 9599 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 9600 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
9601 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
9602 Don't enclose with #if HAVE_GIF.
9603 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
9604 animated gif. Otherwise use image_load_quicktime.
9605 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
9606 gif_DrawText to avoid conflict with QuickdrawText.h.
9607 [HAVE_GIF] (gif_load): Sync with xfns.c.
9608 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
9609 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
9610 Ghostscript is not supported yet).
9611 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
9612 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
9613 cross_disabled_images (from xfns.c). Remove #if 0 for supported
9614 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
9615 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
9616 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
9617 HAVE_PNG. Call EnterMovies to support animated gifs.
9618 Call init_image_func_pointer to bind a symbol
e3564461 9619 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 9620
d8d95bc7 9621 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
9622 (x_draw_bar_cursor): Sync declaration with xterm.c.
9623 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
9624 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
9625 graphics).
9626 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
9627 (mac_draw_line_to_pixmap, XCreatePixmap)
9628 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
9629 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
9630 New functions.
9631 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
9632 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
9633 Cast bits to char *.
e3564461
ST
9634 (reflect_byte): New function (from w32fns.c).
9635 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
9636 due to byte alignment.
d8d95bc7
SM
9637 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
9638 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
9639 (XSetForeground): Remove static (now used in macfns.c).
9640 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
9641 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
9642 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
9643 (x_draw_glyph_string_box, x_draw_image_foreground)
9644 (x_draw_image_foreground_1, x_draw_image_glyph_string)
9645 (x_draw_stretch_glyph_string, x_draw_glyph_string)
9646 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
9647 Sync with xterm.c.
9648 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
9649 than the xterm.c version when a strictly horizontal or vertical
9650 line is drawn.
9651 (XTset_terminal_window): Add static.
9652 (x_make_frame_visible): Add UNBLOCK_INPUT.
9653 (x_free_frame_resources): New funcion (from xterm.c).
9654 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
9655 occurs in tool bar area.
d8d95bc7
SM
9656 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
9657 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
9658 Initialize image cache.
9659 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
9660 Enclose unused functions with #if 0.
9661 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
9662 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 9663 from a mac font name to an XLFD font name according to its script code.
e3564461 9664 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 9665 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
9666 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
9667 whose name starts with `.'.
9668 (init_font_name_table): Use decode_mac_font_name. Add both
9669 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
9670 of a font is smJapanese.
9671 (mac_do_list_fonts): New function to list fonts that match a given
9672 pattern.
9673 (x_list_fonts, XLoadQueryFont): Use it.
9674 (XLoadQueryFont): Set rbearing field for each variable width
9675 character to avoid needless redraw.
9676 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
9677
446f5f3d
KS
96782004-02-26 Kim F. Storm <storm@cua.dk>
9679
af617d0f
KS
9680 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
9681 as read_socket_hook handler on X aborts if buffer is too small
9682 and W32 handler doesn't always check buffer limit.
9683
446f5f3d
KS
9684 * xdisp.c (handle_single_display_prop): Handle left-fringe and
9685 right-fringe similar to a display margin image. Specifically,
9686 the characters having the fringe prop are no longer shown, and
9687 we use IT_IMAGE/next_element_from_image with image_id = -1 to
9688 do this. Set fringe bitmap face_id in it->face_id.
9689 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
9690 still realize it->face (i.e. the fringe bitmap face).
9691
7d8a0b55
MB
96922004-02-25 Miles Bader <miles@gnu.org>
9693
9694 * xdisp.c (check_it): Check string/string_pos consistency.
9695 (init_iterator): Initialize string-related fields properly.
9696
96972004-02-11 Miles Bader <miles@gnu.org>
9698
9699 * xdisp.c (produce_image_glyph): Force negative descents to zero.
9700
97012004-02-10 Miles Bader <miles@gnu.org>
9702
9703 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
9704 BLOCK_INPUT can be nested, so it doesn't make much sense.
9705
a64387ee 97062004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
9707
9708 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
9709 (xbm_read_bitmap_data): Use unsigned char for image data.
9710
92f5fba2
LT
97112004-02-23 Luc Teirlinck <teirllm@auburn.edu>
9712
9713 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
9714
8565fb3d
JR
97152004-02-22 Jason Rumney <jasonr@gnu.org>
9716
9717 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
9718 correctly over other bitmaps.
9719
a6eeaa81 97202004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
9721
9722 * emacs.c (USAGE1): Split into two halves.
9723 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
9724 (USAGE3): Rename from USAGE2.
9725 (USAGE4): Rename from USAGE3.
f8125c39 9726
4effffca
EZ
97272004-02-21 Juri Linkov <juri@jurta.org>
9728
9729 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
9730 Fix --multibyte. Move --help, --version to USAGE2. Add alias
9731 --file. Fix -f, -l. Sort options. Untabify.
9732 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
9733
923c1e6f
LT
97342004-02-19 Luc Teirlinck <teirllm@auburn.edu>
9735
9736 * category.c (Fdefine_category, Fcategory_docstring)
9737 (Fget_unused_category, Fset_category_table)
9738 (Fcategory_set_mnemonics): Doc fixes.
9739
b0e225fd
KS
97402004-02-20 Kim F. Storm <storm@cua.dk>
9741
9742 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
9743 The following changes are relative to the 2004-01-21 revision.
9744 (NREAD_INPUT_EVENTS): Define as max number of input events to read
9745 in one call to read_socket_hook. Value is 8.
9746 (read_avail_input): Separate and rework handling of read_socket_hook
9747 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
9748 in read_socket_hook case, and repeat if full buffer is read.
9749 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
9750 In non-read_socket_hook case, just use a single input_event, and
9751 call kbd_buffer_store_event on the fly for each character.
9752
b15aa9f9
SM
97532004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9754
9755 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
9756 Remove unused `gu' alternative.
9757
83c9aa95
AS
97582004-02-19 Andreas Schwab <schwab@suse.de>
9759
9760 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
9761 warning.
9762
cc808173
KS
97632004-02-18 Kim F. Storm <storm@cua.dk>
9764
9765 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
9766 Fix last change.
9767
ab90a54d
KS
97682004-02-17 Kim F. Storm <storm@cua.dk>
9769
b26f249f
KS
9770 * xdisp.c (fast_find_position): Fix return value of new version;
9771 it was inverted compared to the 21.1 version.
9772 (get_window_cursor_type): Don't look at glyph if NULL.
9773 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 9774
ab90a54d
KS
9775 * keyboard.c: Rework previous change; it didn't consider that the
9776 buf array was allocated on the stack.
9777 (prev_read): Remove variable.
9778 (read_avail_input_buf): New static event buffer array.
b9568dfc 9779 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 9780 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
9781 Use in_read_avail_input to handle re-entrance; when re-entered,
9782 fully initialize and use tmp_buf array instead of read_avail_input_buf.
9783 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
9784 is always cleared on entry. To ensure that, we clear (just) the
9785 entries that were used before we return.
9786 (init_keyboard): Initialize read_avail_input_buf here.
9787
b6189c3b 97882004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
9789
9790 * cmds.c (Fend_of_line): Doc fix.
9791
7b5368c1
EZ
97922004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
9793
9794 * keyboard.c (prev_read): New static variable.
9795 (read_avail_input): Use it to zero out only those slots in buf[]
9796 that were used last time we were called.
9797
a6eeaa81 97982004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
9799
9800 * Makefile.in (obj): Move fringe.o from here...
9801 (XOBJ, MAC_OBJ): ...to here.
9802
159c348e
SE
98032004-02-16 Stephen Eglen <stephen@gnu.org>
9804
9805 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
9806
d2f14999
SM
98072004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
9808
b15aa9f9
SM
9809 * data.c (Fbyteorder):
9810 * fringe.c (Fdefine_fringe_bitmap):
9811 * xdisp.c (handle_single_display_prop):
d2f14999
SM
9812 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
9813
8d50508a
JR
98142004-02-16 Jason Rumney <jasonr@gnu.org>
9815
9816 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
9817
dd4497dc
ST
98182004-02-15 Steven Tamm <steventamm@mac.com>
9819
9820 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
9821 controlling emulation of a three button mouse with option and
9822 command keys.
7e26f91b 9823 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 9824 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 9825
c9159cb3
KS
98262004-02-15 Kim F. Storm <storm@cua.dk>
9827
2cc52658
KS
9828 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
9829
c9159cb3
KS
9830 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
9831 Perform byte-swapping.
9832
12fde2dc
KS
98332004-02-14 Kim F. Storm <storm@cua.dk>
9834
9835 * dispextern.h (struct draw_fringe_bitmap_params): Change member
9836 bits from char to short to facilitate wider bitmaps.
9837 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
9838 member.
9839
9840 * fringe.c (struct fringe_bitmap): Change member bits from char to
9841 short to facilitate 16 bits wide bitmaps. Modify all standard
9842 bitmaps accordingly.
9843 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
9844 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
9845 (draw_fringe_bitmap): Ditto.
9846 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
9847 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
9848 handle up to 16 bits wide bitmaps.
9849 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 9850 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
9851
9852 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
9853 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
9854 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
9855
9856 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
9857 so it is no longer necessary to expand them here.
9858
9859 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
9860
9d7271e8
KS
98612004-02-12 Kim F. Storm <storm@cua.dk>
9862
9863 * window.c (Fwindow_fringes): Doc fix.
9864
706c1e4f
JD
98652004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9866
9867 * xselect.c (x_get_foreign_selection): Add new optional parameter
9868 time_stamp.
9869 (Fx_get_selection_internal): Ditto, pass time_stamp to
9870 x_get_foreign_selection.
9871
9872 * data.c (Fbyteorder): New function.
9873
c2d12b5d
JD
98742004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9875
9876 * atimer.c: Move include stdio.h to same place as in other files.
9877
9878 * region-cache.c: Ditto.
9879
9880 * sysdep.c: Ditto.
9881
9882 * xfaces.c: Ditto.
9883
4c1947b9
SS
98842004-02-09 Sam Steingold <sds@gnu.org>
9885
89458937 9886 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 9887
82722af3
KS
98882004-02-09 Kim F. Storm <storm@cua.dk>
9889
9890 * fringe.c: New file. Move original fringe related declarations
9891 and code from dispextern.h and xdisp.c here.
9892 Rework code to support user defined fringe bitmaps, redefining
9893 standard bitmaps, ability to overlay user defined bitmap with
9894 overlay arrow bitmap, and add faces to bitmaps.
9895 (Voverflow_newline_into_fringe): Declare here.
9896 (enum fringe_bitmap_align): New enum.
9897 (..._bits): All bitmaps are now defined without bitswapping; that
9898 is now done in init_fringe_once (if necessary).
9899 (standard_bitmaps): New array with specifications for the
9900 standard fringe bitmaps.
9901 (fringe_faces): New array.
9902 (valid_fringe_bitmap_id_p): New function.
9903 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
9904 (draw_fringe_bitmap): New function which draws fringe bitmap,
9905 possibly overlaying bitmap with cursor in right fringe or the
9906 overlay arrow in the left fringe.
9907 (update_window_fringes): Do not handle overlay arrow here.
9908 Compare and copy fringe bitmap faces.
9909 (init_fringe_bitmap): New function.
9910 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
9911 define and destroy user defined fringe bitmaps.
9912 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
9913 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
9914 (syms_of_fringe): New function. Defsubr new DEFUNs.
9915 DEFVAR_LISP Voverflow_newline_into_fringe.
9916 (init_fringe_once, init_fringe): New functions.
9917 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 9918
82722af3
KS
9919 * Makefile.in (obj): Add fringe.o.
9920 (fringe.o): New dependencies.
9921
9922 * dispextern.h (FRINGE_ID_BITS): New definition for number of
9923 bits allocated to hold a fringe number. Increase number of bits
9924 from 4 to 8 to allow user defined fringe bitmaps.
9925 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
9926 left_user_fringe_face_id, right_user_fringe_bitmap,
9927 right_user_fringe_face_id.
9928 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
9929 Move to new file fringe.c.
9930 (MAX_FRINGE_BITMAPS): Define here.
9931 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
9932 and overlay_p. Change member which to int.
9933 (struct redisplay_interface): New members define_fringe_bitmap
9934 and destroy_fringe_bitmap.
9935 (valid_fringe_bitmap_id_p): Add prototype.
9936 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
9937
9938 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
9939 arrows.
9940 (update_frame): Do flush_display if force_flush_display_p to
9941 ensure display (specifically fringes) are updated in a timely
9942 manner when resizing the frame by dragging the mouse.
9943 (update_window_line): Update row if overlay arrow changed.
9944 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
9945 or overlay arrow changed.
9946
9947 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
9948 syms_of_fringe, and init_fringe.
9949
9950 * frame.h (struct frame): New member force_flush_display_p.
9951
9952 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
9953 Add prototypes.
9954
a3993cc8 9955 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 9956 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
9957 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
9958 Use cursor color for displaying cursor in fringe.
82722af3
KS
9959 (x_redisplay_interface): Add null handlers for
9960 define_fringe_bitmap and destroy_fringe_bitmap functions.
9961
9962 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
9963 xterm.c to handle overlayed fringe bitmaps and to use cursor color
9964 for displaying cursor in fringe.
9965 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
9966 specific functions to define and destroy fringe bitmaps in fringe_bmp.
9967 (w32_redisplay_interface): Add them to redisplay_interface.
9968 (w32_term_init): Call w32_init_fringe instead of explicitly
9969 defining fringe bitmaps in fringe_bmp array.
9970 (x_delete_display): Call w32_reset_fringes instead of explicitly
9971 destroying fringe bitmaps in fringe_bmp array.
9972
9973 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
9974 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
9975 (continued_bits, continuation_bits, ov_bits, first_line_bits)
9976 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
9977 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
9978 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
9979 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
9980 Move fringe handling vars and code to new file fringe.c.
9981 (handle_display_prop): Handle left-fringe and right-fringe
9982 display properties; store user fringe bitmaps in iterator.
9983 (move_it_in_display_line_to): Handle cursor in fringe at eob.
9984 (clear_garbaged_frames): Set force_flush_display_p if resized.
9985 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
9986 (display_line): Handle cursor in fringe at eob.
9987 (display_line): Set row user fringe bitmaps from iterator.
9988
9989 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
9990 Use cursor color for displaying cursor in fringe.
9991 (x_redisplay_interface): Add null handlers for
9992 define_fringe_bitmap and destroy_fringe_bitmap functions.
9993
030400eb
JD
99942004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9995
9996 * macfns.c (Fx_change_window_property): Make doc string and
9997 parameters same as for X version.
9998
9999 * w32fns.c (Fx_change_window_property): Ditto.
10000
3af55251
KS
100012004-02-07 Kim F. Storm <storm@cua.dk>
10002
ec110e9e
KS
10003 * xdisp.c (hscroll_window_tree): Position cursor near to right
10004 margin in hscrolled window when jumping to end of line (rather
10005 than centering cursor).
10006
3af55251
KS
10007 * process.c (wait_reading_process_input): Don't do adaptive read
10008 buffering if waiting for a specific process.
10009
b0c138ce
LT
100102004-02-05 Luc Teirlinck <teirllm@auburn.edu>
10011
10012 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
10013 (Fread_minibuffer, Feval_minibuffer)
10014 (Fread_string, Fread_no_blanks_input)
10015 (Fcompleting_read): Doc fixes.
10016 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
10017 completion-regexp-list. Define Qcase_fold_search and staticpro it.
10018 (read_minibuf): Fix initial comment.
10019 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 10020 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
10021 checking completion-regexp-list.
10022 (Fdisplay_completion_list): Make it handle arguments that are
10023 symbols. Doc fix.
10024
9676f5ad 100252004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 10026
9676f5ad 10027 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 10028
9676f5ad
JD
10029 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
10030 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 10031 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 10032 format. Remove unused variable cons.
5b698285
JD
10033
10034 * xselect.c: Include stdio,h.
10035
fc1d15f6
KH
100362004-02-05 Kenichi Handa <handa@m17n.org>
10037
ebaff4af
KH
10038 * fns.c (Fset_char_table_range): Fix previous change.
10039
fc1d15f6
KH
10040 * buffer.c (Fset_buffer_multibyte): Fix docstring.
10041
9676f5ad
JD
100422004-02-04 Luc Teirlinck <teirllm@auburn.edu>
10043
10044 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
10045
da75761f
SM
100462004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
10047
10048 * keymap.c (Vmouse_events): Rename from Vmenu_events.
10049 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
10050
13c5d120
KH
100512004-02-04 Kenichi Handa <handa@m17n.org>
10052
10053 * fns.c (Fset_char_table_range): Handle charsets ascii,
10054 eight-bit-control, and eight-bit-graphic correctly.
10055
2883d842
JR
100562004-02-03 Jason Rumney <jasonr@gnu.org>
10057
10058 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
10059
10060 * w32fns.c (x_to_w32_font): Likewise.
10061
69eff41f
JD
100622004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10063
10064 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
10065 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
10066
10067 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
10068 ClientMessages.
10069
10070 * xselect.c: Include termhooks.h and X11/Xproto.h
10071 (x_check_property_data, x_fill_property_data)
10072 (x_property_data_to_lisp, mouse_position_for_drop)
10073 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 10074 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
10075 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
10076
da75761f 10077 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
10078 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
10079 OUTER_P.
10080 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
10081 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
10082 if vector_ret_p is true.
10083 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 10084
a6eeaa81 100852004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
10086
10087 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
10088 basename of FILE relative to it, not FILE itself.
10089
09721b31
KH
100902004-02-02 Kenichi Handa <handa@m17n.org>
10091
10092 * coding.c (coding_restore_composition): Check invalid
10093 composition data more rigidly.
10094
eb996101
LT
100952004-01-30 Luc Teirlinck <teirllm@auburn.edu>
10096
10097 * fileio.c (Fread_file_name_internal): Correctly handle the case
10098 where insert-default-directory is nil.
10099 (Fread_file_name): Always return an empty string if the user exits
10100 with an empty minibuffer. Adapt the docstring accordingly.
10101 (syms_of_fileio): Adapt the docstring of insert-default-directory
10102 to the change in Fread_file_name.
10103
a6eeaa81 101042004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
10105
10106 * alloca.c [!alloca]: Fix the prototype for xfree.
10107
13f52ed8
KH
101082004-01-29 Kenichi Handa <handa@m17n.org>
10109
10110 * fns.c (string_char_to_byte): Optimize for ASCII only string.
10111 (string_byte_to_char): Likewise.
10112
d57625a0
JR
101132004-01-28 Peter Runestig <peter@runestig.com>
10114
10115 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
10116
a64387ee 101172004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
10118
10119 * unexmacosx.c (unexec_copy): Do not copy more than was
10120 requested to prevent overwriting during unexec.
10121
eb37b8fd
JD
101222004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10123
ce38070a
JD
10124 * process.c (sigchld_handler): Add comment about not calling malloc.
10125
eb37b8fd
JD
10126 * process.h: Add extern to synch_process_termsig.
10127
a64387ee 101282004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 10129
da75761f
SM
10130 * macterm.c (make_mac_frame, make_mac_terminal_frame):
10131 Move setting of scroll bars from make_mac_frame to
10132 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 10133
d62a265d
RS
101342004-01-26 Richard M. Stallman <rms@gnu.org>
10135
10136 * search.c (Freplace_match): Handle nonexistent
10137 back-references properly.
10138
101392004-01-03 Richard M. Stallman <rms@gnu.org>
10140
10141 * window.c (decode_any_window): New function.
10142 (Fwindow_height, Fwindow_width, Fwindow_edges)
10143 (Fwindow_pixel_edges, Fwindow_inside_edges)
10144 (Fwindow_inside_pixel_edges): Use decode_any_window.
10145
ff236419
JD
101462004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10147
10148 * process.h: synch_process_termsig new variable.
10149
10150 * callproc.c: Define synch_process_termsig.
10151 (Fcall_process): Initiate synch_process_termsig to zero and
10152 check if non-zero and get signal name after subprocess has ended.
10153
10154 * process.c (sigchld_handler): Set synch_process_termsig
10155 if terminated by a signal. synch_process_death setting removed.
10156
10157 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
10158
41b867ea
AS
101592004-01-26 Andreas Schwab <schwab@suse.de>
10160
10161 * print.c (print_preprocess): Declare size as EMACS_INT to not
10162 lose bits.
10163 (print_object): Likewise.
10164 * alloc.c (Fpurecopy): Likewise.
10165
a08084ff
LT
101662004-01-25 Luc Teirlinck <teirllm@auburn.edu>
10167
10168 * window.c (Fwindow_minibuffer_p): Doc fix.
10169
b19ac475
JY
101702004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
10171
10172 * editfns.c (Fformat): Make both passes accept the same set of flags.
10173
fe905025
KH
101742004-01-23 Kenichi Handa <handa@m17n.org>
10175
10176 * fns.c (Fmd5): If OBJECT is a buffer different from the current
10177 one, set buffer to OBJECT temporarily.
10178
438fc6c0
SM
101792004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
10180
455316e2
SM
10181 * keyboard.c (kbd_buffer_gcpro): Remove.
10182 (kbd_buffer_store_event, clear_event, Fdiscard_input)
10183 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
10184 Don't initialize and/or maintain the variable any more. It was made
10185 redundant by my commit of 2003-06-15.
10186
438fc6c0
SM
10187 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
10188
5335a4ee
JD
101892004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10190
10191 * lisp.h: Add undef DECL_ALIGN.
10192
dcdaeebc
SM
101932004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
10194
10195 * process.c (wait_reading_process_input) [SYNC_INPUT]:
10196 Check interrupt_input_pending explicitly.
10197
10198 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
10199
10200 * keyboard.c (handle_async_input): New fun,
10201 extracted from input_available_signal.
10202 (input_available_signal, reinvoke_input_signal): Use it.
10203
9076a823
SM
102042004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
10205
d7107586
SM
10206 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
10207
10208 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
10209 manipulation macros for when tags are in the lower bits.
10210 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
10211 (DECL_ALIGN): New macro.
10212 (DEFUN): Use it.
10213
10214 * lisp.h [ENABLE_CHECKING]: Don't force union type.
10215
10216 * s/darwin.h (__attribute__): Remove outdated workaround.
10217
10218 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
10219
10220 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
10221 Don't check range of malloc address.
10222 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
10223
9076a823
SM
10224 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
10225
10226 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
10227
ba029065
KH
102282004-01-19 Kenichi Handa <handa@m17n.org>
10229
10230 * fontset.c (fontset_font_pattern): Fix previous change.
10231
7af0e8d7
MB
102322004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
10233
10234 * xdisp.c (Voverflow_newline_into_fringe)
10235 (move_it_in_display_line_to, redisplay_internal)
10236 (update_window_fringes, redisplay_window, display_line, window):
10237 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
10238 that it compiles without a window-system.
10239 * dispnew.c (direct_output_for_insert, update_window): Likewise.
10240
77a9cf69
KS
102412004-01-16 Kim F. Storm <storm@cua.dk>
10242
10243 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
10244
a64387ee 10245 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
10246 buffer_local_flags for indicate_buffer_boundaries.
10247 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
10248 default- variable for it.
10249
10250 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
10251 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 10252 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
10253 overflowing newlines into right fringe.
10254 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
10255 and indicate_bottom_line_p for buffer boundaries and scrolling.
10256 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
10257 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
10258 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
10259 and HOLLOW_SQUARE_BITMAP.
10260 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
10261 Add prototypes.
10262
10263 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
10264 instead of related indicator fields.
10265 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
10266 (direct_output_for_insert): Handle exact width lines like
10267 contined lines. Call update_window_fringes.
10268 (update_window): Call update_window_fringes.
10269 (scrolling_window): Don't skip desired rows with changed bitmaps.
10270 Check if fringe bitmaps changes when assigning scrolled rows.
10271
10272 * xdisp.c (Voverflow_newline_into_fringe): New variable.
10273 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
10274 (move_it_in_display_line_to): Overflow newline into fringe for
10275 rows that are exactly as wide as the window.
10276 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
10277 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
10278 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
10279 (fringe_bitmaps): Add new bitmaps.
10280 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
10281 Select proper bitmap for cursor in fringe when appropriate.
10282 Handle alignment of bitmap to top or bottom of row.
10283 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
10284 done by update_window_fringes.
10285 (update_window_fringes, draw_window_fringes): New functions.
10286 (redisplay_internal): Call update_window_fringes in case only
10287 cursor row is updated.
10288 (redisplay_window): Call update_window_fringes.
10289 Explicitly call draw_window_fringes if redisplay was done using
10290 the current matrix or the overlay arrow is in the window.
10291 (try_window_reusing_current_matrix): Mark scrolled rows for
10292 fringe update (to update buffer-boundaries / scrolling icons).
10293 (find_last_unchanged_at_beg_row): Handle exact width lines line
10294 continued lines.
10295 (display_line): Overflow newline into fringe for rows that are
10296 exactly as wide as the window. Don't append space for newline
d7107586 10297 in this case.
77a9cf69
KS
10298 (notice_overwritten_cursor): Explicitly clear cursor bitmap
10299 in fringe as if it had been overwritten.
10300 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 10301 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
10302 void-text-area-pointer as user options.
10303 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 10304
77a9cf69
KS
10305 * xterm.c (x_update_window_end): Call draw_window_fringes.
10306 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10307 in row instead of actually drawing fringe bitmaps.
10308 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10309 (x_draw_window_cursor): Draw cursor in fringe.
10310
10311 * w32term.c (x_update_window_end): Call draw_window_fringes.
10312 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10313 in row instead of actually drawing fringe bitmaps.
10314 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10315 (w32_draw_window_cursor): Draw cursor in fringe.
10316
10317 * macterm.c (x_update_window_end): Call draw_window_fringes.
10318 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10319 in row instead of actually drawing fringe bitmaps.
10320 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10321 (mac_draw_window_cursor): Draw cursor in fringe.
10322
a633a954
JD
103232004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10324
10325 * xterm.c (handle_one_xevent): Don't handle characters that are part
10326 of an old style (XLookupString) compose sequence.
10327
80460525
KH
103282004-01-15 Kenichi Handa <handa@m17n.org>
10329
10330 * search.c (Freplace_match): Use make_multibyte_string or
10331 make_unibyte_string according to the buffer multibyteness.
10332
7fc34f85
SM
103332004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
10334
10335 * alloc.c (struct interval_block, struct string_block)
10336 (struct symbol_block, struct marker_block, live_string_p)
10337 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
10338 Better preserve alignment for objects in blocks.
10339 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
10340
10341 * lread.c (defvar_per_buffer): Remove dead declaration.
10342
10343 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
10344 space size.
10345
66070bd1
JD
103462004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10347
10348 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
10349 if a key press should pop down. Only pop down if a key is pressed
10350 outside the menu/dialog.
10351 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
10352 popup_get_selection.
10353 (create_and_show_dialog): Pass 1 for down_on_keypress to
10354 popup_get_selection.
10355
de7515d6
JD
103562004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10357
10358 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
10359 BLOCK/UNBLOCK_INPUT.
10360
160b1b50
JD
103612004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10362
10363 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
10364 specified.
10365
3a9f36e6
KH
103662004-01-08 Kenichi Handa <handa@m17n.org>
10367
10368 * editfns.c (Fformat): Fix '&' to '&&'.
10369
3803eb32
AS
103702004-01-08 Andreas Schwab <schwab@suse.de>
10371
10372 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
10373 size if PSEUDOVECTOR_FLAG is set.
10374
9da88f37
KH
103752004-01-07 Kenichi Handa <handa@m17n.org>
10376
74ac5074
KH
10377 * charset.c (Fdeclare_equiv_charset): Fix docstring.
10378
9da88f37
KH
10379 * fontset.c (fontset_ref_via_base): Fix previous change.
10380
05faee07
KS
103812004-01-07 Kim F. Storm <storm@cua.dk>
10382
10383 * process.c (read_process_output): Only activate adaptive
10384 buffering if we read less than 256 bytes at a time.
10385
634910c8
KS
103862004-01-06 Kim F. Storm <storm@cua.dk>
10387
10388 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
10389 object and image object. Return glyph width and height.
10390 (mode_line_string, marginal_area_string): Ditto.
10391
10392 * dispextern.h (buffer_posn_from_coords, mode_line_string)
10393 (marginal_area_string): Fix prototypes.
10394
10395 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 10396 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
10397 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
10398
10399 * keyboard.c (make_lispy_position): Use modified mode_line_string,
10400 buffer_posn_from_coords, and marginal_area_string functions to
10401 include both string object and image object in the lispy position.
10402 Also add actual glyph width and height to position.
10403 (read_key_sequence): Use real buffer position from mouse
10404 event to find keymap property even when click is in marginal area.
10405
10406 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
10407 mode_line_string and marginal_area_string functions to handle
10408 both string object and image object properties.
d7107586 10409
57951c2e
AS
104102004-01-06 Andreas Schwab <schwab@suse.de>
10411
10412 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
10413 character.
10414
181e6a61
AS
104152004-01-02 Andreas Schwab <schwab@suse.de>
10416
d7107586
SM
10417 * macterm.c (emacs_options, x_initialized, same_x_server):
10418 Remove unused (and duplicated) definitions.
181e6a61 10419
31e0fbdd
KS
104202004-01-02 Kim F. Storm <storm@cua.dk>
10421
10422 * process.h (struct Lisp_Process): New members for adaptive read
10423 buffering: adaptive_read_buffering, read_output_delay, and
10424 read_output_skip.
10425
10426 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
10427 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
10428 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
10429 (process_output_delay_count, process_output_skip): New vars.
10430 (Vprocess_adaptive_read_buffering): New variable.
10431 (make_process): Initialize adaptive read buffering members.
10432 (Fstart_process): Set adaptive_read_buffering member.
10433 (deactivate_process): Cleanup adaptive read buffering.
10434 (wait_reading_process_input): Temporarily omit delayed
10435 subprocesses from the set of file descriptors to read from;
10436 adjust the select timeout if we skipped any subprocesses.
10437 (read_process_output): Increase adaptive read buffering delay if
10438 we read less than a full buffer; reduce delay when we read a
10439 full buffer.
10440 (send_process): Simplify using local Lisp_Process var.
10441 Reset adaptive read buffering delay after write.
10442 (init_process): Initialize process_output_delay_count and
10443 process_output_skip.
10444 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
10445
68c6a789
JR
104462004-01-01 Jason Rumney <jasonr@gnu.org>
10447
d7107586 10448 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 10449
3f70fe82
LT
104502003-12-30 Luc Teirlinck <teirllm@auburn.edu>
10451
10452 * print.c (Ferror_message_string): Add hyperlink in the docstring
10453 to the definition of `signal' in the Elisp manual.
10454 * eval.c (Fsignal): Ditto.
10455
b6189c3b 104562003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
10457
10458 * fns.c (internal_equal): Return t for two NaN arguments.
10459
7abd90ea
RS
104602003-12-29 Richard M. Stallman <rms@gnu.org>
10461
10462 * data.c (store_symval_forwarding): Handle setting
10463 default-fill-column, etc., by changing the value in
10464 buffers that use the default.
10465
10466 * minibuf.c (Fset_minibuffer_window): Doc fix.
10467
10468 * fileio.c (choose_write_coding_system): Ignore auto_saving
10469 if using the visited file for auto saves.
10470 (Fwrite_region): Don't update SAVE_MODIFF
10471 if auto-saving in visited file.
10472
3e7cfcdc
KH
104732003-12-29 Kenichi Handa <handa@m17n.org>
10474
10475 * dispextern.h (face_font_available_p): Extern it.
10476
10477 * fontset.c (Voverriding_fontspec_alist): New variable.
10478 (lookup_overriding_fontspec): New function.
d7107586 10479 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
10480 (fontset_font_pattern): Likewise.
10481 (regulalize_fontname): New function.
10482 (Fset_fontset_font): Call regulalize_fontname.
10483 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
10484 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
10485 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
10486
10487 * xfaces.c (face_font_available_p): New function.
10488
7abd90ea
RS
104892003-12-28 Richard M. Stallman <rms@gnu.org>
10490
10491 * buffer.c (Fother_buffer): Don't crash if BUF is nil
10492 or if its name is nil.
10493
10494 * buffer.c (Fkill_buffer): Don't delete auto-save file
10495 if it's the same as the visited file.
10496
de1d1a40
LT
104972003-12-28 Luc Teirlinck <teirllm@auburn.edu>
10498
10499 * coding.c (Fcheck_coding_system): Doc fix.
10500
204fb75e
KS
105012003-12-28 Kim F. Storm <storm@cua.dk>
10502
10503 * Makefile.in (eval.o): Depend on dispextern.h.
10504
10505 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
10506 image glyph using image's ascent.
10507 (mode_line_string): Return image glyph as object clicked on.
10508 Adjust y0 for image glyph using image's ascent.
10509
10510 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
10511 (struct glyph): New members, ascent and descent. Used to save
10512 this glyph's ascent and descent, instead of having.
10513 (struct glyph): Declare member face_id using FACE_ID_BITS.
10514 (find_hot_spot): Add prototype.
10515
10516 * keyboard.c (Qimage): Remove extern (now in lisp.h).
10517 (QCmap): Declare extern.
10518 (make_lispy_position): When position is inside image hot-spot,
10519 use hot-spot element's id as posn element.
10520
10521 * lisp.h (IMAGEP): New macro to test for image object type.
10522 (Qimage): Declare extern.
10523
10524 * macfns.c (Qimage): Remove extern (now in lisp.h).
10525 (valid_image_p, parse_image_spec): Use IMAGEP macro.
10526
10527 * macterm.c (Qface, Qmouse_face): Remove unused externs.
10528
10529 * w32fns.c (Qimage): Remove extern (now in lisp.h).
10530 (valid_image_p, parse_image_spec): Use IMAGEP macro.
10531
10532 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
10533
10534 * w32term.c (Qface, Qmouse_face): Remove unused externs.
10535
10536 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
10537 pointer types.
10538 (Qrelative_width, Qalign_to): Remove unused variables.
10539 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
10540 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
10541 image maps.
d7107586 10542 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
10543 new dx and dy args.
10544 Remove buffer_only_p arg (always 0). Simplify code accordingly.
10545 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
10546 than row's ascent and height, to get sensible height on tall rows.
10547 (build_desired_tool_bar_string): Remove Qimage extern.
10548 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
10549 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
10550 image glyph is alone on the last line.
10551 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 10552 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 10553 (on_hot_spot_p): New function to check if position is inside an
d7107586 10554 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
10555 (find_hot_spot): New function to search for image hot-spot.
10556 (Flookup_image_map): New defun to search for image hot-spot.
10557 (define_frame_cursor1): New aux function to determine frame pointer.
10558 (note_mode_line_or_margin_highlight, note_mouse_highlight):
10559 Handle `pointer' text property and :pointer image property to
10560 control frame pointer shape. Detect image hot-spots for pointer
10561 and help_echo properties. Use define_frame_cursor1.
10562 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 10563 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
10564 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
10565
10566 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
10567
10568 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
10569 (Qimage): Remove extern (now in lisp.h).
10570 (valid_image_p, parse_image_spec): Use IMAGEP macro.
10571
10572 * xmenu.c (show_help_event): Remove unused code.
10573
10574 * xterm.c (Qface, Qmouse_face): Remove unused externs.
10575 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
10576 row's ascent and descent, to get a sensible height on tall rows.
10577
fc052137
LT
105782003-12-25 Luc Teirlinck <teirllm@auburn.edu>
10579
10580 * minibuf.c (Fcompleting_read): Undo previous change.
10581
a64387ee 105822003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
10583
10584 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
10585 Arguments GCPRO'ed in call to file name handler.
10586
56ffd194
TTN
105872003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
10588
10589 * termcap.c (tgetst1): Scan for "%pN"; if all
10590 N are continuous in [1,9], remove all "%pN".
10591
5202d23d
JD
105922003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10593
f26fab36
JD
10594 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
10595
5202d23d
JD
10596 * xfaces.c (lface_fully_specified_p): Take into account that
10597 MAC OS always have unspecified stipple.
10598
8babaa59
TTN
105992003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
10600
10601 * tparam.c (tparam1): Add handling for `%pN', which
10602 means use param N for the next substitution.
10603
2d176448
TTN
106042003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
10605
10606 * xfaces.c (Fcolor_gray_p): Fix omission bug:
10607 In case `frame' is nil, consult the selected frame.
10608 (Fcolor_supported_p): Likewise.
10609
adb0708c
LT
106102003-12-23 Luc Teirlinck <teirllm@auburn.edu>
10611
000eeb15
LT
10612 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
10613 Doc fixes.
0dc72b11
LT
10614
10615 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
10616 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
10617 (Fread_from_minibuffer): Delete code moved into read_minibuf.
10618 Doc fix.
10619 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
10620 read_minibuf.
10621 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 10622 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 10623
2e4d132b
KH
106242003-12-03 Kenichi Handa <handa@m17n.org>
10625
10626 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
10627 encoding sequence.
10628
3999c705
KH
106292003-12-01 Kenichi Handa <handa@m17n.org>
10630
10631 * composite.c (syms_of_composite): Don't make the compostion hash
10632 table week.
10633
d344ecbb
LT
106342003-11-30 Luc Teirlinck <teirllm@auburn.edu>
10635
10636 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
10637 * textprop.c (Fget_char_property_and_overlay): New function.
10638 (syms_of_textprop): Defsubr it.
10639
03d6484e
JD
106402003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10641
019b1f0e
JD
10642 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
10643 to compile on terminal configuration.
10644
03d6484e
JD
10645 * fileio.c (Fread_file_name): Check use_file_dialog also before
10646 calling Fx_file_dialog.
10647
1d1c7e75 10648 * fns.c (use_file_dialog): New variable.
03d6484e
JD
10649 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
10650
442d3fd0
KS
106512003-11-29 Kim F. Storm <storm@cua.dk>
10652
10653 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
10654 (syms_of_msdos): Don't intern and staticpro them.
10655
0f6a07a8
KS
106562003-11-27 Kim F. Storm <storm@cua.dk>
10657
10658 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
10659 coordinates relative to glyph at posn. If glyph is an image,
10660 return that as object at posn. Callers changed.
10661 (mode_line_string, marginal_area_string): Calculate and return
10662 pixel coordinates relative to glyph. Callers changed.
10663
10664 * dispextern.h (buffer_posn_from_coords, mode_line_string)
10665 (marginal_area_string): Fix prototypes.
10666 (window_box_left_offset, window_box_right_offset): Add prototypes.
10667
10668 * frame.h (get_specified_cursor_type, get_window_cursor_type):
10669 Remove prototypes.
10670
10671 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
10672
10673 * keyboard.c (make_lispy_position): Add x and y coordinates
10674 relative to the current glyph as 7th element of position.
10675 If glyph is an image, return it in the object element.
10676 (read_key_sequence): Skip checks for keymap property in cases
10677 where POSN_STRING is not a string (e.g. an image).
10678
10679 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
10680 (Vshow_text_cursor_in_void): New variable.
10681 (glyph_to_pixel_coords): Don't use negative hpos.
10682 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
10683 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 10684 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
10685 (calc_pixel_width_or_height): New aux function, implementing
10686 pixel based artihmetic for glyph widths and heights.
10687 (produce_stretch_glyph): Use calc_pixel_width_or_height for
10688 :width, :height, :align-to, and :ascent, thus allowing these to
10689 be specified in pixels as well as multiples of characters.
10690 Don't produce stretch glyphs with zero width or height.
10691 (get_specified_cursor_type): Declare static.
10692 (get_window_cursor_type): Declare static. Add glyph arg to be
10693 able to know when cursor is on an image; always substitute
10694 hollow-box cursor for filled-box cursor on images, to avoid
10695 negative images and flicker when blinking the cursor.
10696 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
10697 (note_mode_line_or_margin_highlight): Use non-text cursor rather
10698 than vertical scroll-bar cursor in display margins.
10699 (note_mouse_highlight): Use non-text cursor rather than text
10700 cursor in fringes and over images in the text area.
10701 Use non-text cursor when mouse pointer is outside editable text,
10702 i.e. in the void after end-of-line or end-of-buffer; this was
10703 already done for W32, but is now standard for all systems --
10704 user can toggle show-text-cursor-in-void to get old behaviour.
10705 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
10706 Vdisplay_pixels_per_inch.
10707
00498bfc
AS
107082003-11-25 Andreas Schwab <schwab@suse.de>
10709
10710 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
10711 EMACS_INT to not lose bits.
10712 (Ffillarray): Don't set bits beyond the size of a bool vector.
10713
edaa824d
KS
107142003-11-25 Kim F. Storm <storm@cua.dk>
10715
10716 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
10717 define this defun on systems that cannot use stderr as lvalue.
10718
74d6f539
GM
107192003-11-24 Gerd Moellmann <gerd@gnu.org>
10720
10721 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
10722 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
10723 ld's default is incompatible with unexec.
10724
6a1ff3ba
KS
107252003-11-23 Kim F. Storm <storm@cua.dk>
10726
63dc7c6b
KS
10727 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
10728 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
10729 (Fforce_window_update): New defun.
10730 (syms_of_window): Defsubr it.
10731 (Fset_window_margins, Fset_window_fringes): Doc fix.
10732
6a1ff3ba
KS
10733 * print.c (Fredirect_debugging_output): New defun.
10734 (syms_of_print): Defsubr it.
10735
aef109b7
LT
107362003-11-22 Luc Teirlinck <teirllm@auburn.edu>
10737
10738 * fns.c (Fset_char_table_parent): Doc fix.
10739
6a1ff3ba 107402003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
10741
10742 * dispnew.c (buffer_posn_from_coords): Return actual row/column
10743 for glyph clicked on, rather than (unused) pixel positions.
10744 (mode_line_string, marginal_area_string): Change X and Y args to
10745 pointers for returning actual row/column for glyph clicked on.
10746 Simplify and optimize loops.
10747
aef109b7
LT
10748 * dispextern.h (mode_line_string, marginal_area_string):
10749 Update prototypes.
63ccbe21
KS
10750
10751 * keyboard.c (make_lispy_position): New function for generating
10752 mouse click positions from frame and pixel coordinates.
10753 Enhanced to return buffer position and actual row/column for
10754 events outside the text area using updated mode_line_string and
10755 marginal_area_string functions.
10756 Return left-fringe and right-fringe clicks as such, rather than
10757 clicks in text area.
10758 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
10759 pixel_to_glyph_coords, as we never use the results.
10760 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
10761 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
10762 Eliminate unused code in WHEEL_EVENT handling.
10763 (make_lispy_movement): Use make_lispy_position.
10764
10765 * window.c (coordinates_in_window): Remove redundant tests.
10766 Fix returned X pixel value for left-margin.
10767
10768 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
10769 mode_line_string and marginal_area_string parameters.
10770
a64387ee 107712003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 10772
d7107586
SM
10773 * w32.c (struct the_group, getgrgid): Add.
10774 * mac.c (struct my_group, getgrgid): Add.
aef109b7 10775
3dbf3426
LT
107762003-11-21 Luc Teirlinck <teirllm@auburn.edu>
10777
10778 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
10779
cae8ddbb 107802003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 10781
d7107586
SM
10782 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
10783 include in call to file name handler. Optionally translate numeric
10784 UID and GID to strings. Update docstring.
10785 (directory_files_internal): Add parameter ID-FORMAT.
10786 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
10787 include in call to file name handler and call to
10788 directory_files_internal. Update Docstring.
10789 (Fdirectory_files): Add dummy parameter in call to
10790 directory_files_internal.
10791 * lisp.h (Qinteger): Add.
10792 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
10793 (Ffile_attributes): Add parameter.
10794 * data.c (Qinteger): Export.
cae8ddbb 10795
2550b848
LT
107962003-11-21 Luc Teirlinck <teirllm@auburn.edu>
10797
3dbf3426 10798 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 10799
88380018
KS
108002003-11-19 Kim F. Storm <storm@cua.dk>
10801
10802 * xdisp.c (init_iterator): Initialize it->start to position
10803 before reseating (in case start position is invisible).
10804 (init_to_row_start): Set it->start to row-start.
10805 (redisplay_window): Accept optional_new_start if start position
10806 is invisible (in which case IT_CHARPOS overshoots PT).
10807 (display_line): Setup row->start from it->start (rather than
10808 it->current which is wrong if first char on line is invisible).
10809 When done, reseat it->start to it->current (= start of next row).
10810 (expose_area): Fix exposure of text area when first char (e.g. TAB)
10811 is only partially visible.
10812
10813 * dispextern.h (struct it): New member start.
10814
854c1a59
SM
108152003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10816
455316e2
SM
10817 * alloc.c (make_float, Fcons): Clear the markbit at init time.
10818 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
10819 of block_index outside of the macro call.
10820 (Fgarbage_collect): Remove null code.
10821
10822 * m/amdx86-64.h: Don't redefine XPNTR.
10823
854c1a59
SM
10824 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
10825 of VALMASK.
10826
10827 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
10828 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
10829 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
10830
10831 * lisp.h (VALMASK): Only define for non-union type.
10832 (MARKBIT): Remove.
10833 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
10834 (XTYPE): Define unconditionally.
10835 (XSETTYPE): Remove one more remnant.
10836 (EQ): Define differently for the union and non-union cases.
10837 (INTMASK): New bit mask.
10838 (struct Lisp_Marker): Move down to prepare for upcoming patch.
10839 (GC_EQ): Delegate to EQ.
10840
10841 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
10842
a0c6ef2d
JD
108432003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10844
10845 * xterm.c (x_window_to_scroll_bar): Move check of display to
10846 where window_id is compared.
10847
859492c4
KS
108482003-11-17 Kim F. Storm <storm@cua.dk>
10849
10850 * dispextern.h (struct it): New member first_vpos.
10851
10852 * xdisp.c (start_display): Set it->first_vpos.
10853 (try_window_id): Use first_vpos to start display in first _text_
10854 line if no reusable lines at start of window with header line.
10855
810f2256
JD
108562003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10857
7c402969 10858 * w32fns.c (XPutPixel):
854c1a59
SM
10859 * w32bdf.c (w32_init_bdf_font):
10860 * sunfns.c (sel_read):
10861 * process.c (Fmake_network_process):
10862 * frame.c (store_frame_param):
10863 * fontset.c (Fset_fontset_font):
10864 * emacs.c (shut_down_emacs):
a64387ee 10865 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 10866
a32e9bfd
JD
10867 * config.in: Regenerate.
10868
810f2256
JD
10869 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10870 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10871 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
10872 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
10873 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
10874
10875 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
10876
10877 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
10878 (XTmouse_position, handle_one_xevent): Pass Display* to
10879 x_window_to_scroll_bar.
10880 (x_window_to_scroll_bar): Take a Display* argument.
10881 Check that display for frame is equal to Display* argument.
854c1a59 10882 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
10883 x_display_info_for_display instead. Use Display in xev instead
10884 of GDK_DISPLAY.
10885 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 10886 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
10887 (x_connection_closed): Call xg_display_close for GTK.
10888 (x_term_init): Call xg_display_open for additional displays.
10889 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
10890 for GTK.
10891
10892 * xmenu.c (single_menu_item, mouse_position_for_popup)
10893 (x_activate_menubar): Formatting adjustments.
10894
10895 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
10896 adjustments.
10897
10898 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
10899 (xg_display_close, xg_create_default_cursor)
10900 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
10901 handling.
854c1a59
SM
10902 (xg_left_ptr_cursor): Remove.
10903 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
10904 cursor here.
10905 (xg_win_to_widget): Take Display* argument, call
10906 gdk_xid_table_lookup_for_display.
10907 (xg_create_frame_widgets, xg_get_file_name, create_menus)
10908 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
10909 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
10910 in FRAME_X_DISPLAY_INFO.
10911 (xg_get_scroll_id_for_window): Take Display* argument.
10912 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 10913 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 10914
78819ebb
KS
10915 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
10916 Display* argument.
10917 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 10918
0b03cc78
JD
109192003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10920
10921 * xterm.c (x_detect_focus_change): Do not change focus frame for
10922 Enter/LeaveNotify if the current focus frame has explicit focus.
10923
77e688fa
KS
109242003-11-14 Kim F. Storm <storm@cua.dk>
10925
10926 * dispnew.c (update_text_area): Fix redisplay error when hscroll
10927 is active and first glyph is only partially visible.
854c1a59 10928
dd429b03
KH
109292003-11-13 Kenichi Handa <handa@m17n.org>
10930
10931 * xdisp.c (select_frame_for_redisplay): New function.
10932 (redisplay_internal): Record also selected_frame for
10933 unwind_redisplay. Call select_frame_for_redisplay before
10934 redrawing each frame.
10935 (unwind_redisplay): Argument changed to a cons.
10936
6d9266f4
LT
109372003-11-12 Luc Teirlinck <teirllm@auburn.edu>
10938
10939 * fns.c (Fstring_to_multibyte): Doc fix.
10940
80060eb3
KH
109412003-11-11 Kenichi Handa <handa@m17n.org>
10942
10943 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
10944
74305183
JD
109452003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10946
10947 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
10948 program specified positions.
10949
cfda993e
JD
109502003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10951
10952 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
10953
df211069
KH
109542003-11-08 Kenichi Handa <handa@m17n.org>
10955
10956 * Makefile.in (lisp): Add kannada.el.
10957 (shortlisp): Likewise.
10958
4307d534
KH
109592003-11-07 Kenichi Handa <handa@m17n.org>
10960
854c1a59
SM
10961 * coding.c (coding_allocate_composition_data):
10962 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
10963 (coding_restore_composition): Detect invalid composition data.
10964 Give Fstring and Fvector a Lispy integer, not C int.
10965
854c1a59
SM
109662003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
10967
10968 * floatfns.c (Flogb): Don't use VALMASK.
10969
10970 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
10971 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
10972
10973 * lisp.h (XINT): Move the cast to clarify what is going on.
10974 (GCTYPEMASK, XSETTYPE): Remove.
10975 (XGCTYPE): Make it an alias of XTYPE.
10976
d04103a1
JD
109772003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10978
10979 * xterm.c (x_term_init): Fix formatting.
10980
da18b5ac
JD
109812003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10982
78819ebb
KS
10983 * gtkutil.h (xg_have_tear_offs): Declare.
10984 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
10985
10986 * gtkutil.c: Remove variable xg_did_tearoff.
10987 (xg_have_tear_offs): New function.
10988 (tearoff_remove): Just decrease xg_detached_menus.
10989 (tearoff_activate): Increase xg_detached_menus and call
10990 tearoff_remove when tearoff is removed.
854c1a59 10991 (xg_keep_popup): Remove function.
da18b5ac
JD
10992 (create_menus): Give add_tearoff_p as argument to recursive
10993 call to create_menus.
10994 (xg_create_widget): Use variables instead of multiple
10995 strcmp. Tell create_menus to create tear off only for
10996 menu bar menus.
10997 (xg_update_menubar): Change title for a detached menu also.
10998 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
10999 of deep_p.
11000 (xg_initialize): Initialize xg_detached_menus, remove
11001 initialization of xg_did_tearoff.
11002
11003 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
11004 xg_have_tear_offs returns non-zero.
11005 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
11006 call to xg_keep_popup.
11007
64d4923e
AC
110082003-11-01 Andrew Choi <akochoi@shaw.ca>
11009
11010 * macterm.c (XTread_socket): Handle menubar selection and grow
11011 window only for mouseDown events.
854c1a59 11012
6cc8bc07
JD
110132003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11014
11015 * xterm.c (x_term_init): For GTK part, increase x_initialized
11016 to check for more than one display. Use error instead of return 0.
11017
043131c4
AC
110182003-10-31 Andrew Choi <akochoi@shaw.ca>
11019
854c1a59 11020 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
11021 (copy_dysymtab): Call it.
11022
bdda99a1
LT
110232003-10-31 Luc Teirlinck <teirllm@auburn.edu>
11024
11025 * eval.c (Fdefvaralias): Doc fix.
11026
800f42ff 110272003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
11028
11029 * data.c (Fsetplist): Doc fix.
11030
ef35b389
LK
110312003-10-14 Lute Kamstra <lute@gnu.org>
11032
11033 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 11034
ef35b389 110352003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 11036
07107abc
KS
11037 * window.c (Fset_window_margins): Simplify arg checking.
11038
f7005886
RS
110392003-10-13 Richard M. Stallman <rms@gnu.org>
11040
11041 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
11042 (print_partial_compiled_pattern): Replace assert with a printout.
11043 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
11044
11045 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
11046
11047 * window.c (Fset_window_margins): Allow only integers as args.
11048 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
11049 Doc fixes.
11050
9c0c2af5
LK
110512003-10-13 Lute Kamstra <lute@gnu.org>
11052
11053 * window.c (Fset_window_fringes): Elaborate docstring.
11054
3f080e4e
AC
110552003-10-12 Andrew Choi <akochoi@shaw.ca>
11056
854c1a59 11057 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 11058
3f080e4e
AC
11059 * s/darwin.h (GC_MARK_STACK): Define.
11060
0aa513ed
JD
110612003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11062
11063 * window.c (shrink_windows): New function.
11064 (size_window): Call shrink_windows to calculate window sizes when
11065 shrinking frame with more than one window.
11066
6aa8858a
KS
110672003-10-12 Kim F. Storm <storm@cua.dk>
11068
11069 * xdisp.c (compute_fringe_widths): Doc fix.
11070
c2164d91
KH
110712003-10-08 Kenichi Handa <handa@m17n.org>
11072
854c1a59 11073 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 11074
f82ac129
KH
110752003-10-07 Kenichi Handa <handa@m17n.org>
11076
11077 * coding.c (Qcoding_system_define_form): New variable.
11078 (syms_of_coding): Intern and staticpro it.
11079 (Fcheck_coding_system): Try to autoload the definition of
11080 CODING-SYSTEM.
11081
9296c947
LT
110822003-10-05 Luc Teirlinck <teirllm@auburn.edu>
11083
11084 * fns.c (Frequire): Doc fix.
11085
c1f0671a
JD
110862003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11087
3d8c3826
JD
11088 * xfns.c (Fx_send_client_event): New function as a base for
11089 manipulating extended window manager hints.
6dc15d98 11090 (Fx_send_client_event): Remove unused variable s.
3d8c3826 11091
068ae0fd
JD
11092 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
11093 that function is removed.
11094
11095 * xterm.c (x_set_offset): Use move_offset_left/top instead of
11096 x/y_pixels_outer_diff.
11097 (x_check_expected_move): Calculate move_offset_left/top.
11098
11099 * xterm.h (struct x_output): New members: move_offset_top/left.
11100
854c1a59 11101 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
11102 call x_set_offset directly.
11103
11104 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
11105
96f09305
JD
11106 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
11107
11108 * xterm.c (x_delete_display): Free font names and font_encoder
11109 in dpyinfo->font_table.
11110
854c1a59
SM
11111 * xfns.c (Fx_close_connection): Only call XFreeFont here.
11112 Move xfree of font names to x_delete_display.
96f09305 11113
c1f0671a
JD
11114 * xterm.h (struct x_display_info): New member, wm_type.
11115 (struct x_output): New members, expected_top/left and
11116 check_expected_move.
11117
11118 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
11119 is received.
854c1a59
SM
11120 (handle_one_xevent): Rename x_check_expected_move from
11121 x_check_fullscreen_move.
c1f0671a
JD
11122 (x_set_offset): Only add WM decoration sizes to modified_top/left
11123 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 11124 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
11125 Removed fullscreen specific code. Use check_expected_move,
11126 expected_left/top instead. Also, set wm_type.
11127 (x_term_init): Initialize wm_type to unknown.
11128
11129 * frame.c (x_fullscreen_move): Remove addition of WM decoration
11130 sizes to move_x/y.
11131
be2fdba9
KH
111322003-10-03 Kenichi Handa <handa@m17n.org>
11133
11134 * macterm.c (x_load_font): Clear all members of FONTP before start
11135 filling them.
11136
111372003-10-02 Kenichi Handa <handa@m17n.org>
11138
11139 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
11140 before calling find_ccl_program_func. Call find_ccl_program_func
11141 only when fontp->font_encoder is not NULL.
11142
11143 * xterm.c (x_load_font): Clear all members of FONTP before start
11144 filling them.
11145
26a6e439
JPW
111462003-10-03 John Paul Wallington <jpw@gnu.org>
11147
11148 * keymap.c (map_keymap): Don't abort when binding is a vector.
11149
0d4c2dc2
JR
111502003-10-02 Jason Rumney <jasonr@gnu.org>
11151
854c1a59
SM
11152 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
11153 Sync dependencies with Makefile.in.
a63cf46f
JR
11154 (alloca.o): Remove.
11155
0d4c2dc2
JR
11156 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
11157 filling them.
11158
11159 * w32bdf.c (w32_load_bdf_font): Likewise.
11160
ab8f7d5c
RS
111612003-09-30 Richard M. Stallman <rms@gnu.org>
11162
11163 * term.c (set_tty_color_mode): Calculate current_mode_spec
11164 regardless of value of VAL.
11165
854c1a59 11166 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
11167 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
11168 Handle over_used when splitting UNDER.
11169
a64387ee 111702003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
11171
11172 * regex.c (regex_compile): Free the stack when returning from function.
11173
3413f972
KH
111742003-09-28 Kenichi Handa <handa@m17n.org>
11175
11176 * fontset.c (Finternal_char_font): Change return value to
11177 cons (FONT-NAME . GLYPH-CODE).
11178
a6eeaa81 111792003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
11180
11181 * term.c (tty_setup_colors): Treat any negative argument as -1.
11182
f98ddc99
KH
111832003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
11184
11185 * process.c (send_process): Delete unused temp_buf.
11186
66c8f1a8
DL
111872003-09-26 Dave Love <fx@gnu.org>
11188
11189 * xterm.c (x_bitmap_mask): Declare.
11190
ca716c26
DL
111912003-09-25 Dave Love <fx@gnu.org>
11192
11193 * Makefile.in (fns.o): Depend on md5.h.
11194
fbe57420
KS
111952003-09-25 Kim F. Storm <storm@cua.dk>
11196
11197 * window.c (set_window_buffer): Fix redisplay problems when
11198 switching between buffers with different display margin widths.
11199
ef6ae4ff
KS
112002003-09-23 Kim F. Storm <storm@cua.dk>
11201
11202 * process.c (set_socket_option): Fix :bindtodevice option.
11203 (Fset_network_process_option): Update process contact list when
11204 setting option succeeds.
11205 (Fmake_network_process): Doc fix.
11206
68e03c1c
DL
112072003-09-23 Dave Love <fx@gnu.org>
11208
7146d1c1 11209 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 11210
a6eeaa81 112112003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
11212
11213 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
11214 color mode is an integer number (it could be -1).
11215
8fe7d8c8
RS
112162003-09-22 Richard M. Stallman <rms@gnu.org>
11217
11218 * intervals.c (graft_intervals_into_buffer): Correct the main loop
11219 in the case where OVER is longer than UNDER.
11220
2f71b5ea
MY
112212003-09-22 Masatake YAMATO <jet@gyve.org>
11222
7146d1c1 11223 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 11224 `vertical_type'.
7146d1c1 11225
0c4da023
KS
112262003-09-21 Kim F. Storm <storm@cua.dk>
11227
11228 * frame.c (Vdefault_frame_scroll_bars): New variable.
11229 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
11230 (syms_of_frame): DEFVAR_LISP it, and initialize according to
11231 window-system default scroll bar position.
11232
b648413b
KS
11233 * window.c (Fwindow_scroll_bars): Doc fix.
11234
8f5b9e34
JD
112352003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11236
854c1a59 11237 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 11238
b0f23edf
RS
112392003-09-19 Richard M. Stallman <rms@gnu.org>
11240
11241 * atimer.h: Don't include lisp.h.
11242 (P_): Define it here (as well as elsewhere).
11243
11244 * print.c (Fprin1_to_string): Move the PRINTPREPARE
11245 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
11246
11247 * data.c (Fvariable_binding_locus): New function.
11248 (syms_of_data): defsubr it.
11249 (Flocal_variable_p): Delete duplicate call to indirect_variable.
11250
e1283999
DL
112512003-09-18 Dave Love <fx@gnu.org>
11252
ad5f3636
DL
11253 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
11254
e1283999
DL
11255 * process.c (Fnetwork_interface_info): Fix type error.
11256 (Fnetwork_interface_list): Doc fix.
11257 (read_process_output, read_process_output): Delete unused var.
11258
b8c7fd71
KS
112592003-09-17 Kim F. Storm <storm@cua.dk>
11260
11261 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
11262 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
11263 (Fnetwork_interface_info): Check that ifreq struct has required
11264 fields before accessing them; this requires that those fields are
11265 defined as macros, which may be too restrictive on some platforms,
11266 but it is better than failing on other platforms.
11267 (syms_of_process): Only defsubr above fns when included.
11268
11e0a411
DL
112692003-09-17 Dave Love <fx@gnu.org>
11270
11271 * unexalpha.c: Don't include varargs.h.
11272
e9c50801
KS
112732003-09-17 Kim F. Storm <storm@cua.dk>
11274
11275 * process.c (Fset_process_sentinel): Add sentinel to childp plist
11276 for network process.
11277 (socket_options): Add `:' prefix to option names. Add optbit field.
11278 (set_socket_option): Remove no_error arg and special handling of s < 0.
11279 Return 1<<optbit for known option, 0 for unknown.
11280 Do not interpret 0 as false for boolean option (only nil).
11281 Pass failed option and value to report_file_error.
7146d1c1 11282 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
11283 (Fset_network_process_option): New function to set just one option.
11284 (Fmake_network_process): Allow :coding arg to be a cons.
11285 Allow :server arg to be an integer specifying backlog size.
11286 Remove :options arg, and allow options to be specified directly
11287 as :KEY, VALUE pairs. Parse these options before binding socket.
11288 As before, :reuseaddr t is default for a server process, but this
11289 can now be disabled by specifying :reuseaddr nil.
11290 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
11291 (init_process): Availability of network options is now checked with
11292 simpler syntax (featurep 'make-network-process :OPTION); use loop to
11293 setup features.
11294 (syms_of_process): Fix defsubr's for the replaced functions.
11295
a0fc3644
DL
112962003-09-16 Dave Love <fx@gnu.org>
11297
11298 * Makefile.in: Depend on coding.h.
11299
6df2a645
KS
113002003-09-14 Kim F. Storm <storm@cua.dk>
11301
11302 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
11303 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
11304 (syms_of_process): Defsubr them.
11305
11306 * config.in: Regenerate.
7146d1c1
SM
11307
113082003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11309
11310 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
11311 * m/news-r6.h (XUNMARK): Remove.
11312 * m/mips.h (XUNMARK): Remove.
11313 * m/mips-siemens.h (XUNMARK): Remove.
11314 * m/iris4d.h (XUNMARK): Remove.
11315 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
11316
0930c1a1
SM
113172003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11318
31003b9e
SM
11319 * lisp.h (VALBITS): Don't remove 1 for the markbit.
11320 (union Lisp_Object): Use unsigned int for types. Remove markbit.
11321 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
11322 (XTYPE): Use unsigned right-shift.
11323 (XMARKBIT, XMARK, XUNMARK): Remove.
11324
0930c1a1
SM
11325 * alloc.c (init_intervals, init_symbol, init_marker):
11326 Don't preallocate anything.
11327 (Fgarbage_collect, mark_object): Ignore the markbit.
11328
11329 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
11330
19bb0fcd 113312003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
11332
11333 * xdisp.c (pint2hrstr): New function.
11334 (decode_mode_spec): Add `%i' and `%I' specs.
11335 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
11336 for `mode-line-format'.
11337
03bb6a06
AS
113382003-09-07 Andreas Schwab <schwab@suse.de>
11339
11340 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
11341 avoid warning.
11342
a6eeaa81 113432003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 11344
0930c1a1 11345 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 11346
ed159bbf
KS
113472003-09-03 Kim F. Storm <storm@cua.dk>
11348
11349 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
11350 change (superseded by 2002-08-30 change); the default blink-off
11351 cursor is now again "no cursor".
11352
fe64a394
JR
113532003-09-01 Jason Rumney <jasonr@gnu.org>
11354
11355 * makefile.w32-in (alloca.o): Remove.
11356 (coding.o): Depend on intervals.h
11357 (emacs.o, bytecode.o): Depend on window.h
11358
c0175e24
DL
113592003-09-01 Dave Love <fx@gnu.org>
11360
11361 * Makefile.in (alloca.o): Remove commands.
11362 (coding.o): Depend on intervals.h composite.h window.h.
11363 (emacs.o): Depend on window.h keyboard.h keymap.h.
11364 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
11365 (bytecode.o): Depend on window.h.
11366
a24d4cb2
JR
113672003-08-31 Jason Rumney <jasonr@gnu.org>
11368
4bc2315e
JR
11369 * w32term.c (w32_per_char_metric): Allow cached metrics to be
11370 returned even when font_type is unknown.
11371
a24d4cb2
JR
11372 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
11373
9d35adc7
JD
113742003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11375
11376 * xterm.c (x_term_init): Initialize new fields in x_display_info.
11377
11378 * xterm.h (struct x_display_info): Add red/green/blue_bits and
11379 *_offset.
11380
11381 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
11382 calculate pixel value.
11383
6f68b035
GM
113842003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
11385
0930c1a1
SM
11386 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
11387 Don't tell redisplay display is accurate when it's actually been
11388 paused for pending input.
6f68b035 11389
4828b4d7
RS
113902003-08-29 Richard M. Stallman <rms@gnu.org>
11391
11392 * dispnew.c (adjust_glyph_matrix): Call window_box
11393 whenever W is nonzero.
11394
11395 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11396 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 11397 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
11398 Use indirect_variable to trace thru variable aliases.
11399
11400 * config.in: Updated.
11401
11402 * callint.c (Fcall_interactively): Save and restore
11403 Vthis_command, Vthis_original_command, real_this_command,
11404 and current_kboard->Vlast_command.
11405
11406 * abbrev.c (Fexpand_abbrev): Insert before deleting.
11407
e019878d
GM
114082003-08-29 Gerd Moellmann <gerd@gnu.org>
11409
11410 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
11411
85478bc6
KH
114122003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
11413
0930c1a1 11414 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
11415 (decode_coding_sjis_big5): Likewise.
11416
07ce82d3
JR
114172003-08-27 Jason Rumney <jasonr@gnu.org>
11418
d3703de3
JR
11419 * w32.c (sys_pipe): Protect against file descriptor overflow.
11420
ee4a01d1
JR
11421 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
11422
07ce82d3
JR
11423 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
11424
a64387ee 114252003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
11426
11427 * xfns.c (Vgtk_version_string): New variable.
11428 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
11429
a6eeaa81 114302003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 11431
0930c1a1 11432 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 11433
5459e42a
EZ
11434 * Makefile.in (msdos.o): Depend on intervals.h.
11435
0930c1a1 11436 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 11437
231d6cfb
JD
114382003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11439
11440 * xterm.h (struct x_display_info): New fields: client_leader_window
11441 and Xatom_wm_client_leader.
11442
11443 * xterm.c (x_initialize): Move call to x_session_initialize to ...
11444 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
11445
11446 * xsmfns.c (create_client_leader_window): New function.
11447 (x_session_initialize): Call create_client_leader_window, take
11448 dpyinfo as argument.
11449
11450 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
11451
11452 * Makefile.in (xsmfns.o): Add more depenedencies.
11453
afa88464
DL
114542003-08-21 Dave Love <fx@gnu.org>
11455
11456 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
11457
f730033e
KH
114582003-08-21 Kenichi Handa <handa@m17n.org>
11459
11460 * term.c (term_init): Fix previous change; don't rely on the
11461 length of `buffer' if TERMINFO is defined.
11462
6dca786c
DL
114632003-08-20 Dave Love <fx@gnu.org>
11464
11465 * atimer.h: Include lisp.h.
11466
11467 * lisp.h (EMACS_LISP_H): New.
11468 (popup_activated_flag): Don't declare.
11469
11470 * alloca.c: Some merging with gnulib. Change logic and doc
11471 concerning (x)malloc/(x)free -- no longer Emacs-specific.
11472 [DO_BLOCK_INPUT]: Don't include lisp.h.
11473 (xmalloc, xfree): Declare.
11474 (malloc): Don't declare.
11475
0930c1a1 11476 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
11477 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
11478 atimer.h, blockinput.h.
11479
11480 * alloc.c (lisp_align_malloc): Change type of `aligned'.
11481
78819ebb 11482 * alloca.s: Remove.
6dca786c 11483
3a06a6d9
RS
114842003-08-19 Gerd Moellmann <gerd@gnu.org>
11485
11486 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
11487 use -lncurses.
11488
11489 * term.c (term_init): Use a buffer of size 4096 for tgetent since
11490 FreeBSD returns something longer than 2044. Abort if the end of
11491 the buffer is overwritten.
11492
27eeee55
MB
114932003-08-19 Miles Bader <miles@gnu.org>
11494
11495 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
11496
2f297815
GM
114972003-08-19 Gerd Moellmann <gerd@gnu.org>
11498
f4446bbf
GM
11499 * alloc.c (lisp_align_malloc): Check for memory full when
11500 allocating ablocks, which also avoids freeing a pointer into an
11501 ablocks structure.
11502
11503 * puresize.h (BASE_PURESIZE): Increase to 1100000.
11504
0930c1a1 11505 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 11506
0e7d7aae
RS
115072003-08-16 Richard M. Stallman <rms@gnu.org>
11508
11509 * editfns.c (Fencode_time): Doc fix.
11510
115112003-08-16 David Ponce <david@dponce.com>
11512
11513 * fileio.c (Fwrite_region): Fix conditional expression to issue
11514 the right message.
11515
b6189c3b 115162003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
11517
11518 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 11519 Set default value to 1.
0e7d7aae 11520
5d551295
KH
115212003-08-15 Kenichi Handa <handa@m17n.org>
11522
11523 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
11524 what autoscaled.
11525 (best_matching_font): Once we find a better scalable font, set
11526 non_scalable_has_exact_height_p to 1.
11527 (try_font_list): Call try_alternative_families to try any family
11528 with the given registry.
11529
1661e56b
AS
115302003-08-09 Andreas Schwab <schwab@suse.de>
11531
f29181dc
AS
11532 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
11533
1661e56b
AS
11534 * print.c (print_string): Fix printing of multibyte string with
11535 nontrivial printcharfun.
11536
465aa50a
JD
115372003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11538
11539 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
11540
11541 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
11542
e430e5ba
KH
115432003-07-31 Kenichi Handa <handa@m17n.org>
11544
11545 * process.c (read_process_output): Return the actually read bytes
11546 instead of the result of decoding.
11547
97e7188e
KH
115482003-07-31 Kenichi Handa <handa@m17n.org>
11549
11550 * xterm.h (struct x_bitmap_record): New member have_mask.
11551
11552 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
11553 to 0.
11554 (x_create_bitmap_from_file): Likewise.
11555 (x_destroy_bitmap): Check have_mask member before freeing a mask.
11556 (x_destroy_all_bitmaps): Likewise.
11557 (x_create_bitmap_mask): Set have_mask member to 1.
11558
b53094d6
RS
115592003-07-30 Richard M. Stallman <rms@gnu.org>
11560
11561 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
11562
631f2082
JD
115632003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11564
11565 * gtkutil.c (xg_mark_data): Update calls to mark_object.
11566
c855f2ca
RS
115672003-07-29 Richard M. Stallman <rms@gnu.org>
11568
11569 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
11570 Conditionalize XIM code on HAVE_XIM.
11571
11572 * fns.c (Fclear_string): New function.
11573 (syms_of_fns): defsubr it.
11574
b6189c3b 115752003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 11576
0930c1a1 11577 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 11578
29ea8ae9
SM
115792003-07-22 Stefan Monnier <monnier@cs.yale.edu>
11580
11581 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
11582
11583 * buffer.c (delete_all_overlays): New function.
11584 * buffer.h (delete_all_overlays): Declare.
11585 * coding.c (run_pre_post_conversion_on_str):
11586 * print.c (temp_output_buffer_setup):
11587 * fileio.c (Finsert_file_contents):
11588 * minibuf.c (get_minibuffer): Use it.
11589
1dd7ccf2
AC
115902003-07-22 Andrew Choi <akochoi@shaw.ca>
11591
11592 * unexmacosx.c (unexec_regions_sort_compare):
11593 (unexec_regions_merge): New functions. Sort and merge unexec
11594 regions before dumping them.
11595
f57bd967
DL
115962003-07-22 Dave Love <fx@gnu.org>
11597
11598 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
11599
7cdee936
SM
116002003-07-21 Stefan Monnier <monnier@cs.yale.edu>
11601
11602 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
11603 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
11604 MARKBIT as the gcmarkbit for strings.
11605
e50886d3
RS
116062003-07-21 Richard M. Stallman <rms@gnu.org>
11607
11608 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
11609
29ea8ae9 11610 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
11611 (syms_of_fns): Corresponding change.
11612
11613 * alloc.c (syms_of_alloc): Doc fixes.
11614
116152003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
11616
11617 * s/netbsd.h: Use -Wl syntax.
11618
fdc39b59
RS
116192003-07-17 Richard M. Stallman <rms@gnu.org>
11620
11621 * xterm.c (xim_initialize): Redo 6/24 change.
11622
9c53385f
SM
116232003-07-15 Stefan Monnier <monnier@cs.yale.edu>
11624
11625 * buffer.c (copy_overlays): Use EMACS_INT for positions.
11626 (Fswitch_to_buffer): Don't signal an error when switching to the same
11627 buffer in a dedicated window.
11628
11629 * alloc.c: Use bitmaps for cons, as was done for floats.
11630 (init_float, init_cons): Let the normal code allocate the first block.
11631 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
11632 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
11633 New macros.
11634 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
11635 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
11636 (live_cons_p): Check the pointer is not past the `conses' array.
11637 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
11638 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
11639 (survives_gc_p): Use CONS_MARKED_P and simplify.
11640 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
11641
dde13196
PE
116422003-07-13 Paul Eggert <eggert@twinsun.com>
11643
11644 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
11645 puts it into BSS instead, at least on Solaris 8 and 9.
11646 This is a valid optimization, and it may occur on other platforms,
11647 so Emacs should not assume that initializing a static variable to
11648 zero puts it into data.
11649 * alloc.c (pure, staticvec):
11650 Initialize these arrays to nonzero, so that they're not
11651 put into BSS by that optimization.
11652
a801bc34
SM
116532003-07-13 Stefan Monnier <monnier@cs.yale.edu>
11654
11655 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
11656 (lisp_align_malloc): Use posix_memalign is available.
11657 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
11658 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
11659 for consistency. Update users.
11660
0c8b2afa
RS
116612003-07-13 Richard M. Stallman <rms@gnu.org>
11662
11663 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
11664
668c2ab0
JB
116652003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
11666
11667 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
11668 and use the Gtk+ function gtk_window_icon_from_file if available.
11669
11670 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
11671 handle mask of bitmaps.
11672 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
11673 mask property.
11674 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
11675
11676 * xterm.h (xg_set_icon): New function.
11677
800bebe3
RS
116782003-07-12 Paul Eggert <eggert@twinsun.com>
11679
11680 * unexelf.c (unexec): Consider a section to precede the .bss
11681 section if its addresses overlap that of .bss.
11682
69e38995
RS
116832003-07-12 Richard M. Stallman <rms@gnu.org>
11684
11685 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
11686
11687 * config.in (HAVE_CRTIN): Add #undef.
11688 (INLINE): Really inline only if OPTIMIZE is defined.
11689
11690 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
11691 END_FILES_1.
11692 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 11693 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
11694
11695 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
11696 (TERMINFO): Define.
11697 (LIBS_TERMCAP): Define.
11698 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
11699
11700 * xfns.c: Include libpng/png.h instead of png.h.
11701
f1d0c238
AS
117022003-07-11 Andreas Schwab <schwab@suse.de>
11703
11704 * buffer.c (modify_overlay): Update prototype.
11705 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
11706 Likewise.
11707
5f6bf5fe
SM
117082003-07-09 Stefan Monnier <monnier@cs.yale.edu>
11709
11710 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
11711 (struct interval): Move to intervals.h.
11712 (struct Lisp_Marker): Use EMACS_INT for position info.
11713 (forward_point): Remove prototype of defunct function.
11714 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
11715 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
11716 (syms_of_textprop, set_text_properties): Remove prototypes that are
11717 already in intervals.h.
11718
11719 * intervals.h (struct interval): Move from lisp.h.
11720 Use EMACS_INT for position and size info.
11721
11722 * coding.c: Include intervals.h for Fset_text_properties.
11723
11724 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
11725 position and length information.
11726
2765b457
SM
117272003-07-09 Stefan Monnier <monnier@cs.yale.edu>
11728
11729 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
11730 position and length information.
11731
2410d73a
SM
117322003-07-09 Stefan Monnier <monnier@cs.yale.edu>
11733
11734 Change overlays_after and overlays_before so the overlays themselves
11735 are linked into lists, rather than using cons cells. After all each
11736 Lisp_Misc already occupies 5 words, so we can add a `next' field to
11737 Lisp_Overlay for free and save up one cons cell per overlay (not
11738 to mention one indirection when traversing the list of overlay).
11739
11740 * lisp.h (struct Lisp_Overlay): New field `next'.
11741
11742 * buffer.h (struct buffer): Change overlays_before and overlays_after
11743 from Lisp lists of overlays to pointers to overlays.
11744
11745 * buffer.c (overlay_strings, recenter_overlay_lists):
11746 Fix typo in eassert in last commit.
11747 (unchain_overlay): New function.
11748 (add_overlay_mod_hooklist): Use AREF.
11749 (copy_overlays, reset_buffer, overlays_at, overlays_in)
11750 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
11751 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
11752 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
11753 (report_overlay_modification, evaporate_overlays, init_buffer_once):
11754 Adjust to new type of overlays_(before|after).
11755
11756 * alloc.c (mark_object): Mark the new `next' field of overlays.
11757 (mark_buffer): Manually mark the overlays_(after|before) fields.
11758
11759 * coding.c (run_pre_post_conversion_on_str):
11760 * editfns.c (overlays_around):
11761 * xdisp.c (load_overlay_strings):
11762 * fileio.c (Finsert_file_contents):
11763 * indent.c (current_column):
11764 * insdel.c (signal_before_change, signal_after_change):
11765 * intervals.c (set_point_both):
11766 * print.c (temp_output_buffer_setup): Use new type for
11767 overlays_(before|after).
11768
04812929
SM
117692003-07-08 Stefan Monnier <monnier@cs.yale.edu>
11770
11771 * buffer.c (report_overlay_modification): Don't run hooks while
11772 traversing the list of overlays.
11773
11774 * buffer.h (struct buffer): Use an int for overlay_center.
11775 (overlays_at, evaporate_overlays, recenter_overlay_lists)
11776 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
11777
11778 * buffer.c (reset_buffer, recenter_overlay_lists)
11779 (adjust_overlays_for_insert, adjust_overlays_for_delete)
11780 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
11781 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
11782 (overlays_at, evaporate_overlays, recenter_overlay_lists)
11783 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
11784
11785 * xdisp.c (fast_find_position): Remove unused var.
11786
11787 * cmds.c (Qexpand_abbrev): New sym.
11788 (syms_of_cmds): Initialize it.
11789 (internal_self_insert): Use it to call expand-abbrev.
11790
2e7ecf15
KS
117912003-07-09 Kim F. Storm <storm@cua.dk>
11792
f9711de4 11793 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 11794 was configured with --without-xim.
42f81f64 11795 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 11796
c6de56a0
RS
117972003-07-07 Richard M. Stallman <rms@gnu.org>
11798
11799 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
11800
11801 * alloc.c (Fgarbage_collect): Doc fix.
11802
b6189c3b 118032003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
11804
11805 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
11806
bfe1a3f7
SM
118072003-07-06 Stefan Monnier <monnier@cs.yale.edu>
11808
04812929
SM
11809 * minibuf.c (read_minibuf): UNGCPRO before returning.
11810 (Ftry_completion, Fall_completions): Doc fix.
11811
bfe1a3f7
SM
11812 * alloc.c (live_float_p): Check that p is not past the `floats' array,
11813 now that `floats' is not the last element of the struct any more.
11814
ee79d1aa
JR
118152003-07-06 Jason Rumney <jasonr@gnu.org>
11816
11817 * w32term.h (ClipboardSequence_Proc): New type.
11818
11819 * w32fns.c (clipboard_sequence_fn): New variable.
11820 (globals_of_w32fns): Initialize it.
11821
11822 * w32select.c (last_clipboard_sequence_number): New variable.
11823 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
11824 number if possible.
11825
49723c04
SM
118262003-07-06 Stefan Monnier <monnier@cs.yale.edu>
11827
4698665f
SM
11828 * m/amdx86-64.h (MARKBIT):
11829 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
11830 MARKBIT and ARRAY_MARK_FLAG any more.
11831
11832 * m/hp800.h (XSETMARKBIT):
11833 * m/sr2k.h (XSETMARKBIT):
11834 * lisp.h (XSETMARKBIT): Remove unused macro.
11835
49723c04
SM
11836 * lisp.h (mark_object): Change prototype.
11837
11838 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
11839 (last_marked): Change accordingly.
11840 (mark_interval, mark_maybe_object, mark_maybe_pointer)
11841 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
11842 (mark_buffer): Update calls to mark_object.
11843
11844 * bytecode.c (mark_byte_stack):
11845 * fns.c (sweep_weak_table):
11846 * keyboard.c (mark_kboards): Update calls to mark_object.
11847
1d660eca
JR
118482003-07-06 Jason Rumney <jasonr@gnu.org>
11849
11850 * alloc.c (struct ablock): Only include padding when there is some.
11851
618b5ae4
SM
118522003-07-04 Stefan Monnier <monnier@cs.yale.edu>
11853
11854 * alloc.c (ALIGN): Add casts to simplify usage.
11855 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
11856 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
11857 (struct ablock, struct ablocks): New types.
11858 (free_ablock): New global var.
11859 (lisp_align_malloc, lisp_align_free): New functions.
11860 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
11861 (struct float_block): Reorder and add gcmarkbits.
11862 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
11863 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
11864 (init_float, make_float): Use lisp_align_malloc.
11865 (free_float, live_float_p): Don't use `type' any more.
11866 (make_float): Use FLOAT_UNMARK to access to mark bit.
11867 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
11868 Use FLOAT_MARKED_P to access the mark bit.
11869 (pure_alloc): Simplify use of ALIGN.
11870 (mark_object): Use FLOAT_MARK to access the mark bit.
11871 (gc_sweep): Use new macros to access the float's mark bit.
11872 (init_alloc_once): Init free_ablock.
11873
11874 * lisp.h (struct Lisp_Float): Remove unused field `type'.
11875
3ef06d12
SM
118762003-06-27 Stefan Monnier <monnier@cs.yale.edu>
11877
11878 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
11879 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
11880 (allocate_buffer): Move.
11881 (string_bytes): Don't mask markbit of `size_byte'.
11882 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11883 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
11884 Use the `size' field of buffers (rather than the `name' field) for
11885 the mark bit, as is done for all other vectorlike objects.
11886 Use the new macros to access the mark bit of vectorlike objects.
11887
e81043aa
RS
118882003-06-26 Richard M. Stallman <rms@gnu.org>
11889
11890 * puresize.h (BASE_PURESIZE): Increment base size.
11891
11892 * xdisp.c (fast_find_position): Enable Gerd's new definition.
11893
11894 * xterm.c (xim_initialize): Undo previous change.
11895
2d0834cc
SM
118962003-06-26 Stefan Monnier <monnier@cs.yale.edu>
11897
11898 * alloc.c (survives_gc_p): Simplify.
11899
11900 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
11901
11902 * window.c (Fset_window_dedicated_p): Simplify.
11903 (display_buffer_1): Don't raise the win from which minibuf was entered.
11904 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
11905 (Fminibuffer_selected_window): Simplify.
11906
11907 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
11908
11909 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
11910 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
11911
11912 * insdel.c (check_markers, adjust_markers_for_delete)
11913 (adjust_markers_for_insert, adjust_markers_for_replace)
11914 (prepare_to_modify_buffer, RESTORE_VALUE):
11915 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
11916 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
11917 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
11918 * alloc.c (Fmake_marker, free_marker, gc_sweep):
11919 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
11920 * editfns.c (save_excursion_restore, transpose_markers):
11921 * window.c (delete_window):
11922 * xdisp.c (message_dolog): Update for new types.
11923
d54ae3d8
JD
119242003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11925
a5f696ac
JD
11926 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
11927 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 11928 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
11929
11930 * frame.c (make_frame): Initialize default_face_done_p.
11931
11932 * frame.h (struct frame): Add default_face_done_p.
11933
d54ae3d8
JD
11934 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
11935 will be defined.
11936
2336fe58
SM
119372003-06-25 Stefan Monnier <monnier@cs.yale.edu>
11938
11939 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
11940 Initialize the new field `gcmarkbit'.
11941 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
11942 (mark_interval_tree): Don't mark the tree separately from the nodes.
11943 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
11944 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11945 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
11946
11947 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
11948 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
11949 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
11950 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
11951 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
11952
bcea31c2
DL
119532003-06-24 Dave Love <fx@gnu.org>
11954
11955 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
11956
11957 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
11958 from gnulib.
11959
2601f59e
RS
119602003-06-21 Richard M. Stallman <rms@gnu.org>
11961
11962 * fileio.c (Fwrite_region): Alternate messages
11963 for append and partial write.
11964
11965 * keyboard.c (read_key_sequence): When converting upcase fn key to
11966 downcase, update fkey and keytran so `backspace' gets translated.
11967
11968 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
11969
11970 * process.c (wait_reading_process_input): Don't signal SIGIO
11971 in batch mode.
11972
b5d2c621
KH
119732003-06-17 Kenichi Handa <handa@m17n.org>
11974
11975 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
11976 composite.h.
11977
11978 * xselect.c: Don't include charset.h, coding.h, composite.h.
11979 (Qforeign_selection): New variable.
11980 (syms_of_xselect): Intern and static it.
11981 (selection_data_to_lisp_data): Return a unibyte string made from
11982 data with `foreign-selection' text property.
11983
6793bc63
SM
119842003-06-15 Stefan Monnier <monnier@cs.yale.edu>
11985
11986 * termhooks.h (EVENT_INIT): New macro.
11987
11988 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
11989
11990 * alloc.c (mark_kboards): Move to keyboard.c.
11991
11992 * keyboard.c (record_asynch_buffer_change, read_avail_input):
11993 * xterm.c (x_dispatch_event):
11994 * xmenu.c (find_and_call_menu_selection):
11995 * xdisp.c (handle_tool_bar_click):
11996 * w32menu.c (menubar_selection_callback):
11997 * sysdep.c (kbd_input_ast, read_input_waiting):
11998 * msdos.c (dos_rawgetc):
11999 * macterm.c (mac_check_for_quit_char):
12000 * macmenu.c (menubar_selection_callback):
12001 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
12002 data to kbd_buffer_store_event.
12003
b3ea810c
KS
120042003-06-15 Kim F. Storm <storm@cua.dk>
12005
12006 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 12007 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 12008
b8f75eda
KG
120092003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
12010
12011 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
12012
ba92ce48
KH
120132003-06-12 Kenichi Handa <handa@m17n.org>
12014
12015 * fileio.c (Fwrite_region): Save and restore restriction.
12016
b80263be
DL
120172003-06-12 Dave Love <fx@gnu.org>
12018
12019 * alloca.c (alloca): Declare arg as size_t.
12020
6793bc63
SM
12021 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
12022 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 12023
b23c0a83
DL
120242003-06-11 Dave Love <fx@gnu.org>
12025
12026 * search.c (shrink_regexp_cache): Use xrealloc.
12027 (syms_of_search): Use xmalloc.
12028
700e47c2
KS
120292003-06-10 Kim F. Storm <storm@cua.dk>
12030
12031 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
12032 Adjust phys_cursor.x to be relative to window box, rather than
12033 text area before checking -- to ensure cursor is redrawn when
12034 exposing window.
12035 Note: This also fixes a similar (older) bug if display margins
12036 are present.
12037
f11aa0b2
KH
120382003-06-06 Kenichi Handa <handa@m17n.org>
12039
12040 * coding.c (encoding_buffer_size): If coding->type is
12041 coding_type_ccl, double magnification on CRLF encoding.
12042
3d143690
JR
120432003-06-06 Jason Rumney <jasonr@gnu.org>
12044
12045 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
12046 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
12047
12048 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
12049 Mac too.
12050
f16205ca
DL
120512003-06-05 Dave Love <fx@gnu.org>
12052
b23c0a83
DL
12053 * strftime.c: Merge changes from gnulib.
12054
f16205ca
DL
12055 * mktime.c (__mktime_internal): Merge changes from gnulib
12056 involving year 69 and dst2.
12057
12058 Changes to merge with gnulib version and be consistent with the
12059 autoconf test:
12060
6793bc63
SM
12061 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
12062 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
12063 [HAVE_LOCALE_H]: Include locale.h.
12064 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
12065
9b87a0bc
KS
120662003-06-05 Kim F. Storm <storm@cua.dk>
12067
12068 * window.c (coordinates_in_window): Convert X and Y to window
12069 relative coordinates inside mode-line and header-line parts.
12070 Convert X and Y to margin area relative coordinates inside left
12071 and right display margin parts.
12072
5a8a15ec
JR
120732003-06-05 Jason Rumney <jasonr@gnu.org>
12074
12075 * w32fns.c (add_system_logical_colors_to_map): New function.
12076 (Fx_open_connection): Use it.
12077
01ed8ff1
SM
120782003-06-04 Stefan Monnier <monnier@cs.yale.edu>
12079
12080 * process.c (allocate_pty): Revert part of the previous patch.
12081 (Faccept_process_output): Simplify.
12082
b427b65d
JR
120832003-06-04 Jason Rumney <jasonr@gnu.org>
12084
12085 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
12086
12087 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
12088 (lispy_mouse_wheel_names): Remove.
12089 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
12090 Always define drag_and_drop_syms.
12091
12092 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
12093 WHEEL_EVENT events.
12094
914a8c47
SM
120952003-06-03 Stefan Monnier <monnier@cs.yale.edu>
12096
01ed8ff1
SM
12097 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
12098
914a8c47
SM
12099 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
12100
adcb132c
JD
121012003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12102
12103 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
12104 menu item label.
12105
be781fa7
RS
121062003-06-03 Richard M. Stallman <rms@gnu.org>
12107
12108 * window.c (Fwindow_edges): Doc fix.
12109 (Fwindow_pixel_edges, Fwindow_inside_edges)
12110 (Fwindow_inside_pixel_edges): New functions.
12111 (syms_of_window): defsubr them.
12112
12113 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
12114 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
12115
914a8c47
SM
121162003-06-02 Stefan Monnier <monnier@cs.yale.edu>
12117
12118 * dispnew.c (Fsit_for): Don't lie about the number of args.
12119
5b07197a
DL
121202003-06-02 Dave Love <fx@gnu.org>
12121
12122 * callproc.c: Use HAVE_FCNTL_H, not USG5.
12123 (syms_of_callproc) <process-environment>: Doc fix.
12124
12125 * doc.c: Use HAVE_FCNTL_H, not USG5.
12126
12127 * xfaces.c (font_rescale_ratio): Fix for K&R.
12128
12129 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
12130
12131 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
12132
12133 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
12134
12135 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
12136 (xg_create_frame_widgets): Use ENCODE_UTF_8.
12137
d7107586 12138 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
12139
12140 * xmenu.c (ENCODE_MENU_STRING): New.
12141 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
12142 Use it.
12143
12144 * coding.h (ENCODE_UTF_8): New.
12145 (Qutf_8): Declare.
12146
12147 * coding.c (Qutf_8): New.
12148 (syms_of_coding): Intern it.
12149
12150 * fns.c: Doc fixes.
12151
7335b336
KH
121522003-06-02 Kenichi Handa <handa@m17n.org>
12153
12154 * buffer.c (Fset_buffer_multibyte): Fix previous change.
12155
914a8c47
SM
121562003-06-01 Stefan Monnier <monnier@cs.yale.edu>
12157
12158 * lread.c (openp): Make sure STR is a string.
12159
9862c135
JR
121602003-06-01 David Ponce <david@dponce.com>
12161
cab27d04 12162 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
12163 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
12164
12165 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
12166 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
12167 (discard_mouse_events): Discard WHEEL_EVENT events too.
12168 (lispy_wheel_names, wheel_syms): New.
12169 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 12170 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 12171 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
12172
12173 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
12174 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
12175 WHEEL_EVENT events.
12176
f984e73e
JPW
121772003-05-31 John Paul Wallington <jpw@gnu.org>
12178
12179 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
12180 timer are in lisp/emacs-lisp.
12181
1efcd78f
KH
121822003-05-31 Kenichi Handa <handa@m17n.org>
12183
458c8af4
KH
12184 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
12185 region when a buffer is changed to unibyte.
12186
1efcd78f
KH
12187 * charset.h (VALID_LEADING_CODE_P): New macro.
12188 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
12189
778e2804
KH
12190 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
12191 is nonzero, accept multibyte form of eight-bit-control chars.
12192 (decode_composition_emacs_mule): Likewise.
12193 (decode_coding_emacs_mule): Likewise.
12194 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
12195 multibyte form of eight-bit-control chars.
12196
12197 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
12198 (Finsert_file_contents): If coding-system-for-read is bound to
12199 Qauto_save_coding, use the coding system emacs-mule with special
12200 setting for recovering a file.
12201 (choose_write_coding_system): On auto saving, use the coding
12202 system emacs-mule with special setting for auto saving.
12203 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
12204
034060e4
KH
122052003-05-30 Kenichi Handa <handa@m17n.org>
12206
12207 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
12208 properly before calling ccl_driver.
12209
778e2804 12210 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 12211
cab27d04 12212 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
12213 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
12214 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
12215
595f5aa5
GM
122162003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
12217
12218 * xfaces.c (realize_default_face): Do not abort if lface is
12219 non-existent - reverts change from 2003-05-19.
12220
103e0180
KH
122212003-05-29 Kenichi Handa <handa@m17n.org>
12222
12223 * coding.c (decode_coding_iso2022): Pay attention to the byte
12224 sequence of CTEXT extended segment, and retain those bytes as is.
12225
122262003-05-28 Kenichi Handa <handa@m17n.org>
12227
cab27d04 12228 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
12229 of CODING_REPLACEMENT_CHARACTER.
12230 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
12231 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
12232 check this flag on encoding.
cab27d04
SM
12233 (encode_coding_sjis_big5):
12234 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
12235 (Fset_terminal_coding_system_internal):
12236 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
12237 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
12238
12239 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
12240 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
12241 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
12242
ff6a3bfb 122432003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 12244
ff6a3bfb
RS
12245 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
12246
12247 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 12248
1963c428
KS
122492003-05-28 Kim F. Storm <storm@cua.dk>
12250
12251 * xdisp.c (expose_window): Fix error in calculation of
12252 window relative coordinates of area to redisplay.
12253
2b5d4601
JR
122542003-05-27 Jason Rumney <jasonr@gnu.org>
12255
12256 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
12257
1c64a4a2
JB
122582003-05-27 David Ponce <david@dponce.com>
12259
12260 Handle W32 mouse wheel events as mouse click events, like in X.
12261
12262 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
12263 MOUSE_WHEEL_EVENT anymore.
12264
12265 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
12266 Scrolling down/up the mouse wheel is respectively mapped to mouse
12267 button 4 and 5.
12268 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
12269 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
12270 WM_MOUSEWHEEL events.
12271
2d031b89
AS
122722003-05-27 Andreas Schwab <schwab@suse.de>
12273
20464fdf
AS
12274 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
12275
2d031b89
AS
12276 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
12277 partially visible line.
12278
12279 * alloc.c (Fgarbage_collect): Fix last change.
12280
97bc76d4
JPW
122812003-05-26 John Paul Wallington <jpw@gnu.org>
12282
12283 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
12284
56613f06
SM
122852003-05-25 Stefan Monnier <monnier@cs.yale.edu>
12286
12287 * window.c (Fset_window_buffer): Add type of `keep_margins'.
12288 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
12289
12290 * window.h (window_box_text_cols): Declare.
12291
12292 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
12293 (x_draw_vertical_border): Remove unused var `f'.
12294
12295 * xfaces.c (build_scalable_font_name): Remove `unused var
12296 pixel_size' warning.
12297
12298 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
12299
12300 * unexelf.c (unexec): Remove `unused var n' warning.
12301
12302 * strftime.c (my_strftime_localtime_r): Remove `defined but
12303 unused' warning.
12304
12305 * process.c (allocate_pty): Remove `unused var stb' and
12306 `cp might be used uninitialized' warnings.
12307
12308 * dispnew.c (mode_line_string): Remove unused var `f'.
12309
12310 * coding.c (find_safe_codings): Remove unused var `i'.
12311
12312 * bytecode.c (Fbyte_code): Remove `unused val' warning.
12313
12314 * buffer.c (Fkill_buffer): Remove unused var `list'.
12315
12316 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
12317
93421a1f
JD
123182003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12319
12320 * frame.c (make_frame): Condition want_fullscreen with
12321 HAVE_WINDOW_SYSTEM.
12322
c4b8aebc
JB
123232003-05-25 Juanma Barranquero <lektu@terra.es>
12324
12325 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
12326 (Fwindow_scroll_bars): Fix typo in docstring.
12327
0416870b
KS
123282003-05-24 Kim F. Storm <storm@cua.dk>
12329
12330 The following changes serve several purposes:
12331
12332 1) Swap the position of fringes and display margins in windows, i.e.
12333 the fringes are now displayed between the margins and the text area
12334 (by default).
12335
12336 2) Allow fringe and scroll bar parameters to be set per-buffer and
12337 per-window (like display margins). Such settings are now stored
12338 in window configurations, preserved when frames are resized, and
9018a88e 12339 copied when windows are split vertically or horizontally.
0416870b
KS
12340 Several bugs related to display margins have been fixed.
12341
12342 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 12343
0416870b
KS
12344 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
12345 rather than FRAME_WIDTH (FRAME_FONT (f)).
12346
12347 5) Introduce a consistent naming of variables, members and macros
12348 depending on whether their value is measured in pixels or in
12349 canonical columns/lines. Pixel dimensions are named *_width and
12350 *_height, while canonical columns/lines are named *_cols and
12351 *_lines. Pixel positions are named *_x and *_y, while column/line
12352 positions are named *_col and *_line.
12353
12354 6) Consolidate more of the X, W32, and MAC gui code by moving
12355 common data into struct frame, and generalize it for the non-gui
12356 case by using suitable defaults.
12357
12358 7) Cleanup and consolidate the macros controlling frame and window
12359 layout into frame.h and window.h, and generalize the use of the
12360 various window_box_* functions (enhanced to handle the new fringe
12361 position and the per-window fringe and scroll bar settings).
12362
12363 * frame.h (struct frame): Rename members height to text_lines,
12364 width to text_cols, window_height to total_lines, window_width to
12365 total_cols, new_height to new_text_lines, new_width to
12366 new_text_cols. All uses changed.
12367 (struct frame): New members which consolidate common members of
12368 x_output, w32_output, and mac_output structures: left_pos,
12369 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
12370 win_gravity, size_hint_flags, border_width, internal_border_width,
12371 line_height, fringe_cols, left_fringe_width, right_fringe_width,
12372 want_fullscreen. All uses changed.
12373 (struct frame): New member column_width contaning the canonical
12374 column width, analogue to line_height. All uses changed.
12375 (struct frame): Rename members scroll_bar_pixel_width to
12376 config_scroll_bar_width, and scroll_bar_cols to
12377 config_scroll_bar_cols. All uses changed.
12378 (struct frame): New member scroll_bar_actual_width which
12379 consolidates and renames the vertical_scroll_bar_extra member of
12380 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 12381 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
12382 from x/w32/macterm.h files. All uses changed. Also change code
12383 which referred to f->output_data...->pixel_height.
cab27d04 12384 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 12385 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 12386 which referred to f->output_data...->pixel_width.
cab27d04 12387 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 12388 Also change code which referred to f->height.
cab27d04 12389 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
12390 Also change code which referred to f->width.
12391 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
12392 to update new_text_lines and new_text_cols members directly.
cab27d04 12393 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 12394 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 12395 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
12396 FRAME_SCROLL_BAR_COLS. All uses changed.
12397 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 12398 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
12399 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
12400 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
12401 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
12402 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
12403 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
12404 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
12405 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
12406 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
12407 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
12408 Unconditionally return line_height member (it now has proper value
12409 also for non-window frames).
12410 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
12411 return new column_width member (rather than the default font width).
12412 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 12413 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
12414 from x/w32/macterm.h files. Unconditionally return corresponding
12415 member of frame structure (they now have proper values also for
12416 non-window frames).
cab27d04 12417 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
12418 Calculate return value from left and right widths.
12419 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
12420 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
12421 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
12422 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
12423 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
12424 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
12425 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 12426 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 12427 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 12428 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 12429 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 12430 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 12431 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 12432 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 12433 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 12434 consolidated from x/mac/w32term.h.
cab27d04 12435 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 12436 consolidated from x/mac/w32term.h.
cab27d04 12437 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 12438 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 12439 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
12440 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
12441
12442 * window.h (struct window): Rename members left to left_col,
12443 top to top_line, height to total_lines, width to total_cols,
12444 left_margin_width to left_margin_cols, right_margin_width to
12445 right_margin_cols, orig_height to orig_total_lines, orig_top to
12446 orig_top_line. All uses changed.
12447 (struct window): New members left_fringe_width, right_fringe_width,
12448 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
12449 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
12450 New macros primarily used to simplify other macros.
12451 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
12452 referred to XINT (w->width).
12453 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
12454 referred to XINT (w->height).
12455 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
12456 referred to XINT (w->width) * canon_x_unit.
12457 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
12458 referred to XINT (w->height) * canon_y_unit.
12459 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
12460 referred to XINT (w->left).
cab27d04 12461 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
12462 all uses and code that referred to XINT (w->left) + XINT (w->width).
12463 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
12464 referred to XINT (w->top).
12465 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
12466 referred to XINT (w->top) + XINT (w->height).
12467 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
12468 referred to XINT (w->left) * canon_x_unit.
12469 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
12470 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
12471 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
12472 referred to XINT (w->top) * canon_y_unit.
12473 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
12474 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
12475 (WINDOW_LEFTMOST_P): New macro.
cab27d04 12476 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 12477 All uses changed.
cab27d04 12478 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 12479 All uses changed.
cab27d04 12480 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
12481 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
12482 Do not exclude left fringe width.
cab27d04 12483 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
12484 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
12485 Do not exclude fringe widths.
12486 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
12487 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
12488 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
12489 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
12490 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
12491 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
12492 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
12493 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
12494 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
12495 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
12496 New macros. Change code which referenced corresponding
12497 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
12498 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
12499 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
12500 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
12501 allow per-window scroll-bar settings.
12502 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
12503 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
12504 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
12505 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
12506 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
12507 FRAME_SCROLL_BAR_WIDTH.
12508 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 12509 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 12510 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 12511 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 12512 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 12513 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 12514 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
12515 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
12516 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
12517 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
12518 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
12519 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 12520 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 12521 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
12522 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
12523 (window_from_coordinates): Update prototype.
12524 (Fset_window_buffer): Update EXFUN.
12525 (set_window_buffer): Update prototype.
9018a88e 12526
0416870b 12527 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 12528 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
12529 changed.
12530 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
12531 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
12532 internal_border_width is now set to 0 for non-window frames.
12533 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
12534 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
12535 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
12536 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
12537 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
12538 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
12539 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
12540 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
12541 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 12542 Move to window.h and renamed [see window.h changes].
0416870b
KS
12543 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
12544 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
12545 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
12546 Use WINDOW_TOTAL_LINES.
0416870b
KS
12547 (frame_update_line_height): Remove prototype.
12548
12549 * buffer.h (struct buffer): Rename members measured in columns:
12550 left_margin_width to left_margin_cols, right_margin_width to
12551 right_margin_cols. All uses changed.
12552 New members left_fringe_width, right_fringe_width,
12553 fringes_outside_margins for per-buffer fringe settings.
12554 New members scroll_bar_width and vertical_scroll_bar_type for
12555 per-buffer scroll bar settings.
12556
12557 * buffer.c (init_buffer_once): Set buffer_defaults and
12558 buffer_local_flags for new buffer-local variables
12559 left_fringe_width, right_fringe_width, fringes_outside_margins,
12560 scroll_bar_width, and vertical_scroll_bar_type.
12561 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
12562 default-* variables for them.
12563
12564 * dispnew.c: Make (many) trivial substitutions for renamed and
12565 new macros in dispextern.h, frame.h and window.h.
12566 (mode_line_string): No need to adjust width for mode lines, as it
12567 is already adjusted by the caller.
12568 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 12569
0416870b
KS
12570 * frame.c: Make (many) trivial substitutions for renamed and
12571 new macros in dispextern.h, frame.h and window.h.
12572 (make_frame): Initialize left_fringe_width, right_fringe_width,
12573 fringe_cols, scroll_bar_actual_width, border_width,
12574 internal_border_width, column_width, line_height, x_pixels_diff,
12575 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
12576 members with values suitable for a non-window frames.
12577
12578 * gtkutil.c: Make (many) trivial substitutions for renamed and
12579 new macros in dispextern.h, frame.h and window.h.
9018a88e 12580
0416870b
KS
12581 * indent.c: Make (few) trivial substitutions for renamed and
12582 new macros in dispextern.h, frame.h and window.h.
12583
12584 * keyboard.c: Make (many) trivial substitutions for renamed and
12585 new macros in dispextern.h, frame.h and window.h.
12586 (make_lispy_event): Use window positions returned from
12587 window_from_coordinates when constructing the lisp event for
12588 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
12589 (incorrect) values locally.
12590 (make_lispy_movement): Use window positions returned from
12591 window_from_coordinates when constructing the lisp event, rather
12592 than calculating (incorrect) values locally.
12593
12594 * scroll.c: Make (some) trivial substitutions for renamed and
12595 new macros in dispextern.h, frame.h and window.h.
12596
12597 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
12598 scroll-bars.
12599
12600 * sysdep.c: Make (few) trivial substitutions for renamed and
12601 new macros in dispextern.h, frame.h and window.h.
12602
12603 * term.c: Make (some) trivial substitutions for renamed and
12604 new macros in dispextern.h, frame.h and window.h.
12605
12606 * widget.c: Make (few) trivial substitutions for renamed and
12607 new macros in dispextern.h, frame.h and window.h.
12608
12609 * window.c: Make (many) trivial substitutions for renamed and
12610 new macros in dispextern.h, frame.h and window.h.
12611 (make_window): Initialize new members
12612 left_margin_cols, right_margin_cols, left_fringe_width,
12613 right_fringe_width, fringes_outside_margins, scroll_bar_width,
12614 and vertical_scroll_bar_type.
cab27d04 12615 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 12616 and per-window fringes and scroll-bars.
0416870b 12617 Fix bug related to incorrectly adjusting coordinates by
9018a88e 12618 frame's internal_border_width (the effect normally negible since
0416870b
KS
12619 the internal_border_width is typically 0 or 1 pixel, but very
12620 noticeable for an internal_border_width of e.g. 25 pixels).
12621 Upon successful return (other than ON_NOTHING), the coordinates
12622 are now always properly converted to window relative for the
12623 given display element.
12624 (window_from_coordinates): Add new parameters wx and wy to
12625 return the window relative x and y position in the returned
12626 window and part. A null arg means, don't return the position.
12627 All callers changed.
12628 (adjust_window_margins): New function which may reduce the width
12629 of the display margins if a window's text area is too small after
12630 resizing or splitting windows.
12631 (size_window): Fix bug that did not account for display margin
12632 widths when checking the minimum width of a window; use
12633 adjust_window_margins.
12634 (set_window_buffer): Call Fset_window_fringes and
12635 Fset_window_scroll_bars to setup per-window elements.
12636 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
12637 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
12638 (e.g. after splitting a window or resizing the frame).
12639 All callers changed.
0416870b
KS
12640 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
12641 (Fsplit_window): Duplicate original window's display margin,
12642 fringe, and scroll-bar settings; then call Fset_window_buffer with
12643 KEEP_MARGINS non-nil. This fixes a bug which caused a split
12644 window to only preserve the display margins in one of the windows.
c4b8aebc 12645 When splitting horizontally, call adjust_window_margins on both
0416870b 12646 windows to ensure that the text area of the new windows is non too
f9711de4 12647 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
12648 width of the split window was less than the width of the display
12649 margins.
cab27d04 12650 (window_box_text_cols): Rename from window_internal_width.
9018a88e 12651 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
12652 Fix bug that caused vertical separator to be subtracted also on
12653 window frames. Fix another bug that did not reduce the returned
12654 value by the columns used for display margins.
12655 (window_scroll_line_based): Fix bug related to scrolling too much
12656 when display margins are present (implicitly fixed by the fix to
12657 window_box_text_cols).
12658 (scroll_left, scroll_right): Fix bug related to scrolling too far
12659 by default when display margins are present (implicitly fixed by
12660 the fix to window_box_text_cols).
12661 (struct saved_window): Rename members left to left_col, top to
12662 top_line, width to total_cols, height to total_lines, orig_top to
12663 orig_top_line, orig_height to orig_total_lines. All uses changed.
12664 New members left_margin_cols, right_margin_cols,
12665 left_fringe_width, right_fringe_width, fringes_outside_margins,
12666 scroll_bar_width, and vertical_scroll_bar_type for saving
12667 per-window display elements.
12668 (Fset_window_configuration): Restore display margins, fringes,
12669 and scroll bar settings. This fixes a bug which caused display
12670 margins to be discarded when saving and restoring a window
12671 configuration.
12672 (save_window_save): Save display margins, fringes, and scroll bar
12673 settings. This fixes a bug which caused display margins to be
12674 discarded when saving and restoring a window configuration.
12675 (Fset_window_margins): Do nothing if display margins are not
12676 really changed. Otherwise, call adjust_window_margins to ensure
12677 the text area doesn't get too narrow. This fixes a bug which
f9711de4 12678 could cause Emacs to trap if setting display margins wider than
0416870b
KS
12679 the width of the window.
12680 (Fset_window_fringes): New defun to allow user to specifically set
12681 this window's fringe widths and position vs. display margins.
cab27d04 12682 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
12683 (Fset_window_scroll_bars): New defun to allow user to specifically
12684 set this window's scroll bar width and position.
12685 (Fwindow_scroll_bars): New defun to return window's actual scroll
12686 bar settings.
12687 (compare_window_configurations): Also compare display margins,
12688 fringes, and scroll bar settings.
12689 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
12690
12691 * xdisp.c: Make (many) trivial substitutions for renamed and
12692 new macros in dispextern.h, frame.h and window.h.
12693 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 12694 and new fringe vs. display margin position. Note that returned
0416870b
KS
12695 value is no longer guaranteed to be a whole multiple of the frame
12696 column width, since per-window fringes may now be any width.
12697 (window_box_left_offset): New function like window_box_left, but
12698 value is relative to left border of window (rather than frame).
12699 (window_box_right_offset): New function like window_box_right,
12700 but value is relative to left border of window.
12701 (window_box_left): Adapt to per-window fringes and scroll bars,
12702 and new fringe vs. display margin position. Simplify by using
12703 WINDOW_LEFT_EDGE_X and window_box_left_offset.
12704 (window_box): Allow null args for unnecessary return values;
12705 change/simplify relevant callers.
12706 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
12707 and new fringe vs. display margin position.
12708 Use window_box_left_offset and window_box_right_offset
0416870b 12709 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
12710 scroll bars, and new fringe vs. display margin position.
12711 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
12712 (draw_fringe_bitmap): Rework to handle per-window fringes and new
12713 fringe vs. display margin position.
12714 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
12715 (redisplay_window): Adapt to per-window scroll bars.
12716 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
12717 bars, and new fringe vs. display margin position.
12718 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 12719 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
12720 bars, and new fringe vs. display margin position. Fix bug which
12721 increased total width of full_width rows by width of scroll bars
12722 although window's total width already includes that.
12723 (x_fix_overlapping_area): Simplify using window_box_left_offset.
12724 (expose_area): Simplify using window_box_left_offset.
12725 (x_draw_vertical_border): Handle per-window scroll bar settings,
12726 mixing windows with left, right and no scroll bars.
12727
12728 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
12729 where it's used in x_list_fonts (for clarity).
12730 (frame_update_line_height): Remove unused function; functionality
12731 is now done directly when setting the default font in x_set_font.
12732
12733 * xfns.c: Make (many) trivial substitutions for renamed and
12734 new macros in dispextern.h, frame.h and window.h.
12735
12736 * xmenu.c: Make (some) trivial substitutions for renamed and
12737 new macros in dispextern.h, frame.h and window.h.
12738
12739 * xterm.h (struct x_output): Move members left_pos, top_pos,
12740 border_width, pixel_height, pixel_width, line_height,
12741 internal_border_width, vertical_scroll_bar_extra,
12742 left_fringe_width, right_fringe_width, fringe_cols,
12743 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12744 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
12745 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12746 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12747 (PIXEL_WIDTH, PIXEL_HEIGHT)
12748 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 12749 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
12750 frame.h and renamed [see frame.h changes].
12751 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12752 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 12753 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 12754 and renamed [see frame.h changes].
9018a88e 12755
0416870b
KS
12756 * xterm.c: Make (several) trivial substitutions for renamed and
12757 new macros in dispextern.h, frame.h and window.h.
cab27d04 12758 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
12759 (scroll_run): Adapt to new fringe position.
12760 (glyph_rect): Use window coordinates returned from
12761 window_from_coordinates rather than frame_to_window_pixel_xy.
12762 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12763 scroll-bars.
12764 (handle_one_xevent): Simplify a USE_GTK conditional.
12765 (x_clip_to_row): Remove superfluous whole_line_p arg and code
12766 (fringes are now inside margins, i.e. always in the clipping area).
12767 All callers changed.
12768 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12769 directly, then call compute_fringe_widths. Don't call
12770 frame_update_line_height.
12771
12772 * w32term.h (struct w32_output): Move members left_pos, top_pos,
12773 border_width, pixel_height, pixel_width, line_height,
12774 internal_border_width, vertical_scroll_bar_extra,
12775 left_fringe_width, right_fringe_width, fringe_cols,
12776 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12777 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
12778 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12779 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12780 (PIXEL_WIDTH, PIXEL_HEIGHT)
12781 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 12782 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
12783 frame.h and renamed [see frame.h changes].
12784 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12785 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 12786 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 12787 and renamed [see frame.h changes].
9018a88e 12788
0416870b
KS
12789 * w32term.c: Make (several) trivial substitutions for renamed and
12790 new macros in dispextern.h, frame.h and window.h.
cab27d04 12791 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
12792 (glyph_rect): Use window coordinates returned from
12793 window_from_coordinates rather than frame_to_window_pixel_xy.
12794 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12795 scroll-bars.
12796 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
12797 (fringes are now inside margins, i.e. always in the clipping area).
12798 All callers changed.
12799 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12800 directly, then call compute_fringe_widths. Don't call
12801 frame_update_line_height.
12802
12803 * w32console.c: Make (few) trivial substitutions for renamed and
12804 new macros in dispextern.h, frame.h and window.h.
12805
12806 * w32fns.c: Make (many) trivial substitutions for renamed and
12807 new macros in dispextern.h, frame.h and window.h.
12808
12809 * w32menu.c: Make (few) trivial substitutions for renamed and
12810 new macros in dispextern.h, frame.h and window.h.
12811
12812 * macterm.h (struct mac_output): Move members left_pos, top_pos,
12813 border_width, pixel_height, pixel_width, line_height,
12814 internal_border_width, vertical_scroll_bar_extra,
12815 left_fringe_width, right_fringe_width, fringe_cols,
12816 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12817 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
12818 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12819 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12820 (PIXEL_WIDTH, PIXEL_HEIGHT)
12821 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 12822 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
12823 frame.h and renamed [see frame.h changes].
12824 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12825 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 12826 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 12827 and renamed [see frame.h changes].
9018a88e 12828
0416870b
KS
12829 * macterm.c: Make (several) trivial substitutions for renamed and
12830 new macros in dispextern.h, frame.h and window.h.
cab27d04 12831 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
12832 (glyph_rect): Use window coordinates returned from
12833 window_from_coordinates rather than frame_to_window_pixel_xy.
12834 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12835 scroll-bars.
12836 (x_clip_to_row): Remove superfluous whole_line_p arg and code
12837 (fringes are now inside margins, i.e. always in the clipping area).
12838 All callers changed.
12839 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12840 directly, then call compute_fringe_widths. Don't call
12841 frame_update_line_height.
12842
12843 * macfns.c: Make (several) trivial substitutions for renamed and
12844 new macros in dispextern.h, frame.h and window.h.
9018a88e 12845 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
12846
12847 * macmenu.c: Make (few) trivial substitutions for renamed and
12848 new macros in dispextern.h, frame.h and window.h.
12849
12850 * msdos.h (struct x_output): Remove members left_pos, top_pos,
12851 and line_height, and use corresponding new members in struct
12852 frame. All uses changed.
12853 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
12854 superseeded by corresponding macros in frame.h.
12855
12856 * msdos.c: Make (several) trivial substitutions for renamed and
12857 new macros in dispextern.h, frame.h and window.h.
12858 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 12859 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
12860 (internal_terminal_init): No need to initialize line_height here;
12861 it now defaults to 1.
12862
9018a88e
SM
128632003-05-24 Stefan Monnier <monnier@cs.yale.edu>
12864
12865 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
12866 dropping `down' events.
12867
016bd3c0
AS
128682003-05-24 Andreas Schwab <schwab@suse.de>
12869
12870 * coding.c (find_safe_codings): Fix last change.
12871
4dacadcc
TTN
128722003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
12873
12874 * xfns.c (x_window): Fix typo from 2003-05-21 change.
12875
319830ce
SM
128762003-05-23 Stefan Monnier <monnier@cs.yale.edu>
12877
9018a88e
SM
12878 * xdisp.c (display_mode_element): Increase max depth.
12879 Simplify the error handling code. Use a different error string
12880 for the case where we hit the depth limit.
12881
319830ce
SM
12882 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
12883
12884 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
12885
128862003-05-21 Stefan Monnier <monnier@cs.yale.edu>
12887
12888 * intervals.c (get_local_map): Don't get char-property of previous
12889 point any more: get_pos_property already does it and better.
12890
c67de8ba
DL
128912003-05-21 Dave Love <fx@gnu.org>
12892
12893 [Merged from unicode branch.]
12894
12895 * xfns.c (x_window, x_window): Use use_xim.
12896
12897 * xterm.c (use_xim): Initialize.
12898 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12899 (x_term_init): Maybe set use_xim.
12900
12901 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12902
edd3ff1d
JR
129032003-05-21 Jason Rumney <jasonr@gnu.org>
12904
12905 * unexw32.c (_start): Remove _fmode initialization.
12906
12907 * emacs.c (main) [WINDOWSNT]: Move it here.
12908
463f55ee
DL
129092003-05-20 Dave Love <fx@gnu.org>
12910
12911 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
12912
af253914
RS
129132003-05-19 Richard M. Stallman <rms@gnu.org>
12914
12915 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
12916 as value for QCfont attribute.
12917 (realize_default_face): lface should already exist; crash if not.
12918 Specify 0 for FORCE_P when calling set_lface_from_font_name.
12919
12920 * frame.c (Fignore_event): Doc fix.
12921
1d211019
KH
129222003-05-19 Kenichi Handa <handa@m17n.org>
12923
12924 * coding.c (decode_coding_string): Handle post-read-conversion
12925 even if the coding doesn't require decoding.
12926
4dd68254
RS
129272003-05-18 Richard M. Stallman <rms@gnu.org>
12928
12929 * callproc.c (Fcall_process_region): Doc fix.
12930
14d87dc9
SM
129312003-05-17 Stefan Monnier <monnier@cs.yale.edu>
12932
deca5d96
SM
12933 * lread.c (Fload): Print a message if package is obsolete.
12934
14d87dc9
SM
12935 * window.c (Fselect_window): Add optional `norecord' arg.
12936 (select_window_1): Fold into Fselect_window.
12937 (select_window_norecord): New function.
12938 (temp_output_buffer_show): Use it. Preserve current buffer.
12939
12940 * window.h (Fselect_window): Update declaration.
12941
12942 * window.c (delete_window, Fother_window, Fset_window_configuration):
12943 * minibuf.c (read_minibuf):
12944 * macterm.c (x_new_focus_frame):
12945 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
12946 * callint.c (Fcall_interactively):
12947 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
12948
12949 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
12950
78f52183
DK
129512003-05-17 David Kastrup <dak@gnu.org>
12952
12953 * process.c (read_process_output): Back out change from 2003-03-09.
12954
14d87dc9
SM
129552003-05-17 Stefan Monnier <monnier@cs.yale.edu>
12956
12957 * editfns.c (get_pos_property): Don't assume that `object' = nil.
12958
12959 * textprop.c (text_property_stickiness): New arg `buffer'.
12960
12961 * intervals.h (text_property_stickiness): New arg `buffer'.
12962 (get_pos_property): Declare.
12963
12964 * intervals.c (get_local_map): Use get_pos_property, to obey
12965 stickiness and empty overlays.
12966 (create_root_interval, graft_intervals_into_buffer): Use BEG.
12967 (merge_properties, intervals_equal, merge_properties_sticky):
12968 Use XCAR, XCDR.
12969 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
12970
1fd1cc2f
RS
129712003-05-17 Richard M. Stallman <rms@gnu.org>
12972
4f9f637a
RS
12973 * minibuf.c (read_minibuf): If buffer is empty, record the default
12974 in the history.
12975 (Fminibuffer_complete_word): When deleting the overlap, take account
12976 of its real position.
12977
12978 * fns.c (map_char_table): Fix previous change.
12979
1fd1cc2f
RS
12980 * syntax.c (find_defun_start):
12981 When open_paren_in_column_0_is_defun_start,
12982 return beginning of buffer.
12983
12984 * lisp.h (map_char_table): Declare added arg.
12985
12986 * fns.c (map_char_table): New arg TABLE gets the master table.
12987 All calls changed.
12988 Process default and inheritance, resorting to Faref if necessary.
12989
12990 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12991 (Faccessible_keymaps): Pass new arg to map_char_table.
12992
12993 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
12994
12995 * casetab.c (set_case_table): Pass new arg to map_char_table.
12996
12997 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
12998
12999 * lisp.h (specbinding_func): New typedef.
13000 (struct specbinding): Use specbinding_func, to put the `volatile'
13001 in the right place.
13002
13003 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
13004 to avoid GCC warning.
14d87dc9 13005
b6189c3b 130062003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 13007
14d87dc9 13008 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 13009
35fb885d
SM
130102003-05-15 Stefan Monnier <monnier@cs.yale.edu>
13011
13012 * keyboard.c (apply_modifiers): Don't fill the other cache.
13013
9a274fbd
SM
130142003-05-14 Stefan Monnier <monnier@cs.yale.edu>
13015
c55b5fad
SM
13016 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
13017
9a274fbd
SM
13018 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
13019 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
13020 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
13021 (Fset_window_configuration, Fcurrent_window_configuration)
13022 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
13023 (Fpos_visible_in_window_p, mark_window_cursors_off)
13024 (window_internal_height, window_internal_width, Frecenter)
13025 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
13026 (replace_buffer_in_all_windows, init_window_once, init_window)
13027 (syms_of_window, keys_of_window): Move from lisp.h.
13028 * lisp.h: Move window.c declarations to window.h.
13029
13030 * bytecode.c: Include window.h.
13031 * emacs.c: Include window.h.
13032
14d87dc9 13033 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
13034 (keyremap): Add `parent' field.
13035 (keyremap_step): Use it. Remove `parent' argument.
13036 (read_key_sequence): Setup and use the new `parent' field.
13037
fd93e331
SM
130382003-05-11 Stefan Monnier <monnier@cs.yale.edu>
13039
13040 * keyboard.c (adjust_point_for_property): Ensure termination.
13041
1c4001a1
SM
130422003-05-10 Stefan Monnier <monnier@cs.yale.edu>
13043
13044 * keyboard.c (follow_key): Remove dead variable `did_meta'.
13045 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
13046 duplicated handling of function-key-map and key-translation-map
13047 in read_key_sequence.
13048 (read_key_sequence): Use them.
13049
13050 * keyboard.c (adjust_point_for_property): Try harder to move point
13051 to the non-sticky end of an invisible property.
13052
13053 * xdisp.c (single_display_prop_intangible_p): Make `space' display
13054 property intangible as well.
13055
780379b1
AS
130562003-05-10 Andreas Schwab <schwab@suse.de>
13057
13058 * xmenu.c (single_menu_item): Change last parameter to void* to
13059 avoid warning.
13060
ca2de342
RS
130612003-05-09 Richard M. Stallman <rms@gnu.org>
13062
13063 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
13064 Bind Qinhibit_modification_hooks to t so there will be no GC.
13065 Rename local `tem' to `save_deactivate_mark'.
13066
13067 * eval.c (specpdl_ptr): Declare volatile.
13068 (unbind_to): Copy the whole binding and decrement specpdl_ptr
13069 before doing the work of unbinding it.
13070
13071 * lisp.h (struct specbinding): Declare elements volatile.
13072 (specpdl_ptr): Declare volatile.
13073
13074 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
13075
13076 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
13077 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
13078
347003be
DL
130792003-05-08 Dave Love <fx@gnu.org>
13080
13081 * coding.c (Vlast_coding_system_used): Doc fix.
13082
5adcec23
JR
130832003-05-07 Jason Rumney <jasonr@gnu.org>
13084
13085 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
13086 when system does not support them.
13087
5fe3b8a4
SM
130882003-05-05 Stefan Monnier <monnier@cs.yale.edu>
13089
13090 * fileio.c (Qwrite_region_annotate_functions): New var.
13091 (build_annotations): Use it to process the global part of the hook.
13092 (syms_of_fileio): Init and staticpro it.
13093
13094 * keyboard.c (safe_run_hooks_error): Display a message instead of
13095 silently ignoring the error.
13096
130972003-05-03 Stefan Monnier <monnier@cs.yale.edu>
13098
13099 * keyboard.c (input_available_signal): Mark static.
13100 (menu_bar_items): Use map_keymap.
13101 (menu_bar_one_keymap): Remove.
13102 (menu_bar_item): Adjust arglist (for use in map_keymap).
13103 Properly hide a second binding when not both are keymaps.
13104
13105 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
13106 (single_keymap_panes): Use it and map_keymap.
13107 (single_menu_item): Use skp as well.
13108
13109 * keymap.h (map_keymap_function_t): New type.
13110 (map_keymap): Declare.
13111
13112 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
13113 (map_keymap_call, Fmap_keymap): New functions.
13114 (syms_of_keymap): Defsubr map-keymap.
13115
4b1b4443
JD
131162003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13117
13118 * gtkutil.c (create_dialog, make_widget_for_menu_item)
13119 (make_menu_item, create_menus, xg_update_menu_item): Don't call
13120 ..._with_mnemonic functions for menu items.
13121
1f816871
KH
131222003-05-01 Kenichi Handa <handa@m17n.org>
13123
13124 * coding.c (coding_system_accept_latin_extra_p): Delete this
13125 function.
13126 (find_safe_codings): Pay attention to
13127 the property tranlsation-table-for-encode of each codings.
13128 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
13129
5ed6ba5b
SM
131302003-05-01 Stefan Monnier <monnier@cs.yale.edu>
13131
13132 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
13133
32c06229
SM
131342003-04-30 Stefan Monnier <monnier@cs.yale.edu>
13135
13136 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
13137
13138 * lisp.h (CHECK): Wrap args in parenthesis.
13139 (specbind): Fix doc: symbol = Qnil is not supported any more.
13140
13141 * bytecode.c (Fbyte_code) <unwind-protect>:
13142 Use Fprogn rather than 0 and Qnil.
13143
13144 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
13145 `double', and `triple' modifiers as well.
13146
ed3c3314
RS
131472003-04-30 Richard M. Stallman <rms@gnu.org>
13148
13149 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
13150
13151 * alloc.c (abort_on_gc): New variable.
13152 (Fgarbage_collect): Abort if abort_on_gc is set.
13153
13154 * lisp.h (abort_on_gc): Add decl.
13155
13156 * eval.c (Fsignal): Clear abort_on_gc.
13157
13158 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 13159 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
13160
13161 * xdisp.c (move_it_vertically_backward): Do the final big else
13162 even if nlines is 0.
13163
13164 * xdisp.c (redisplay_internal): Finish the per-frame loop
13165 even if redisplay is suspended by input.
13166
0b325c12
AC
131672003-04-24 Andrew Choi <akochoi@shaw.ca>
13168
13169 * macterm.c (x_list_fonts): Return all fonts that match if
13170 maxnames = -1.
13171
4e837cd0
KH
131722003-04-25 Kenichi Handa <handa@m17n.org>
13173
13174 * syntax.c (skip_chars): Fix previous change.
13175
9af7511a
KH
131762003-04-24 Kenichi Handa <handa@m17n.org>
13177
13178 * syntax.c (skip_chars): Make the code faster by using the common
13179 technique of *p, *stop, and *endp.
13180
e3b2c21f
JD
131812003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13182
13183 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 13184 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
13185 being updated.
13186
32c06229
SM
131872003-04-19 Stefan Monnier <monnier@cs.yale.edu>
13188
13189 * eval.c (Fapply): Undo last change and add a comment about why.
13190
c6464167
MB
131912003-04-18 Miles Bader <miles@gnu.org>
13192
13193 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
13194 pickier PARSE_MULTIBYTE_SEQ.
13195
e509f168
SM
131962003-04-17 Stefan Monnier <monnier@cs.yale.edu>
13197
13198 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
13199 Use XCDR, XCAR, CONSP.
13200 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
13201 (Fapply): Remove unnecessary GCPRO.
13202
13203 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
13204
13205 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
13206
13207 * buffer.h: Don't hardcode BEG==1.
13208
13209 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
13210
5ceea398
RS
132112003-04-16 Richard M. Stallman <rms@gnu.org>
13212
13213 * xdisp.c (try_window, try_window_reusing_current_matrix):
13214 When at end of window, set window_end_pos to Z-ZV.
13215
13216 * buffer.c (Foverlay_recenter): Doc fix.
13217
e509f168
SM
132182003-04-14 Stefan Monnier <monnier@cs.yale.edu>
13219
13220 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
13221
d243e605
AC
132222003-04-14 Andrew Choi <akochoi@shaw.ca>
13223
13224 * macterm.c (mac_check_for_quit_char): Don't check more often than
13225 once a second.
13226
6901b111
SM
132272003-04-11 Stefan Monnier <monnier@cs.yale.edu>
13228
13229 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
13230 specially, so that they can't hide an implicit switch-frame event.
13231 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
13232 (head_table): Use switch-frame as event_kind for select-window.
13233 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
13234
13235 * editfns.c (Fformat): Lisp_Object/int mixup.
13236 (format2): Remove unused var numargs.
13237
e301806f 132382003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 13239
6901b111 13240 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
13241 (Qafter_insert_file_set_coding): New variable.
13242 (syms_of_fileio): Initialize and staticpro it. Delete declaration
13243 for after-insert-file-adjust-coding-function.
13244 (Finsert_file_contents): Call Qafter_insert_file_set_coding
13245 instead of Vafter_insert_file_adjust_coding_function.
13246
38914424
KH
132472003-04-11 Kenichi Handa <handa@m17n.org>
13248
13249 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
13250
13251 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
13252 string. Callers changed.
13253
132542003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 13255
6901b111 13256 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 13257 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
13258 (Finsert_file_contents):
13259 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
13260 decode-format.
13261
f979dc05
JD
132622003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13263
13264 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
13265 get GtkAdjustment as widget now is a GtkRange.
13266
13267 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
13268 GtkRange to avoid memory leak.
13269
f8c6b4c2 132702003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 13271
50ebc53d
KH
13272 * xfaces.c (Vface_font_rescale_alist): New variable.
13273 (struct font_name): New member rescale_ratio.
13274 (font_rescale_ratio): New function.
6901b111 13275 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
13276 (better_font_p): On comparing point sized, pay attention to
13277 recale_ratio member of fonts.
13278 (build_scalable_font_name): Reflect font->rescale_ratio in the
13279 font name.
6901b111 13280 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 13281
cb98871c
KH
13282 * lread.c (read1): Before calling index, check if the 2nd
13283 arguemnt is in ASCII range.
13284
4773b8ca
RS
132852003-04-08 Richard M. Stallman <rms@gnu.org>
13286
b0ada147
RS
13287 * fileio.c (Ffile_symlink_p): Doc fix.
13288
13289 * editfns.c (Fformat): Translate positions of text properties
13290 in the format string to apply them to the result.
13291
4773b8ca
RS
13292 * fileio.c (Finsert_file_contents): Doc fix.
13293 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13294
132952003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 13296
4773b8ca
RS
13297 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
13298
e8f25745 132992003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 13300
e8f25745
ST
13301 * mac.c (init_mac_osx_environment): Switch libexec and bin so
13302 that self-contained application finds libexec files.
13303
f8c6b4c2 133042003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 13305
6901b111
SM
13306 * coding.c (code_convert_region_unwind):
13307 Set Vlast_coding_system_used to the argument.
2310d84c
KH
13308 (code_convert_region): If post-read-conversion function changed
13309 the value of last-coding-sytem, keep the new value in
13310 coding->symbol so that it won't be overridden.
13311 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
13312 (coding_system_accept_latin_extra_p): New function.
13313 (find_safe_codings): Pay attention to characters registered in
13314 latin-extra-code-table.
2310d84c 13315
39c9a034
TTN
133162003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
13317
13318 * Makefile.in (md5.o): Add missing dependency info.
13319
eb67c5d6
RS
133202003-04-06 Richard M. Stallman <rms@gnu.org>
13321
13322 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
13323
13324 * marker.c (verify_bytepos): New function.
13325
13326 * intervals.c (set_intervals_multibyte_1): When becoming
13327 multibyte, adjust right and left child sizes to a whole set of
13328 characters. If an interval gets zero total-length, delete it.
13329 If an interval consists of just its children, delete one of them.
13330
13331 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
13332 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 13333
52eb0373 13334 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
13335 All calls deleted.
13336 (lisp_malloc): Do the work here directly.
13337
b1f81fc5
JB
133382003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
13339
13340 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
13341 char tables.
13342
133432003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
13344
13345 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
13346 destructively change "%S" to "%s".
13347
774666fb
MB
133482003-04-03 Miles Bader <miles@gnu.org>
13349
13350 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
13351 always set.
13352
19c37f01
DL
133532003-04-01 Dave Love <fx@gnu.org>
13354
13355 * xfns.c (xpm_lookup_color): Grok "opaque".
13356
2f4b24c3
AC
133572003-03-31 Andrew Choi <akochoi@shaw.ca>
13358
13359 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
13360 parent window ID.
13361
13362 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
13363
13364 * macterm.h (struct mac_output): Define x_pixels_diff and
13365 y_pixels_diff.
b1f81fc5 13366
9443fcf6
JB
133672003-03-31 Juanma Barranquero <lektu@terra.es>
13368
13369 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
13370 blockinput.h and files included from it.
13371
e072891b
KS
133722003-03-31 Kim F. Storm <storm@cua.dk>
13373
13374 The following changes consolidates the common code related to
13375 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
13376 files into frame.c.
9443fcf6 13377
e072891b
KS
13378 * frame.c: Include blockinput.h.
13379 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
13380 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
13381 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
13382 related vars here.
13383 (struct frame_parm_table, frame_parms): New table for describing
13384 frame parameters and their associated Q-variable.
13385 The order of the parameters corresponds to the sequence of the
13386 frame_parm_handlers table in redisplay_interface.
13387 (x_fullscreen_move, x_set_frame_parameters)
13388 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
13389 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
13390 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13391 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
13392 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
13393 Generic functions for processing of frame parameters.
13394 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
13395 (display_x_get_resource, x_get_resource_string): Functions for
13396 generic access to X resources.
13397 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
13398 (x_default_parameter, Fx_parse_geometry): Functions for generic
13399 access to frame parameters.
6901b111
SM
13400 (x_figure_window_size): Generic calculation of frame size.
13401 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
13402 (syms_of_frame): Intern and staticpro frame parameter variables.
13403 Defvar_lisp Vx_resource_class and Vx_resource_name here.
13404 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 13405
e072891b
KS
13406 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
13407 parameter related vars defined in frame.c.
13408 (EMACS_CLASS): Define here.
13409 (enum FULLSCREEN_*): Define here.
13410 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
13411 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
13412 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
13413 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
13414 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
13415 (x_set_visibility, x_set_autoraise, x_set_autolower)
13416 (x_set_unsplittable, x_set_vertical_scroll_bars)
13417 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
13418 (x_figure_window_size): Add prototypes.
13419
13420 * dispextern.h (frame_parm_handler): New typedef.
13421 (struct redisplay_interface): New member frame_parm_handlers.
13422 (enum resource_types): Move declaration here.
13423 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
13424 (x_default_parameter): Add prototypes.
13425
13426 * window.c: Remove extern decl for frame parameter vars.
13427 (change_window_heights): New generic function;
13428 replaces x_change_window_heights. All users changed.
13429
13430 * window.h (change_window_heights): Add prototype.
13431
13432 * xfaces.c: Remove extern decl for frame parameter vars.
13433
13434 * xterm.h (EMACS_CLASS): Remove. Use generic define.
13435 (struct w32_display_info): Fix type of xrdb member.
13436 (enum FULLSCREEN_*): Remove.
13437 Remove prototypes for generic functions (in frame.h).
13438
13439 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13440 parameters now defined in frame.h and frame.c.
f63fd14e 13441 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
13442 (enum x_frame_parms): Remove (bogus, unused enum).
13443 (check_x_display_info): Make non-static (for frame.c).
13444 (struct x_frame_parm_table, x_frame_parms): Remove.
13445 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13446 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13447 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13448 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13449 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13450 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13451 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13452 Remove. Use generic functions instead.
13453 (enum resource_types): Remove.
13454 (x_set_scroll_bar_default_width): New global function (for frame.c).
13455 (Fx_create_frame): Depend on x_figure_window_size to add space for
13456 toolbar and setup size_hint_flags.
13457 (x_frame_parm_handlers): New table for redisplay_interface.
13458 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 13459
e072891b 13460 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 13461 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
13462 (x_redisplay_interface): Add x_frame_parm_handlers member.
13463
13464 * w32gui.h (XrmDatabase): New (dummy) typedef.
13465
13466 * w32term.h (EMACS_CLASS): Remove. Use generic define.
13467 (struct w32_display_info): Fix type of xrdb member.
13468 (enum FULLSCREEN_*): Remove.
13469 (x_fullscreen_adjust): Remove prototype.
13470
13471 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13472 parameters now defined in frame.h and frame.c.
f63fd14e 13473 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
13474 (enum x_frame_parms): Remove (bogus, unused enum).
13475 (check_x_display_info): Make non-static (for frame.c).
13476 (struct x_frame_parm_table, x_frame_parms): Remove.
13477 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13478 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13479 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13480 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13481 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13482 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13483 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13484 Remove. Use generic functions instead.
13485 (enum resource_types): Remove.
13486 (x_set_scroll_bar_default_width): New global function (for frame.c).
13487 (Fx_create_frame): Depend on x_figure_window_size to add space for
13488 toolbar and setup size_hint_flags.
13489 (w32_frame_parm_handlers): New table for redisplay_interface.
13490 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 13491
e072891b 13492 * w32term.c: Remove unnecessary extern declarations.
52eb0373 13493 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
13494 (x_redisplay_interface): Add w32_frame_parm_handlers member.
13495
13496 * w32reg.c (x_get_string_resource): Use XrmDatabase.
13497
13498 * macgui.h (XrmDatabase): New (dummy) typedef.
13499
13500 * macterm.h (EMACS_CLASS): Remove.
13501 (struct mac_display_info): Add xrdb member.
13502 (struct mac_output): Add want_fullscreen member.
13503
13504 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13505 parameters now defined in frame.h and frame.c.
f63fd14e 13506 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
13507 (check_x_display_info): Make non-static (for frame.c).
13508 (struct x_frame_parm_table, x_frame_parms): Remove.
13509 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13510 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13511 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13512 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13513 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13514 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13515 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13516 Remove. Use generic functions instead.
13517 (enum resource_types): Remove.
13518 (x_set_scroll_bar_default_width): New global function (for frame.c).
13519 (mac_frame_parm_handlers): New table for redisplay_interface.
13520 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 13521
e072891b
KS
13522 * macterm.c: Remove unnecessary extern declarations.
13523 (x_redisplay_interface): Add mac_frame_parm_handlers member.
13524
3e6a560b
KS
13525 * Makefile.in (frame.o): Add dependency on blockinput.h and files
13526 included from it (atimer.h and systime.h).
13527
7b7b454e
AS
135282003-03-30 Andreas Schwab <schwab@suse.de>
13529
13530 * xdisp.c (x_insert_glyphs): Fix swapped width and height
13531 parameters for shift_glyphs_for_insert.
13532
13533 * macterm.c (x_redisplay_interface): Add missing entry for
13534 draw_vertical_window_border.
13535
beb402de
KG
135362003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
13537
13538 * fileio.c (Fexpand_file_name): In the no-handler case, after
13539 expanding, look again for a handler and invoke it. This is needed
13540 for filenames like "/foo/../user@host:/bar/../baz" -- the first
13541 expansion produces "/user@host:/bar/../baz" which needs to be
13542 expanded again for the finame result "/user@host:/baz".
13543
b676f356
JD
135442003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13545
13546 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
13547 of area to be redrawn for better performance.
13548
3c671a56
SM
135492003-03-28 Stefan Monnier <monnier@cs.yale.edu>
13550
13551 * xterm.c (take_vertical_position_into_account): Remove.
13552 (xt_action_hook): Call set_vertical_scroll_bar if needed.
13553 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
13554 (xm_scroll_callback, x_create_toolkit_scroll_bar)
13555 (x_set_toolkit_scroll_bar_thumb): Simplify.
13556 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
13557 (XTread_socket): Remove unused var.
13558 (x_make_frame_invisible): Replace goto with else.
13559
13560 * xdisp.c (set_vertical_scroll_bar): New fun.
13561 (redisplay_window): Use it.
13562
84f2e615
RS
135632003-03-26 Richard M. Stallman <rms@gnu.org>
13564
13565 * xdisp.c (update_tool_bar): Recompute tool bar if
13566 update_mode_lines is set. Set w->update_mode_line
13567 only if the tool bar contents actually change.
13568 (update_menu_bar): Undo previous change.
13569
70b6104c
JD
135702003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13571
5fd6f727
JD
13572 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
13573 (xg_frame_set_char_size): Calculate scroll bar width before frame
13574 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
13575 (xg_separator_p): Check for all documented separator types.
13576 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
13577 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
13578
70b6104c
JD
13579 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
13580 so tool bar gets updated.
13581
d9b36d19
SM
135822003-03-26 Stefan Monnier <monnier@cs.yale.edu>
13583
13584 * data.c (store_symval_forwarding): Re-instate part of the code
13585 that was deleted with too much enthusiasm.
13586
135872003-03-25 Stefan Monnier <monnier@cs.yale.edu>
13588
13589 * data.c (store_symval_forwarding): Delete special read-only
13590 hack for type == -1, since we now use ->constant instead.
13591 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
13592
13593 * buffer.c (overlays_in): Declare static.
13594 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
13595 `constant' field rather than the variable's `type' field.
13596
365fa1b3
AC
135972003-03-24 Andrew Choi <akochoi@shaw.ca>
13598
13599 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
13600
13601 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
13602
13603 * fns.c [MAC_OSX]: Do not redefine vector.
13604
13605 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
13606
13607 * macgui.h: Remove definition of No_Cursor.
13608
d9b36d19 13609 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
13610
13611 * xdisp.c: Define No_Cursor.
13612 (x_write_glyphs, notice_overwritten_cursor)
13613 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
13614 (note_mouse_highlight): Remove Mac-specific code.
13615 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 13616
c0bcce6f
JPW
136172003-03-24 John Paul Wallington <jpw@gnu.org>
13618
13619 * xdisp.c (redisplay_window): If mini window's buffer is not
13620 empty, then redisplay it like other windows.
13621
a526b96c
KS
136222003-03-23 Kim F. Storm <storm@cua.dk>
13623
13624 * w32term.c (w32_draw_window_cursor): Fix last change.
13625
37ab321e
KH
136262003-03-23 Kenichi Handa <handa@m17n.org>
13627
a526b96c
KS
13628 * alloc.c (make_string_from_bytes, make_specified_string):
13629 Add `const' for the arg CONTENTS.
37ab321e
KH
13630
13631 * lisp.h (make_string_from_bytes, make_specified_string):
13632 Prototypes adjusted.
13633
7863d625
JD
136342003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13635
a526b96c 13636 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 13637
7863d625
JD
13638 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
13639 (XG_SB_RANGE): New define.
13640
13641 * gtkutil.c (xg_fixed_handle_expose): New function.
13642 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
13643 expose events.
13644 (xg_update_scrollbar_pos): Take two more arguments, left and width
13645 of scroll bar including borders.
13646 Clear left and right part outside scroll bar separately as some
13647 themes have bars that are not an even number of pixels.
d9b36d19 13648 Don't set reallocate_redraws, don't call
7863d625
JD
13649 gdk_window_process_all_updates.
13650 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
13651 so no need to change it. Calculate size and value with XG_SB_RANGE.
13652
d9b36d19
SM
13653 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
13654 Pass left and width of scroll bar including borders to
7863d625
JD
13655 xg_update_scrollbar_pos.
13656
af0ad939
TTN
136572003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
13658
13659 * Makefile.in: Make sure space precedes end-of-line backslashes.
13660
b22139fd
KS
136612003-03-22 Kim F. Storm <storm@cua.dk>
13662
13663 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
13664 Add generic versions here. Remove system specific versions
13665 defined elsewhere.
13666
13667 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
13668 Add prototypes.
13669
6e6410cf
KS
13670 * xterm.h (STORE_NATIVE_RECT): New macro.
13671
5c9cc435
KS
136722003-03-21 Kim F. Storm <storm@cua.dk>
13673
00c64fab
SM
13674 * xdisp.c (get_glyph_string_clip_rect):
13675 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
13676
13677 * dispextern.h (struct redisplay_interface): Add active_p
13678 argument to draw_window_cursor member. All uses changed.
13679
acd37560
KS
136802003-03-21 Kim F. Storm <storm@cua.dk>
13681
13682 The following changes consolidate code related to writing and
13683 inserting glyphs, exposing frame, the tool bar, the mouse face,
13684 the output cursor, and help echo from xterm.c, w32term.c and
13685 macterm.c into xdisp.c. It also generalizes the use of the
13686 window_part enum instead of using numeric values throughout.
af0ad939 13687
acd37560
KS
13688 * xdisp.c: Consolidate gui-independent code here.
13689 Include keymap.h.
13690 (Qhelp_echo): Import.
13691 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
13692 (help_echo_string, help_echo_window, help_echo_object)
13693 (previous_help_echo_string, help_echo_pos): Declare here.
13694 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
13695 (estimate_mode_line_height): Define here. Handle windowing
13696 systems directly (without using estimate_mode_line_height_hook).
13697 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
13698 (update_window_cursor, update_cursor_in_window_tree)
13699 (fast_find_position, fast_find_string_pos)
13700 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
13701 (expose_area, expose_line, expose_overlaps, expose_window)
13702 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
13703 declared static as they are only used locally in xdisp.c.
13704 (draw_glyphs): Rename from x_draw_glyphs and make static.
13705 (tool_bar_item_info, notice_overwritten_cursor): Make static.
13706 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13707 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 13708 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
13709 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
13710 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
13711 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
13712 (note_mouse_highlight, x_clear_window_mouse_face)
13713 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
13714 (x_intersect_rectangles): New generic functions for use by xdisp.c
13715 and GUI front-ends.
13716 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
13717 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
13718
13719 * dispextern.h (Display_Info): Generic typedef for *_display_info.
13720 (NativeRectangle): Generic typedef for rectangle type.
13721 (enum window_part): Move here from window.c.
13722 (struct redisplay_interface): New members flush_display_optional,
13723 define_frame_cursor, clear_frame_area, draw_window_cursor,
13724 draw_vertical_window_border, shift_glyphs_for_insert.
13725 Rename member clear_mouse_face to clear_window_mouse_face.
13726 (estimate_mode_line_height_hook): Remove hook.
13727 (auto_raise_tool_bar_buttons_p): Don't declare extern.
13728 (tool_bar_item_info): Remove prototype.
13729 (help_echo_string, help_echo_window, help_echo_object)
13730 (previous_help_echo_string, help_echo_pos)
13731 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
13732 (x_stretch_cursor_p, output_cursor): Declare extern.
13733 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
13734 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
13735 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
13736 (display_and_set_cursor, set_output_cursor, x_cursor_to)
13737 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
13738 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13739 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
13740 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
13741 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
13742 Add prototypes.
13743 (mode_line_string, marginal_area_string): Fix prototypes.
13744
13745 * window.c (enum window_part): Move to dispextern.h.
13746 (coordinates_in_window): Use enum window_part member names
13747 instead of numbers to describe return value.
13748 (struct check_window_data): Change part member to window_part.
13749 (check_window_containing): Return window_part unaltered.
13750 (window_from_coordinates): Change part arg from int to enum
13751 window_part. Allow part arg to be null. All users changed.
13752
13753 * window.h (window_from_coordinates): Fix prototype.
13754
13755 * term.c (estimate_mode_line_height): Move to xdisp.c.
13756
13757 * keyboard.c (make_lispy_event): Use enum window_part.
13758
13759 * dispnew.c (mode_line_string, marginal_area_string): Use enum
13760 window_part instead of int in arg list. Users changed.
13761
13762 * xterm.h (No_Cursor): Declare as None for X.
13763 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 13764
acd37560
KS
13765 * xterm.c: Remove consolidated defines and code.
13766 (BETWEEN): Remove unused macro.
13767 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
13768 (x_define_frame_cursor, x_clear_frame_area)
13769 (x_draw_window_cursor): New X-specific functions for RIF.
13770 (x_redisplay_interface): Add new members.
13771
13772 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
13773
13774 * w32term.h (struct w32_output): Remove cross_cursor member.
13775
13776 * w32term.c: Remove consolidated defines and code.
13777 (BETWEEN): Remove unused macro.
13778 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
13779 (w32_define_frame_cursor, w32_clear_frame_area)
13780 (w32_draw_window_cursor): New W32-specific functions for RIF.
13781 (w32_redisplay_interface): Add new members.
13782
a64387ee 13783 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
13784 (XRectangle): Add X compatible rectangle type.
13785 (NativeRectangle): Declare as RECT for W32.
13786 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
13787
13788 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
13789
13790 * w32console.c: Remove consolidated defines and code.
af0ad939 13791
acd37560
KS
13792 * msdos.h (Display_Info): Add generic typedef.
13793
13794 * msdos.c: Remove consolidated defines and code.
13795 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
13796
13797 * macterm.h (struct mac_output): Replace member cross_cursor by
13798 hand_cursor.
13799 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
13800
13801 * macterm.c: Remove consolidated defines and code.
13802 (BETWEEN): Remove unused macro.
13803 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
13804 (mac_define_frame_cursor, mac_clear_frame_area)
13805 (mac_draw_window_cursor): New Mac-specific functions for RIF.
13806 (x_redisplay_interface): Add new members.
13807
13808 * macgui.h (No_Cursor): Define as 0 for Mac.
13809 (XRectangle): Add X compatible rectangle type.
13810 (NativeRectangle): Declare as Rect for Mac.
13811 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
13812
204ccab1
KS
13813 * macfns.c (x_set_mouse_color): Setup hand_cursor.
13814 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 13815
9443fcf6 13816 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
13817 included from it. Add dependency on keymap.h.
13818
13819 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
13820
8ba01a70 138212003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
13822
13823 * fileio.c (Fexpand_file_name): Fix previous change.
13824
8ba01a70 138252003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
13826
13827 * fileio.c (Ffile_name_directory): Reconstruct file name by
13828 make_specified_string.
13829 (Ffile_name_nondirectory, Ffile_name_as_directory)
13830 (Fdirectory_file_name, Fexpand_file_name)
13831 (Fsubstitute_in_file_name): Likewise.
13832 (Fread_file_name): Compare decoded homedir with DIR and
13833 DEFAULT_FILENAME.
13834
13835 * alloc.c (make_specified_string): If NCHARS is negative, count
13836 the number of characters.
13837
19536747
JD
138382003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13839
de38ae5a
JD
13840 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
13841 all widgets.
13842
19536747
JD
13843 * gtkutil.h: Removed xg_ignore_next_thumb.
13844
37ab321e 138452003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
13846
13847 * coding.c (Vchar_coding_system_table): Remove this variable.
13848 (Vcoding_system_safe_chars): New variable.
13849 (intersection): Remove this function.
13850 (find_safe_codings): Don't use Vchar_coding_system_table, but try
13851 all codings in SAFE_CODINGS.
00c64fab 13852 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
13853 find_safe_codings. Get generic coding systems from
13854 Vcoding_system_safe_chars.
13855 (Fdefine_coding_system_internal): New function.
13856 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
13857 Initialize and staticpro Vcoding_system_safe_chars.
13858
17097258
JD
138592003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13860
2a2071c3
JD
13861 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
13862 equal old values before updating.
13863
17097258
JD
13864 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
13865
13866 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
13867
138682003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13869
13870 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
13871 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
13872 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
13873 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
13874 (xg_create_scroll_bar): Pass bar to button event callback.
13875 (xg_find_top_left_in_fixed): New function.
13876 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
13877 whole scroll bar area. Get old position with
13878 xg_find_top_left_in_fixed, calculate and only clear needed areas.
13879 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
13880 dragging is in progress. Calculate whole as for Motif.
13881 Remove code that saved last values. Call gtk_range functions to
13882 set scroll bar sizes.
13883
13884 * gtkutil.h: Removed xg_ignore_next_thumb.
13885
8cb9dfbf
JB
138862003-03-17 Juanma Barranquero <lektu@terra.es>
13887
13888 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
13889 and files included from it.
13890
00c64fab
SM
138912003-03-18 Stefan Monnier <monnier@cs.yale.edu>
13892
13893 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
13894 multiple occurrences of the same keymap under different prefixes.
13895 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
13896
c45bb3b2
JR
138972003-03-16 Jason Rumney <jasonr@gnu.org>
13898
13899 * w32gui.h: Use HDC for Display.
13900
13901 * w32term.c (w32_encode_char): Prevent double-byte chars from
13902 crashing Emacs.
13903
13904 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
13905 as binary.
13906
2a6d0874
JB
139072003-03-16 Juanma Barranquero <lektu@terra.es>
13908
13909 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
13910
03eb5fab
KS
139112003-03-16 Kim F. Storm <storm@cua.dk>
13912
13913 The following changes consolidate some of the gui-independent
13914 parts of the processing and drawing of "glyph strings" from
13915 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 13916
03eb5fab
KS
13917 * dispextern.h (struct glyph): Reduce face_id member from 22 to
13918 21 bits (this reduces number of faces from 4M to 2M).
13919 Replace W32 specific w32_font_type member (2 bits) by generic
13920 font_type member (3 bits) for portability.
13921 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
13922 (enum draw_glyphs_face): Define here.
13923 (struct glyph_string): Define here. Merge W32 and X versions.
13924 (struct redisplay_interface): New members per_char_metric,
13925 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
13926 (VCENTER_BASELINE_OFFSET): Define here.
13927 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
13928 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
13929
13930 * xdisp.c: Consolidate gui-independent "glyph string" code here.
13931 (dump_glyph_string): Moved here.
13932 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
13933 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
13934 (fill_composite_glyph_string, fill_glyph_string)
13935 (fill_image_glyph_string, fill_stretch_glyph_string)
13936 (left_overwritten, left_overwriting, right_overwritten)
13937 (right_overwriting, get_char_face_and_encoding)
13938 (set_glyph_string_background_width, compute_overhangs_and_x)
13939 (append_glyph, append_composite_glyph, produce_image_glyph)
13940 (take_vertical_position_into_account, append_stretch_glyph)
13941 (produce_stretch_glyph): New generic functions (based on X version).
13942 Call platform specific functions through rif.
13943 (INIT_GLYPH_STRING): New macro, hides W32 details.
13944 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
13945 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
13946 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
13947 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
13948 (notice_overwritten_cursor):
13949 Generic functions exported to platform modules. Users changed.
13950
13951 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
13952 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
13953 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 13954 New macros for consolidated code.
2a6d0874 13955
03eb5fab
KS
13956 * xterm.c: Remove consolidated defines and code.
13957 (x_per_char_metric, x_encode_char)
13958 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
13959 (x_redisplay_interface): Add new members.
13960
13961 * w32gui.h (Display): Add dummy typedef for consolidation.
13962 (XChar2b): Define alias for wchar_t for consolidation.
13963 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13964
13965 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 13966 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
13967 New macros for consolidation.
13968
fad49844 13969 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
13970 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
13971 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
13972 (w32_per_char_metric): Change font_type arg to int for RIF.
13973 (w32_encode_char): Return int according to RIF requirements.
13974 (w32_compute_glyph_string_overhangs): Adapt to RIF.
13975 (w32_get_glyph_overhangs): New function for RIF. Uses generic
13976 x_get_glyph_overhangs.
13977 (w32_redisplay_interface): Add new members.
13978
13979 * macgui.h (XChar2b): Move typedef here for consolidation.
13980 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13981
13982 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
13983 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
13984 consolidation.
13985
13986 * macterm.c: Remove consolidated defines and code.
13987 (mac_per_char_metric): New function for RIF.
00c64fab 13988 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
13989 (mac_compute_glyph_string_overhangs): Adapt for RIF.
13990 (x_redisplay_interface): Add new members.
13991
00c64fab
SM
139922003-03-15 Stefan Monnier <monnier@cs.yale.edu>
13993
13994 * keymap.c (Vmenu_events): New var.
13995 (syms_of_keymap): Initialize it.
13996 (where_is_internal): Check more carefully what is a menu event.
13997
225c7a07
RS
139982003-03-14 Richard M. Stallman <rms@gnu.org>
13999
14000 * lread.c (read1): After #!, exit loop on eof.
14001
cea9be54
JD
140022003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14003
9ea0e54d
JD
14004 * gtkutil.h: Add declaration for xg_frame_cleared.
14005
0cb35f4e
JD
14006 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
14007
cea9be54
JD
14008 * gtkutil.c (struct xg_last_sb_pos): New structure.
14009 (handle_fixed_child): New function.
14010 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
14011 and force a redraw on them.
14012 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
14013 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
14014 so we can avoid unneeded redraws.
14015 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
14016 and force a redraw on the scroll bar.
14017 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
14018 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 14019 (xg_frame_cleared): New function.
cea9be54 14020
20b853f3
KH
140212003-03-13 Kenichi Handa <handa@m17n.org>
14022
14023 * coding.c (Fdetect_coding_region): Fix docstring.
14024 (Fdetect_coding_string): Fix docstring.
14025
7a555aff
AS
140262003-03-13 Andreas Schwab <schwab@suse.de>
14027
25cc0080
AS
14028 * gtkutil.c: Add prototype for create_menus.
14029
30225431
AS
14030 * data.c (long_to_cons): Fix type of top.
14031
14032 * xselect.c (selection_data_to_lisp_data): Use int instead of
14033 long for an integer of size 4.
14034
7a555aff 14035 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 14036 (xg_tool_bar_help_callback): Likewise.
7a555aff 14037
a3e4741f
AS
140382003-03-12 Andreas Schwab <schwab@suse.de>
14039
14040 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
14041
9668be7c
KS
140422003-03-12 Kim F. Storm <storm@cua.dk>
14043
03eb5fab 14044 The following changes consolidate the fringe handling from
9668be7c 14045 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 14046
9668be7c
KS
14047 * xdisp.c: Consolidate fringe handling code here.
14048 (left_bits, right_bits, continued_bits, continuation_bits)
14049 (ov_bits, zv_bits): Define fringe bitmaps.
14050 (fringe_bitmaps): New array holding fringe bitmaps.
14051 (draw_fringe_bitmap): Draw a specific bitmap; call display
14052 specific drawing routine via rif->draw_fringe_bitmap.
14053 (draw_row_fringe_bitmaps): Generic replacement for
14054 x_draw_row_fringe_bitmaps; all callers changed.
14055 (compute_fringe_widths): Generic replacement for
14056 x_compute_fringe_widths; all callers changed.
14057
14058 * dispextern.h (enum fringe_bitmap_type): Define here.
14059 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
14060 (fringe_bitmaps): Declare extern.
14061 (struct redisplay_interface): New member draw_fringe_bitmap.
14062 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
14063
14064 * xterm.c: Remove generic fringe code.
14065 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14066 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14067
14068 * w32term.c: Remove generic fringe code.
14069 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
14070 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 14071
9668be7c
KS
14072 * macterm.c: Remove generic fringe code.
14073 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14074 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14075
00a88f32
SM
140762003-03-11 Stefan Monnier <monnier@cs.yale.edu>
14077
14078 * print.c (Fprin1_to_string): Return unibyte string if possible.
14079
1d1de695
DK
140802003-03-09 David Kastrup <dak@gnu.org>
14081
14082 * process.c (read_process_output): We have allocated enough space
14083 for readmax and carryover, so actually use the alloted space.
14084
257f40f2
JD
140852003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14086
14087 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
14088 toolkit scrollbar click.
14089
14090 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
14091 for USE_GTK.
14092 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
14093 also.
1d1c7e75 14094 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 14095 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 14096
78819ebb 14097 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
14098
14099 * gtkutil.c (xg_get_scroll_id_for_window): New function.
14100 (xg_tool_bar_item_expose_callback): New function.
14101 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
14102 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
14103 on the tool bar widget.
14104 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
14105 to expose on the tool bar item widgets.
14106
15213141
JD
141072003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14108
26b74a0b 14109 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 14110 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
14111 deleted from the image cache).
14112
15213141
JD
14113 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
14114 the event isn't for a frame (i.e. for dialogs).
14115
20b853f3 141162003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
14117
14118 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
14119 composition components reaches the limit, terminate composing.
14120 (COMPOSITION_OK): New macro.
00a88f32 14121 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
14122 composition is found.
14123 (coding_restore_composition): Adjust the number of composition
14124 components if it is not sane.
14125
c9029fe5
JB
141262003-03-06 Juanma Barranquero <lektu@terra.es>
14127
14128 * w32term.h (struct w32_display_info): Add xrdb member to support
14129 passing resources via -xrm on Windows.
14130
14131 * w32term.c (w32_make_rdb): New function.
14132 (w32_term_init): Use it to initialize xrdb member of w32_display_info
14133 struct. Delete leftover code.
14134
14135 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
14136 for resources passed on the command line.
14137
14138 * w32reg.c (w32_get_rdb_resource): New function.
14139 (x_get_string_resource): Use it, so resources passed with -xrm
14140 supercede the ones in the registry.
14141
9d00001f
JD
141422003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14143
14144 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
14145 instead of x_top_window_to_frame.
14146
ca2417b9
JD
141472003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14148
14149 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
14150 when restarting Emacs.
14151
5b20caf0
RS
141522003-03-03 Richard M. Stallman <rms@gnu.org>
14153
14154 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
14155 to run kill-buffer-query-functions.
14156 (Qkill_buffer_query_functions): New var.
14157 (syms_of_buffer): Init and staticpro it.
14158
58e91b77
JD
141592003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14160
14161 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
14162
932357b4
KS
141632003-02-25 Kim F. Storm <storm@cua.dk>
14164
14165 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
14166 If centering point failed to make whole line visible and vscroll
14167 is non-zero, disable vscroll and try centering point again.
14168
14169 * lread.c (read1): Accept `single space' syntax like (? x).
14170
bb8db7e1
JD
141712003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14172
14173 * keyboard.c (cancel_hourglass_unwind): Surround with
14174 #ifdef HAVE_X_WINDOWS
14175
47d77aab
KH
141762003-02-25 Kenichi Handa <handa@m17n.org>
14177
14178 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
14179 process only when "subprocesses" is defined.
14180
6a097c0c
SM
141812003-02-24 Stefan Monnier <monnier@cs.yale.edu>
14182
14183 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
14184
0b063c27
JB
141852003-02-24 Juanma Barranquero <lektu@terra.es>
14186
d1135afc
JB
14187 * callint.c (fix_command): Declare as static void and move before
14188 Fcall_interactively.
14189
0b063c27
JB
14190 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
14191 (syms_of_xdisp): Don't initialize Qwhen.
14192
0af912f0
JD
141932003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14194
14195 * keyboard.c (cancel_hourglass_unwind): New function.
14196 (command_loop_1): Cancel hourglass with unwind-protect.
14197
120d0a23
RS
141982003-02-23 Richard M. Stallman <rms@gnu.org>
14199
14200 * callint.c (fix_command): New subroutine, from Fcall_interactively.
14201 Detect (when ... (region-beginning)) etc.
14202 (Fcall_interactively): Call fix_command.
14203 (Qif, Qwhen): New variables.
14204 (syms_of_callint): Init and staticpro them.
0b063c27 14205
120d0a23
RS
14206 * regex.c (print_partial_compiled_pattern): Output to stderr.
14207
4ece81a6
KG
142082003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
14209
14210 * dired.c (directory_files_internal): Don't expand directory.
14211 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
14212 instead. From Lars Hansen <larsh@math.ku.dk>.
14213
e52bd6b7
SM
142142003-02-22 Stefan Monnier <monnier@cs.yale.edu>
14215
14216 * fns.c (string_to_multibyte): Remove unused var i.
14217 (Flanginfo): Fix int/Lisp_Object mixup.
14218 (void_call2): New fun.
14219 (Fmap_char_table): Use it in place of call2.
14220
14221 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
14222
14223 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
14224
14225 * keymap.c (copy_keymap_1): Make it static.
14226
14227 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
14228
c33ef7c4
JB
142292003-02-22 David Ponce <david@dponce.com>
14230
14231 * lread.c (Fload): Don't check STRING_MULTIBYTE.
14232
16782258
JD
142332003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14234
14235 * process.h: Removed subtty field from struct Lisp_Process.
14236
14237 * process.c (create_process): Remove setting of subtty.
14238 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
14239 (Fprocess_running_child_p, process_send_signal):
14240 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
14241 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
14242
3abeca61
KG
142432003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
14244
14245 * keymap.c (Fdefine_key): Doc fix.
14246
92a8ce63
JB
142472003-02-21 Juanma Barranquero <lektu@terra.es>
14248
14249 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
14250
14251 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
14252 POLLING_PROBLEM_IN_SELECT.
14253
14254 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
14255 Delete #undef of POLLING_PROBLEM_IN_SELECT.
14256
14257 * s/hpux10-20.h: New file.
14258
e52bd6b7
SM
14259 * process.c (wait_reading_process_input):
14260 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 14261
20f1ef2e
KH
142622003-02-20 Kenichi Handa <handa@m17n.org>
14263
32d0a9dc
KH
14264 * fontset.c (check_fontset_name): If NAME is nil, return the
14265 default fontset.
14266 (override_font_info): New function.
e52bd6b7 14267 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
14268 (Ffontset_info): If FONTSET is not the default fontset, merge
14269 FONTSET onto the copy of the default fontset, and work on that
14270 copy. Document that NAME nil means the default fontset.
14271 (Ffontset_font): Document that NAME nil means the default fontset.
14272
20f1ef2e
KH
14273 * process.c (setup_process_coding_systems): If the process's
14274 in/out descriptor is -1, do nothing.
14275
77d1daf2
AS
142762003-02-19 Andreas Schwab <schwab@suse.de>
14277
e52bd6b7
SM
14278 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
14279 Add prototypes.
77d1daf2 14280
f9a45bb3
KH
142812003-02-19 Kenichi Handa <handa@m17n.org>
14282
14283 * xfaces.c (try_alternative_families): Try all scalable fonts if
14284 Vscalable_fonts_allowed is not Qt.
14285
72ecb43c
JD
142862003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14287
14288 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
14289
ee5be7c3
JD
142902003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14291
14292 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
14293 names.
14294
14295 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 14296 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
14297 x_face_list_fonts.
14298 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
14299 (Fx_list_fonts): Set maxnames to -1 to get all font names.
14300
4cd519a7
KS
143012003-02-18 Kim F. Storm <storm@cua.dk>
14302
068f9882
KS
14303 * lread.c (read1): Fix last change.
14304 "`" is not always special. Allow "?" after a character constant.
4cd519a7 14305
7290a344
AC
143062003-02-18 Andrew Choi <akochoi@shaw.ca>
14307
14308 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
14309
1f7fa69b
AS
143102003-02-18 Andreas Schwab <schwab@suse.de>
14311
14312 * window.c (window_scroll_pixel_based): Move outside a
14313 multi-glyph character before setting new window start.
14314
14315 * xdisp.c (in_display_vector_p): New function.
14316 * dispextern.h (in_display_vector_p): Declare.
14317
23e21195
KS
143182003-02-18 Kim F. Storm <storm@cua.dk>
14319
14320 * lread.c (read1): Fix and relax read syntax.
14321 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
14322 Only recognize "," after dotted-pair dot if inside backquote.
14323 Never include "`" or "," (inside backquote) in a symbol.
14324 Allow dotted-pair dot after a character constant.
14325 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 14326
f098b121
JD
143272003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14328
14329 * gtkutil.c (xg_tool_bar_expose_callback): New function.
14330 (xg_create_tool_bar): Force style of tool bar to be horizontal with
14331 icons. Set name of tool bar to emacs-toolbar.
14332 (update_frame_tool_bar): Connect expose event to
14333 xg_tool_bar_expose_callback.
14334
63020c46
RS
143352003-02-17 Richard M. Stallman <rms@gnu.org>
14336
14337 * keyboard.c (this_command_key_count_reset): New variable.
14338 Initiatize to 0 where this_command_key_count is set.
14339 (read_char): Save and restore this_command_key_count_reset
14340 around input method code.
14341 (read_char): If this_command_key_count_reset, echo reread commands.
14342 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
14343
fb4452cc
KH
143442003-02-17 Kenichi Handa <handa@m17n.org>
14345
14346 * fns.c (string_to_multibyte): Always return a multibyte string.
14347
bd11cc09
JR
143482003-02-16 Jason Rumney <jasonr@gnu.org>
14349
e52bd6b7
SM
14350 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
14351 Negative max_fonts parameter means list all.
bd11cc09 14352
4cdf4bde
DL
143532003-02-14 Dave Love <fx@gnu.org>
14354
14355 * fns.c (Flanginfo): Doc fix.
14356
023b93f6
KS
143572003-02-13 Kim F. Storm <storm@cua.dk>
14358
37cd4238
KS
14359 * lread.c (read_escape): Interpret \s as a SPACE character, except
14360 for \s-X in a character constant which still is the super modifier.
14361 (read1): Signal an `invalid read syntax' error if a character
14362 constant is immediately followed by a digit or symbol character.
14363
140a6b7e
KS
14364 * search.c (Fmatch_data): Doc fix. Explicitly state that
14365 match-data is undefined if last search failed.
14366
3419757d 14367 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
14368 All uses changed.
14369
7d5c86e5
JB
143702003-02-12 Juanma Barranquero <lektu@terra.es>
14371
14372 * eval.c (Fdefmacro): Fix typo.
14373
295fff2c
KS
143742003-02-12 Kim F. Storm <storm@cua.dk>
14375
14376 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
14377 macro is a string, convert meta modifiers in string when copying
14378 the string into a vector.
14379
60f3202d
KS
143802003-02-11 Kim F. Storm <storm@cua.dk>
14381
14382 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
14383
61cb0b53
KH
143842003-02-11 Kenichi Handa <handa@m17n.org>
14385
14386 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
14387
7392e23c
KS
143882003-02-10 Kim F. Storm <storm@cua.dk>
14389
14390 * process.c: Doc fixes.
14391 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
14392
ce4254bd
KH
143932003-02-10 Kenichi Handa <handa@m17n.org>
14394
9c7a329a
KH
14395 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
14396
ce4254bd
KH
14397 * process.c (QCfilter_multibyte): New variable.
14398 (setup_process_coding_systems): New function.
e52bd6b7
SM
14399 (Fset_process_buffer, Fset_process_filter):
14400 Call setup_process_coding_systems.
ce4254bd
KH
14401 (Fstart_process): Initialize the member `filter_multibyte' of
14402 struct Lisp_Process.
14403 (create_process): Call setup_process_coding_systems.
14404 (Fmake_network_process): New keyward `:filter-multibyte'.
14405 Initialize the member `filter_multibyte' of struct Lisp_Process.
14406 Call setup_process_coding_systems.
14407 (server_accept_connection): Call setup_process_coding_systems.
14408 (read_process_output): If the process has a filter, decide the
14409 multibyteness of a string to given to the filter by
14410 `filter_multibyte' member of the process. If the process doesn't
14411 have a filter and the result of conversion is unibyte, use
14412 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
14413 multibyte form.
14414 (Fset_process_coding_system): Call setup_process_coding_systems.
14415 (Fset_process_filter_multibyte): New function.
14416 (Fprocess_filter_multibyte_p): New function.
14417 (syms_of_process): Intern and staticpro QCfilter_multibyte.
14418 Defsubr Sset_process_filter_multibyte and
14419 Sprocess_filter_multibyte_p.
14420
14421 * process.h (struct Lisp_Process): New member filter_multibyte.
14422
14423 * lisp.h (setup_process_coding_systems): Add prototype.
14424
14425 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
14426 process, update coding systems for the process.
14427
b08d5f59
KH
144282003-02-09 Kenichi Handa <handa@m17n.org>
14429
14430 * fns.c (string_to_multibyte): New function.
14431 (Fstring_to_multibyte): New function.
14432 (syms_of_fns): Defsubr it.
14433
0dfd93c0
AS
144342003-02-08 Andreas Schwab <schwab@suse.de>
14435
14436 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
14437 instead of the substitution.
14438
7b76ca1c
JD
144392003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14440
14441 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
14442
14443 * xmenu.c (menu_position_func): Adjust menu popup position so that
14444 the menu is fully visible.
7b76ca1c 14445
2436a4e4
JD
144462003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14447
14448 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
14449 (x_make_frame_invisible, x_wm_set_icon_position):
14450 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
14451
14452 * xfns.c (x_set_name, x_set_title): Ditto.
14453
37d1e680
RS
144542003-02-04 Richard M. Stallman <rms@gnu.org>
14455
14456 * keyboard.c (echo_now): Update before_command_echo_length.
14457 (Freset_this_command_lengths): Reset this_command_key_count etc.
14458 immediately rather than arranging to do it later.
14459 (before_command_key_count_1, before_command_echo_length_1)
14460 (before_command_restore_flag): Vars deleted.
14461 (add_command_key): Don't handle before_command_restore_flag.
14462 (read_char, record_menu_key): Don't update before_command_key_count or
14463 before_command_echo_length.
14464 (read_char): Don't handle before_command_restore_flag.
14465
14466 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
14467 in direct-output clauses if it wouldn't be called in the ordinary case.
14468
578846a3
KS
144692003-02-04 Kim F. Storm <storm@cua.dk>
14470
14471 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
14472
49853a4d
JD
144732003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14474
14475 * gtkutil.c (remove_from_container): Copying list is not needed.
14476 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
14477 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
14478 on list returned from gtk_container_get_children to avoid memory leak.
14479
8b53dc06
JR
144802003-02-01 Jason Rumney <jasonr@gnu.org>
14481
5d54d177
JR
14482 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
14483 local malloc.
14484 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
14485 definitions in xpm.h.
14486 (init_xpm_functions): New function.
f63fd14e 14487 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
14488 (init_external_image_libraries): Try to load libXpm.dll.
14489
8b53dc06
JR
14490 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
14491 timestamp.
14492
b222e415
DL
144932003-01-31 Dave Love <fx@gnu.org>
14494
14495 * syntax.c (Fskip_chars_forward)
14496 (open-paren-in-column-0-is-defun-start): Doc fix.
14497
c60ee5e7
JB
144982003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
14499
14500 * fileio.c: Support // at start of name for Cygwin (just added proper
14501 preprocessor tests).
14502
14503 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
14504
14505 * Makefile.in: Use @EXEEXT@ for Cygwin.
14506
14507 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
14508
14509 * s/cygwin.h: Added for Cygwin port.
14510
53b37591
JB
145112003-01-31 Juanma Barranquero <lektu@terra.es>
14512
14513 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
14514 when including gif_lib.h.
fe929957 14515 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
14516 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
14517 Windows. Disable color table lookups. Call library functions
53b37591 14518 through pointers determined at runtime.
fe929957
JB
14519 (init_external_image_libraries): Try to load libungif.dll and
14520 libtiff.dll.
53b37591 14521
45415a8f
KH
145222003-01-31 Kenichi Handa <handa@m17n.org>
14523
14524 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 14525 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 14526
a97e4138
JD
145272003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14528
e52bd6b7 14529 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 14530
6eed9bed
DL
145312003-01-30 Dave Love <fx@gnu.org>
14532
14533 * alloc.c (Vgc_elapsed, gcs_done): New variables.
14534 (Fgarbage_collect): Use them.
14535 (init_alloc, syms_of_alloc): Set them up.
14536
100dcd40
JB
145372003-01-30 Juanma Barranquero <lektu@terra.es>
14538
14539 * w32fns.c (init_external_image_libraries): Add missing operator.
14540
fbd852af
JR
145412003-01-29 Jason Rumney <jasonr@gnu.org>
14542
14543 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
14544 an alternative name for jpeg.dll.
14545
8a2d8020
KH
145462003-01-29 Kenichi Handa <handa@m17n.org>
14547
14548 * xdisp.c (set_cursor_from_row): Pay attention to string display
14549 properties.
14550
058c18c7
AC
145512003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
14552
14553 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
14554 <escape>.
14555 (keycode_to_xkeysym_table): Reformat and add more comments.
14556 (XTread_socket): Drop special case for backspace.
14557
385f11cf
AC
145582003-01-28 Andrew Choi <akochoi@shaw.ca>
14559
14560 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
14561 values in old-style RGB specs.
14562
c922a224
JB
145632003-01-27 Juanma Barranquero <lektu@terra.es>
14564
14565 * w32fns.c (init_external_image_libraries): Try alternate names for the
14566 jpeg dll.
14567
0a1d6de0
JD
145682003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14569
14570 * gtkutil.c (create_dialog, xg_separator_p)
14571 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
14572 before calling strcmp or strlen.
14573
a97e4138 145742003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
14575
14576 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
14577 and handle image load failure.
14578
28908312
JR
145792003-01-26 Jason Rumney <jasonr@gnu.org>
14580
14581 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
14582 New functions.
f63fd14e
JB
14583 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
14584 Disable color table lookups. Call jpeg library functions
28908312
JR
14585 through pointers determined at runtime.
14586 (init_external_image_libraries): Try to load jpeg.dll.
14587
84e47416
RS
145882003-01-25 Richard M. Stallman <rms@gnu.org>
14589
14590 * lisp.h: Declare format2 instead of format1.
14591
14592 * fileio.c (barf_or_query_if_file_exists):
14593 Call format2 instead of format1.
14594
14595 * editfns.c (format2): New function, replaces format1
14596 but takes exactly two Lisp Objects as format args.
14597
14598 * buffer.c (Fkill_buffer): Call format2 instead of format1.
14599
a97e4138 146002003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
14601
14602 * xterm.h: Change to return value of x_dispatch_event to int.
14603
14604 * xterm.c (x_filter_event): New function.
14605 (event_handler_gdk, XTread_socket): Call x_filter_event.
14606 (x_dispatch_event): Change to return value of finish.
14607 (event_handler_gdk): Use return value from x_dispatch_event.
14608
14609 * xfns.c (x_window): Call create_frame_xic for GTK version to
14610 initialize input methods.
14611
14612 * gtkutil.h: Add (void) prototypes.
14613
14614 * gtkutil.c (create_menus): Remove code that puts the help menu to
14615 the right.
14616
54eefef1
JR
146172003-01-25 Jason Rumney <jasonr@gnu.org>
14618
14619 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
14620 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
14621 (png_load): Adjust colors for Windows. Use Windows
14622 bitmaps. Disable color table lookups.
c262430d
JR
14623 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
14624 (init_png_functions): New function.
14625 (png_read_from_memory, png_load): Call png library functions
14626 through pointers determined at runtime.
14627 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
14628 (init_external_image_libraries): New function.
14629 (init_xfns): Call it.
54eefef1 14630
1a9e275b
AS
146312003-01-24 Andreas Schwab <schwab@suse.de>
14632
14633 * minibuf.c (Fminibuffer_message): Verify type of parameter.
14634
a97e4138 146352003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
14636
14637 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
14638 of static initializer.
14639
422eec7e
DL
146402003-01-24 Dave Love <fx@gnu.org>
14641
14642 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
14643 architectures.
14644
14645 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
14646 Use __alignof__.
14647
2a026b04
KH
146482003-01-24 Kenichi Handa <handa@m17n.org>
14649
14650 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 14651 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
14652 (command_loop_1): Call adjust_point_for_property with proper
14653 second arg.
14654
a18bb28d
JR
146552003-01-22 Jason Rumney <jasonr@gnu.org>
14656
14657 Sync changes with xterm.c and xfns.c.
14658
14659 * w32term.c (x_draw_glyph_string_foreground)
14660 (x_draw_composite_glyph_string_foreground): Implement overstriking.
14661
14662 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
14663 phys_cursor's hpos is overwritten. This is still not completely
14664 correct, as it doesn't really make sense to use hpos at all to
14665 get the cursor glyph (as that is relative to the width of the
14666 characters on the line, which may have changed during the update).
14667
14668 * w32term.c (notice_overwritten_cursor): Handle the special case
14669 of the cursor being in the first blank non-text line at the
14670 end of a window.
14671
14672 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14673 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14674 Compute from the x position returned by x_draw_glyphs.
14675
14676 (x_display_and_set_cursor): Don't set phys_cursor_width here,
14677 except for NO_CURSOR and system caret, to make phys_cursor_width
14678 contain what its name suggests.
14679 (notice_overwritten_cursor): Consider the cursor image erased if
14680 the output area intersects the cursor image in y-direction.
14681
6a097c0c
SM
14682 * w32term.c (note_mode_line_or_margin_highlight): Rename from
14683 note_mode_line_highlight and extend.
a18bb28d
JR
14684
14685 * w32term.c (last_window): New variable.
14686 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
14687 (note_mouse_movement): Remove reimplemented code in #if 0.
14688
14689 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
14690 not update_mode_lines, and always set it to 1.
14691
ac6e47ef
JR
146922003-01-21 Jason Rumney <jasonr@gnu.org>
14693
14694 * w32fns.c (IDC_HAND): Define it if system headers don't.
14695
146962003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14697
14698 * w32term.h (struct w32_output): New member hand_cursor.
14699 (WM_EMACS_SETCURSOR): New message definition.
14700
14701 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
14702 function w32_define_cursor.
14703 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
14704 position, change member name output_data.x to output_data.w32 and
14705 add function w32_define_cursor.
14706 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
14707 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
14708 (w32_initialize_display_info):
14709 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
14710
14711 * w32fns.c (Vx_hand_shape): New variable.
14712 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
14713 WM_EMACS_SETCURSOR.
14714 (x-create-frame): Setup Cursor types.
14715
ceb39a17
JB
147162003-01-21 David Ponce <david@dponce.com>
14717
ac6e47ef 14718 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
14719 ccl->reg[2] to -1 before calling ccl_driver.
14720 (Sync. with xterm.c x_encode_char change by Kenichi Handa
14721 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
14722 (w32_draw_relief_rect): Declare all args.
14723 (w32_define_cursor): New.
14724
14725 * w32fns.c (w32_load_cursor): New function.
14726 (w32_init_class): Use it.
14727 (x_put_x_image): Declare all args.
14728
b6189c3b 147292003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
14730
14731 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
14732
a97e4138 147332003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
14734
14735 * gtkutil.c: Must include stdio.h before termhooks.h
14736
83fc9c63
DL
147372003-01-21 Dave Love <fx@gnu.org>
14738
14739 * alloc.c (Fgc_status): Print zombie list.
14740 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
14741 Fix assignment of zombies.
14742 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
14743 Don't take car of non-cons.
14744
14745 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14746
14747 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14748
fe04b8c8
JR
147492003-01-20 David Ponce <david@dponce.com>
14750
14751 * w32menu.c (digest_single_submenu): Declare all args.
14752
14753 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
14754 changes in xmenu.c:
14755
14756 (parse_single_submenu): Use individual keymap's prompt
14757 string as pane name, if there is one.
14758 (set_frame_menubar): Save menu_items_n_panes from each call to
14759 parse_single_submenu and use it when calling digest_single_submenu.
14760
539e69a9
ST
147612003-01-20 Steven Tamm <steventamm@mac.com>
14762
7e26f91b 14763 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
14764 before sending a scroll-wheel event.
14765
675d000f
RS
147662003-01-20 Richard M. Stallman <rms@gnu.org>
14767
14768 * xdisp.c (redisplay_window): If mini window's buffer is not
14769 a minibuffer, then redisplay it like other windows.
14770
a97e4138 147712003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
14772
14773 * gtkutil.c (xg_create_frame_widgets): Check if there is an
14774 external tool bar before setting tool bar height.
14775
048addec
JD
147762003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14777
14778 * xterm.c (handle_one_xevent): Surround popup_activated
14779 with #ifdef:s for non-toolkit version.
14780
14781 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
14782 (gtkutil.o): New file.
14783 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
14784 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
14785
14786 * gtkutil.c: New file for GTK version.
14787
14788 * gtkutil.h: New file for GTK version.
14789
14790 * xterm.h: Add xt_or_gtk_widget.
14791 Include gtk files for USE_GTK.
14792 (struct x_output): Add toolbar_height.
14793 (struct x_output): Add GTK widgets and Gdk size_hints.
14794 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
14795 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
14796 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
14797
14798 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 14799 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
14800 (note_mouse_highlight): Check popup_activated for USE_GTK.
14801 (xt_action_hook): Don't compile if USE_GTK.
14802 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
14803 (xg_scroll_callback): New function.
14804 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
14805 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
14806 for USE_GTK.
14807 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
14808 xg_show_scroll_bar for USE_GTK.
14809 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
14810 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
14811 (event_handler_gdk): New function for USE_GTK.
14812 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
14813 (handle_one_xevent): Make sure widget is mapped before
14814 calling x_real_positions for USE_GTK.
14815 (XTread_socket): Add GTK event loop for USE_GTK.
14816 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
14817 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
14818 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
14819 (x_iconify_frame): Add code for USE_GTK.
14820 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
14821 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
14822 is in gtkutil.c.
14823 (x_term_init): Add initialization for GTK.
14824 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
14825
14826 * xmenu.c: Include gtkutil.h for USE_GTK.
14827 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
14828 (single_menu_item, single_menu_item, Fx_popup_dialog):
14829 Check for USE_GTK.
048addec
JD
14830 (popup_widget_loop): New function for USE_GTK.
14831 (x_activate_menubar): Add code for USE_GTK.
14832 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
14833 (menu_highlight_callback, menubar_selection_callback):
14834 Add USE_GTK versions.
048addec
JD
14835 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
14836 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
14837 (free_frame_menubar): Only compile if not USE_GTK. GTK version
14838 is in gtkutil.c.
14839 (popup_selection_callback): New version for USE_GTK.
14840 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 14841 one USE_X_TOOLKIT version.
048addec
JD
14842 (xmenu_show): Call create_and_show_popup_menu.
14843 (dialog_selection_callback): New version for USE_GTK.
14844 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 14845 one USE_X_TOOLKIT version.
048addec
JD
14846 (xdialog_show): Call create_and_show_dialog.
14847
14848 * xfns.c: Include gtkutil for USE_GTK.
14849 (x_window_to_frame, x_any_window_to_frame)
14850 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14851 (x_top_window_to_frame): Add code for USE_GTK.
14852 (x_set_background_color): Call xg_set_background_color for GTK.
14853 (x_set_menu_bar_lines): Check for USE_GTK.
14854 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
14855 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
14856 (x_window): Call xg_create_frame_widgets for USE_GTK.
14857 (Fx_create_frame): Check for USE_GTK
14858 (Fx_file_dialog): New implementation for USE_GTK.
14859
14860 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
14861 (update_menu_bar): Add check for USE_GTK.
14862 (update_tool_bar): Add check for USE_GTK and external tool bar.
14863 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
14864 (redisplay_internal): Add check for USE_GTK and popup_activated.
14865 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
14866 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
14867 (display_menu_bar): Add check for USE_GTK
14868
78819ebb 14869 * lisp.h (Vx_resource_name): Declare extern.
048addec 14870
a64387ee 14871 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
14872 for USE_GTK.
14873 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
14874
14875 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
14876 (FRAME_EXTERNAL_TOOL_BAR): New macro.
14877 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
14878
14879 * fileio.c (Fread_file_name): Add check for USE_GTK.
14880
6bdb309a
SM
14881 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
14882 Add check for USE_GTK.
048addec
JD
14883
14884 * config.in: Added HAVE_GTK
14885
14886 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
14887
148882003-01-18 Stefan Monnier <monnier@cs.yale.edu>
14889
14890 * charset.h (Funibyte_char_to_multibyte): Export.
14891
148922003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14893
14894 * xmenu.c (mouse_position_for_popup): New function.
14895 (Fx_popup_menu): Call mouse_position_for_popup for X and
14896 mouse_position_hook for others.
14897
148982003-01-17 Kim F. Storm <storm@cua.dk>
14899
14900 * editfns.c (Finsert): Mention `string-make-multibyte' and
14901 `string-as-multibyte' in doc string.
14902
149032003-01-17 Kenichi Handa <handa@m17n.org>
14904
14905 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 14906
048addec
JD
14907 * editfns.c (Fformat): Convert an unibyte char argument that is
14908 formatted by "%c" to multibyte if the total result must be a
14909 multibyte string.
cd7df9c0 14910
048addec 149112003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 14912
048addec
JD
14913 * process.c (set-process-filter): Document unibyte/multibyte-ness
14914 of string argument.
56210ecd 14915
048addec 149162003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 14917
048addec 14918 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 14919
048addec
JD
14920 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
14921 (re_search_2): Likewise.
6df8b9fe 14922
048addec 149232003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 14924
048addec
JD
14925 * xdisp.c (message_dolog): Fix bug of the case that *Message*
14926 buffer is unibyte.
292ddc31 14927
048addec 149282003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 14929
048addec 14930 * fns.c (Fsubstring): Clarify doc string.
292ddc31 14931
048addec
JD
14932 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
14933 (Fprevious_char_property_change)
14934 (Fnext_single_char_property_change)
14935 (Fprevious_single_char_property_change, Fnext_property_change)
14936 (Fnext_single_property_change, Fprevious_property_change)
14937 (Fprevious_single_property_change, Fadd_text_properties)
14938 (Fput_text_property, Fset_text_properties)
14939 (Fremove_text_properties, Fremove_list_of_text_properties)
14940 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 14941
048addec 149422003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 14943
048addec
JD
14944 * process.h (struct Lisp_Process): New member plist replaces old
14945 member private_vars. All uses changed.
63e4e4c6 14946
048addec 14947 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 14948 (QCplist): Rename from QCvars. Change all uses.
048addec 14949 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 14950 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 14951 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 14952 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 14953
048addec 149542003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 14955
6bdb309a 14956 * m/delta.h: Remove (obsolete).
e833850f 14957
048addec 149582003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 14959
048addec
JD
14960 * fileio.c (Fdelete_directory, Fdelete_file): Document the
14961 behaviour in front of symlinks.
14962 (Fdelete_file): Raise an error on directories.
817cb127 14963
048addec 149642003-01-13 Dave Love <fx@gnu.org>
817cb127 14965
048addec 14966 * fns.c (Freverse): Use QUIT.
3e8cf2ea 14967
048addec 149682003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 14969
048addec
JD
14970 * minibuf.c (minibuffer_completion_contents):
14971 Error if point is inside prompt.
3e8cf2ea 14972
048addec
JD
14973 * keyboard.c (command_loop_1): Don't redisplay directly
14974 if there's a post-command-hook.
3e8cf2ea 14975
048addec
JD
14976 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
14977 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 14978
048addec 149792003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 14980
048addec 14981 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 14982
048addec
JD
14983 * process.c (QCvars): New variable.
14984 (syms_of_process): Intern and staticpro it.
14985 (Fset_process_contact): Removed function.
14986 (Fprocess_variable, Fset_process_variable): New functions.
14987 (syms_of_process): Defsubr them.
14988 (Fstart_process): Initialize private_vars plist to nil.
14989 (Fmake_network_process): New arg :vars to setup the private
14990 variables for new network process.
14991 (server_accept_connection): Copy server's private variables to
14992 client process.
2c10f029 14993
048addec
JD
14994 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
14995 crashes). Code rewritten and simplified. Now directly aligns the
14996 pointer and recalculates pure_bytes_used, rather than aligning the
14997 size and adjusting the pointer.
b8a76c6c 14998
048addec 149992003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 15000
048addec
JD
15001 * process.c (Fset_process_contact): New function.
15002 (syms_of_process): defsubr it.
15003 (make-network-process): Update doc.
3a8d0899 15004
048addec 150052003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 15006
048addec
JD
15007 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
15008 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 15009
048addec 150102003-01-10 Dave Love <fx@gnu.org>
4abc7470 15011
048addec 15012 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 15013
048addec 150142003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 15015
048addec
JD
15016 * process.c (Fmake_network_process): Convert new port number
15017 to host byte order for `:service t' case. From Mario Lang.
bf338245 15018
048addec 150192003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 15020
048addec
JD
15021 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
15022 instead of XtAppProcessEvent.
bf338245 15023
048addec
JD
15024 * xterm.c (handle_one_xevent): New function.
15025 (x_dispatch_event): New function.
15026 (XTread_socket): Call handle_one_xevent.
bf338245 15027
048addec 15028 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 15029
048addec
JD
15030 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
15031 call XQueryPointer to get coordinates.
15032 (popup_get_selection): Do not set popup_activated_flag to zero,
15033 let popup_deactivate_callback do that. Needed for Motif.
15034 Call x_dispatch_event instead of XtDispatchEvent.
15035 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 15036
048addec 150372003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 15038
6bdb309a 15039 * process.c (server_accept_connection): Fix recording of new
048addec
JD
15040 connection's local address in :local property of contact info.
15041 (Fmake_network_process): Record local network address for new
15042 client processes in :local property of contact info.
6bdb309a 15043 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 15044
048addec 150452003-01-07 Dave Love <fx@gnu.org>
00e3ab56 15046
048addec 15047 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 15048
048addec 150492003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 15050
048addec 15051 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 15052
048addec
JD
15053 * eval.c (Fuser_variable_p): Doc change. For custom variables,
15054 use the same test as for custom-variable-p.
8c6d74c6 15055
048addec 150562003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 15057
048addec
JD
15058 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
15059 Count LAST_LINE_MISFIT in scroll margin for end of window.
15060 Move label too_near_end before setting SCROLL_MARGIN_POS.
15061 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 15062
048addec
JD
15063 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
15064 scroll_conservatively case. If scrolling that much doesn't change
15065 STARTP, move it down one line.
e833850f 15066
048addec
JD
15067 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
15068 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 15069
048addec
JD
15070 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
15071 selected frame.
8c6d74c6 15072
048addec 15073 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 15074 (syms_of_keymap): Staticpro them.
048addec
JD
15075 (Fapropos_internal): Initialize them and clear them out.
15076 Don't GCPRO them.
8c6d74c6 15077
048addec
JD
15078 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
15079 Doc fixes.
8c6d74c6 15080
048addec
JD
15081 * lisp.h: New misc type Lisp_Save_Value.
15082 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
15083 (XSAVE_VALUE): New macro.
15084 (struct Lisp_Save_Value): New data type.
15085 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 15086 (make_save_value): Declare.
8c6d74c6 15087
048addec 15088 * alloc.c (make_save_value): New function.
8c6d74c6 15089
048addec
JD
15090 * xterm.c (x_catch_errors): Save dpy using make_save_value.
15091 (x_catch_errors_unwind): Call XSync.
8c6d74c6 15092
048addec 150932003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 15094
048addec 15095 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 15096
048addec
JD
15097 * keyboard.c (command_loop_1): Call adjust_point_for_property
15098 in direct action cases for Qforward_char and Qbackward_char.
15099 Set already_adjusted so it won't be done twice.
8c6d74c6 15100
b6189c3b 151012002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 15102
048addec
JD
15103 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
15104 type definition of size_t.
8c609cff 15105
048addec 151062003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 15107
048addec
JD
15108 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
15109 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 15110
048addec 151112002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 15112
048addec
JD
15113 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
15114 to default to t.
fa634a5e 15115
048addec 151162002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 15117
048addec 15118 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 15119
048addec 151202002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 15121
7e26f91b 15122 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
15123 allow building in a different directory than source. Uses some
15124 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 15125
048addec 151262002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 15127
048addec
JD
15128 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
15129 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
15130 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
15131 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 15132
048addec 151332002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 15134
048addec
JD
15135 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
15136 <scroll-down-aggressively>: Doc fix.
2155ecf3 15137
048addec
JD
15138 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
15139 string as pane name, if there is one.
15140 (set_frame_menubar): Save menu_items_n_panes from each call to
15141 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 15142
048addec
JD
15143 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
15144 Don't try to make last line fully visible if it is past end of window.
61f1d295 15145
048addec 151462002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 15147
048addec
JD
15148 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
15149 (mac_menu_show): Add support for hierarchical popup menus.
15150 (add_menu_item): Remove indentation support.
15151 (fill_submenu, fill_menu): Create hierarchical menus
15152 instead of using indentation.
0b17a217 15153
048addec 151542002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 15155
048addec
JD
15156 * xdisp.c (try_cursor_movement): Don't call try_window here.
15157 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 15158
048addec 15159 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 15160
048addec 151612002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 15162
048addec
JD
15163 * macterm.c (XTread_socket): Call KeyTranslate for control and
15164 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 15165 being treated like C-%. Do not look for shift key to deal
048addec 15166 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 15167
048addec 151682002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 15169
048addec
JD
15170 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
15171 If it is non-nil, run timers. Use an unwind-protect to requeue
15172 the events that were read ahead.
15173 (popup_get_selection_unwind): New subroutine.
15174 (popup_get_selection_queue): File-scope variable now holds that queue.
15175 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
15176 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
15177 Use an unwind-protect to pop down the dialog box.
15178 (xdialog_show_unwind): New subroutine implements that.
f02cac82 15179
048addec
JD
15180 * xdisp.c (row_containing_pos): Change exit test using last_y.
15181 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 15182
048addec
JD
15183 * lread.c (load_error_handler): New function.
15184 (Fload): Handle errors in Fsubstitute_in_file_name.
15185 Don't expect Fsignal to return.
f02cac82 15186
048addec
JD
15187 * eval.c: Errors and throws work right with interrupt blocking.
15188 (struct catchtag): New elt interrupt_input_blocked.
15189 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
15190 (internal_catch, Fcondition_case, internal_condition_case)
15191 (internal_condition_case_1, internal_condition_case_2): Save it.
15192 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 15193
048addec 15194 * editfns.c (Fformat): Add parens.
f02cac82 15195
048addec
JD
15196 * dired.c (file_name_completion): Fix that change.
15197 Delete special quit-handling code; just use QUIT.
f02cac82 15198
b6189c3b 151992002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 15200
048addec
JD
15201 * dired.c (file_name_completion): Close directory on error
15202 just as in directory_files_internal.
1a590729 15203
048addec 152042002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 15205
048addec
JD
15206 * window.c (Fset_window_configuration): Set old_point to correct
15207 value when new_current_buffer == current_buffer.
f02cac82 15208
048addec 152092002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 15210
048addec
JD
15211 Revisited my earlier fix for the following entry in etc/PROBLEMS:
15212 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
15213 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 15214
048addec
JD
15215 These changes were in part based upon suggestions made by Peter
15216 'Luna' Runestig [peter@runestig.com].
9785d95b 15217
f4a5a485
SM
15218 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
15219 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
15220 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 15221 global variables.
9785d95b 15222
048addec
JD
15223 * w32.c (globals_of_w32): New function. Used to initialize those
15224 global variables that must always be initialized on startup even
15225 when the global variable initialized is non zero. Its primary
15226 purpose at this time is to set the global variables
15227 g_b_init_is_windows_9x, g_b_init_open_process_token,
15228 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
15229 g_b_init_get_sid_identifier_authority to 0 on startup.
15230 Called from main.
9785d95b 15231
048addec
JD
15232 * w32.c (is_windows_9x): Perform initialization only if
15233 g_b_init_is_windows_9x is equal to 0. On initialization set
15234 g_b_init_is_windows_9x equal to 1.
2308af15 15235
048addec
JD
15236 * w32.c (open_process_token): Perform initialization only if
15237 g_b_init_open_process_token is equal to 0. On initialization set
15238 g_b_init_open_process_token equal to 1.
2308af15 15239
048addec
JD
15240 * w32.c (get_token_information): Perform initialization only if
15241 g_b_init_get_token_information is equal to 0. On initialization
15242 set g_b_init_get_token_information equal to 1.
9785d95b 15243
048addec
JD
15244 * w32.c (lookup_account_sid): Perform initialization only if
15245 g_b_init_lookup_account_sid is equal to 0. On initialization
15246 set g_b_init_lookup_account_sid equal to 1.
9785d95b 15247
048addec
JD
15248 * w32.c (get_sid_identifier_authority): Perform initialization
15249 only if g_b_init_get_sid_identifier_authority is equal to 0.
15250 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 15251
f63fd14e 15252 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
15253 those global variables that must always be initialized on startup
15254 even when the global variable initialized is non zero.
15255 Its primary purpose at this time is to initialize the global variable
15256 track_mouse_event_fn.
9785d95b 15257
a64387ee 15258 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 15259 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 15260
048addec 15261 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 15262
f63fd14e 15263 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
15264 initialize those global variables that must always be initialized
15265 on startup even when the global variable initialized is non zero.
15266 Its primary purpose at this time is to initialize the global
15267 variables get_menu_item_info and set_menu_item_info.
9785d95b 15268
048addec
JD
15269 * w32menu.c (initialize_frame_menubar): Remove initialization of
15270 get_menu_item_info and set_menu_item_info.
9785d95b 15271
048addec 15272 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 15273
048addec
JD
15274 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
15275 Declare them.
9785d95b 15276
048addec
JD
15277 * emacs.c (main): Call globals_of_w32 prior to calling
15278 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
15279 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
15280 is defined.
9785d95b 15281
048addec
JD
15282 * w32term.c (x_update_window_begin): Fix Windows API error
15283 detected by BoundsChecker. Test to determine if
15284 w32_system_caret_hwnd is NULL prior to attempting to use
15285 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 15286
048addec
JD
15287 * w32term.c (x_update_window_end): Fix Windows API error
15288 detected by BoundsChecker. Test to determine if
15289 w32_system_caret_hwnd is NULL prior to attempting to use
15290 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 15291
048addec 152922002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 15293
048addec
JD
15294 * coding.c (coding_system_require_warning): New variable.
15295 (syms_of_coding): DEFVAR it.
b6da19ef 15296
048addec 15297 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 15298
048addec
JD
15299 * fileio.c (choose_write_coding_system): Even if
15300 Vcoding_system_for_write is non-nil, if
15301 coding_system_require_warning is nonzero, call
15302 Vselect_safe_coding_system_function.
bfcf6dbe 15303
048addec 153042002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 15305
048addec
JD
15306 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
15307 (lisp): Add font-core.
2c568af5 15308
048addec 153092002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 15310
048addec
JD
15311 * textprop.c (text_read_only): New arg `propval'.
15312 (get_char_property_and_overlay): Remove unused var `next_overlay'.
15313 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 15314
048addec 153152002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 15316
048addec 15317 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 15318
048addec 153192002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 15320
048addec
JD
15321 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
15322 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
15323 Be more careful about when help_events are generated.
96720f09 15324
048addec 153252002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 15326
048addec
JD
15327 * macterm.c (mac_check_for_quit_char): Correctly set the
15328 modifiers of the event to 0.
15329 * mac.c (sys_select): Duplicate rfds before calling select to
15330 ensure that rfds survive the while loop.
e5ae1c49 15331
048addec 153322002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 15333
048addec
JD
15334 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
15335 row_containing_pos returned NULL.
2eb46b2d 15336
048addec 153372002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 15338
6bdb309a 15339 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 15340 non-blocking.
6bdb309a 15341 (sys_select): Fix sys_select to not use a timeout larger than
048addec 15342 the one given.
b11f1d8a 15343
048addec 153442002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 15345
048addec 15346 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 15347
048addec 153482002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 15349
048addec
JD
15350 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
15351 as the last thing.
a4ac5b17 15352
048addec 153532002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 15354
048addec 15355 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 15356
048addec 153572002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 15358
048addec
JD
15359 * editfns.c (Fformat): Handle precision in string conversion
15360 specifiers like libc functions do (ie, print at most that many
15361 characters).
85cce843 15362
048addec 153632002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 15364
048addec
JD
15365 * xdisp.c (row_containing_pos): Check more carefully
15366 whether charpos is really in the row before returning it.
0d4d26a7 15367
048addec 153682002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 15369
048addec 15370 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 15371
048addec
JD
15372 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
15373 each stack frame. This may change as it could be time consuming.
0d4d26a7 15374
048addec
JD
15375 * macterm.c (mac_check_for_quit_char, quit_char_comp)
15376 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 15377 (mac_initialize): Add code to check for pressing of quit_char
048addec 15378 in the OS event queue.
b11f1d8a 15379
048addec
JD
15380 * mac.c (sys_select): Call mac_check_for_quit_char every second
15381 while blocking on select.
0d4d26a7 15382
048addec
JD
15383 * mac.c (sys_read): Use sys_select to test for input first
15384 before calling read, to allow C-g to break.
9252f7bc 15385
048addec 153862002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 15387
048addec 15388 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 15389
048addec 15390 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 15391
048addec 15392 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 15393
048addec
JD
15394 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
15395 autoload.
9252f7bc 15396
048addec 15397 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 15398
048addec 15399 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 15400
048addec 154012002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 15402
048addec 15403 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 15404
048addec 154052002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 15406
048addec 15407 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 15408
048addec 15409 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 15410
048addec 15411 * alloca.c: Don't use #error.
02d588e2 15412
048addec 154132002-12-03 Dave Love <fx@gnu.org>
02d588e2 15414
048addec
JD
15415 * buffer.c (Qucs_set_table_for_input): New.
15416 (Fget_buffer_create): Use it.
15417 (Qset_buffer_major_mode_hook): Deleted.
15418 (Fset_buffer_major_mode): Revert previous change.
15419 (init_buffer_once): Intern ucs-set-table-for-input.
15420 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
15421 Add &Qucs_set_table_for_input.
451e2697 15422
048addec 154232002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 15424
048addec
JD
15425 * callint.c (Fcall_interactively): Use next_event only if less
15426 than key_count.
72742a99 15427
048addec 154282002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 15429
048addec
JD
15430 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
15431 names to 255 characters.
72742a99 15432
048addec
JD
15433 * macterm.c (XTread_socket): If all frames have been collapsed,
15434 expand the first one before handling drag-and-drop events.
72742a99 15435
048addec
JD
15436 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
15437 which is detected by autoconf.
40e6ff95 15438
048addec 154392002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 15440
048addec
JD
15441 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
15442 offset in two hints table to allow prebinding to be redone and
15443 allow the executable to be stripped.
c02138c6 15444
048addec 154452002-11-29 Dave Love <fx@gnu.org>
c02138c6 15446
048addec
JD
15447 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
15448 already provided.
0e47bbf7 15449
048addec 154502002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 15451
048addec
JD
15452 * xdisp.c (start_display): Check more intelligently for
15453 whether the line is continued.
15454 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 15455
048addec 154562002-11-28 Dave Love <fx@gnu.org>
44129dcb 15457
048addec
JD
15458 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
15459 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 15460
048addec 154612002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 15462
048addec
JD
15463 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
15464 more descriptive error output from lread.c:Fload upon most require
15465 cycles during boostrapping.
1637fd2c 15466
048addec 154672002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 15468
048addec
JD
15469 * fileio.c (Finsert_file_contents): Give a more appropriate error
15470 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 15471
048addec
JD
15472 * dired.c (Ffile_attributes): Don't return negative file sizes for
15473 files bigger than 2Gb when off_t is 32 bit.
540c2788 15474
048addec 154752002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 15476
048addec 15477 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 15478
048addec
JD
15479 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
15480 Test GETPGRP_VOID instead.
15481 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 15482
048addec
JD
15483 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
15484 Don't define.
15485 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 15486
048addec 15487 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 15488
048addec 154892002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 15490
048addec
JD
15491 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
15492 supported.
4042a81a 15493
048addec 154942002-11-25 Dave Love <fx@gnu.org>
4042a81a 15495
048addec 15496 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 15497
048addec 15498 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 15499
048addec 155002002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 15501
048addec 15502 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 15503
048addec 155042002-11-24 Steven Tamm <steventamm@mac.com>
82122254 15505
048addec
JD
15506 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
15507 determine the size of pointers alloced in unexed space instead
15508 of using possibly invalid emacs_zone pointers. This fixes the
15509 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 15510
048addec 155112002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 15512
048addec 15513 * search.c (Fstring_match): Doc fix.
c1ee53bc 15514
048addec
JD
15515 * callint.c (Fcall_interactively): If a command fails because
15516 `*' detects a read-only buffer, but RECORD_FLAG is set,
15517 record it anyway if the args don't actually do tty input.
5598c32e 15518
048addec 155192002-11-22 Dave Love <fx@gnu.org>
5598c32e 15520
048addec 15521 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 15522
048addec
JD
15523 * keyboard.c (interrupt_signal): Provide forward declaration.
15524 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 15525
048addec 15526 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 15527
048addec 155282002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 15529
048addec
JD
15530 * eval.c (interactive_p): Skip any number of bytecode
15531 and special form frames, in any order.
516eea8e 15532
048addec 155332002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 15534
048addec
JD
15535 * w32fns.c (convert_mono_to_color_image): New function.
15536 (xbm_load, xbm_load_image): Use it when foreground or background
15537 is explicitly set.
04dbfa08 15538
048addec 155392002-11-19 Dave Love <fx@gnu.org>
04dbfa08 15540
048addec 15541 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 15542
048addec 155432002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 15544
048addec
JD
15545 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
15546 (XPutPixel): Swap blue and red.
15547 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
15548 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
15549 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
15550 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 15551
048addec 155522002-11-18 Dave Love <fx@gnu.org>
d824beee 15553
048addec 15554 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 15555
048addec 15556 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 15557
048addec 15558 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 15559
048addec
JD
15560 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
15561 malloc, realloc, calloc.
d824beee 15562
048addec
JD
15563 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
15564 (bcmp): Don't define.
d824beee 15565
048addec 15566 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 15567
048addec 15568 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 15569
048addec 15570 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 15571
048addec 15572 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 15573
048addec
JD
15574 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
15575 Don't include alloca.h.
d824beee 15576
048addec 15577 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 15578
048addec 15579 * regex.c (_GNU_SOURCE): Don't define.
1998560a 15580
048addec 15581 * process.c (_GNU_SOURCE): Don't define.
1998560a 15582
048addec 15583 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 15584
048addec 155852002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 15586
048addec 15587 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 15588
048addec 155892002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 15590
048addec
JD
15591 * dispextern.h (struct face): Add `overstrike' field.
15592 * xterm.c (x_draw_glyph_string_foreground)
15593 (x_draw_composite_glyph_string_foreground): Implement overstriking.
15594 * xfaces.c (load_face_font): Set `face->overstrike' based on
15595 result from choose_face_font.
15596 (best_matching_font, choose_face_font): Add `needs_overstrike'
15597 argument, and use it to return whether overstriking is desirable
15598 for this face/font combo.
15599 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 15600
048addec 156012002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 15602
048addec
JD
15603 This change is my fix for the following entry in etc/PROBLEMS:
15604 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
15605 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 15606
048addec
JD
15607 * w32.c: Added wrapper functions around the win32 API functions
15608 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
15609 GetSidIdentifierAuthority. These wrapper functions serve two
15610 purposes:
15611 1. They ensure that the wrapped function can never be called
15612 when Emacs is running on an operating system on which they are
15613 not supported (Microsoft Windows 95 / 98 / ME).
15614 2. They call the wrapped functions via function pointers rather
15615 than calling them directly. This avoids taking advantage of the
15616 undocumented fact that although these functions are not supported
15617 in the 9x branch of Microsoft Windows, the functions do exist in
15618 the version of advapi32.dll that is found in the 9x branch of
15619 Microsoft Windows.
f60ae425 15620
6bdb309a 15621 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
15622 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
15623 and GetSidIdentifierAuthority with calls to the newly added
15624 wrapper functions.
f60ae425 15625
048addec
JD
15626 * w32.h: Added extern declarations for the following functions:
15627 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
15628 syms_of_w32menu, and void syms_of_fontset.
f60ae425 15629
6bdb309a 15630 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
15631 function pointer track_mouse_event_fn in the handler for the
15632 WM_SETFOCUS message.
3582b6a3 15633
6bdb309a 15634 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
15635 reinitialize the function pointers set_menu_item_info and
15636 get_menu_item_info.
f60ae425 15637
048addec 156382002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 15639
048addec
JD
15640 * sound.c: Added a partial implementation of play-sound-internal
15641 for Microsoft Windows. Added various #ifdef / #else / #endif
15642 code blocks to separate the code that will compile under
9fed2905 15643 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 15644 Moved several blocks of code around to make this separation of code
9fed2905 15645 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 15646
048addec 15647 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 15648
048addec
JD
15649 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
15650 added support for play-sound-internal under Windows would be
15651 included in the build of Emacs.
517f42a0 15652
048addec 156532002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 15654
048addec 15655 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 15656
048addec 15657 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 15658
048addec 156592002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 15660
048addec
JD
15661 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
15662 (adjust_point_for_property): Move out of display and invisible even if
15663 we were already inside before (in case a property was added while
15664 we weren't looking). Be more careful when handling invisible props.
15665 Skip invisible text as if it really wasn't there at all.
aab83f91 15666
048addec 156672002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 15668
048addec
JD
15669 * w32term.c (x_draw_image_foreground)
15670 (w32_draw_image_foreground_1): Use standard copy and invert
15671 operations to draw images.
aab83f91 15672
048addec
JD
15673 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
15674 depth of 1.
15675 (xbm_read_bitmap_data): Invert bits as xbm is read in.
15676 (XPutPixel): Don't invert bits here.
a4478a76 15677
048addec 156782002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 15679
048addec
JD
15680 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
15681 (w32_draw_image_foreground_1): Handle image masks.
15682 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 15683
048addec
JD
15684 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
15685 (x_from_xcolors): Adjust RGB values for W32.
15686 (image_background, image_background_transparent)
15687 (postprocess_image, x_to_xcolors, x_disable_image)
15688 (x_build_heuristic_mask): Adapt for W32 and enable.
15689 (x_create_x_image_and_pixmap): Mark images with palettes as such.
15690 (xbm_load): Remove unused variable.
03670a65 15691
048addec 156922002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 15693
048addec 15694 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 15695
048addec 156962002-11-14 Dave Love <fx@gnu.org>
59daa29a 15697
048addec 15698 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 15699
048addec
JD
15700 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
15701 * xmenu.c (unuse_menu_items, digest_single_submenu):
15702 * xfns.c (x_put_x_image):
15703 * xdisp.c (message2_nolog, set_message):
15704 * undo.c (record_point):
15705 * terminfo.c (tparam):
15706 * syntax.c (scan_sexps_forward):
15707 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15708 * composite.c (update_compositions):
15709 * cm.c (calccost, cmgoto):
15710 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 15711
048addec 15712 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 15713
048addec
JD
15714 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
15715 Don't declare.
59daa29a 15716
048addec 15717 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 15718
048addec
JD
15719 * fns.c (Fcopy_sequence): Doc fix.
15720 (Fmap_char_table): Cast `call2'.
3947677c 15721
048addec
JD
157222002-11-14 Francesco Potorti` <pot@gnu.org>
15723
15724 * s/sol2-8.h: New file.
15725
157262002-11-14 Kim F. Storm <storm@cua.dk>
15727
15728 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
15729 dependency on `risky-local-variable' and the :propertize form.
15730
157312002-11-12 Stefan Monnier <monnier@cs.yale.edu>
15732
15733 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
15734
15735 * syntax.c (scan_sexps_forward): Undo last patch.
15736 Use a more obvious fix: check eob before updating the syntax table.
15737
157382002-11-09 Stefan Monnier <monnier@cs.yale.edu>
15739
15740 * syntax.c (scan_sexps_forward): Update syntax table before reading
15741 a char rather than after so we don't update the table past eob.
15742
157432002-11-09 Dave Love <fx@gnu.org>
15744
15745 * buffer.c (Fset_buffer_major_mode): Fix last change.
15746
15747 * regex.c (regexec): Fix pmatch declaration.
15748
15749 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
15750
15751 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
15752 to self-inserting characters.
15753 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
15754
15755 * coding.c (Vtranslation_table_for_input): New.
15756 (syms_of_coding): DEFVAR it.
15757
157582002-11-08 Juanma Barranquero <lektu@terra.es>
15759
15760 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
15761 window.
15762
157632002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15764
6bdb309a 15765 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
15766 cp, and i.
15767
157682002-11-06 Dave Love <fx@gnu.org>
15769
15770 * buffer.c (Qset_buffer_major_mode_hook): New.
15771 (Fset_buffer_major_mode): Use it.
15772
157732002-11-06 Richard M. Stallman <rms@gnu.org>
15774
15775 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
15776 and stop_polling.
15777
15778 * process.c (wait_reading_process_input):
15779 Test POLLING_PROBLEM_IN_SELECT, not hpux.
15780 Avoid initialization for auto Lisp_Object var.
15781
15782 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
15783
15784 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
15785
157862002-11-05 Richard M. Stallman <rms@gnu.org>
15787
15788 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
15789
15790 * callint.c (Fcall_interactively): New local filter_specs.
15791 (Fcall_interactively): Check for progn as well as let.
15792 Add a gcpro.
15793 (Qprogn): New variable.
15794 (syms_of_callint): Staticpro and init Qprogn.
15795
157962002-11-04 John Paul Wallington <jpw@shootybangbang.com>
15797
15798 * lread.c (Feval_buffer): Doc fix.
15799
158002002-11-04 Dave Love <fx@gnu.org>
15801
15802 * keyboard.c (read_char): Always translate iff
15803 Vkeyboard_translate_table is a char table and c is valid.
15804
15805 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15806 and fix C types.
15807
158082002-11-03 Stefan Monnier <monnier@cs.yale.edu>
15809
15810 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
15811
15812 * editfns.c (get_pos_property): Don't hardcode Qfield.
15813
15814 * keyboard.c (adjust_point_for_property): Handle `display' prop on
15815 overlays. Also handle `invisible' prop.
15816
158172002-11-02 Stefan Monnier <monnier@cs.yale.edu>
15818
15819 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
15820 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
15821
158222002-11-01 Andreas Schwab <schwab@suse.de>
15823
15824 * editfns.c (Fmessage): Revert last change to properly handle %%.
15825
158262002-11-01 Stefan Monnier <monnier@cs.yale.edu>
15827
15828 * xmenu.c (unuse_menu_items): New fun.
15829 (menu_items_inuse): New var.
15830 (syms_of_xmenu): Initialize it.
15831 (init_menu_items): Use it to detect re-entrance.
15832 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
15833 (Fx_popup_menu): Remove spurious XSETFRAME.
15834
15835 * editfns.c (find_field): Make an exception for nil fields.
15836
158372002-11-01 Dave Love <fx@gnu.org>
15838
15839 * m/gec63.h: Deleted.
15840
158412002-10-31 Dave Love <fx@gnu.org>
15842
15843 * xterm.c (XTread_socket): Fix last change.
15844 (xaw_scroll_callback): Cast call_data to long to avoid warning.
15845
158462002-10-31 Stefan Monnier <monnier@cs.yale.edu>
15847
15848 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
15849
158502002-10-30 Stefan Monnier <monnier@cs.yale.edu>
15851
15852 * editfns.c (overlays_around, get_pos_property): New funs.
15853 (find_field): Use them.
15854 Also be careful not to modify POS before its last use.
15855 (Fmessage): Don't Fformat if there's nothing to format.
15856
158572002-10-30 Dave Love <fx@gnu.org>
15858
15859 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
15860 [HAVE_PTY_H]; Include pty.h.
15861
15862 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
15863
15864 * xterm.c (Qeql): Declare.
15865 (Vx_keysym_table): New.
15866 (syms_of_xterm): Initialize it.
15867 (XTread_socket): Use it. Deal with ASCII keysyms.
15868 (XSetIMValues) [HAVE_X11R6]: Prototype.
15869
15870 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
15871 (lispy_kana_keys): Comment out.
15872 (make_lispy_event) [XK_kana_A]: Comment out.
15873 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
15874 Fix sprintf call.
15875
15876 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
15877 regexp.h change).
15878 (TERMINFO, LIBS_TERMCAP): Define.
15879
15880 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
15881 (bcmp): Define conditional on HAVE_BCMP.
15882 (NO_SIOCTL_H): Don't define.
15883 (TIOCSIGSEND): Don't make conditional on IRIX6.
15884
15885 * s/sol2-5.h: Don't include strings.h.
15886 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
15887
15888 * s/irix6-0.h (IRIX6): Don't define.
15889 (bcopy, bcmp, bzero): Don't undef.
15890
15891 * s/irix6-5.h: Don't include strings.h.
15892 (IRIX6): Don't define.
15893 (bcopy, bcmp, bzero): Don't undef.
15894
15895 * syntax.c (Fforward_comment): Doc fix.
15896
158972002-10-29 Kim F. Storm <storm@cua.dk>
15898
15899 * process.c (Fsignal_process): Allow PROCESS to be specified by
15900 name in addition to pid (as integer or string).
15901
159022002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
15903
15904 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
15905 environments.
15906
159072002-10-27 Kim F. Storm <storm@cua.dk>
15908
15909 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15910
15911 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
15912
15913 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
15914
15915 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15916
159172002-10-26 Richard M. Stallman <rms@gnu.org>
15918
15919 * editfns.c (Fformat): Detect invalid format letters for floats.
15920
159212002-10-25 Kenichi Handa <handa@m17n.org>
15922
15923 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
15924 (x_set_title): Likewise.
15925
159262002-10-25 Juanma Barranquero <lektu@terra.es>
15927
15928 * macgui.h:
15929 * w32gui.h: Remove definition of XColor.
15930
15931 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
15932
159332002-10-24 Kim F. Storm <storm@cua.dk>
15934
15935 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
15936 Callers changed (supply dummy arg).
15937
15938 * lisp.h (get_window_cursor_type): Update prototype.
15939
15940 * w32term.c (x_display_and_set_cursor): Get active_cursor from
15941 get_window_cursor_type to track system caret.
15942
159432002-10-24 Kim F. Storm <storm@cua.dk>
15944
15945 * process.c (Fformat_network_address): New function.
15946 (syms_of_process): Defsubr it.
15947 (list_processes_1): Use it to format :local/:remote address if
f9711de4 15948 service/host is not set; before Emacs would crash in that case.
048addec
JD
15949 (Fmake_network_process): Don't use Ffind_operation_coding_system
15950 to setup coding system if host or service is not set.
15951
159522002-10-23 Juanma Barranquero <lektu@terra.es>
15953
15954 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
15955
15956 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
15957 COLORREF.
15958
15959 * macgui.h:
15960 * w32gui.h: Add definition of XColor.
15961
15962 * macfns.c:
15963 * w32fns.c:
15964 * xfaces.c: Remove definition of XColor.
15965
159662002-10-22 Stefan Monnier <monnier@cs.yale.edu>
15967
15968 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
15969
15970 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
15971 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
15972 window if it is dedicated.
15973 (Fshrink_window): Add preserve_before as was done for enlarge_window.
15974 (Vspecial_display_function): Update docstring.
15975
15976 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
15977 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
15978 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
15979
159802002-10-21 Stefan Monnier <monnier@cs.yale.edu>
15981
15982 * casefiddle.c (casify_region): Don't treat a prefix char as part
15983 of a word when at the beginning.
15984
159852002-10-17 Juanma Barranquero <lektu@terra.es>
15986
15987 * lread.c (syms_of_lread): Fix typos.
15988
159892002-10-17 Dave Love <fx@gnu.org>
15990
15991 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
15992
159932002-10-16 Richard M. Stallman <rms@gnu.org>
15994
15995 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
15996
159972002-10-14 Juanma Barranquero <lektu@terra.es>
15998
15999 * w16select.c (syms_of_win16select): Fix docstring for
16000 `selection-coding-system'.
16001
16002 * w32select.c (syms_of_w32select): Likewise.
16003
160042002-10-14 Stefan Monnier <monnier@cs.yale.edu>
16005
16006 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
16007 a backslash-quoted char.
16008 (scan_lists, scan_sexps_forward): Pacify the compiler.
16009
160102002-10-13 Richard M. Stallman <rms@gnu.org>
16011
16012 * window.c (window_scroll): Set immediate_quit.
16013
16014 * print.c (print): When backquote form is the car of a list,
16015 output in old style. Use old_backquote_output to output all
16016 comma forms inside it in old style too.
16017
16018 * buffer.h (struct buffer): Move `undo_list' down below `name'.
16019
160202002-10-11 Markus Rost <rost@math.ohio-state.edu>
16021
16022 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
16023 batch mode).
16024
16025 * lread.c (Fload): Doc fix (load-suffixes).
16026
160272002-10-10 Steven Tamm <steventamm@mac.com>
16028
16029 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
16030 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
16031 Also switch the default to Qnil from Qt.
16032
160332002-10-08 Kenichi Handa <handa@m17n.org>
16034
16035 * coding.c (code_convert_region): When we need more GAP for
16036 conversion, pay attention to the case that coding->produced is not
16037 greater than coding->consumed.
16038
160392002-10-07 Richard M. Stallman <rms@gnu.org>
16040
16041 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
16042
160432002-10-06 Andrew Choi <akochoi@shaw.ca>
16044
16045 * macmenu.c (mac_menu_show): Add j to count menu items; match
16046 menu_item_selection to it to find selected item.
16047
160482002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16049
16050 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
16051 cases. The correct fix is to pass ReparentNotify to Xt.
16052 The shell widget interprets ConfigureNotify differently depending
16053 on if it has been reparented or not.
16054
160552002-10-05 Markus Rost <rost@math.ohio-state.edu>
16056
16057 * editfns.c (Fformat_time_string): Doc fix.
16058
160592002-10-05 John Paul Wallington <jpw@shootybangbang.com>
16060
16061 * fns.c (Flength): Doc fix.
16062
160632002-10-04 Stefan Monnier <monnier@cs.yale.edu>
16064
16065 * keyboard.c (keyremap): New struct.
16066 (read_key_sequence): Use it: globally replace keytran_foo with
16067 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
16068 keytran_next and fkey_next to just `next'.
16069
160702002-10-04 Steven Tamm <steventamm@mac.com>
16071
16072 * macterm.c (keycode_to_xkeysym_table): Change return to be
16073 treated like an X keysym.
16074
160752002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16076
16077 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
16078 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
16079 This is to also handle x/y changes that occur because of a resize.
16080
160812002-10-02 John Paul Wallington <jpw@shootybangbang.com>
16082
16083 * frame.c (Vdelete_frame_functions): New variable.
16084 (syms_of_frame): Initialize and defvar it.
16085 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
16086 it when frame's `tooltip' parameter is non-nil.
16087
16088 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
16089
16090 * w32fns.c (x_create_tip_frame): Likewise.
16091
16092 * macfns.c (x_create_tip_frame): Likewise.
16093
160942002-09-30 Kenichi Handa <handa@m17n.org>
16095
16096 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
16097 -1 before calling ccl_driver.
16098
16099 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
16100 Only when it is non-nil, handle composition sequence.
16101 (setup_coding_system) <0>: Don't force composition handling.
16102
16103 * Makefile.in (lisp, shortlisp): Add utf-16.elc
16104
161052002-09-29 Richard M. Stallman <rms@gnu.org>
16106
16107 * search.c (Freplace_match): Adjust match data for the substitution
16108 just made in the buffer.
16109
16110 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
16111 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
16112
161132002-09-27 Richard M. Stallman <rms@gnu.org>
16114
16115 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
16116 (read_char): Use them. Do all exits thru the end of the function.
16117
161182002-09-27 Kenichi Handa <handa@etl.go.jp>
16119
16120 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
16121 is nil.
16122
161232002-09-26 Richard M. Stallman <rms@gnu.org>
16124
16125 * regex.h (__restrict_arr): Don't define if already defined.
16126
16127 * coding.c (run_pre_post_conversion_on_str):
16128 Save and restore Vdeactivate_mark.
16129
161302002-09-26 John Paul Wallington <jpw@shootybangbang.com>
16131
16132 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
16133
161342002-09-26 Kenichi Handa <handa@etl.go.jp>
16135
16136 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
16137 nonzero, try face's family at first. Otherwise try FAMILY at first.
16138 (choose_face_font): If C is a single byte char or latin-1, call
16139 try_font_list with PREFER_FACE_FAMILY 1.
16140
161412002-09-21 Richard M. Stallman <rms@gnu.org>
16142
16143 * window.c (select_window_1): Don't select frame.
16144 Set frame's selected window only when frame itself is selected.
16145 (Fselect_window): Doc fix.
16146
161472002-09-18 Kim F. Storm <storm@cua.dk>
16148
16149 * process.c (make-network-process): Doc fix (there is no
16150 network-server-log-function hook).
16151
161522002-09-18 Richard M. Stallman <rms@gnu.org>
16153
16154 * print.c (print): Clear out the unused parts of Vprint_number_table.
16155 (syms_of_print): Doc fix for `print-number-table'.
16156
16157 * unexelf.c (unexec): Undo previous change.
16158
161592002-09-17 Andreas Schwab <schwab@suse.de>
16160
16161 * m/alpha.h [LINUX]: Don't define DATA_START.
16162
161632002-09-16 Dave Love <fx@gnu.org>
16164
16165 * unexelf.c (unexec): Deal with .got, reinstating change from
16166 25-08-1999.
16167
161682002-09-13 Richard M. Stallman <rms@gnu.org>
16169
16170 * s/sol2-6.h (UNEXEC): Comment out definition.
16171
16172 * unexsol.c (unexec): Don't downcase first letter of error msg.
16173
16174 * xfaces.c (Fcolor_supported_p): Just one arg is required.
16175
161762002-09-12 Markus Rost <rost@math.ohio-state.edu>
16177
16178 * unexsol.c: Include buffer.h, charset.h, coding.h.
16179
161802002-09-11 Richard M. Stallman <rms@gnu.org>
16181
16182 * unexsol.c: Don't use report_file_error; do it by hand
16183 using dlerror.
16184
16185 * process.c (wait_reading_process_input, both versions):
16186 Before calling turn_on_atimers, call stop_polling.
16187
16188 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
16189
16190 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
16191 we go to too_near_end, call clear_glyph_matrix.
16192 (redisplay_window): After make_cursor_line_fully_visible,
16193 call clear_glyph_matrix and bypass `goto done'.
16194
16195 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
16196 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
16197
161982002-09-10 Richard M. Stallman <rms@gnu.org>
16199
16200 * fileio.c (Fdo_auto_save): Catch error making directory.
16201 Only call push_message if we need to.
16202 At the same time, make an unwind-protect to pop it.
16203 Rename local message_p to old_message_p.
16204 (do_auto_save_make_dir, do_auto_save_eh): New functions.
16205 (do_auto_save_unwind): Don't call pop_message.
16206
16207 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
16208
16209 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
16210
16211 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
16212
16213 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
16214
162152002-09-10 Stefan Monnier <monnier@cs.yale.edu>
16216
16217 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
16218 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
16219 (re_match_2_internal): Be more careful with infinite loops.
16220
162212002-09-10 Kim F. Storm <storm@cua.dk>
16222
16223 * macros.c (end_kbd_macro): New function.
16224 (Fend_kbd_macro): Use it.
16225
16226 * macros.h (end_kbd_macro): Declare extern.
16227
16228 * keyboard.c (Fdiscard_input): If defining keyboard macro,
16229 end and save it instead of discarding it.
16230
162312002-09-09 Markus Rost <rost@math.ohio-state.edu>
16232
16233 * s/sol2-6.h: Fix typo. Add comment.
16234
162352002-09-09 Richard M. Stallman <rms@gnu.org>
16236
16237 * regex.c (regnum_t): Use signed int, not unsigned int.
16238
16239 * s/sol2-6.h: New file.
16240
16241 * s/sol2-5.h (UNEXEC): Definition deleted.
16242
162432002-09-08 Kim F. Storm <storm@cua.dk>
16244
16245 * macros.c (executing_macro_index): Change type to EMACS_INT.
16246 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
16247
16248 * macros.h (executing_macro_index): Change type to EMACS_INT.
16249
162502002-09-06 Richard M. Stallman <rms@gnu.org>
16251
16252 * casetab.c (set_case_table): Make canon table point to eqv table.
16253
162542002-09-06 Juanma Barranquero <lektu@terra.es>
16255
16256 * coding.c (syms_of_coding): Fix spacing.
16257
16258 * composite.c (Fcompose_region_internal)
16259 (Fcompose_string_internal): Likewise.
16260
16261 * data.c (Flsh): Likewise.
16262
16263 * fontset.c (Fset_fontset_font): Likewise.
16264
16265 * macfns.c (Fx_server_max_request_size): Likewise.
16266
16267 * w16select.c (syms_of_win16select): Likewise.
16268
16269 * w32select.c (syms_of_w32select): Likewise.
16270
16271 * xselect.c (syms_of_xselect): Likewise.
16272
162732002-09-05 Richard M. Stallman <rms@gnu.org>
16274
16275 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
16276 call EXTEND_RANGE_TABLE and return a proper value.
16277 (set_image_of_range): Don't call set_image_of_range_1
16278 if no TRANSLATE or if range includes all of Latin-1.
16279 Only call it for the Latin-1 part of the range.
16280 For other cases, make two separate ranges,
16281 one for the original specified characters and one for
16282 their case-conversions.
16283
162842002-09-04 Richard M. Stallman <rms@gnu.org>
16285
16286 * s/sol2-5.h (UNEXEC): Use unexsol.o.
16287
16288 * window.c (displayed_window_lines): Correct for one-off bug
16289 in HEIGHT on non-window displays.
16290
16291 * regex.c (set_image_of_range_1): New function.
16292 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
16293 Return a value to indicate running out of memory.
16294 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
16295 (extend_range_table_work_area): New subroutine.
16296 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
16297 Different calling conventions, and used from set_image_of_range{,_1}.
16298 (IMMEDIATE_QUIT_CHECK): Definitions moved.
16299
163002002-09-04 Juanma Barranquero <lektu@terra.es>
16301
16302 * makefile.w32-in: All dependencies updated.
16303
163042002-09-01 Richard M. Stallman <rms@gnu.org>
16305
16306 * unexsol.c: New file.
16307
16308 * xfns.c (Qbox): Declare external, don't define.
16309
16310 * xdisp.c (redisplay_window) <force-start case>:
16311 If point is on semi-visible last line, reposition
16312 it at previous line.
16313
16314 * alloc.c (display_malloc_warning): Use display-warning.
16315 (malloc_warning_1): Function deleted.
16316
16317 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
16318
16319 * lread.c (read1): Handle #! by skipping the line.
16320
163212002-08-31 Richard M. Stallman <rms@gnu.org>
16322
16323 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
16324 Don't include LDFLAGS.
16325 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
16326
163272002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
16328
16329 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
16330 member of x_display_info unless we compile for some window system.
16331
163322002-08-31 Kim F. Storm <storm@cua.dk>
16333
16334 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
16335 (get_window_cursor_type): Don't use them.
16336 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
16337
163382002-08-30 Kenichi Handa <handa@etl.go.jp>
16339
16340 * xdisp.c (get_next_display_element): Fix previous change.
16341
163422002-08-30 Andrew Choi <akochoi@shaw.ca>
16343
16344 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
16345 (expose_window): Use it to fix the display of overlapping
16346 rows (merge code from xterm.c).
16347
16348 * macfns.c (Qbox): Add extern declaration.
16349
163502002-08-30 Juanma Barranquero <lektu@terra.es>
16351
16352 * w32fns.c (Qbox): Make extern.
16353 (syms_of_w32fns): Remove initialization of Qbox.
16354
163552002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
16356
16357 * xfns.c (Fx_open_connection): Fix error message.
16358
163592002-08-30 Kim F. Storm <storm@cua.dk>
16360
16361 The following changes consolidates the handling of the cursor
16362 type in xdisp.c, moving duplicate code and functionality from
16363 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
16364
16365 * frame.h (enum text_cursor_kinds): Consolidated here.
16366 Added DEFAULT_CURSOR value.
16367 (struct frame) <desired_cursor, cursor_width>
16368 <blink_off_cursor, blink_off_cursor_width>: New fields.
16369 Consolidated from output_x, output_w32 and output_mac structs.
16370 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16371 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
16372
16373 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
16374 Variables consolidated here.
16375 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
16376 (Vcursor_in_non_selected_windows): Renamed from
16377 cursor_in_non_selected_windows and changed to Lisp_Object.
16378 (syms_of_xdisp): Define and staticpro new and moved variables.
16379 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
16380 consolidated here. Recognize Qhollow setting.
16381 (set_frame_cursor_types): New function to set frame cursor types
16382 based on the frame parameters.
16383 (get_window_cursor_type): New function to calculate new cursor
16384 type and width for the specified window. Based on duplicated
16385 code consolidated here.
16386 Enhancements: cursor-in-non-selected-windows may be a cursor type,
16387 check buffer-local alternate-cursor-type and blink-cursor-alist
16388 before using built-in blink off methods.
16389
16390 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
16391
16392 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
16393 (get_specified_cursor_type, get_window_cursor_type)
16394 (set_frame_cursor_types): Added prototypes.
16395
16396 * macfns.c (x_specified_cursor_type): Removed.
16397 (x_set_cursor_type): Use set_frame_cursor_types.
16398 (Qbar, Qbox): Removed.
16399 (syms_of_macfns): Don't intern or staticpro them.
16400
16401 * macterm.c (x_specified_cursor_type): Remove prototype.
16402 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16403 (x_display_and_set_cursor): Use get_window_cursor_type.
16404 Remove unused local variables cursor_non_selected, active_cursor.
16405 Redraw cursor if hbar cursor width changes.
16406 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
16407
16408 * macterm.h (enum text_cursor_kinds): Removed.
16409 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
16410 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16411 (FRAME_DESIRED_CURSOR): Macro removed.
16412
16413 * w32fns.c (Vblink_cursor_alist): Removed.
16414 (Qbar, Qhbar, Qbox, Qhollow): Removed.
16415 (syms_of_w32fns): Don't intern, staticpro, or define them.
16416 (x_specified_cursor_type): Removed.
16417 (x_set_cursor_type): Use set_frame_cursor_types.
16418
16419 * w32term.c (x_specified_cursor_type): Remove prototype.
16420 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16421 (x_display_and_set_cursor): Use get_window_cursor_type.
16422 Remove unused local variables cursor_off_state.
16423 Redraw cursor if hbar cursor width changes.
16424 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
16425
16426 * w32term.h (enum text_cursor_kinds): Removed.
16427 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
16428 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16429 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16430 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
16431 (struct w32_display_info) <x_highlight_frame>: Renamed member from
16432 w32_highlight_frame.
16433
16434 * xfns.c (Vblink_cursor_alist): Removed.
16435 (Qbar, Qhbar, Qbox, Qhollow): Removed.
16436 (syms_of_xfns): Don't intern, staticpro, or define them.
16437 (x_specified_cursor_type): Removed.
16438 (x_set_cursor_type): Use set_frame_cursor_types.
16439
16440 * xterm.c (x_specified_cursor_type): Remove prototype.
16441 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16442 (x_display_and_set_cursor): Use get_window_cursor_type.
16443 Remove unused local variables cursor_off_state.
16444 Redraw cursor if hbar cursor width changes.
16445
16446 * xterm.h (enum text_cursor_kinds): Removed.
16447 (struct output_x) <current_cursor, desired_cursor, cursor_width>
16448 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16449 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16450 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
16451 (x_specified_cursor_type): Remove prototype.
16452
164532002-08-28 Richard M. Stallman <rms@gnu.org>
16454
16455 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
16456 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
16457 (Vblink_cursor_alist): New variable.
16458 (syms_of_w32fns): Initialize and defvar it.
16459 (x_specified_cursor_type): Recognize Qbox for filled box.
16460 Exceptions are hollow boxes.
16461 (Qbox, Qhollow): New variables.
16462 (syms_of_w32fns): Initialize and staticpro them.
16463
16464 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
16465 New macros.
16466 (struct w32_output): New fields blink_off_cursor,
16467 blink_off_cursor_width.
16468 (FRAME_CURSOR_WIDTH): New macro.
16469
16470 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
16471 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
16472
16473 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16474 for bar cursor.
16475
16476 * w32term.c (expose_overlaps): New function.
16477 (expose_window): Use it to fix the display of overlapping rows.
16478
164792002-08-28 Simon Josefsson <jas@extundo.com>
16480
16481 * xfns.c (Fx_open_connection): Improve help when X connection
16482 fails, xhost is insecure and xauth is better.
16483
164842002-08-28 Juanma Barranquero <lektu@terra.es>
16485
16486 * makefile.w32-in: Add missing dependencies on w32term.h and
16487 composite.h.
16488
16489 * emacs.c (USAGE1): Add missing newline.
16490
164912002-08-27 Andrew Choi <akochoi@shaw.ca>
16492
16493 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
16494
164952002-08-27 Richard M. Stallman <rms@gnu.org>
16496
16497 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
16498 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
16499 (Vblink_cursor_alist): New variable.
16500 (syms_of_xfns): Initialize and defvar it.
16501 (x_specified_cursor_type): Recognize Qbox for filled box.
16502 Exceptions are hollow boxes.
16503 (Qbox, Qhollow): New variables.
16504 (syms_of_xfns): Initialize and staticpro them.
16505
16506 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
16507 New macros.
16508 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
16509
16510 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
16511 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
16512
16513 * emacs.c (main): Handle --script.
16514 (USAGE1): Mention --script.
16515 (standard_args): Define sort order for --script.
16516
165172002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
16518
16519 * xdisp.c (redisplay_updating_p): Variable removed.
16520 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
16521 New variables.
16522 (init_iterator): Don't free realized faces if
16523 inhibit_free_realized_faces is set.
16524 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
16525 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
16526 initialize Qinhibit_free_realized_faces.
16527
16528 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
16529 when iterator is adding glyphs to a glyph matrix.
16530
165312002-08-27 Kenichi Handa <handa@etl.go.jp>
16532
16533 * xdisp.c (get_next_display_element): In unibyte case, don't use
16534 octal form for such eight-bit characters that can be converted to
16535 multibyte char.
16536
165372002-08-26 Kim F. Storm <storm@cua.dk>
16538
b6189c3b
KS
16539 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
16540 foreground and background colors. From Joe Buehler.
048addec
JD
16541
165422002-08-26 Miles Bader <miles@gnu.org>
16543
16544 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
16545
165462002-08-25 Andrew Choi <akochoi@shaw.ca>
16547
16548 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
16549 defined instead of MAC_OSX.
16550
16551 * s/darwin.h (select): Define select to sys_select only if
16552 HAVE_CARBON is defined.
16553 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
16554 (DONT_REOPEN_PTY): #def it.
16555
16556 * macterm.c (XTread_socket): Remove code to call
16557 SendEventToEventTarget for keys with command modifiers when
16558 mac_command_key_is_meta is nil.
16559
165602002-08-24 Andreas Schwab <schwab@suse.de>
16561
16562 * eval.c (Fdefvar): Fix last change.
16563
165642002-08-23 Richard M. Stallman <rms@gnu.org>
16565
16566 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
16567 Record variables in load history as (defvar . VAR).
16568 (Fdefvar): Don't record in load history if no initial value.
16569 (Qdefvar): New variable.
16570 (syms_of_eval): Init and staticpro it.
16571
16572 * lread.c (syms_of_lread): Doc fix.
16573 (build_load_history): Use Fmember to see if a definition
16574 is already in the Vload_history element.
16575
16576 * process.c (Fstart_process): Remove /: from program name.
16577
16578 * emacs.c (decode_env_path): Don't add /: if file name handler
16579 has a `safe-magic' property.
16580
16581 * callproc.c (Fcall_process): Remove /: from program name.
16582
165832002-08-23 Stefan Monnier <monnier@cs.yale.edu>
16584
16585 * regex.c (PATFETCH): Remove the translating fetch.
16586 (PATFETCH_RAW): Rename to PATFETCH.
16587 (set_image_of_range): New fun.
16588 (SET_RANGE_TABLE_WORK_AREA): Use it.
16589 (regex_compile): Don't translate the pattern chars so eagerly.
16590 Only do it when inserting an `exactn' bytecode or when handling
16591 a char-range.
16592 (mutually_exclusive_p): Avoid empty statement.
16593
165942002-08-22 Kim F. Storm <storm@cua.dk>
16595
16596 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
16597 end up on a partially visible line; this reverts a specific part
16598 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
16599 display error which has been reported several times now.
16600 However it introduces the problem that changes was supposed to fix.
16601 See my comments in the source if you want to debug this further.
16602
166032002-08-20 Kenichi Handa <handa@etl.go.jp>
16604
16605 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16606
166072002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
16608
16609 * msdos.c (croak): Add `void' to definition.
16610
c1380aa6 16611 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
16612 Don't define them, they are defined in msdos.c.
16613
16614 * mem-limits.h [MSDOS]: Declare etext.
16615
16616 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
16617 `const' since CORRECT_DIR_SEPS modifies its target.
16618
166192002-08-19 Kim F. Storm <storm@cua.dk>
16620
2fb0ce67 16621 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
16622 KEEP-RECORD to avoid clearing lossage when we just want to clear
16623 the current key sequence (kmacro needs this).
16624
166252002-08-19 Kenichi Handa <handa@localhost>
16626
16627 * composite.c (run_composition_function): Call FUNC if it is fboundp.
16628
16629 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
16630 cons, return Qnil.
16631
166322002-08-17 Richard M. Stallman <rms@gnu.org>
16633
16634 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
16635
16636 * sysdep.c [!VMS]: Include sys/files.h.
16637
16638 * editfns.c (save_restriction_restore): Defend from unchained marker.
16639
16640 * buffer.c (overlays_at): Handle extending vec uniformly.
16641 (overlays_in): Handle extending vec from length 0 as in overlays_at.
16642
166432002-08-15 Andrew Choi <akochoi@shaw.ca>
16644
16645 * mac.c (init_mac_osx_environment): New function.
16646
16647 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
16648
166492002-08-14 Kim F. Storm <storm@cua.dk>
16650
16651 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
16652 executing macro before appending to it (when used from Lisp).
16653 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
16654 which is called prior to each iteration of macro (for kmacro.el).
16655 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
16656
16657 * lisp.h (Fexecute_kbd_macro): Update prototype.
16658
16659 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
16660
166612002-08-14 Kenichi Handa <handa@etl.go.jp>
16662
16663 * xselect.c (QUTF8_STRING): New variable.
16664 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
16665 (x_atom_to_symbol): Likewise.
16666 (x_get_local_selection): New argument local_request. If it is
16667 nonzero, call handler_fn with the second arg nil.
16668 (x_handle_selection_request): Call x_get_local_selection with
16669 local_request 0.
16670 (lisp_data_to_selection_data): Don't encode the string here.
16671 (Fx_get_selection_internal): Call x_get_local_selection with
16672 local_request 1.
16673 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
16674
16675 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
16676
16677 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
16678
166792002-08-13 Richard M. Stallman <rms@gnu.org>
16680
16681 * minibuf.c (Fminibufferp): New function.
16682 (syms_of_minibuf): Defsubr it.
16683 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
16684
166852002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
16686
16687 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
16688
166892002-08-12 Richard M. Stallman <rms@gnu.org>
16690
16691 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
16692 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
16693 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
16694 already.
16695
16696 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
16697
166982002-08-11 Andrew Choi <akochoi@shaw.ca>
16699
16700 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
16701 (Vmac_pass_command_to_system): New variable.
16702 (Vmac_pass_control_to_system): New variable.
16703 (do_mouse_moved): Check wp with is_emacs_window.
16704 (XTread_socket): Check window_ptr with is_emacs_window.
16705 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
16706 events back to Mac Toolbox for processing, depending on values of
16707 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
16708 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
16709 Vmac_pass_control_to_system.
16710
167112002-08-10 Kenichi Handa <handa@etl.go.jp>
16712
16713 * coding.c (unencodable_char_position): New function.
16714 (Funencodable_char_position): New function.
16715 (syms_of_coding): Defsubr Funencodable_char_position.
16716
167172002-08-10 Andrew Choi <akochoi@shaw.ca>
16718
16719 * mac.c (sys_select) [MAC_OSX]: New function.
16720
16721 * macterm.c (MakeMeTheFrontProcess): New function.
16722 (mac_initialize): Call MakeMeTheFrontProcess.
16723
16724 * s/darwin.h: Define select to sys_select.
16725
167262002-08-09 Richard M. Stallman <rms@gnu.org>
16727
16728 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
16729
167302002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
16731
16732 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
16733 end of the buffer.
16734
88fde92a 167352002-08-08 Ken Raeburn <raeburn@gnu.org>
048addec
JD
16736
16737 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
16738
16739 * puresize.h (BASE_PURESIZE): Increase to 910000.
16740
167412002-08-08 Kenichi Handa <handa@etl.go.jp>
16742
16743 * coding.c (Ffind_operation_coding_system): For write-region, if
16744 VISIT is a filename, make it the target.
16745
167462002-08-07 Richard M. Stallman <rms@gnu.org>
16747
16748 * alloc.c (mark_object): Detect long lists for debugging.
16749 (mark_object_loop_halt): New variable.
16750
16751 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
16752
16753 * data.c (Fmake_variable_frame_local): Doc fix.
16754
167552002-08-01 David Ponce <david@dponce.com>
16756
16757 * w32menu.c (local_heap, local_alloc, local_free): New macros.
16758 (malloc_widget_value, free_widget_value)
16759 (w32_free_submenu_strings): Use them.
16760
16761 (push_submenu_start, push_submenu_end, push_left_right_boundary)
16762 (push_menu_pane, push_menu_item, single_keymap_panes)
16763 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
16764 (single_submenu, set_frame_menubar)
16765 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
16766
16767 (Fx_popup_menu): Don't show pop up menu until preceding one is
16768 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
16769
16770 * w32menu.c: Changes adapted from xmenu.c
16771 (set_frame_menubar): First parse all submenus,
16772 then make widget_value trees from them.
16773 Don't allocate any widget_value objects
16774 until we are done with the parsing.
16775 (parse_single_submenu): New function.
16776 (digest_single_submenu): New function.
16777 (single_submenu): Function deleted, replaced by those two.
16778
167792002-08-04 Andrew Choi <akochoi@shaw.ca>
16780
16781 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
16782 returns a valid window pointer before proceeding for keyDown and
16783 autoKey events.
16784
167852002-08-03 Andrew Choi <akochoi@shaw.ca>
16786
16787 * macterm.c (USE_CARBON_EVENTS): New macro.
16788 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
16789 (x_iconify_frame): Call CollapseWindow.
16790 (Vmac_reverse_ctrl_meta): New variable.
16791 (Vmac_wheel_button_is_mouse_2): New variable.
16792 (init_mac_drag_n_drop): New function.
16793 (mac_do_receive_drag): New function.
16794 (mac_handle_service_event): New function.
16795 (init_service_handler): New function.
16796 (mac_to_emacs_modifiers): New function.
16797 (mac_event_to_emacs_modifiers): New function.
16798 (mac_get_mouse_btn): New function.
16799 (mac_convert_event_ref): New function.
16800 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
16801 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
16802 mac_get_mouse_btn.
16803 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
16804
16805 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
16806 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
16807 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
16808 TOOL_BAR_EVENT for MAC_OS as well.
16809 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
16810 as for WINDOWS_NT.
16811 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
16812
16813 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
16814
168152002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
16816
16817 * xdisp.c (forward_to_next_line_start): Fix a condition that
16818 lead to a newline being skipped.
16819
168202002-08-02 Andrew Choi <akochoi@shaw.ca>
16821
16822 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
16823
168242002-08-01 Richard M. Stallman <rms@gnu.org>
16825
16826 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
16827
168282002-07-31 Andrew Choi <akochoi@shaw.ca>
16829
16830 * macfns.c: #undef init_process before #define-ing it.
16831
16832 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
16833 HAVE_CARBON is defined.
16834
168352002-07-31 Richard M. Stallman <rms@gnu.org>
16836
16837 * xmenu.c (set_frame_menubar): First parse all submenus,
16838 then make widget_value trees from them.
16839 Don't allocate any widget_value objects
16840 until we are done with the parsing.
16841 (parse_single_submenu): New function.
16842 (digest_single_submenu): New function.
16843 (single_submenu): Function deleted, replaced by those two.
16844
168452002-07-30 Juanma Barranquero <lektu@terra.es>
16846
16847 * w32proc.c (syms_of_ntproc): Fix docstring of
16848 `w32-get-true-file-attributes'.
16849
168502002-07-28 Richard M. Stallman <rms@gnu.org>
16851
16852 * s/hpux8.h (HPUX8): Define this before including hpux.h.
16853 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
16854
16855 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
16856
16857 * keyboard.c (make_lispy_event):
16858 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
16859 Explicitly clear up_modifier in event->modifiers.
16860
168612002-07-27 Richard M. Stallman <rms@gnu.org>
16862
16863 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
16864
16865 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16866 for bar cursor.
16867
168682002-07-26 Kenichi Handa <handa@etl.go.jp>
16869
16870 * coding.c (detect_coding_iso2022): While checking a byte sequence
16871 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
16872 it in the normal loop.
16873
168742002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
16875
16876 * xterm.c (expose_overlaps): New function.
16877 (expose_window): Use it to fix the display of overlapping rows.
16878
16879 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
16880
168812002-07-23 Ken Raeburn <raeburn@gnu.org>
16882
16883 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
16884 since it only depends on XUINT.
16885
16886 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
16887 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
16888 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
16889 Macros deleted.
3947677c 16890
77d1daf2
AS
16891 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
16892 its value over other approaches.
16893 * sysdep.c (start_of_data): Don't define the function if a macro
16894 form has been defined.
8a8e19a3 16895
048addec
JD
168962002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
16897
16898 * xdisp.c (redisplay_updating_p): New variable.
16899 (init_iterator): Don't free realized faces when
16900 redisplay_updating_p is set.
16901 (redisplay_internal): Set redisplay_updating_p while updating
16902 the display.
16903
169042002-07-23 Richard M. Stallman <rms@gnu.org>
16905
16906 * editfns.c (Fmessage): Treat "" like nil.
16907
169082002-07-23 Kenichi Handa <handa@etl.go.jp>
16909
16910 * xdisp.c (face_before_or_after_it_pos):
16911 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16912
169132002-07-22 Juanma Barranquero <lektu@terra.es>
16914
16915 * callproc.c (init_callproc) [DOS_NT]:
16916 Initialize Vshared_game_score_directory to nil.
16917 (syms_of_callproc) [DOS_NT]: Likewise.
16918
169192002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
16920
16921 * xdisp.c (display_line): Replace an abort with xassert.
16922
169232002-07-21 Richard M. Stallman <rms@gnu.org>
16924
16925 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
16926 and END_UNCHANGED when setting buffer_unchanged_p.
16927 Use current_matrix_up_to_date_p to decide whether to use
16928 try_cursor_movement.
16929
16930 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
16931
16932 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
16933
16934 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
16935 Set to nil if dir does not exist.
16936 (syms_of_callproc): Init unconditionally and simply.
16937
16938 * buffer.c (Fbuffer_list): Doc fix.
16939
169402002-07-21 Ken Raeburn <raeburn@gnu.org>
16941
16942 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
16943
16944 * buffer.c (mmap_realloc): When shrinking, make sure number of
16945 pages to unmap is rounded towards zero.
16946
16947 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
16948 (XSETINT): Deleted.
16949
16950 * m/att3b.h (XINT): Don't define.
16951 (VALBITS, VALMASK, XTYPE): Deleted.
16952 (DATA_SEG_BITS): Define.
16953 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
16954 ARRAY_MARK_FLAG): Deleted.
16955 (DATA_SEG_BITS): Define.
16956 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
16957 (DATA_SEG_BITS): Define.
16958
169592002-07-20 Richard M. Stallman <rms@gnu.org>
16960
16961 * print.c (print_error_message): New args CONTEXT and CALLER.
16962 Calls changed.
16963
16964 * lisp.h (print_error_message): Declare new args.
16965
16966 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
16967 and CONTEXT to print_error_message, don't print them here.
16968 For a Quit, don't use Vsignaling_function.
16969 Call message_log_maybe_newline.
16970
16971 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
16972
169732002-07-20 Kim F. Storm <storm@cua.dk>
16974
16975 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
16976
169772002-07-19 Ken Raeburn <raeburn@gnu.org>
16978
16979 * bytecode.c (struct byte_stack): Pointers into byte string now
16980 point to const.
16981 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
16982 const.
16983 * charset.h (BCOPY_SHORT): Source pointer now points to const.
16984 * coding.c (encode_eol, detect_coding, detect_eol):
16985 (decode_coding, encode_coding, detect_coding_system):
16986 Source strings now treated as const.
16987 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
16988 modify Lisp string contents.
16989 * coding.h (decode_coding, encode_coding, detect_coding,
16990 detect_eol): Declarations updated.
16991 * composite.c (compose_chars_in_text): Treat Lisp string contents
16992 as const.
16993 * dispnew.c (safe_bcopy): Source pointer now points to const.
16994 * lisp.h (STRING_COPYIN): New macro.
16995 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
16996 (internal_with_output_to_temp_buffer): Declarations updated.
16997 * print.c (temp_output_buffer_setup):
16998 (internal_with_output_to_temp_buffer): Buffer name argument is now
16999 pointer to const.
17000 * sound.c (struct sound_device): Function pointer field "write"
17001 buffer argument now points to const.
17002 (vox_write): Buffer argument points to const.
17003 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
17004 contents as const.
17005 * sysdep.c (emacs_write): Buffer pointer now const.
17006 * term.c (encode_terminal_code): Buffer pointer now const.
17007 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
17008 (x_face_list_fonts, x_update_menu_appearance):
17009 (hash_string_case_insensitive): Treat Lisp string contents as const.
17010
170112002-07-19 Juanma Barranquero <lektu@terra.es>
17012
048addec
JD
17013 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
17014
17015 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
17016 (Ffile_name_as_directory): Fix argument name in docstring.
17017 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
17018
170192002-07-18 Richard M. Stallman <rms@gnu.org>
17020
17021 * data.c (Fdefalias): Doc fix.
17022
170232002-07-17 Dave Love <fx@gnu.org>
17024
17025 * intervals.h (text_property_stickiness): Use P_.
17026
17027 * ccl.c: Remove `emacs' conditionals.
17028 (ccl_backtrace_table): Fix size spec.
17029 (ccl_driver): Fix type errors.
17030
170312002-07-16 Ken Raeburn <raeburn@gnu.org>
17032
17033 * alloc.c (xstrdup, make_string, make_unibyte_string)
17034 (make_multibyte_string, build_string): String pointer args now
17035 point to const.
17036 * charset.c (find_charset_in_text, c_string_width):
17037 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
17038 * fileio.c (report_file_error):
17039 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
17040 (count_combining_before, count_combining_after, insert_1_both):
17041 (insert, insert_and_inherit, insert_string):
17042 (insert_before_markers, insert_before_markers_and_inherit):
17043 * lread.c (intern, oblookup, hash_string):
17044 * minibuf.c (temp_echo_area_glyphs):
17045 * search.c (fast_c_string_match_ignore_case):
17046 * sysdep.c (emacs_open, set_file_times):
17047 * xfaces.c (xstricmp):
17048 * xdisp.c (store_frame_title, string_char_and_length):
17049 (message_dolog, message2, message2_nolog, set_message): Likewise.
17050 (set_message_1): Cast message string argument to const pointer.
17051 * editfns.c (general_insert_function): Insertion function now
17052 takes pointer to const for input data.
17053 * charset.h (find_charset_in_text, c_string_width):
17054 (parse_str_as_multibyte): Declarations updated.
17055 * dispextern.h (xstricmp): Declaration updated.
17056 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
17057 (count_size_as_multibyte, count_combining_before):
17058 (count_combining_after, insert_1, insert_1_both, message_dolog):
17059 (insert, insert_and_inherit, insert_before_markers)
17060 (insert_before_markers_and_inherit, set_message, message2):
17061 (message2_dolog, build_string, make_string, make_unibyte_string):
17062 (make_multibyte_string, intern, oblookup, report_file_error):
17063 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
17064 (emacs_open, xstrdup): Declarations updated.
17065 * systime.h (set_file_times): Declaration updated.
17066
17067 * charset.c (find_charset_in_text, lisp_string_width): Use const
17068 for pointer to lisp string data.
17069 * charset.h (FETCH_STRING_CHAR_ADVANCE):
17070 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
17071 * coding.c (Ffind_coding_systems_region_interval):
17072 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
17073 (Fmake_directory_internal, Fdelete_directory):
17074 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
17075 * fontset.c (font_family_registry, fs_query_fontset):
17076 (list_fontsets):
17077 * frame.c (Fframe_parameter):
17078 * keyboard.c (cmd_error_internal):
17079 * keymap.c (Fdescribe_buffer_bindings):
17080 * lread.c (complete_filename_p, openp):
17081 * minibuf.c (Fminibuffer_complete_word):
17082 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
17083 (face_before_or_after_it_pos, next_element_from_string):
17084 (get_overlay_arrow_glyph_row, display_mode_element):
17085 (decode_mode_spec_coding):
17086 * xterm.c (same_x_server): Likewise.
17087
17088 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
17089 settings of non-existent fields.
17090
17091 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
17092 copy a lisp value.
17093
17094 * lread.c (Fintern_soft): Use string macros instead of
17095 Lisp_String fields.
17096 * keyboard.c (echo_char, parse_modifiers_uncached):
17097 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
17098 * textprop.c (validate_interval_range, interval_of): Likewise.
17099
17100 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
17101
17102 * charset.h (FETCH_STRING_CHAR_ADVANCE)
17103 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
17104 XSTRING()->size_byte.
17105
17106 * lisp.h (SDATA, SREF): Produce rvalue.
17107 (SSET): New macro.
17108 * alloc.c (make_event_array): Use SSET for storing into a string.
17109 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
17110 a string.
17111 * casefiddle.c (casify_object): Use SSET.
17112 * charset.h (FETCH_STRING_CHAR_ADVANCE)
17113 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
17114 address of string contents.
17115 * data.c (Faref): Use SDATA.
17116 (Faset): Use SDATA, SSET.
17117 * dired.c (directory_files_internal): Use SSET.
17118 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
17119 (Fread_file_name): Use SREF, SSET.
17120 * fns.c (concat): Use SSET.
17121 (concat, Fdelete): Use SDATA.
17122 * insdel.c (insert_from_string_1): Use SDATA.
17123 * keyboard.c (Fevent_convert_list): Use SREF.
17124 * lread.c (Fload): Use SDATA, SSET.
17125 * macfns.c (validate_x_resource_name): Use SSET.
17126 * process.c (status_message): Use SSET.
17127 * search.c (wordify): Use SDATA.
17128 (Freplace_match): Use SREF.
17129 * w32fns.c (validate_x_resource_name): Use SSET.
17130 * xfns.c (validate_x_resource_name): Use SSET.
17131 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
17132
171332002-07-16 Richard M. Stallman <rms@gnu.org>
17134
17135 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
17136
17137 * xdisp.c (reconsider_clip_changes):
17138 Don't test prevent_redisplay_optimizations_p.
17139 (redisplay_internal): Test prevent_redisplay_optimizations_p
17140 along with clip_changed in some cases.
17141 (try_window_id): Likewise.
17142 (redisplay_window): New local var buffer_unchanged_p.
17143
17144 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
17145
17146 * process.c (create_process): Test USG_SUBTTY_WORKS.
17147 (process_send_signal): Clean up handling of GID.
17148 Detect errors in ioctls meant to set GID.
17149
17150 * window.c (temp_output_buffer_show):
17151 Don't set prevent_redisplay_optimizations_p.
17152
171532002-07-15 Juanma Barranquero <lektu@terra.es>
17154
17155 * eval.c (Fdefvaralias): Add docstring argument.
17156
171572002-07-15 Ken Raeburn <raeburn@gnu.org>
17158
17159 * lisp.h (STRING_INTERVALS): Produce rvalue.
17160 (STRING_SET_INTERVALS): New macro.
17161 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
17162 * fns.c (Fstring_as_multibyte): Likewise.
17163 * intervals.c (balance_possible_root_interval, delete_interval)
17164 (create_root_interval, copy_intervals_to_string): Likewise.
17165 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
17166 instead of 0.
17167
171682002-07-14 Ken Raeburn <raeburn@gnu.org>
17169
17170 * lisp.h (STRING_SET_CHARS): New macro.
17171 (SCHARS, SBYTES): Produce rvalues.
17172 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
17173 * fns.c (concat): Likewise.
17174 * lread.c (read_vector): Likewise.
17175
3419757d 17176 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 17177 (STRING_SET_UNIBYTE): New macro.
3419757d 17178 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
17179 length of -1) changed to use STRING_SET_UNIBYTE.
17180 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17181 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
17182 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
17183 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
17184 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
17185 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
17186 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
17187 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
17188 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
17189 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
17190 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
17191 STRING_BYTES or indirection changed to SCHARS, SBYTES,
17192 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
17193 unchanged for now.
17194
171952002-07-13 Kim F. Storm <storm@cua.dk>
17196
17197 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
17198
171992002-07-12 Richard M. Stallman <rms@gnu.org>
17200
17201 * fileio.c (Fwrite_region): Doc fix.
17202
17203 * print.c (print_error_message): Don't handle Vsignaling_function here.
17204
17205 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
17206 (command_loop_1): Avoid certain actions after memory-full error.
17207
17208 * eval.c (Fsignal): Don't call cancel_hourglass.
17209 For a memory-full error, don't call Vsignal_hook_function
17210 and don't set Vsignaling_function.
17211
17212 * process.c (process_send_signal): Add abort call.
17213
172142002-07-11 Markus Rost <rost@math.ohio-state.edu>
17215
17216 * keymap.c (Fkey_binding): Fix typo.
17217
172182002-07-11 Richard M. Stallman <rms@gnu.org>
17219
17220 * alloc.c (Vmemory_full): New variable.
3419757d 17221 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
17222 Uses changed.
17223 (syms_of_alloc): Defvar them.
17224 (memory_full, buffer_memory_full): Set Vmemory_full.
17225
17226 * lisp.h (Vmemory_full): Add declaration.
17227 (current_column, indented_beyond_p): Change declaration.
17228
17229 * indent.c (last_known_column): Declare as double, not float.
17230 (current_column, current_column_1, string_display_width)
17231 (position_indentation): Return `double'.
17232 (indented_beyond_p): Arg `column' is `double'. Callers changed.
17233
17234 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
17235 (back_to_previous_visible_line_start)
17236 (reseat_at_next_visible_line_start, next_element_from_buffer):
17237 Use `double', not `float', when calling indented_beyond_p.
17238
3419757d 17239 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
17240
17241 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
17242
172432002-07-11 Juanma Barranquero <lektu@terra.es>
17244
17245 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
17246 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
17247 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
17248 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
17249 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
17250 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
17251
172522002-07-10 Juanma Barranquero <lektu@terra.es>
17253
d814862a
JB
17254 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
17255 All callers changed.
048addec
JD
17256
172572002-07-09 Stefan Monnier <monnier@cs.yale.edu>
17258
17259 * data.c (Fdefalias): Add an optional `docstring' argument.
17260 (set_internal, Fsetq_default): Use XCAR/XCDR.
17261
17262 * composite.c (HASH_VALUE, HASH_KEY):
17263 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
17264
172652002-07-09 Kenichi Handa <handa@etl.go.jp>
17266
17267 * callproc.c (Fcall_process): Fix previous change.
17268
172692002-07-07 Stefan Monnier <monnier@cs.yale.edu>
17270
17271 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
17272 Add support for hash-tables.
17273 (Ftry_completion): Return t even if the string appears multiple times.
17274
17275 * fns.c (Fnconc): Use XCDR.
17276 (Fprovide): Use CONSP and XCDR.
17277 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
17278 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
17279 (Fmake_hash_table): Accept `:size nil'.
17280 (Fmakehash): Delete: moved to subr.el.
17281 (syms_of_fns): Don't defsubr makehash.
17282
17283 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
17284 (HASH_TABLE_SIZE): Move from fns.c.
17285
172862002-07-07 Richard M. Stallman <rms@gnu.org>
17287
17288 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
17289 Instead just return 0 when there is something to be done.
17290 (try_scrolling): If make_cursor_line_fully_visible returns 0,
17291 retry scrolling as if cursor were off the bottom.
17292 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
17293 return CURSOR_MOVEMENT_MUST_SCROLL.
17294 (redisplay_window): If make_cursor_line_fully_visible returns 0,
17295 go to try_to_scroll.
17296
17297 * buffer.c (Fbuffer_local_value): Store current value into its binding
17298 so we get the up-to-date value for the binding that is loaded.
17299
17300 * eval.c (Fdefmacro): Doc fix.
17301
173022002-07-05 Dave Love <fx@gnu.org>
17303
17304 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
17305 correctly.
17306
17307 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
17308 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
17309 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
17310 CCL_LookupCharConstTbl.
17311 (syms_of_ccl): Defvar translation-hash-table-vector.
17312
173132002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17314
17315 * xdisp.c: Remove unused variable `face'.
17316
173172002-07-04 Juanma Barranquero <lektu@terra.es>
17318
17319 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
17320 obsolescence information.
17321
173222002-07-03 Andrew Choi <akochoi@shaw.ca>
17323
17324 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
17325 pattern. Search cache first.
17326 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
17327 for Japanese font.
17328 (XLoadQueryFont): Use it.
17329
173302002-07-02 Richard M. Stallman <rms@gnu.org>
17331
17332 * keymap.c (Fdefine_key): Doc fix.
17333
17334 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
17335
173362002-07-02 Juanma Barranquero <lektu@terra.es>
17337
17338 * keymap.c (syms_of_keymap): Fix typo.
17339
173402002-07-01 Andrew Choi <akochoi@shaw.ca>
17341
17342 * s/darwin.h: Define POSIX_SIGNALS.
17343
17344 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
17345 and FSRefMakePath to convert FSSpec returned with Apple Event to
17346 Posix pathname.
17347 (mac_initialize) [TARGET_API_MAC_CARBON]:
17348 Call init_required_apple_events and disable the `Quit' menu item
17349 provided automatically by the Carbon Toolbox.
17350
173512002-07-01 Dave Love <fx@gnu.org>
17352
17353 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17354 for K&R.
17355
17356 * xterm.c: Fix prototype for K&R.
17357
17358 * term.c (costs_set): Declare static, non-initialized for pcc.
17359
173602002-07-01 Richard M. Stallman <rms@gnu.org>
17361
17362 * keyboard.c (timer_last_idleness_start_time): New variable.
17363 (timer_start_idle): Set that.
17364 (read_key_sequence): Use that to reset timer_idleness_start_time
17365 to previous value.
17366
17367 * window.c (Frecenter): With arg, set optional_new_start.
17368
17369 * xdisp.c (redisplay_internal): Make optional_new_start really work.
17370
17371 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
17372 buffer for completion.
17373
173742002-06-29 Ken Raeburn <raeburn@gnu.org>
17375
17376 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
17377
173782002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17379
17380 * keyboard.c (readable_filtered_events): New function that filters
17381 FOCUS_IN_EVENT depending on parameter.
17382 (readable_events): Calls readable_filtered_events, not filtering
17383 FOCUS_IN_EVENT.
17384 (get_filtered_input_pending): New function, filtering parameter passed
17385 to readable_filtered_events.
17386 (get_input_pending): Calls get_filtered_input_pending, not filtering
17387 FOCUS_IN_EVENT.
17388 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
17389 FOCUS_IN_EVENT.
17390
17391 * xterm.h (struct x_output): Add focus_state.
17392
17393 * xterm.c (x_focus_changed): New function.
17394 (x_detect_focus_change): New function.
17395 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
17396 EnterNotify and LeaveNotify to track X focus changes.
17397
173982002-06-28 Andreas Schwab <schwab@suse.de>
17399
17400 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
17401
174022002-06-27 Kim F. Storm <storm@cua.dk>
17403
52eb0373 17404 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
17405 (mode_line_string_face_prop): New variables.
17406 (store_mode_line_string): New function.
17407 (display_mode_element): Use store_mode_line_string to
17408 add mode-line string elements to mode_line_string_list
17409 when mode_line_string_list is non-nil.
17410 (Fformat_mode_line): Now returns propertized string by
17411 default. New arg NO-PROPS to ignore properties.
17412 (decode_mode_spec): Only add two dashes for %- in propertized
17413 mode-line string.
17414 (syms_of_xdisp): Init and staticpro mode_line_string_list.
17415
174162002-06-27 Stefan Monnier <monnier@cs.yale.edu>
17417
17418 * minibuf.c (minibuffer_completion_contents): Add return type.
17419
174202002-06-27 Juanma Barranquero <lektu@terra.es>
17421
17422 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
17423
174242002-06-26 Juanma Barranquero <lektu@terra.es>
17425
17426 * fileio.c (read_file_name_cleanup): Add missing return.
17427
174282002-06-26 Richard M. Stallman <rms@gnu.org>
17429
17430 * window.c (Frecenter): Don't set force_start flag.
17431
17432 * minibuf.c (do_completion, Fminibuffer_complete_word)
17433 (Fminibuffer_completion_help): Complete just the text before point.
17434 (minibuffer_completion_contents): New function.
17435
17436 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
17437
17438 * frame.c (frames_bury_buffer): Function deleted.
17439
174402002-06-25 Miles Bader <miles@gnu.org>
17441
17442 * callint.c (Fcall_interactively): When checking to see if doprnt hit
17443 the end of callint_message, allow for a terminating '\0'.
17444
174452002-06-24 Juanma Barranquero <lektu@terra.es>
17446
52eb0373 17447 * w32select.c: Include composite.h.
048addec
JD
17448
17449 * w16select.c: Likewise.
17450
174512002-06-24 Kenichi Handa <handa@etl.go.jp>
17452
17453 * callproc.c (Fcall_process): If code detection is necessary,
17454 call detect_coding directly here.
17455
17456 * coding.c (detect_eol): Preserve coding->cmp_data.
17457
17458 * w16select.c (Fw16_get_clipboard_data):
17459 * w32fns.c (w32_to_x_font):
17460 * w32select.c (Fw32_get_clipboard_data):
17461 * xselect.c (selection_data_to_lisp_data):
17462 * xterm.c (XTread_socket): Disable composition handling.
17463
174642002-06-24 Stefan Monnier <monnier@cs.yale.edu>
17465
17466 * print.c (temp_output_buffer_setup): Kill all local variables.
17467
174682002-06-22 Stefan Monnier <monnier@cs.yale.edu>
17469
17470 * lread.c (Fread): Remove redundant and imprecise declaration.
17471
17472 * xfns.c (check_x_display_info): Use check_x_frame.
17473
17474 * .gdbinit (xprintsym): Use the new `xname' field.
17475 (xsymbol): Use it.
17476
174772002-06-22 Jason Rumney <jasonr@gnu.org>
17478
17479 * w32fns.c (file_dialog_callback): New function.
17480 (Fx_file_dialog): Allow selecting directories as well as files.
17481
174822002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17483
17484 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 17485 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
17486
174872002-06-17 Andrew Choi <akochoi@shaw.ca>
17488
17489 * macterm.c (mac_scroll_area): Set foreground and backcolor to
17490 black and white before scrolling. Restore frame background and
17491 foreground color after scrolling.
17492 (do_window_update): Call XClearWindow before calling expose_frame.
17493 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
17494 FRAME_FOREGROUND_PIXEL of frame.
17495
17496 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
17497 test Mac command key as <ALT> key.
17498
174992002-06-17 Stefan Monnier <monnier@cs.yale.edu>
17500
17501 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
17502
17503 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
17504 Lookup keys in function-key-map immediately so that key-translation-map
17505 can be applied earlier.
17506 Remove function_key_possible and key_translation_possible, replaced
17507 by checking `keytran_start < t'.
17508
17509 * .gdbinit (xsymbol): Use the new `xname' field.
17510
175112002-06-17 Andrew Choi <akochoi@shaw.ca>
17512
17513 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
17514 test Mac command key as <ALT> key.
17515
17516 * mac.c (do_applescript): Call initialize_applescript if necessary
17517 when first called. Dispose of result_desc only when there is no error.
17518 (Fdo_applescript): Use %d format specifier instead of %ld.
17519
175202002-06-16 Andrew Choi <akochoi@shaw.ca>
17521
17522 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
17523 of FrontWindow for cases keyDown and autoKey.
17524
17525 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
17526 Vdefault_fontset to Monaco with mac-roman coding.
17527
17528 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
17529 init_process before and after inclusion of Carbon/Carbon.h, resp.
17530
17531 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
17532 cursor_gc.
17533 (add_font_name_table_entry): New function.
17534 (init_font_name_table): Use add_font_name_table_entry; add italic,
17535 bold, and bold-italic entries for truetype fonts.
17536
17537 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
17538 for Mac too.
17539 (try_font_list) [MAC_OS]: If no font matches given registry, try
17540 fonts with any registry matching face_family.
17541 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
17542
17543 * s/darwin.h: If autoconf detects the Ncurses library, define
17544 LIBS_TERMCAP to -lncurses to use it.
17545
175462002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
17547
17548 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
17549
175502002-06-15 Richard M. Stallman <rms@gnu.org>
17551
17552 * window.c (Fset_window_configuration): Explicitly preserve
17553 the point value that new_current_buffer had at the start.
17554
175552002-06-14 Juanma Barranquero <lektu@terra.es>
17556
17557 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
17558 Fix typos.
17559
175602002-06-14 Kim F. Storm <storm@cua.dk>
17561
17562 * insdel.c (insert_1_both, insert_from_string_1)
17563 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
17564 insert happened in the end_unchanged region. Otherwise, the
17565 redisplay may be confused and duplicate the last line in the
17566 buffer [seen after save-buffer when require-final-newline==t].
17567
175682002-06-13 Jason Rumney <jasonr@gnu.org>
17569
17570 * w32.c (init_environment): Remove EMACSLOCKDIR.
17571 (stat): Swap _S_IFDIR and _S_IFREG.
17572
175732002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17574
17575 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
17576 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
17577 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
17578 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
17579 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
17580 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
17581 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
17582 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
17583 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
17584 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
17585 SELECTION_REQUEST_EVENT, selection_clear_event to
17586 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
17587 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
17588 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
17589 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
17590 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
17591 no_event to NO_EVENT.
17592
175932002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17594
17595 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
17596
175972002-06-12 Stefan Monnier <monnier@cs.yale.edu>
17598
17599 * intervals.c (textget): Don't forget to `return'.
17600 (lookup_char_property): Use XCAR/XCDR.
17601
176022002-06-12 Juanma Barranquero <lektu@terra.es>
17603
17604 * xdisp.c (Fformat_mode_line): Fix typo.
17605
176062002-06-12 Kim F. Storm <storm@cua.dk>
17607
17608 * xdisp.c (Fformat_mode_line): New function.
17609 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
17610 (store_frame_title_char, store_frame_title): Use unconditionally.
17611 (init_xdisp): Defsubr Fformat_mode_line.
17612 Initialize frame_title_buf etc. unconditionally.
17613
176142002-06-11 Stefan Monnier <monnier@cs.yale.edu>
17615
17616 * keyboard.c (read_key_sequence):
17617 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
17618 things through those maps after downcasing events.
17619 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
17620 applies after function-key-map.
17621 Make sure that keytran can be done in the middle in the sequence.
17622 Be careful not to throw away events past the one we downcase.
17623
17624 * lread.c (read_integer): Remove unused var `tem'.
17625 (read1): Fix int/Lisp_Object mixup.
17626
17627 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
17628
176292002-06-11 Richard M. Stallman <rms@gnu.org>
17630
17631 * keyboard.c (readable_events): Ignore any number of
17632 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
17633
176342002-06-09 Miles Bader <miles@gnu.org>
17635
17636 * xfaces.c (Ftty_supports_face_attributes_p): New function.
17637 (parse_rgb_list, tty_lookup_color): New functions.
17638 (tty_defined_color): Use `tty_lookup_color' to do all the work.
17639 (color_distance, Fcolor_distance): New functions.
17640 (TTY_SAME_COLOR_THRESHOLD): New macro.
17641 (Qtty_color_standard_values): New variable.
17642 (syms_of_xfaces): Initialize new vars & functions.
17643
176442002-06-08 Colin Walters <walters@verbum.org>
17645
17646 * textprop.c (Vchar_property_alias_alist): New variable.
17647 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
17648
17649 * intervals.c (lookup_char_property): New function for looking up
17650 overlay and text properties, created from textget.
17651 (textget): Use it.
17652
17653 * intervals.h (lookup_char_property): Declare.
17654 (Vchar_property_alias_alist): Declare.
17655
17656 * buffer.c (Foverlay_get): Use lookup_char_property.
17657
176582002-06-07 Sam Steingold <sds@gnu.org>
17659
17660 * xselect.c (lisp_data_to_selection_data): Fix last change:
17661 *data_ret is not a Lisp string, while unibyte_string is.
17662
176632002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
17664
17665 * xselect.c (lisp_data_to_selection_data): Fix last change:
17666 set size_ret.
17667
176682002-06-07 Andreas Schwab <schwab@suse.de>
17669
17670 * m/amdx86-64.h: New file.
17671
176722002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
17673
17674 * fns.c (Fstring_make_unibyte): Doc fix.
17675
17676 * xselect.c (lisp_data_to_selection_data): If the requested type
17677 is STRING, call string_make_unibyte to encode the selected text
17678 as a string.
17679
17680 * window.c (Fset_window_hscroll): Doc fix.
17681
176822002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17683
17684 * fileio.c (choose_write_coding_system):
17685 Call select-safe-coding-system properly.
17686
176872002-06-03 Richard M. Stallman <rms@gnu.org>
17688
17689 * xdisp.c (message_with_string): Error if STRING is not a string.
17690
17691 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
17692
17693 * fileio.c (choose_write_coding_system): Pass FILE arg to
17694 Vselect_safe_coding_system_function.
17695
176962002-06-03 Ken Raeburn <raeburn@gnu.org>
17697
17698 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
17699
177002002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
17701
17702 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
17703 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
17704 * keymap.c (describe_command): Likewise.
17705 * minibuf.c (read_minibuf): Likewise.
17706
17707 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
17708 Cast `current_column' return value to int.
17709 (back_to_previous_visible_line_start)
17710 (reseat_at_next_visible_line_start, next_element_from_buffer):
17711 Cast `indented_beyond_p' 3rd arg to float.
17712
17713 * indent.c (last_known_column): Now a float.
17714 (current_column_1, position_indentation, current_column)
17715 (string_display_width): Return float.
17716 (Fcurrent_column): Cast `current_column' return value to int.
17717 (Fcurrent_indentation): Cast `position_indentation' retval to int.
17718 (indented_beyond_p): Third arg now a float.
17719 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
17720
17721 * lisp.h (current_column): Now returns float.
17722 (indented_beyond_p): 3rd arg now a float.
17723
177242002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
17725
17726 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
17727 is Qcompound_text_with_extensions.
17728
17729 * xselect.c (lisp_data_to_selection_data): Always set selection
17730 type as string if x_encode_text returns streingp non-NULL.
17731
17732 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
17733
177342002-05-30 Richard M. Stallman <rms@gnu.org>
17735
17736 * window.c (Fset_window_configuration): Correct the handling
17737 of point in current buffer, to work with multiple windows.
17738
177392002-05-29 Colin Walters <walters@verbum.org>
17740
17741 * lread.c (Fread_from_string): Don't depend on order of evaluation
17742 for C function parameters.
17743
177442002-05-28 Richard M. Stallman <rms@gnu.org>
17745
17746 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
17747 way for blinked-off state and for a nonselected window.
17748
17749 * window.c (window_scroll_pixel_based): Don't call Fbolp;
17750 instead, see if the new start pos is at beginning of line.
17751
17752 * fileio.c (Fwrite_region): If START is a string, don't
17753 make any annotations.
17754
17755 * eval.c (syms_of_eval): Doc fix.
17756
177572002-05-28 Colin Walters <walters@debian.org>
17758
17759 * emacs.c (USAGE1): Add --no-splash.
17760 (standard_args): Ditto.
17761
177622002-05-28 Colin Walters <walters@gnu.org>
17763
17764 * lread.c (readchar_count): New variable.
17765 (readchar): Increment it.
17766 (unreadchar): Decrement it.
17767 (read_multibyte): Decrement it.
17768 (Vread_with_symbol_positions): New variable.
17769 (Vread_symbol_positions_list): New variable.
17770 (read_internal_start): New function, created from Fread and
17771 Fread_from_string. Handle Vread_symbol_positions_list and
17772 Vread_with_symbol_positions.
17773 (readevalloop, Fread, Fread_from_string): Use it.
17774 (read1): Use readchar_count to add symbol positions to
17775 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
17776 (syms_of_lread): DEFVAR_LISP and initialize them.
17777
17778 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
17779 (substitute_object_recurse, substitute_object_in_subtree)
17780 (substitute_in_interval): Prototype.
17781 (read_multibyte): Return c if it's less than zero.
17782
177832002-05-28 Kim F. Storm <storm@cua.dk>
17784
17785 * fileio.c (Fread_file_name_internal): Added brute-force
17786 speed up for using predicate file-directory-p.
17787
177882002-05-28 Kim F. Storm <storm@cua.dk>
17789
17790 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
17791 New variables.
17792 (syms_of_fileio): DEFVAR_LISP them.
17793 (read_file_name_cleanup): New unwind function.
17794 (Fread_file_name_internal): Only return completions satifying
17795 Vread_file_name_predicate. Temporarily unwind protect and rebind
17796 default-directory while checking completions against the predicate.
17797 (Fread_file_name): Added PREDICATE argument. Specbind it to
17798 Vread_file_name_predicate during completion.
17799 Call Vread_file_name_function to read the file name if non-nil.
17800
17801 * lisp.h (Fread_file_name): Now has 6 args.
17802
17803 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
17804 predicate for Fread_file_name when reading directory name.
17805 Supply Qnil for predicate in other calls to Fread_file_name.
17806
178072002-05-26 Miles Bader <miles@gnu.org>
17808
17809 * term.c (tty_capable_p): New function.
17810 * dispextern.h (tty_capable_p): New function declaration.
17811 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
17812 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
17813
178142002-05-23 Stefan Monnier <monnier@cs.yale.edu>
17815
17816 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
17817 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
17818 (Vwrite_region_annotate_functions): Docstring fix.
17819
178202002-05-23 Kim F. Storm <storm@cua.dk>
17821
17822 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
17823 phys_cursor's hpos is overwritten. This is still not completely
17824 correct, as it doesn't really make sense to use hpos at all to
17825 get the cursor glyph (as that is relative to the width of the
17826 characters on the line, which may have changed during the update).
17827
178282002-05-22 Jason Rumney <jasonr@gnu.org>
17829
17830 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
17831 Lisp_Object.
17832 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
17833 Use modified enumfont_t struct.
17834
17835 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
17836
17837 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
17838 Handle the `hbar' cursor type.
17839 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
17840
17841 * w32fns.c (Qhbar): New variable.
17842 (x_specified_cursor_type): Use it.
17843
178442002-05-21 Ken Raeburn <raeburn@gnu.org>
17845
17846 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
17847 now, when the address is needed.
17848
178492002-05-21 Colin Walters <walters@gnu.org>
17850
17851 * Makefile.in (shortlisp): Add font-core.el.
17852
178532002-05-20 Richard M. Stallman <rms@gnu.org>
17854
17855 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
17856
17857 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
17858 equivalent key bindings here.
17859
178602002-05-20 Ken Raeburn <raeburn@gnu.org>
17861
17862 Change symbol structure to contain a lisp object for the symbol
17863 name:
17864 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
17865 object field named "xname".
17866 (SYMBOL_NAME): New macro.
17867 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
17868 name field.
17869 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
17870 (mark_object, gc_sweep): Use symbol xname field and XSTRING
17871 instead of name field.
17872 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
17873 SYMBOL_NAME instead of XSYMBOL and name field.
17874 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
17875 instead of XSYMBOL and name field.
17876 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
17877 and SYMBOL_NAME instead of XSYMBOL and name field.
17878 * coding.c (Fread_coding_system, code_convert_region1)
17879 (code_convert_string1, code_convert_string_norecord)
17880 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
17881 XSYMBOL and name field.
17882 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
17883 (Fmake_variable_buffer_local, Fmake_local_variable)
17884 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
17885 of XSYMBOL and name field.
17886 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
17887 XSYMBOL and name field.
17888 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
17889 instead of XSYMBOL and name field.
17890 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
17891 XSYMBOL and name field.
17892 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
17893 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17894 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
17895 instead of XSYMBOL and name field.
17896 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
17897 (parse_modifiers, apply_modifiers, Fevent_convert_list)
17898 (parse_solitary_modifier, Fexecute_extended_command):
17899 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17900 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
17901 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
17902 of XSYMBOL and name field.
17903 (describe_command, describe_translation): Use SYMBOL_NAME and
17904 assignment instead of XSYMBOL and name field and XSETSTRING.
17905 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
17906 instead of XSYMBOL and name field.
17907 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
17908 name field and XSETSTRING.
17909 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17910 of XSYMBOL and name field.
17911 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
17912 assignment instead of XSYMBOL and name field and XSETSTRING.
17913 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
17914 XSTRING instead of XSYMBOL and name field.
17915 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
17916 and XSTRING instead of XSYMBOL and name field.
17917 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
17918 and XSTRING instead of XSYMBOL and name field.
17919 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
17920 XSTRING instead of XSYMBOL and name field.
17921 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17922 of XSYMBOL and name field.
17923 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
17924 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17925
179262002-05-19 Ken Raeburn <raeburn@gnu.org>
17927
17928 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
17929 and XCDR real rvalues in most configurations.
17930
17931 * buffer.c (fix_overlays_in_range, fix_overlays_before):
17932 Don't take the address of the cdr part of a cons cell; instead, track
17933 the parent cell and call XSETCDR, or set the variable for the head
17934 of the list if we haven't started down the list yet.
17935
179362002-05-19 Richard M. Stallman <rms@gnu.org>
17937
17938 * doc.c (reread_doc_file): Don't ask for confirmation.
17939
179402002-05-18 Jason Rumney <jasonr@gnu.org>
17941
17942 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
17943 (xbm_load_image): Use it.
17944 (xbm_load): Ditto.
17945 (xbm_read_bitmap_data): Reverted to xfns.c version.
17946 From David Ponce <david@dponce.com>.
17947
179482002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
17949
17950 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
17951 2.02 and later.
17952
179532002-05-16 Juanma Barranquero <lektu@terra.es>
17954
17955 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
17956
179572002-05-15 Stefan Monnier <monnier@cs.yale.edu>
17958
17959 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
17960 meaningful test.
17961 (read_char_minibuf_menu_prompt): Fix typo.
17962
179632002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
17964
17965 * eval.c (Fcommandp): Doc fix.
17966
179672002-05-13 Stefan Monnier <monnier@cs.yale.edu>
17968
17969 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
17970 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
17971 (Fset_keymap_parent): Gcpro a bit more.
17972 (access_keymap): Gcpro around meta_map call and around the main loop.
17973 (get_keyelt): Gcpro when following indirect references.
17974 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
17975 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
17976 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
17977 Remove useless ad-hoc remap code.
17978
179792002-05-13 Richard M. Stallman <rms@gnu.org>
17980
17981 * search.c (search_buffer): Give up boyer moore search if inverse
17982 translation change charset_base.
17983
179842002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
17985
17986 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
17987 characters is carried over from the previous block of text, adjust
17988 coding->produced to account for the extra character.
17989
179902002-05-11 Andreas Schwab <schwab@suse.de>
17991
17992 * coding.c (intersection): Keep the elements of the returned list
17993 in the same order as in the first list.
17994
179952002-05-11 Kim F. Storm <storm@cua.dk>
17996
3419757d 17997 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
17998 only update cmm_size if realloc actually succeeds.
17999 Testing with initial size of 2 elements revealed that using
18000 realloc on GNU/Linux would cause a random trap in xmalloc
18001 later on, so I rewrote the code to use malloc/bcopy/free instead
18002 of realloc.
18003
180042002-05-10 Jason Rumney <jasonr@gnu.org>
18005
18006 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
18007
180082002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
18009
18010 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
18011 parens, to ensure correct evaluation order.
18012
180132002-05-10 Kim F. Storm <storm@cua.dk>
18014
18015 * keymap.c (Vemulation_mode_map_alists): New variable.
18016 (syms_of_keymap): DEFVAR_LISP it.
18017 (current_minor_maps): Process keymap alists in that list before
18018 minor-mode-overriding-map-alist and minor-mode-map-alist.
18019
180202002-05-09 Richard M. Stallman <rms@gnu.org>
18021
18022 * search.c (Freplace_match): Doc fix.
18023
180242002-05-09 Kim F. Storm <storm@cua.dk>
18025
18026 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18027 Enlarge cursor rectangle drawn around image with non-zero relief.
18028
18029 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
18030 Enlarge cursor rectangle drawn around image with non-zero relief.
18031
18032 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18033 Enlarge cursor rectangle drawn around image with non-zero relief.
18034
180352002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
18036
18037 * xselect.c (lisp_data_to_selection_data): Don't set selection
18038 type if comes from the Lisp object's car. If the selection
18039 contains a pure ASCII text, always return QSTRING as its type.
18040
180412002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18042
18043 * mac.c (mac-cut-function): Doc fix.
18044
180452002-05-05 Richard M. Stallman <rms@gnu.org>
18046
18047 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
18048
180492002-05-04 Jason Rumney <jasonr@gnu.org>
18050
18051 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
18052 for event-click-count.
18053
18054 * process.c (init_process): Only add server subfeature if we can
18055 use non-blocking I/O.
18056
180572002-05-04 Andrew Choi <akochoi@shaw.ca>
18058
18059 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
18060 repeatedly.
18061
180622002-05-03 Jason Rumney <jasonr@gnu.org>
18063
18064 * process.c (Fmake_network_process): Only support server sockets
18065 when we can make them non-blocking.
18066
18067 * s/ms-w32.h (HAVE_SELECT): Define.
18068
18069 * w32.h (FILE_NDELAY): New flag.
18070
18071 * w32.c (sys_getpeername, fcntl): New functions.
18072 (_sys_read_ahead): Temporarily block on non-blocking sockets.
18073
2d4713aa 18074 * w32proc.c: Include sys/file.h.
048addec
JD
18075
180762002-05-03 Colin Walters <walters@verbum.org>
18077
18078 * callproc.c (Vgame_score_directory): Renamed to
18079 Vshared_game_score_directory.
18080
180812002-04-30 Richard M. Stallman <rms@gnu.org>
18082
18083 * s/gnu.h [emacs]: Include stdio.h.
18084 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
18085
18086 * eval.c (do_autoload): Error if called while preparing to dump.
18087
18088 * fns.c (Frequire): Error if need to load while preparing to dump.
18089
180902002-04-28 Colin Walters <walters@verbum.org>
18091
18092 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
18093 Default to "~/.emacs.d/games".
18094
180952002-04-29 Stefan Monnier <monnier@cs.yale.edu>
18096
18097 * lread.c (openp): Change arg exec_only to predicate.
18098 (build_load_history): Use XCAR/XCDR.
18099 (Flocate_file_internal): New fun.
18100 (syms_of_lread): Defsubr it.
18101 (Fload): Update call to openp.
18102
18103 * lisp.h (openp): Update prototype.
18104
18105 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
18106 * w32proc.c (sys_spawnve):
18107 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
18108 * w32.c (check_windows_init_file):
18109 * sound.c (Fplay_sound_internal):
18110 * process.c (Fstart_process):
18111 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
18112 * mac.c (run_mac_command):
18113 * emacs.c (init_cmdargs):
18114 * callproc.c (Fcall_process): Update call to openp.
18115
18116 * textprop.c (remove_properties): Don't use XCAR without CONSP.
18117
18118 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
18119
181202002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18121
18122 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
18123 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
18124
181252002-04-28 Richard M. Stallman <rms@gnu.org>
18126
18127 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
18128
18129 * eval.c (Fcommandp): New arg for_call_interactively.
18130 * lisp.h (Fcommandp): Declare new arg.
18131
181322002-04-28 Jason Rumney <jasonr@gnu.org>
18133
18134 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
18135
18136 * w32.c (stat, fstat): Use file index information to generate
18137 inodes for directories where available.
18138
181392002-04-26 Andrew Choi <akochoi@shaw.ca>
18140
18141 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
18142 [HAVE_CARBON]: Include Mac object files.
18143
18144 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
18145 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
18146 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
18147 MAC_OSX, and MAC_OS instead of macintosh.
18148
18149 * editfns.c [MAC_OS8]: Include stdio.h.
18150
18151 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
18152
18153 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
18154 Apple Monaco.
18155
78819ebb 18156 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
18157 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
18158 calling select.
18159
18160 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
18161
18162 * tparam.c [MAC_OSX]: Don't define BC and UP.
18163
18164 * config.in [HAVE_CARBON]: Add.
18165
18166 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
18167 Move here from mac/src and mac/inc.
18168
18169 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
18170
181712002-04-26 Gerd Moellmann <gerd@gnu.org>
18172
18173 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
18174 Compute phys_cursor_width from the x position returned
18175 by x_draw_glyhs, which is cheaper.
18176 (x_display_and_set_cursor): Compute the buffer-local value
18177 of `cursor-in-non-selected-windows' only when needed.
18178
181792002-04-25 Gerd Moellmann <gerd@gnu.org>
18180
18181 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
18182 cursor on a stretch glyph has a width that depends on
18183 x_stretch_cursor_p.
18184
181852002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18186
18187 * abbrev.c (abbrev-start-location): Doc fix.
18188
18189 * indent.c (Fvertical_motion): Fix last change.
18190
181912002-04-25 Gerd Moellmann <gerd@gnu.org>
18192
18193 * indent.c (Fvertical_motion): Move to the start of the line
18194 containing PT before moving up or down.
18195
181962002-04-24 Gerd Moellmann <gerd@gnu.org>
18197
18198 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
18199 case of writing a whole row, more or less analogous to the case of
18200 writing only parts of a row.
18201
18202 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
18203 0 for NO_CURSOR.
18204
18205 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
18206
182072002-04-23 Colin Walters <walters@verbum.org>
18208
18209 * buffer.c (syms_of_buffer): Doc fix.
18210
182112002-04-23 Gerd Moellmann <gerd@gnu.org>
18212
18213 * xterm.c (notice_overwritten_cursor): Handle the special case
18214 of the cursor being in the first blank non-text line at the
18215 end of a window.
18216
18217 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
18218 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
18219 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
18220 bar cursors only, to make phys_cursor_width contain what its name
18221 suggests.
18222 (notice_overwritten_cursor): Consider the cursor image erased if
18223 the output area intersects the cursor image in y-direction.
18224
182252002-04-23 Simon Marshall <simon@gnu.org>
18226
18227 * xfns.c (x_set_mouse_color): Change default for cross_cursor
18228 to XC_hand2.
18229
182302002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18231
18232 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
18233
182342002-04-22 Kim F. Storm <storm@cua.dk>
18235
18236 * textprop.c (remove_properties): Fixed trap for malformed plist.
18237
182382002-04-22 Richard M. Stallman <rms@gnu.org>
18239
18240 * cmds.c (Fend_of_line): Handle intangible text in mid line.
18241
18242 * window.c (make_window): Initialize height_fixed_p,
18243 last_cursor_off_p, and p->cursor_off_p slots.
18244
182452002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18246
18247 * fns.c (use-dialog-box): Doc fix.
18248
182492002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18250
18251 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
18252 variables `row', `i' and `area'.
18253 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
18254 toolkit library.
18255
182562002-04-19 Stefan Monnier <monnier@cs.yale.edu>
18257
18258 * xfaces.c (clear_font_table): Don't free the default font of
18259 a frame even if it's on another display.
18260 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
18261 that could be Qt.
18262
182632002-04-19 Juanma Barranquero <lektu@terra.es>
18264
18265 * indent.c (Fmove_to_column): Remove unused local variable
18266 `next_boundary_byte'.
18267 (current_column_1): Likewise.
18268
182692002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
18270
18271 * msdos.c (Qhbar): New variable.
18272 (syms_of_msdos): Intern and staticpro it.
18273 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
18274 cursor type.
18275
182762002-04-19 Dave Lambert <dlambert@acm.org>
18277
18278 Theses change implement an underscore-like (`hbar') cursor.
18279
18280 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
18281
18282 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
18283 Handle the `hbar' cursor type.
18284 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
18285
18286 * xfns.c (Qhbar): New variable.
18287 (syms_of_xfns): Intern and staticpro it.
18288 (x_specified_cursor_type): Handle `hbar' cursor.
18289
18290 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
18291 not defined.
18292
182932002-04-18 Richard M. Stallman <rms@gnu.org>
18294
18295 * textprop.c (remove_properties): New arg LIST allows scanning
18296 either a list or a plist.
18297 (interval_has_some_properties_list): New function, like
18298 interval_has_some_properties using list instead of plist.
18299 All callers changed.
18300 (Fremove_list_of_text_properties): New function.
18301 (syms_of_textprop): Defsubr it.
18302
183032002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
18304
18305 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
18306
183072002-04-17 Juanma Barranquero <lektu@terra.es>
18308
18309 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
18310
183112002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
18312
18313 * window.c (coordinates_in_window): Don't report on margin area
18314 if its width is zero.
18315
183162002-04-16 Jason Rumney <jasonr@gnu.org>
18317
18318 * w32fns.c (Fx_file_dialog): Decode file name before using.
18319
18320 * w32term.c (construct_drag_n_drop): Likewise.
18321
183222002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
18323
18324 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
18325 store load-history in pure space.
18326
18327 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
18328
183292002-04-16 Stefan Monnier <monnier@cs.yale.edu>
18330
18331 * xterm.c (Qlatin_1, Qutf_8): New vars.
18332 (syms_of_xterm): Initialize them.
18333 (XTread_socket): Eliminate incorrect optimization that tried to avoid
18334 decoding the output of X*LookupString.
18335 Always use latin-1 to decode the output of XLookupString.
18336 Try Xutf8LookupString if XmbLookupString failed.
18337
18338 * region-cache.c (new_region_cache): Use BEG.
18339
183402002-04-16 Gerd Moellmann <gerd@gnu.org>
18341
18342 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
18343 configuration files.
18344 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
18345 returns 0.
18346
183472002-04-15 Andreas Schwab <schwab@suse.de>
18348
18349 * config.in: Regenerated using autoheader.
18350
18351 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
18352 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
18353 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
18354 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
18355 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
18356 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
18357 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
18358 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
18359 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
18360 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
18361 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
18362 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
18363 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
18364 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
18365 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
18366 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
18367 STACK_DIRECTION, now set by autoconf.
18368
183692002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18370
18371 * dispnew.c (marginal_area_string): Sort arguments.
18372
18373 * dispextern.h (marginal_area_string): Add prototype.
18374
183752002-04-13 Richard M. Stallman <rms@gnu.org>
18376
18377 * fileio.c (Finsert_file_contents):
18378 Don't call temp_output_buffer_setup--do just part, by hand.
18379
18380 * coding.c (run_pre_post_conversion_on_str):
18381 Don't call temp_output_buffer_setup--do just part, by hand.
18382
18383 * keyboard.c (command_loop_1): Don't call start_hourglass
18384 or cancel_hourglass when executing a macro.
18385
18386 * marker.c (count_markers): New function.
18387
18388 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
18389 grow without limit. Move recently used elements to the front.
18390
183912002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
18392
18393 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
18394
183952002-04-12 Gerd Moellmann <gerd@gnu.org>
18396
18397 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
18398 rows marginal areas.
18399 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
18400 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
18401
18402 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
18403
184042002-04-12 Dave Love <fx@gnu.org>
18405
18406 * dispnew.c (marginal_area_string): New.
18407
18408 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
18409 (Qleft_margin, Qright_margin): Declare.
18410 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
18411
18412 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
18413 note_mode_line_highlight and extended.
18414
18415 * keyboard.c (Qleft_margin, Qright_margin): Declare.
18416 (make_lispy_event): Deal with mouse events in margins.
18417
184182002-04-12 Stefan Monnier <monnier@cs.yale.edu>
18419
18420 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
18421
18422 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
18423 than deactivating the mark if tmm is set to `lambda'.
18424 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
18425 Use a single event for HELP_EVENT.
18426 (Fexecute_extended_command): Save last_point_position.
18427
184282002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18429
18430 * lisp.h (Fpropertize): Add prototype.
18431
18432 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
18433
184342002-04-10 Colin Walters <walters@verbum.org>
18435
18436 * config.in: Add HAVE_SHARED_GAME_DIR.
18437
52eb0373 18438 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
18439 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
18440
184412002-04-10 Richard M. Stallman <rms@gnu.org>
18442
18443 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
18444
184452002-04-09 Stefan Monnier <monnier@cs.yale.edu>
18446
18447 * minibuf.c (read_minibuf): Use empty_string.
18448 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
18449 Short-circuit the search as soon as it "failed".
18450 (Fall_completions): Allow lambda forms and lists of strings for alist.
18451 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
18452 when require_match is nil.
18453 (Ftest_completion): Rename from `test_completion' and export to elisp.
18454 Call the predicate also when alist is a list.
18455 Obey Vcompletion_regexp_list.
18456 (do_completion, Fminibuffer_complete_and_exit): Use it.
18457 (Fassoc_string): Rename from `assoc_for_completion'.
18458 Allow list of strings as well and export to elisp.
18459
184602002-04-08 Stefan Monnier <monnier@cs.yale.edu>
18461
18462 * puresize.h (BASE_PURESIZE): Increase to 900KB.
18463
184642002-04-08 Juanma Barranquero <lektu@terra.es>
18465
18466 * w32.c (sys_accept): Don't hide variable `s'.
18467
184682002-04-05 Gerd Moellmann <gerd@gnu.org>
18469
18470 * callint.c (Fcall_interactively): Use INTEGERP instead of
18471 NUMBERP for checking Vhistory_length.
18472
184732002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18474
18475 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
18476 Doc fix to reflect it.
18477
184782002-04-04 Richard M. Stallman <rms@gnu.org>
18479
18480 * xdisp.c (display_mode_element): New arg RISKY.
18481 Disregard text props found or specified within a variable
18482 that isn't marked risky-local-variable.
18483 (Qrisky_local_variable): New variable.
18484 (syms_of_xdisp): Init and staticpro it.
18485
184862002-04-04 Stefan Monnier <monnier@cs.yale.edu>
18487
18488 * undo.c (record_point): New fun.
18489 (record_delete, record_insert): Use it.
18490
184912002-04-03 Juanma Barranquero <lektu@terra.es>
18492
18493 * doc.c (Fdocumentation): Add missing parentheses.
18494 (Fdocumentation_property): Likewise.
18495
184962002-04-03 Stefan Monnier <monnier@cs.yale.edu>
18497
18498 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
18499 data is 0, just return nil.
18500
185012002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
18502
18503 * msdos.c (syms_of_msdos): Fix last change with
18504 mouse_autoselect_window.
18505
185062002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18507
18508 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
18509 mouse_autoselect_window.
18510
185112002-04-02 Stefan Monnier <monnier@cs.yale.edu>
18512
18513 * keyboard.c (make_lispy_event): Handle unknown keysyms together
18514 with system-specific keysyms. Use it also for unknown function keys.
18515
18516 * doc.c (reread_doc_file): Return whether reload was attempted.
18517 (Fdocumentation, Fdocumentation_property): Don't try to reload
18518 if the doc is 0 and only ask once.
18519
18520 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
18521
185222002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
18523
18524 * keyboard.c (read_char): If the event was Qselect_window,
18525 restore timer_idleness_start_time to its previous value.
18526
18527 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
18528
185292002-04-01 Stefan Monnier <monnier@cs.yale.edu>
18530
18531 * region-cache.c (new_region_cache): Use BEG.
18532
18533 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
18534 Use BEG and BEG_BYTE.
18535
18536 * doc.c (get_doc_string): Return nil if the location is wrong.
18537 (reread_doc_file): New fun.
18538 (Fdocumentation, Fdocumentation_property):
18539 Call it if get_doc_string fails.
18540 (Fsnarf_documentation): Make it work for a dumped Emacs.
18541
18542 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
18543 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
18544
18545 * charset.c (Fstring): Allow 0 arguments.
18546
18547 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
18548
18549 * process.c (DATAGRAM_CONN_P, list_processes_1)
18550 (Fprocess_datagram_address, Fset_process_datagram_address)
18551 (Fset_network_process_options, server_accept_connection):
18552 Fix some int/Lisp_Object confusions (thank you union types).
18553
185542002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18555
18556 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
18557
18558 * w32term.c: Likewise.
18559 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
18560
18561 * keyboard.c (Qselect_window): New symbol.
18562 (head_table): Use it.
18563 (keys_of_keyboard): Bound select-window event to handle-select-window.
18564 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
18565
18566 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
18567 (last_window): New variable.
18568 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
18569 (note_mouse_movement): Remove reimplemented code in #if 0.
18570 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
18571 Emacs windows.
18572
18573 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
18574
185752002-03-31 Gerd Moellmann <gerd@gnu.org>
18576
18577 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
18578 Callers changed.
18579
185802002-03-30 Richard M. Stallman <rms@gnu.org>
18581
18582 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
18583 loop whenever it stops making progress.
18584
18585 * widget.c (set_frame_size): Don't call change_frame_size.
18586
185872002-03-30 Gerd Moellmann <gerd@gnu.org>
18588
18589 * dispnew.c (direct_output_for_insert):
18590 Call mark_window_display_accurate.
18591
185922002-03-29 Jason Rumney <jasonr@gnu.org>
18593
18594 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
18595
185962002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
18597
18598 * Makefile.in (lread.o): Depend on coding.h.
18599
18600 * lread.c (openp, Fload): Encode the file name before passing it
18601 to `stat', `access', and `emacs_open'.
18602 (openp): GCPRO the encoded file name. Don't recompute Lisp
18603 strings unnecessarily.
18604
186052002-03-29 Kim F. Storm <storm@cua.dk>
18606
18607 * fns.c (Flax_plist_put): Doc fix.
18608
186092002-03-28 Miles Bader <miles@gnu.org>
18610
18611 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
18612
186132002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18614
18615 * process.c (set-network-process-options): Add usage.
18616 (make-network-process): Doc fix.
18617
186182002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
18619
18620 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
18621
186222002-03-26 Richard M. Stallman <rms@gnu.org>
18623
18624 * fns.c (Fsubstring_no_properties): New function.
18625 (Flax_plist_get, Flax_plist_put): New functions.
18626 (syms_of_fns): defsubr them.
18627
18628 * xdisp.c (update_menu_bar): Test only update_mode_lines;
18629 don't test or alter w->update_mode_line.
18630
18631 * window.c (Fdisplay_buffer): Doc fix.
18632
186332002-03-24 Richard M. Stallman <rms@gnu.org>
18634
18635 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
18636
186372002-03-24 Gerd Moellmann <gerd@gnu.org>
18638
18639 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
18640 (Fdefmacro): Handle `(declare ...)'.
18641 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
18642 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
18643
186442002-03-24 Jason Rumney <jasonr@gnu.org>
18645
18646 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
18647 (xbm_file_p): Add prototypes.
18648 (xbm_format, xbm_image_p): Sync with xfns.c.
18649 (reflect_byte): New function.
18650 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
18651 (xbm_load_image): Create bitmaps with a depth of 1.
18652 (init_xfns): Enable XBM images.
18653
186542002-03-23 Jason Rumney <jasonr@gnu.org>
18655
18656 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
18657 correctly. Do not pass up_modifier to keyboard buffer.
18658
18659 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
18660
186612002-03-22 Stefan Monnier <monnier@cs.yale.edu>
18662
18663 * Makefile.in (bootstrapclean): New target.
18664 (bootstrap-temacs, bootstrap-doc): Remove.
18665 (bootstrap-emacs): Use a bog-standard `temacs'.
18666 Don't bother to build a DOC file.
18667
18668 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
18669
18670 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
18671 in temacs even if !CANNOT_DUMP.
18672 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
18673
18674 * alloc.c (check_pure_size): Only output a warning.
18675
186762002-03-22 Jason Rumney <jasonr@gnu.org>
18677
18678 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
18679 supported.
18680
18681 * w32term.c (zv_bits): Declare as short, for word alignment.
18682 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
18683 (syms_of_w32term): Define x-use-underline-position-properties.
18684
18685 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
18686 (clear_image_cache): Block input, fix logic, clear matrices in
18687 all frames that share this cache.
18688
186892002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
18690
18691 * emacs.c (main): Update the Copyright year in the blurb printed
18692 by "emacs --version".
18693
18694 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
18695
18696 * xterm.c (XTread_socket): If XK_ISO_Lock and
18697 XK_ISO_Last_Group_Lock are defined, handle keysyms between
18698 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
18699
187002002-03-21 Kim F. Storm <storm@cua.dk>
18701
18702 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
18703 menu-bar bindings in keymap and local-map properties _are_ used.
18704 But try keymap property first in accordance with 2002-01-03 patch.
18705 Added comment describing why this is not always reliable.
18706 (tool_bar_items): Ditto for tool-bar.
18707
187082002-03-21 Jason Rumney <jasonr@gnu.org>
18709
18710 * w32fns.c (x_clear_image_1): Disable color table code.
18711
187122002-03-21 Kim F. Storm <storm@cua.dk>
18713
18714 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
18715 removed the wrong version of the DEFUN macro; fixed it.
18716
18717 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
18718 Fmember rather than Fmemq).
18719 (Fprovide): Check that subfeatures is a list.
18720
18721 * process.c (QCfeature, QCdatagram): Removed variables.
18722 (QCtype, Qdatagram): New variables.
18723 (network_process_featurep): Removed function.
18724 (Fmake_network_process): Removed :feature check.
18725 Use :type 'datagram instead of :datagram t to create a datagram
18726 socket. This allows us to add other connection types (e.g. raw
18727 sockets) later in a consistent manner.
18728 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
18729 supported subfeatures for feature make-network-process.
18730 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
18731 Intern and staticpro QCtype and Qdatagram.
18732 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
18733
18734 * xfns.c: (QCtype): Remove duplicate declaration and
18735 initialization (is now declared in process.c).
18736
18737 * w32fns.c: (QCtype): Remove duplicate declaration and
18738 initialization (is now declared in process.c).
18739
187402002-03-21 Richard M. Stallman <rms@gnu.org>
18741
18742 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
18743 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
18744 when jumping to `fail' to avoid undoing reg changes in the
18745 last iteration of the loop.
18746 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
18747
18748 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
18749 Depend on process.h.
18750
187512002-03-20 Jason Rumney <jasonr@gnu.org>
18752
18753 Most of the following changes are still conditional on HAVE_IMAGES
18754 which is not set by default on Windows.
18755
18756 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
18757
18758 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
18759 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
18760 (four_corners_best, x_clear_image_1, x_clear_image)
18761 (x_alloc_image_color, postprocess_image)
18762 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
18763 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
18764 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
18765
18766 * w32gui.h (struct XImage): Define.
18767
18768 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
18769 extract mouse co-ordinates.
18770
187712002-03-20 Jason Rumney <jasonr@gnu.org>
18772
18773 * w32.c (init_winsock): Dynamically load new server and UDP
18774 socket functions.
18775 (socket_to_fd): New function.
18776 (sys_socket): Use it.
18777 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
18778 (sys_recvfrom, sys_sendto): New wrapper functions.
18779
18780 * process.c (QCfamily, QCfilter): Remove duplicate declaration
18781 and initialization.
18782
18783 * makefile.w32-in (LIBS): Remove $(WSOCK32).
18784
187852002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
18786
18787 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
18788 Don't use "sun" as a variable, it's a predefined constant on Sun
18789 machines.
18790
187912002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18792
18793 * bytecode.c (Fbyte_code): Revert last change.
18794
187952002-03-19 Kim F. Storm <storm@cua.dk>
18796
18797 * makefile.w32-in (LIBS): Add $(WSOCK32).
18798 From David Ponce <dponce@voila.fr>.
18799
188002002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18801
18802 * process.c (wait_reading_process_input): Move variables `pname'
18803 and `pnamelen' down where they are used.
18804
18805 * bytecode.c (Fbyte_code): Discard unused computed value to
18806 prevent gcc warning.
18807
18808 * lisp.h (Fplist_member): Add prototype.
18809
188102002-03-18 Kim F. Storm <storm@cua.dk>
18811
18812 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
18813 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
18814
18815 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
18816 Remove explicit GNU_LINUX settings for datagram support.
18817
188182002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18819
18820 * process.c (Fmake_network_process): Remove unused variable `sa'.
18821 Doc fix. Add usage:.
18822 (set_socket_options): Remove unused variables `optnum' and `opttype'.
18823
188242002-03-17 Richard M. Stallman <rms@gnu.org>
18825
18826 * xdisp.c (cursor_type_changed): New variable.
18827 (redisplay_internal): Redisplay all windows if cursor_type_changed.
18828 Clear it when clearing windows_or_buffers_changed.
18829 (try_cursor_movement, redisplay_window, try_window_id)
18830 (try_window_reusing_current_matrix): Test cursor_type_changed
18831 along with windows_or_buffers_changed.
18832
18833 * window.h (cursor_type_changed): New variable.
18834
18835 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
18836 not update_mode_lines, and always set it to 1.
18837
18838 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
18839 if no frames needed redrawing.
18840
188412002-03-17 Kim F. Storm <storm@cua.dk>
18842
18843 The following changes add support for network server processes,
18844 datagram connections, and local (unix) sockets.
18845
18846 * process.h (struct Lisp_Process): New member log.
18847 Doc fix: Member command used to indicate stopped network process.
18848 Doc fix: Member childp contains plist for network process.
18849 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
18850
18851 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
18852 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
18853 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
18854 New variables.
18855 (NETCONN1_P): New macro.
18856 (DATAGRAM_SOCKETS): New conditional symbol.
18857 (datagram_address): New array.
18858 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
18859 (status_message): Use concat3.
18860 (Fprocess_status): Add `listen' status to doc string. Return `stop'
18861 for a stopped network process.
18862 (Fset_process_buffer): Update contact plist for network process.
18863 (Fset_process_filter): Ditto. Don't enable input for stopped
18864 network processes. Server must listen, even if filter is t.
18865 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
18866 New functions.
18867 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
18868 (Fprocess_contact): Added KEY argument. Handle datagrams.
18869 (list_processes_1): Optionally show only processes with the query
18870 on exit flag set. Dynamically adjust column widths. Omit tty
18871 column if not needed. Report stopped network processes.
18872 Identify server and datagram network processes.
18873 (Flist_processes): New optional arg `query-only'.
18874 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
18875 (conv_lisp_to_sockaddr, set_socket_options)
18876 (network_process_featurep, unwind_request_sigio): New helper functions.
18877 (Fprocess_datagram_address, Fset_process_datagram_address):
18878 (Fset_network_process_options): New lisp functions.
18879 (Fopen_network_stream): Removed. Now defined in simple.el.
18880 (Fmake_network_process): New lisp function. Code is based on previous
18881 Fopen_network_stream, but heavily reworked with new property list based
18882 argument list, support for datagrams, server processes, and local
18883 sockets in addition to old client-only functionality.
18884 (server_accept_connection): New function.
18885 (wait_reading_process_input): Use it to handle incoming connects.
18886 Do not enable input on a new connection if process is stopped.
f63fd14e 18887 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
18888 (send_process): Handle datagram sockets.
18889 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
18890 network process is indicated by setting command field to t .
18891 (Fprocess_send_eof): No-op if datagram connection.
18892 (Fstatus_notify): Don't read input for a stream server socket or a
18893 stopped network process.
18894 (init_process): Initialize datagram_address array.
18895 (syms_of_process): Intern and staticpro new variables, defsubr new
18896 functions.
18897
188982002-03-16 Jason Rumney <jasonr@gnu.org>
18899
18900 * w32fns.c (w32_to_all_x_charsets): Return correct type in
18901 startup case.
18902
189032002-03-16 Richard M. Stallman <rms@gnu.org>
18904
18905 * xdisp.c (redisplay_internal, redisplay_windows):
18906 Use list_of_error to call internal_condition_case_1.
18907 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
18908 so as to catch all errors with no possibility of debugger redisplay.
18909 (list_of_error): New variable.
18910 (syms_of_xdisp): Init and staticpro it.
18911
18912 * print.c (print_object): Delete `\ ' from printed rep of frame.
18913
189142002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
18915
18916 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
18917 until its implementation is fixed.
18918
189192002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18920
18921 * xfns.c (png_load): Remove unused variable `gamma_str'.
18922
189232002-03-14 Richard M. Stallman <rms@gnu.org>
18924
18925 * xfns.c (x_real_positions): Handle failure in XQueryTree.
18926
189272002-03-14 Miles Bader <miles@gnu.org>
18928
18929 * intervals.c (adjust_for_invis_intang): New function.
18930 (set_point_both): Use `adjust_for_invis_intang' to do most of the
18931 work for dealing with invisible+intangible regions. Do so before
18932 and after both forward and backward movements, to handle both
18933 front-sticky and rear-sticky cases.
18934 * textprop.c (text_property_stickiness): Function moved here from
18935 `editfns.c'.
18936 * intervals.h (text_property_stickiness): New declaration.
18937 * editfns.c (char_property_eq): Function removed.
18938 (text_property_stickiness): Function moved to `textprop.c'.
18939
189402002-03-13 Jason Rumney <jasonr@gnu.org>
18941
18942 * config.in: Add STRFTIME_NO_POSIX2.
18943
18944 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
18945 and %OX when underlying strftime does not.
18946
189472002-03-13 Stefan Monnier <monnier@cs.yale.edu>
18948
18949 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
18950 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
18951 line) to avoid annoying flicker.
18952 (xm_scroll_callback): Get rid of the now unnecessary kludge.
18953 (XTread_socket): Mark it static.
18954
18955 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
18956
189572002-03-13 Kim F. Storm <storm@cua.dk>
18958
18959 * puresize.h (BASE_PURESIZE): Increase to 775000.
18960
189612002-03-12 Juanma Barranquero <lektu@terra.es>
18962
18963 * editfns.c (syms_of_editfns): Fix typo.
18964
189652002-03-12 Gerd Moellmann <gerd@gnu.org>
18966
18967 * xsmfns.c: Include stdio.h because termhooks.h needs it.
18968 Include termopt.h for interrupt_input.
18969
189702002-03-11 Andreas Schwab <schwab@suse.de>
18971
18972 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
18973
189742002-03-11 Gerd Moellmann <gerd@gnu.org>
18975
18976 * xterm.c (note_mouse_movement): Put code for
18977 x_autoselect_window_p in #if 0.
18978
18979 * lread.c (Fload): Don't assume that message_with_string uses the
18980 string it is given like a C string.
18981
189822002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18983
78819ebb 18984 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 18985
52eb0373 18986 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
18987 x_session_have_connection.
18988 (x_initialize): Add call to x_session_initialize.
18989
18990 * termhooks.h (enum event_kind): Add save_session_event.
18991
18992 * keyboard.c: Add Emacs event save_session_event.
18993
18994 * emacs.c (main): Add call to syms_of_xsmfns.
18995
78819ebb 18996 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
18997
18998 * config.in: Add HAVE_X_SM.
18999
19000 * Makefile.in (LIBXT): Add -lSM -lICE
19001 if HAVE_X_SM and not USE_X_TOOLKIT.
19002 (XOBJ): New file xsmfns.c added.
19003
19004 * xsmfns.c: New file for X session management.
19005
190062002-03-09 Jason Rumney <jasonr@gnu.org>
19007
19008 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
19009 read-only when setting modified time.
19010
190112002-03-08 Gerd Moellmann <gerd@gnu.org>
19012
19013 * xdisp.c (move_it_vertically_backward): At the end of the function,
19014 when moving forward by lines, treat terminal frames specially.
19015
19016 * keyboard.c (echo_char): Make sure to add a separator between
19017 keys even if echo_dash hasn't been called.
19018
19019 * xdisp.c: Use new string macros.
19020 (update_echo_area): Pass number of bytes to message3 instead of
19021 number of chars.
19022 (set_message_1): Don't access a string's size_byte directly.
19023 (decode_mode_spec_coding): Use number of bytes of eoltype string
19024 instead number of chars.
19025
19026 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
19027
190282002-03-08 Juanma Barranquero <lektu@terra.es>
19029
19030 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
19031 24-bit.
19032
190332002-03-06 Jason Rumney <jasonr@gnu.org>
19034
19035 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
19036
190372002-03-06 Gerd Moellmann <gerd@gnu.org>
19038
19039 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
19040 (cancel_echoing, echo_length, echo_truncate): Changed to
19041 work with new kboard definition.
19042 (echo_now): Use message3_nolog instead of message2_nolog.
19043
19044 * alloc.c (mark_kboards): Mark echo_string.
19045
19046 * keyboard.h (ECHOBUFSIZE): Removed.
19047 (struct kboard): Member echoptr removed, member echobuf renamed
19048 to echo_string.
19049
19050 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
19051 message3 instead of message2 to display the message using STRING's
19052 text properties.
19053
190542002-03-05 Andreas Schwab <schwab@suse.de>
19055
19056 * xdisp.c (hscroll_margin): Change to EMACS_INT.
19057
190582002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
19059
19060 * frame.c (default-frame-alist): Explain that setting it doesn't
19061 affect existing frames.
19062
190632002-03-05 Stefan Monnier <monnier@cs.yale.edu>
19064
19065 * indent.c (skip_invisible): Fix my brain fart.
19066
19067 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
19068
190692002-03-04 Stefan Monnier <monnier@cs.yale.edu>
19070
19071 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
19072 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
19073 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
19074 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
19075 and variables to use EMACS_INT instead of just int.
19076
19077 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
19078
190792002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
19080
19081 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
19082 environment, pass it down with corrected value.
19083
190842002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19085
19086 * lread.c (read_filtered_event): Do not call start_hourglass
19087 before returning.
19088
190892002-03-04 Juanma Barranquero <lektu@terra.es>
19090
19091 * w32term.c (x_display_and_set_cursor): Fix typo.
19092
190932002-03-03 Richard M. Stallman <rms@gnu.org>
19094
19095 * fileio.c (Fmake_temp_name): Doc fix.
19096
190972002-03-03 Gary Wong <gtw@gnu.org>
19098
19099 * termcap.c [!emacs]: Replace ospeed for building standalone
19100 libtermcap, for binary compatibility.
19101
19102 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
19103
191042002-03-03 Richard M. Stallman <rms@gnu.org>
19105
19106 * xrdb.c (file_p): Rename arg `path' to `filename'.
19107
19108 * abbrev.c (Fexpand_abbrev): Increment plist as use count
19109 only if it is an integer.
19110
19111 * xfns.c (png_load): Set screen_gamma based on f->gamma.
19112 If png_get_sRGB gives an answer, call png_set_gamma
19113 using the default image gamma value.
19114
19115 * lread.c (read1): When reading from a file, default string to
19116 multibyte only if it has some multibyte characters.
19117
19118 * print.c (print_object): Output multibyte chars 128...255
19119 using \x even if ! print_escape_multibyte.
19120
19121 * xdisp.c (display_mode_element): Move the places where
19122 bytepos, charpos, this, and lisp_string are set.
19123 Use lisp_string to set bytepos.
19124
19125 * xdisp.c (redisplay_internal):
19126 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
19127
19128 * xdisp.c (display_mode_element): Merge properties specified with
19129 :propertize onto those that come with the string.
19130
191312002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
19132
19133 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
19134 automatic-hscrolling. Users changed.
19135 <hscroll-margin>: Renamed from automatic-hscroll-margin.
19136 Users changed.
19137 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
19138
191392002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
19140
19141 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
19142
191432002-03-02 Kim F. Storm <storm@cua.dk>
19144
19145 * window.c (Fminibuffer_selected_window): New function.
19146 (syms_of_window): Defsubr it.
19147
191482002-03-01 Kim F. Storm <storm@cua.dk>
19149
19150 * window.h (struct window): New member phys_cursor_width.
19151
19152 * window.c (make_window, replace_window): Init phys_cursor_width.
19153
19154 * xterm.c (x_display_and_set_cursor): Blink box cursor using
19155 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
19156
19157 * w32term.c (x_display_and_set_cursor): Blink box cursor using
19158 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
19159
19160 * lisp.h (GCPRO6): New macro.
19161
19162 * process.c (Fopen_network_stream): Use GCPRO6.
19163
191642002-03-01 Kim F. Storm <storm@cua.dk>
19165
19166 * process.c (Qconnect, Qfailed): New variables.
19167 (syms_of_process): Intern and staticpro them.
19168 (Fprocess_status): Document connect and failed return values.
19169 [NON_BLOCKING_CONNECT]: New conditional.
19170 (connect_wait_mask, num_pending_connects): New variables.
19171 (status_message): Convert Qfailed status.
19172 (Fopen_network_stream): Added support for non-blocking connect.
19173 New optional args: filter, sentinel, non_blocking. Doc updated.
19174 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
19175 (deactivate_process): Handle pending non-blocking connect.
19176 (wait_reading_process_input): Poll for status of non-blocking
19177 connects. Exec sentinel directly when connect succeeds.
19178 (status_notify): Don't read process output if not yet connected.
19179
191802002-02-28 Kim F. Storm <storm@cua.dk>
19181
19182 * window.c: (minibuf_selected_window): Renamed from
19183 Vminibuf_selected_window. Users changed.
19184 (syms_of_window): Staticpro it.
19185
191862002-02-26 Kim F. Storm <storm@cua.dk>
19187
19188 The following changes add a new Vminibuf_selected_window variable
19189 which is similar to Vminibuf_scroll_window, but which is only set
19190 on entry to the minibuffer (from a non-minibuffer window):
19191
19192 * window.c: (Vminibuf_selected_window): New variable.
19193 (struct save_window_data): New member minibuf_selected_window.
19194 (Fset_window_configuration): Restore Vminibuf_selected_window.
19195 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
19196 Set minibuf_scroll_window member to nil if minibuf_level is 0.
19197 (compare_window_configurations): Compare minibuf_selected_window.
19198
19199 * window.h: (Vminibuf_selected_window): Declare extern.
19200
19201 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
19202 entry to minibuffer or on entry from a non-minibuffer window.
19203
19204 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
19205 Vminibuf_selected_window instead of Vminibuf_scroll_window.
19206
19207 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
19208 instead of Vminibuf_scroll_window when deciding in which window
19209 the region should be highlighted. Consequently, the region remains
19210 highlighteded even when a completion buffer is also displayed.
19211
192122002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
19213
19214 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
19215
19216 * xselect.c (Qcompound_text_with_extensions): Renamed from
19217 Qcompound_text_no_extensions.
19218 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
19219
192202002-02-26 Juanma Barranquero <lektu@terra.es>
19221
19222 * w32proc.c (syms_of_ntproc): Doc fix.
19223
192242002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19225
19226 * intervals.h: Include "dispextern.h" unconditionally.
19227
192282002-02-24 Jason Rumney <jasonr@gnu.org>
19229
19230 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
19231 and disp-table.elc.
19232 (lisp): Add emacs-lisp/backquote.elc.
19233
192342002-02-24 Kim F. Storm <storm@cua.dk>
19235
3419757d 19236 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
19237 The validation of the event type was too strict as it didn't
19238 allow string events; buffer names are used in bindings for
19239 menu-bar-select-buffer (see `menu-bar-update-buffers').
19240
192412002-02-23 Kim F. Storm <storm@cua.dk>
19242
19243 The following changes rework my patch of 2002-02-06 which
19244 added command remapping by entering the commands directly into
19245 the keymaps. Now, command remapping uses an explicit `remap'
19246 prefix in the keymaps, i.e. [remap COMMAND].
19247
19248 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 19249 (is_command_symbol): Remove function.
048addec
JD
19250 (Fdefine_key): No longer accept a symbol for KEY.
19251 Added validation of [remap COMMAND] argument for KEY.
19252 The DEF is no longer required to be a symbol when remapping a command.
19253 (Fremap_command): New function to remap command through keymaps.
19254 (Flookup_key): Perform command remapping initiated by
19255 Fremap_command directly for speed.
19256 (Fkey_binding): Use Fremap_command for command remapping.
19257 (where_is_internal): Handle new command remapping representation.
19258 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
19259 staticpro them. Defsubr Fremap_command.
19260
19261 * keymap.h (Fremap_command): Declare extern.
19262 (is_command_symbol): Remove extern.
19263
19264 * keyboard.c (command_loop_1): Use Fremap_command for command
19265 remapping; now try command remapping for all symbols.
19266
192672002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
19268
19269 * coding.h (run_pre_post_conversion_on_str): Add prototype.
19270
192712002-02-23 Jason Rumney <jasonr@gnu.org>
19272
19273 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
19274 on the string before encoding it.
19275 (Fw32_get_clipboard_data): Run post-read-conversion on the string
19276 after decoding it.
19277
19278 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
19279
192802002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19281
19282 * w32term.c (enter_timestamp): Remove unused static variable to
19283 prevent warning.
19284
19285 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
19286
192872002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
19288
19289 * w16select.c (Fw16_get_clipboard_data): Fix last change.
19290
19291 * xselect.c (selection_data_to_lisp_data): Fix last change.
19292
192932002-02-22 Jason Rumney <jasonr@gnu.org>
19294
19295 * w32term.h (struct w32_output): New member menu_command_in_progress.
19296
19297 * w32menu.c (menubar_selection_callback): Free the menu and
19298 clear the menu_command_in_progress flag.
19299
19300 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
19301 (menu_free_timer): New variable.
19302 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
19303 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
19304 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
19305 menu command is in progress.
19306 <WM_COMMAND>: Set the menu_command_in_progress flag.
19307 Kill any menu_free_timer that is running.
19308
19309 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
19310 Call ExtTextOutA rather than ExtTextOut.
19311
193122002-02-22 Eli Zaretskii <eliz@gnu.org>
19313
19314 * puresize.h (BASE_PURESIZE): Increase to 755000.
19315
193162002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
19317
19318 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
19319 on the string before encoding it.
19320 (Fw16_get_clipboard_data): Run post-read-conversion on the string
19321 after decoding it.
19322
193232002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
19324
19325 Support for ICCCM Extended Segments in X selections:
19326
19327 * xselect.c <Qcompound_text_no_extensions>: New variable.
19328 (syms_of_xselect): Intern and staticpro it.
19329 (selection_data_to_lisp_data): Run post-read-conversion on decoded
19330 selection text.
19331 (lisp_data_to_selection_data): If next-selection-coding-system is
19332 compound-text-no-extensions, set the type of selection to be
19333 compound-text.
19334
19335 * xterm.h (x_encode_text): Update prototype.
19336
19337 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
19338 callers changed. If SELECTIONP is non-zero, run the
19339 pre-write-conversion function before encoding the selection text.
19340
193412002-02-21 Kim F. Storm <storm@cua.dk>
19342
19343 * frame.c (syms_of_frame): Change mouse-highlight default to t.
19344
19345 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
19346 Correct composing of language-change event.
19347
193482002-02-20 Kim F. Storm <storm@cua.dk>
19349
19350 * keyboard.c (menu_bar_items): Don't include keymap or local-map
19351 bindings at PT when building menu (the menu is not updated often
19352 enough for this to work reliable).
19353 (tool_bar_items): Likewise.
19354 (current_active_maps): Removed unused (and buggy) function.
19355
193562002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19357
19358 * xfns.c (gif_load): Use correct width and height for GIF images.
19359
193602002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
19361
19362 * floatfns.c (Fatan): Accept an optional second arg and call
19363 atan2 if passed 2 args.
19364
193652002-02-18 Jason Rumney <jasonr@gnu.org>
19366
19367 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
19368
193692002-02-17 Jason Rumney <jasonr@gnu.org>
19370
19371 * w32term.c (x_autoselect_window_p): New variable.
19372 (syms_of_w32term): DEFVAR_BOOL and initialize it.
19373 (note_mouse_movement): Use it.
19374
19375 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
19376
19377 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
19378
19379 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19380 New variables.
19381 (syms_of_w32fns): Intern and staticpro them.
19382 (x_frame_parms) <"fullscreen">: New parameter.
19383 (x_fullscreen_move, x_set_fullscreen): New functions.
19384 (x_set_frame_parameters): Support Qfullscreen.
19385 (x_real_positions): Save x/y_pixels_diff frame params.
19386 (x_figure_window_size): Support full-screen frames.
19387 (Fx_create_frame): Default the fullscreen parameter.
19388
19389 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
19390 (x_fullscreen_adjust): New functions.
19391 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
19392 fullscreen. Call x_check_fullscreen_move, and set the
19393 want_fullscreen member of output_data.w32
19394 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
19395
19396 * w32term.h: New enum for FULLSCREEN_* constants.
19397 (struct w32_output): New members want_fullscreen, x_pixels_diff,
19398 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
19399 (x-fullscreen-adjust): New prototype.
19400
194012002-02-17 Kim F. Storm <storm@cua.dk>
19402
52eb0373 19403 * frame.c (Vmouse_highlight): New variable.
048addec
JD
19404 (syms_of_frame): DEFVAR_LISP it.
19405
52eb0373 19406 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 19407
048addec 19408 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 19409
048addec
JD
19410 * xterm.c (disable_mouse_highlight): Removed variable.
19411 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
19412 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19413 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
19414 and on after keyboard input.
19415 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 19416
048addec 19417 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 19418
048addec
JD
19419 * msdos.c (disable_mouse_highlight): Removed variable.
19420 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19421 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
19422 (internal_terminal_init): Initialize mouse_face_hidden.
19423 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
19424 and on after keyboard input.
4f1b1854 19425
048addec 19426 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 19427
048addec
JD
19428 * w32term.c (disable_mouse_highlight): Removed variable.
19429 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
19430 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19431 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
19432 and on after keyboard input.
19433 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 19434
048addec 194352002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 19436
048addec
JD
19437 * msdos.c (last_mouse_window): New variable.
19438 (dos_rawgetc): Fix last change--if the mouse is in the same window
19439 as recorded in last_mouse_window, don't select this window.
5cb6905d 19440
048addec 19441 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 19442
048addec
JD
19443 * msdos.c (x_autoselect_window_p): New variable.
19444 (syms_of_msdos): Defvar it.
19445 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
19446 which the last mouse movement occured, unless it is already selected.
437dfb9f 19447
048addec
JD
19448 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
19449 New variables.
19450 (syms_of_xdisp): DEVFAR them.
19451 (hscroll_window_tree): Use automatic_hscroll_margin and
19452 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 19453
048addec 194542002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 19455
048addec
JD
19456 * xterm.c (x-autoselect-window): New variable.
19457 (note_mouse_movement): Use it.
9f696a00 19458
048addec 19459 * keyboard.c: Do not include "systime.h" twice.
d57966d7 19460
048addec 194612002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 19462
bfa02563 19463 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 19464
048addec 19465 * alloc.c (NSTATICS): Increase to 1280.
74779f52 19466
048addec 194672002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 19468
048addec 19469 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 19470
048addec
JD
19471 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
19472 (Vx_super_keysym): New variables.
19473 (syms_of_xterm): DEFVAR_LISP them.
19474 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
19475 variables to determine which keys to use for the various modifiers.
a474d59c 19476
048addec 194772002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 19478
048addec
JD
19479 * window.c: (Vmode_line_in_non_selected_windows): Removed.
19480 (mode_line_in_non_selected_windows): New variable.
19481 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 19482
048addec
JD
19483 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
19484 Use mode_line_in_non_selected_windows.
19485 (mode_line_in_non_selected_windows): Declare extern.
19486 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 19487
048addec 194882002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 19489
048addec
JD
19490 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
19491 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
19492 (Fclear_this_command_keys): Doc fixes.
2d10309f 19493
048addec
JD
19494 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
19495 (update_face_from_frame_parameter): Increment face_change_count
19496 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 19497
048addec
JD
19498 * xdisp.c (QCpropertize): New variable.
19499 (mode_line_proptrans_alist): New variable.
19500 (display_mode_element): New arg PROPS; all calls changed.
19501 Implement this, for strings.
19502 Handle literal output of strings by sharing the
19503 main-line code for strings, using local var `literal'.
19504 Handle :propertize feature.
19505 (syms_of_xdisp): Initialze and staticpro QCpropertize and
19506 mode_line_proptrans_alist.
0b1e6b54 19507
048addec 195082002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 19509
048addec
JD
19510 * window.c: (Vmode_line_in_non_selected_windows): New variable.
19511 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 19512
048addec
JD
19513 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
19514 (CURRENT_MODE_LINE_FACE_ID): Use it.
19515 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 19516
048addec
JD
19517 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
19518 to get mode line face.
e17144de 19519
048addec 195202002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 19521
048addec
JD
19522 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
19523 variables; cus-start.el doesn't need them anymore.
44368f8f 19524
048addec 195252002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 19526
048addec
JD
19527 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
19528 reduction. This fixes a display problem where stray newlines were
19529 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 19530
048addec 195312002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 19532
048addec 19533 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 19534
048addec 19535 * xdisp.c (display_mode_lines): Fix last change.
453c5510 19536
048addec 195372002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 19538
048addec
JD
19539 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
19540 match each other.
19541 (w32_load_system_font): Prevent Cleartype fonts from loading.
19542 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 19543
048addec 195442002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 19545
048addec
JD
19546 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
19547 (CURRENT_MODE_LINE_HEIGHT): Use it.
19548 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 19549
048addec
JD
19550 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
19551 (pos_visible_p, handle_face_prop): Likewise.
19552 (display_mode_lines): Likewise, but for the real selected window.
19553 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 19554
048addec
JD
19555 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
19556 in non-selected windows.
19557 (realize_basic_faces): Realize it.
19558 (syms_of_term): Intern and staticpro it.
308dd672 19559
048addec 195602002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 19561
048addec
JD
19562 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
19563 Changed mail addresses to emacs-devel@gnu.org.
308dd672 19564
048addec 195652002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 19566
048addec
JD
19567 * fileio.c (Fsubstitute_in_file_name): If the file name includes
19568 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 19569
048addec 19570 * floatfns.c (Fround): Doc fix.
3c1e6b46 19571
048addec 195722002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 19573
048addec 19574 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 19575
048addec 195762002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 19577
048addec 19578 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 19579
048addec 195802002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 19581
048addec
JD
19582 * keymap.c (where_is_internal): Only check whether definition is
19583 remapped if it fulfills is_command_symbol.
0065bb74 19584
048addec 195852002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 19586
048addec 19587 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 19588
048addec 19589 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 19590
048addec 195912002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 19592
048addec
JD
19593 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
19594 defining command remapping. Doc updated.
19595 (Flookup_key): Remap command through keymap if KEY is a symbol.
19596 (is_command_symbol): New function.
19597 (Fkey_binding): Use it. New optional argument NO-REMAP.
19598 Doc updated. Callers changed. Perform command remapping via
19599 recursive call unless that arg is non-nil.
19600 (where_is_internal): New argument no_remap. Callers changed.
19601 Call recursively to find original key bindings for a remapped
19602 comand unless that arg is non-nil.
19603 (Fwhere_is_internal): New optional argument NO-REMAP.
19604 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 19605
048addec 19606 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 19607 (is_command_symbol): Add prototype.
0d8466cc 19608
048addec
JD
19609 * keyboard.c (Vthis_original_command): New variable.
19610 (syms_of_keyboard): DEFVAR_LISP it.
19611 (command_loop_1): Set it, and perform command remapping.
15fff01d 19612
048addec 196132002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 19614
048addec 19615 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 19616
048addec 196172002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 19618
048addec 19619 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 19620
048addec 196212002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 19622
048addec 19623 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 19624
048addec 196252002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 19626
048addec 19627 * filelock.c (S_ISLNK): Define if not defined.
3a232704 19628
048addec 196292002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 19630
048addec 19631 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 19632
048addec
JD
19633 * lread.c (read1): Redesign strategy for force_multibyte and
19634 force_singlebyte. Now is_multibyte records whether read_buffer
19635 is multibyte. Encountering any multibyte character makes it so.
4e02881b 19636
048addec 196372002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 19638
048addec
JD
19639 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
19640 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 19641
048addec 196422002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 19643
048addec
JD
19644 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
19645 latter never being defined on GNU/Linux.
749f499f 19646
048addec 196472002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 19648
048addec
JD
19649 * xfaces.c (realize_default_face): Don't set the weight and slant of
19650 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 19651
048addec 196522002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 19653
048addec
JD
19654 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
19655 Call cancel_hourglass unconditionally.
d0fd26dd 19656
048addec
JD
19657 * eval.c (Fsignal): Remove duplicated declaration of
19658 the variable `display_hourglass_p'.
b4c45162 19659
048addec 196602002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 19661
048addec 19662 * editfns.c (region_limit): Nicer error message.
c95eaa61 19663
048addec
JD
19664 * coding.c (decode_composition_emacs_mule):
19665 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 19666
048addec
JD
19667 * callint.c (check_mark): New arg to specify clearer error message.
19668 Callers changed.
c95eaa61 19669
048addec 196702002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 19671
048addec 19672 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 19673
048addec 196742002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 19675
048addec
JD
19676 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
19677 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
19678 Fix doc-strings.
c95eaa61 19679
048addec 196802002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 19681
048addec 19682 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 19683
048addec
JD
19684 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
19685 and scroll_up_aggressively.
c95eaa61 19686
048addec 196872002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 19688
048addec 19689 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 19690
048addec 196912002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 19692
048addec
JD
19693 * textprop.c (Fnext_property_change, Fnext_single_property_change)
19694 (Fprevious_property_change, Fprevious_single_property_change):
19695 Stay within the narrowed-buffer boundaries.
e2c3786a 19696
048addec 196972002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 19698
048addec
JD
19699 * term.c (Ftty_display_color_cells): New function.
19700 (syms_of_term): Defsubr it.
19701 (Ftty_display_color_cells, Ftty_display_color_p): Change the
19702 argument name to DISPLAY. Doc fix.
bf794306 19703
048addec
JD
19704 * dispextern.h: Add prototype for set_tty_color_mode and
19705 tty_setup_colors.
bf794306 19706
048addec 197072002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 19708
048addec
JD
19709 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
19710 If region left to draw is not what was expected, mark the frame as
19711 garbaged.
62582985 19712
048addec
JD
19713 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
19714 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 19715
048addec 197162002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 19717
048addec
JD
19718 * w32term.c (x_update_window_begin): Only hide caret if
19719 w32_use_visible_system_caret is set.
19720 (x_update_window_end): Only show caret if
19721 w32_use_visible_system_caret is set.
19722 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 19723
048addec 19724 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 19725
048addec 197262002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 19727
048addec
JD
19728 * unexelf.c (unexec): Define n so as to cause compilation error
19729 for the code where people have often written n instead of nn.
1e9a6186 19730
048addec 19731 * .gdbinit (hookpost-run): Defined.
1e9a6186 19732
048addec 197332002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 19734
048addec 19735 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 19736
048addec 197372002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 19738
048addec
JD
19739 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
19740 if fullscreen is being set.
7c75be36 19741
048addec 197422002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 19743
048addec
JD
19744 * minibuf.c (Fminibuffer_contents)
19745 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
19746 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 19747
048addec 197482002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 19749
048addec 19750 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 19751
048addec 197522002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 19753
048addec
JD
19754 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
19755 height before comparison.
19756 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 19757
048addec 197582002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 19759
048addec
JD
19760 * w32term.c (w32_system_caret_width): Remove.
19761 (w32_use_visible_system_caret): New user flag.
19762 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
19763 Windows reports a screen reader running.
19764 (x_update_window_begin): Hide the system caret.
19765 (x_update_window_end): Show the system caret.
19766 (x_display_and_set_cursor): Don't draw a cursor when
19767 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 19768
048addec
JD
19769 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
19770 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
19771 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
19772 the user requests it. Use system default width when creating.
19773 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 19774
048addec
JD
19775 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
19776 New window messages.
905cc05a 19777
048addec 197782002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 19779
048addec 19780 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 19781
048addec 197822002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 19783
048addec 19784 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 19785
048addec 197862002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 19787
048addec 19788 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 19789
048addec 197902002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 19791
048addec
JD
19792 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
19793 that Windows returns. If a double check fails, try to guess how
19794 ExtTextOut is going to act.
4d0fa4f3 19795
048addec
JD
19796 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
19797 in place of stricmp.
19798 (w32_list_synthesized_fonts): Removed.
19799 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
19800 (struct enumfont_t): New element; list.
19801 (enum_font_cb2): List all style and charset variations of a font.
19802 (Fw32_select_font): New optional argument; include_proportional.
19803 Exclude vertical fonts. Exclude proportional fonts unless
19804 include_proportional is non-nil.
19805 (w32_enable_synthesized_fonts): Change to a boolean.
19806 (Fw32_send_sys_command): Doc fix.
493faf20 19807
048addec 198082002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 19809
048addec
JD
19810 * dispnew.c (update_frame): Move the variable `tem' to the block
19811 where it is used.
4971e491 19812
048addec 198132002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 19814
048addec
JD
19815 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
19816 call to face-set-after-frame-default.
4971e491 19817
048addec 198182002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 19819
048addec
JD
19820 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
19821 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 19822
048addec 198232002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 19824
048addec
JD
19825 * window.c (enlarge_window): When exceeding size of parent,
19826 directly delete all the siblings instead of trying to resize it.
201c831a 19827
048addec 198282002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 19829
048addec 19830 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 19831
048addec 198322002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 19833
048addec 19834 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 19835
048addec 198362002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 19837
048addec
JD
19838 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
19839 is invisible. This can happen if cursor is on top line of a
19840 window, and we switch to a buffer with a header line.
d77fbc16 19841
048addec 19842 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 19843
048addec 198442002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 19845
048addec
JD
19846 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
19847 `dont_resize' only when used.
61e3b944 19848
048addec 19849 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 19850
048addec 198512002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 19852
048addec
JD
19853 * xdisp.c (display_mode_element): When computing charpos, depend
19854 on multibyteness of elt, not the text in field.
8af01033 19855
048addec 198562002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 19857
048addec
JD
19858 * buffer.c (Fkill_all_local_variables):
19859 Increment `update_mode_lines' only once.
7363986a 19860
048addec 198612002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 19862
048addec
JD
19863 * lisp.h (adjust_after_replace_noundo)
19864 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 19865
048addec 19866 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 19867
048addec 198682002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 19869
048addec
JD
19870 Support for the --color command-line argument and tty-color-mode
19871 frame parameter:
f1a85b89 19872
048addec
JD
19873 * term.c (tty_default_color_capabilities, tty_setup_colors)
19874 (set_tty_color_mode): New functions.
19875 (term_init): Call tty_default_color_capabilities.
19876 (Qtty_color_mode_alist): New variable.
19877 (syms_of_term): Intern and staticpro it.
f1a85b89 19878
048addec
JD
19879 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
19880 frames.
19881 (do_switch_frame): For termcap frames, switch the tty
19882 color mode as specified by the frame's parameters.
19883 (Qtty_color_mode): New variable.
19884 (syms_of_frame): Intern and staticpro it.
3a62677f 19885
048addec
JD
19886 * emacs.c (USAGE2): Add the --color option.
19887 (standard_args): Ditto.
72244db2 19888
048addec
JD
198892002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19890
19891 * xterm.h (struct x_output): New members want_fullscreen,
19892 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
19893 y_pixels_outer_diff.
19894 New enum for FULLSCREEN_* constants.
19895 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
19896 is NULL.
19897 (x_fullscreen_adjust): Add prototype.
3a62677f 19898
048addec
JD
19899 * emacs.c (USAGE2): Add the new full-screen arguments.
19900 (standard_args): Ditto.
3a62677f 19901
048addec
JD
19902 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19903 New variables.
19904 (syms_of_xfns): Intern and staticpro them.
19905 (x_frame_parms) <"fullscreen">: New parameter.
19906 (x_fullscreen_move, x_set_fullscreen): New functions.
19907 (x_set_frame_parameters): Support for Qfullscreen.
19908 (x_real_positions): More accurate computation of the frame position.
19909 (x_figure_window_size): Support full-screen frames.
19910 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 19911
048addec
JD
19912 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
19913 (XTread_socket) <Expose>: Call x_check_fullscreen.
19914 <ConfigureNotify>: Don't resize to fullscreen.
19915 Call x_check_fullscreen_move, and set the want_fullscreen member of
19916 output_data.x.
3a62677f 19917
048addec 199182002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 19919
048addec
JD
19920 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
19921 for mice with more than 3 buttons.
b8523839 19922
048addec
JD
19923 * w32term.c (parse_button): New parameter xbutton. Callers changed.
19924 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 19925
048addec
JD
19926 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
19927 (syms_of_w32fns): DEFVAR_BOOL it.
19928 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 19929
048addec 199302002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 19931
048addec 19932 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 19933
048addec 199342002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 19935
048addec 19936 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 19937
048addec 199382002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 19939
048addec
JD
19940 * .gdbinit (xbuffer): Remove address operator since data is now a
19941 pointer.
c93674bb 19942
048addec 199432002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 19944
048addec 19945 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 19946
048addec 19947 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 19948
048addec 199492002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 19950
048addec
JD
19951 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
19952 when checking for multiple frames.
91175673 19953
048addec 199542002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 19955
048addec
JD
19956 * window.c (delete_window): Rewrite the code for changing the
19957 selected window to handle the case where WINDOW is not a leaf.
91175673 19958
048addec 199592002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 19960
048addec
JD
19961 * process.c (send_process): Set src_multibyte to 1 after the call
19962 top setup_coding_system, not before the call.
e0fead5d 19963
048addec 199642002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 19965
048addec
JD
19966 * xmenu.c (set_frame_menubar, xmenu_show):
19967 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 19968
048addec
JD
19969 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
19970 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 19971
048addec 199722002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 19973
048addec 19974 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 19975
048addec 19976 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 19977
048addec 19978 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 19979
048addec 199802002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 19981
048addec
JD
19982 * insdel.c (make_gap_larger): Make sure buffer size does not
19983 overflow range of int.
62854fe2 19984
048addec 199852002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 19986
048addec
JD
19987 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19988 OVERLAPS_P.
656f46bb 19989
048addec 19990 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 19991
048addec
JD
19992 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
19993 to the left or to the right of the pointer, put it against
19994 the left screen edge.
19995 (x_frame_parms): Add missing braces around initializer.
036e218d 19996
048addec
JD
19997 * w32term.c (x_setup_relief_colors): Don't compute an image's
19998 background color if it doesn't have a Pixmap.
19999 (notice_overwritten_cursor): Don't depend on
20000 output_cursor and updated_area. Compare pixel coordinates with
20001 window's cursor pixel coordinates.
20002 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20003 Call notice_overwritten_cursor with new arg list.
20004 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20005 unconditionally.
20006 (x_draw_image_relief): Use predefined macro instead of
20007 constant when the value of `tool_bar_button_relief' is negative.
036e218d 20008
048addec 20009 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 20010
048addec 200112002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 20012
048addec 20013 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 20014
048addec 200152002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 20016
048addec
JD
20017 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
20018 (Fkey_binding): Try the `keymap' property map first.
20019 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
20020 minor mode bindings.
90647b07 20021
048addec 200222002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 20023
3419757d 20024 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 20025
048addec 200262002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 20027
048addec
JD
20028 * keyboard.c (read_key_sequence): Handle the keymap property
20029 before minor mode maps.
9fbc32aa 20030
048addec
JD
20031 * editfns.c (Fformat): Update thissize from field_width
20032 based on the actual width, in the string case.
036e218d 20033
048addec 200342002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 20035
048addec
JD
20036 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
20037 when used as truth value to prevent gcc warnings.
9fbc32aa 20038
048addec
JD
20039 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
20040 * w32proc.c: Include <config.h>.
9fbc32aa 20041
048addec 200422002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 20043
048addec
JD
20044 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
20045 not EMACS_INT, to make them compatible with DEFVAR_INT.
20046 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 20047
048addec 200482002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 20049
048addec
JD
20050 * print.c (print_object): Test print_escape_nonascii only for
20051 unibyte strings.
20052 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
20053 when outputting to a multibyte buffer.
9fbc32aa 20054
048addec 200552001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 20056
048addec
JD
20057 * print.c (print_object): In multibyte string, use hex escapes.
20058 Use octal only for unibyte strings.
20059 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 20060
048addec
JD
20061 * lread.c (read_escape): New arg BYTEREP for reporting whether
20062 escape forces unibyte or multibyte.
20063 (read1): When reading a string, take note of that info.
0142178a 20064
048addec 200652001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 20066
048addec
JD
20067 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
20068 comparison to test lisp value returned by Fget.
d4824a5d 20069
048addec 200702001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 20071
048addec 20072 * lisp.h (max_specpdl_size): Add declaration.
b1356234 20073
048addec 20074 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 20075
048addec
JD
20076 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
20077 Handle modifier bits. Correct typo in error message.
99e380ee 20078
048addec 200792001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 20080
048addec
JD
20081 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
20082 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
20083 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20084 Update calls to Fdefine_abbrev.
20085 (write_abbrev): Update for changed data format.
20086 Don't list "system" abbrevs.
20087 (Fexpand_abbrev): Update use count with new data format.
20088 (describe_abbrev): Update for changed data format.
20089 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 20090
048addec 20091 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 20092
048addec 20093 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 20094
048addec
JD
20095 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
20096 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 20097
048addec
JD
20098 * keymap.c (Flookup_key): Error message if key has wrong data type.
20099 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
20100 (exclude_key): New variable.
59a86c99 20101
048addec 201022001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 20103
048addec
JD
20104 * xterm.c (x_setup_relief_colors): Don't compute an image's
20105 background color if it doesn't have a Pixmap.
eb77a5f4 20106
048addec
JD
20107 * xterm.c (notice_overwritten_cursor): Don't depend on
20108 output_cursor and updated_area. Compare pixel coordinates with
20109 window's cursor pixel coordinates.
20110 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20111 Call notice_overwritten_cursor with new arg list.
20112 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20113 unconditionally.
eb77a5f4 20114
048addec
JD
20115 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
20116 height of the cursor line to the amount to scroll.
eb77a5f4 20117
048addec 201182001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 20119
048addec
JD
20120 * intervals.c (set_point_both): The position after an invisible,
20121 intangible character is not an acceptable stopping point.
bb313871 20122
048addec 201232001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 20124
048addec
JD
20125 * window.c (enlarge_window): In new preserve_before code, convert
20126 CURBEG from lisp object to integer before doing arithmetic.
6052529b 20127
048addec 201282001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 20129
048addec 20130 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 20131
048addec 201322001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 20133
048addec
JD
20134 * keyboard.c (record_char): Ignore duplicate help-echo events only
20135 separated by mouse-movement. When tracking mouse, only record
20136 first and last mouse-movement event in same window.
20137 Don't record mouse-movement events in keyboard macros.
3ce081f5 20138
048addec 201392001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 20140
048addec
JD
20141 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
20142 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 20143
048addec
JD
20144 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
20145 instead of Fstring_as_unibyte.
9fabb2f5 20146
048addec 201472001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 20148
048addec 20149 The following changes remove mocklisp support:
9fabb2f5 20150
048addec 20151 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 20152
048addec
JD
20153 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
20154 `Qmocklisp' and `Qmocklisp_arguments'.
20155 Remove prototype of syms_of_mocklisp.
2fa0eedf 20156
048addec 20157 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 20158
048addec
JD
20159 * callint.c: Do not include mocklisp.h.
20160 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 20161
048addec
JD
20162 * eval.c: Remove variables `Qmocklisp_arguments',
20163 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
20164 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
20165 Do not test for mocklisp case.
20166 (Fwhile): Remove unused variable `tem'.
20167 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 20168
048addec 20169 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 20170
048addec 20171 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 20172
048addec 20173 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 20174
048addec 201752001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 20176
048addec
JD
20177 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
20178 to the left or to the right of the pointer, put it against
20179 the left screen edge.
6108b49c 20180
048addec 201812001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 20182
048addec
JD
20183 * Makefile.in (distclean): Remove .gdbinit if we are building
20184 outside the source tree.
5eea19a4 20185
048addec 201862001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 20187
048addec 20188 * w32.c (emacs_root_dir): New function.
5eea19a4 20189
048addec 20190 * msdos.c (emacs_root_dir): New function.
5eea19a4 20191
048addec
JD
20192 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
20193 of the current drive as the fallback for default_directory.
438e57dd 20194
048addec
JD
20195 * dired.c (file_name_completion): Run the elements of
20196 completion-ignored-extensions through ENCODE_FILE.
438e57dd 20197
048addec
JD
20198 * lisp.h (scmp): Remove prototype, since it's now a static
20199 function private to dired.c.
c88e5347 20200
048addec 202012001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 20202
048addec
JD
20203 * dired.c (scmp): Function moved from minibuf.c.
20204 Delete multibyte handling--used only on encoded strings.
59ce1461 20205
048addec 20206 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 20207
048addec 20208 * fns.c (merge): Add QUIT call.
59ce1461 20209
048addec 202102001-12-18 Dave Love <fx@gnu.org>
8727d588 20211
048addec
JD
20212 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
20213 language/georgian.el.
8727d588 20214
048addec 202152001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 20216
048addec
JD
20217 * Makefile.in (lisp, shortlisp): Synchronize with changes to
20218 lisp/Makefile.in:DONTCOMPILE.
cc63037e 20219
048addec 202202001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 20221
048addec
JD
20222 * xdisp.c (window_box_height): Do not return negative values.
20223 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 20224
048addec 20225 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 20226
048addec 20227 * term.c (keys): Likewise.
deece6f5 20228
048addec 20229 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 20230
048addec 202312001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 20232
048addec
JD
20233 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
20234 patch (COMPOSING_P, not COMPOSING).
28ff4293 20235
048addec 202362001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 20237
048addec 20238 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 20239
048addec
JD
20240 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
20241 before calling decode_coding.
9b46de40 20242
048addec 20243 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 20244
048addec
JD
20245 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
20246 instead of only for COMPOSITION_DISABLED.
9b46de40 20247
048addec 202482001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 20249
048addec 20250 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 20251
048addec 20252 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 20253
048addec
JD
20254 * buffer.h (struct buffer): New field `display_error_modiff'.
20255 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 20256
048addec 20257 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 20258
048addec
JD
20259 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
20260 Call redisplay_window, but not if display_error_modiff field says no.
20261 (redisplay_window_error): New function.
20262 (displayed_buffer): New variable.
20263 (redisplay_internal, redisplay_windows): Call the new functions
20264 instead of redisplay_window directly.
2cd23960 20265
048addec 202662001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 20267
048addec 20268 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 20269
048addec 202702001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 20271
048addec 20272 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 20273 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 20274 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 20275
048addec 202762001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 20277
048addec
JD
20278 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
20279 parameter have a numeric value all the time.
f6fa0866 20280
048addec 20281 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 20282
048addec 202832001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 20284
048addec 20285 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 20286
048addec
JD
20287 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
20288 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 20289
048addec 202902001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 20291
048addec
JD
20292 * xdisp.c (move_it_vertically_backward): Change heuristic
20293 for the case that we didn't move far enough initially.
91c153e2 20294
048addec
JD
20295 * window.c (Frecenter): Simplify computation in the case of window
20296 system frames and ARG < 0; use window_box_height.
65b7d3e7 20297
048addec 202982001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 20299
048addec
JD
20300 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
20301 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 20302
048addec 203032001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 20304
048addec
JD
20305 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
20306 arg is negative.
be676094 20307
048addec 203082001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 20309
048addec
JD
20310 * m/hp800.h: Split the __hpux conditional into the parts
20311 that are right for GNU/Linux too and the parts that are not.
20312 Use the former if GNU_LINUX.
20313 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 20314
048addec 20315 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 20316
048addec 203172001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 20318
048addec
JD
20319 * macros.c, msdos.c, w16select.c: Change doc-string comments to
20320 `new style' [w/`doc:' keyword].
032a857d 20321
048addec 203222001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 20323
048addec
JD
20324 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
20325 before using.
b6270150 20326
048addec 203272001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 20328
048addec
JD
20329 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
20330 keyword].
98cbb9fa 20331
048addec 203322001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 20333
048addec 20334 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 20335
048addec 20336 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 20337
048addec 203382001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 20339
048addec 20340 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 20341 Add comment to explain where the struct came from.
048addec
JD
20342 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
20343 (add_menu_item): Process pop-up menus first to avoid memory leak.
20344 (add_menu_item, w32_menu_display_help): Use `help' field as
20345 Lisp_Object.
20346 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 20347
048addec 203482001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 20349
048addec 20350 * COPYING: Moved back.
fa336b91 20351
048addec
JD
20352 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
20353 Add parentheses around && within ||.
077907d4 20354
048addec 20355 * indent.c (compute_motion): Likewise.
aa2af83a 20356
048addec 20357 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 20358
048addec
JD
20359 * coding.c (setup_coding_system, shrink_encoding_region)
20360 (Fdecode_sjis_char): Likewise.
60a653f1 20361
048addec 203622001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 20363
048addec
JD
20364 * xdisp.c (display_mode_element): Don't read past end of string if
20365 it ends with '%'.
60a653f1 20366
048addec
JD
20367 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
20368 can hold.
60a653f1 20369
048addec
JD
20370 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
20371 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
20372 type changed to Lisp_Object.
20373 (syms_of_data): DEFVAR_LISP them.
60a653f1 20374
048addec 203752001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 20376
048addec
JD
20377 * callproc.c (init_callproc): Set Vdata_directory based on the source
20378 location whenever Emacs was run uninstalled.
60a653f1 20379
048addec 203802001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 20381
048addec
JD
20382 * config.in (HAVE_WORKING_VFORK): New #undefs.
20383 * process.c (create_process):
20384 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
20385 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
20386 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
20387 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
20388 * m/intel386.h (HAVE_VFORK): Likewise.
20389 * m/mips-siemens.h (HAVE_VFORK): Likewise.
20390 * m/mips.h (HAVE_VFORK): Likewise.
20391 * s/freebsd.h (vfork): Remove #define.
20392 * s/lynxos.h (HAVE_VFORK): Remove #undef.
20393 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 20394
048addec 203952001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 20396
048addec
JD
20397 * s/hpux10.h (random): Add undef.
20398 (HAVE_RANDOM): Define it just once.
60a653f1 20399
048addec 204002001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20401
048addec 20402 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 20403
048addec 204042001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 20405
048addec
JD
20406 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
20407 scroll bars of the frame before deleting the frame itself. If the
20408 frame has a widget, delete the frame with XtDestroyWidget, and do
20409 not call XDestroyWindow before that.
60a653f1 20410
048addec 204112001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 20412
048addec 20413 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 20414
048addec 20415 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 20416
048addec 204172001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 20418
048addec
JD
20419 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
20420 excessively large.
60a653f1 20421
048addec
JD
20422 * insdel.c (make_gap_larger): New function.
20423 (make_gap_smaller): New function.
20424 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
20425 Call make_gap_smaller if arg is negative.
60a653f1 20426
048addec 204272001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20428
048addec
JD
20429 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
20430 Pass a dummy argument when calling interrupt_signal.
20431 (parse_menu_item): Mark disabled items before checking for empty def.
20432 (read_char_minibuf_menu_prompt): Make safety more visible.
20433 (read_key_sequence): Add a `first_unbound' variable.
20434 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
20435 unbound prefix as soon as we can detect it.
60a653f1 20436
048addec
JD
20437 * doc.c (Fsnarf_documentation): Add prototype.
20438 (get_doc_string): Handle negative arguments.
20439 (Fdocumentation): Use AREF and ASIZE.
20440 Move the calls to get_doc_string to a single place.
20441 Don't confuse an interactive-spec for a docstring reference.
20442 (Fdocumentation_property): Take advantage of the fact that
20443 get_doc_string now ignores the sign of the docstring position.
60a653f1 20444
048addec 20445 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 20446
048addec 204472001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20448
a64387ee 20449 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 20450
048addec 204512001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20452
048addec
JD
20453 * xterm.c (x_draw_image_relief): Use predefined macro instead of
20454 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 20455
048addec 204562001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 20457
048addec
JD
20458 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
20459 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 20460
048addec 20461 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 20462
048addec 204632001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20464
048addec 20465 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 20466
048addec 204672001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 20468
048addec 20469 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 20470
048addec 204712001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 20472
f63fd14e 20473 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 20474
048addec
JD
20475 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
20476 [!WM_MOUSELEAVE]: Define.
60a653f1 20477
048addec
JD
20478 * w32menu.c (current_popup_menu, get_menu_item_info):
20479 (set_menu_item_info): New vars.
20480 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
20481 (w32_menu_show): Set current_popup_menu.
20482 (add_menu_item): Allocate new strings for owner-drawn menu items
20483 and help strings.
20484 Use owner-draw for disabled menu items again.
20485 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
20486 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 20487
048addec
JD
20488 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
20489 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
20490 <WM_EXITMENULOOP>: Free menu strings.
20491 <WM_MOUSELEAVE>: Stop tracking mouse.
20492 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 20493
048addec
JD
20494 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
20495 and mouse face.
60a653f1 20496
048addec 204972001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 20498
048addec
JD
20499 The following changes add left-fringe and right-fringe
20500 frame parameters to adjust fringe widths, or remove one or
20501 both fringes.
60a653f1 20502
048addec
JD
20503 * frame.h (struct frame): Remove trunc_area_pixel_width and
20504 trunc_area_cols fields.
20505 (Qleft_fringe, Qright_fringe): Declare.
20506 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 20507
048addec
JD
20508 * frame.c (Qleft_fringe, Qright_fringe): New vars.
20509 (syms_of_frame): Initialize them.
60a653f1 20510
048addec
JD
20511 * window.c (coordinates_in_window): Handle separate left and right
20512 fringe widths.
60a653f1 20513
048addec
JD
20514 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
20515 and fringe_cols fields.
20516 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
20517 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
20518 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
20519 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
20520 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
20521 (x_compute_fringe_widths): Add prototype.
60a653f1 20522
048addec
JD
20523 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
20524 fill fringe evenly with small dashes.
f63fd14e 20525 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
20526 clip the new ZV bitmap to avoid jitter between rows.
20527 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
20528 background. Don't draw fringe bitmaps if fringe width is zero.
20529 (x_compute_fringe_widths): New function.
20530 (x_new_font, x_set_window_size_1): Use it.
60a653f1 20531
048addec
JD
20532 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
20533 (x_set_frame_parameters): Process `font' parameter before other
20534 parameters as fringe widths depend on it.
20535 (x_set_fringe_width): New function.
20536 (x_figure_window_size): Use x_compute_fringe_widths.
20537 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
20538 parameters.
60a653f1 20539
048addec
JD
20540 * widget.c (set_frame_size): Use x_compute_fringe_widths.
20541 (EmacsFrameSetCharSize): Ditto.
60a653f1 20542
048addec
JD
20543 * w32term.h: Merged changes from xterm.h.
20544 * w32term.c: Merged changes from xterm.c.
20545 * w32fns.c: Merged changes from xfns.c.
60a653f1 20546
048addec 205472001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20548
048addec 20549 * COPYING: Removed.
60a653f1 20550
048addec 205512001-11-29 Dave Love <fx@gnu.org>
60a653f1 20552
048addec
JD
20553 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
20554 extra extra slot.
20555 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 20556
048addec 205572001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20558
048addec
JD
20559 * fileio.c (file-name-coding-system)
20560 (default-file-name-coding-system): Doc fix (links to referenced
20561 variables added).
60a653f1 20562
048addec 205632001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20564
048addec
JD
20565 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
20566 Add dummy uses of gcproN variables.
60a653f1 20567
048addec
JD
20568 * category.c (describe_category, describe_category_1)
20569 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
20570 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 20571
048addec 205722001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 20573
048addec 20574 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 20575
048addec
JD
20576 * Makefile.in (lispdir): New variable, referring to build dir.
20577 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 20578
048addec 205792001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 20580
048addec
JD
20581 * w32menu.c (w32_menu_display_help): Actually add the new argument
20582 OWNER.
60a653f1 20583
048addec 205842001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 20585
048addec
JD
20586 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
20587 menu items. From David Ponce <dponce@wanadoo.fr>.
20588 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
20589 conditionally.
f63fd14e 20590 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 20591 help event in the owner frame's keyboard buffer.
60a653f1 20592
048addec
JD
20593 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
20594 (Fx_show_tip): Don't subtract last width from row width.
20595
20596 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
20597 (w32_read_socket): Use EQ to compare frames.
60a653f1 20598
048addec 205992001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 20600
048addec
JD
20601 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
20602 OVERLAPS_P.
60a653f1 20603
048addec 206042001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20605
048addec
JD
20606 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
20607 `gcpro3' and `gcpro4'.
60a653f1 20608
048addec 20609 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 20610
048addec 206112001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20612
048addec 20613 * ccl.c: Use AREF and ASIZE.
60a653f1 20614
048addec 206152001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20616
048addec
JD
20617 * lisp.h (run_hook_list_with_args): Remove.
20618 (LIST_END_P): Fix call to wrong_type_argument.
20619 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 20620
048addec 206212001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20622
048addec
JD
20623 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
20624 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 20625
048addec
JD
20626 * eval.c: Use AREF and ASIZE.
20627 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 20628
048addec
JD
20629 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
20630 which match the end of the file-name.
20631 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
20632 is not a valid env var, but leave it as is instead.
60a653f1 20633
048addec
JD
20634 * keymap.c (access_keymap): Handle t bindings like nil bindings.
20635 Make nil bindings in char-tables transparent.
20636 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 20637
048addec 206382001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 20639
048addec
JD
20640 * textprop.c (set_text_properties_1): Allow START, END in either order.
20641 Do nothing if range is empty.
60a653f1 20642
048addec 20643 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 20644
048addec
JD
20645 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
20646 (clean): Not here.
60a653f1 20647
048addec 206482001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20649
048addec
JD
20650 * textprop.c (set_text_properties_1): Clearly mark that the
20651 interval should not be empty.
60a653f1 20652
048addec
JD
20653 * intervals.c (graft_intervals_into_buffer):
20654 Don't call set_text_properties_1 on an empty interval.
60a653f1 20655
048addec 206562001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 20657
048addec 20658 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 20659
048addec
JD
20660 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
20661 don't lose the data in it.
60a653f1 20662
048addec 206632001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 20664
048addec 20665 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 20666
c62aec78 20667 * buffer.c (Fkill_buffer): Likewise.
60a653f1 20668
c62aec78 20669 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 20670
048addec 206712001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20672
048addec 20673 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 20674
048addec 206752001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 20676
048addec
JD
20677 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
20678 Niemitalo <kon@iki.fi>.
60a653f1 20679
048addec 206802001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 20681
048addec 20682 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 20683
048addec
JD
20684 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
20685 (Fx_show_tip): Block input during frame creation.
20686 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 20687
048addec 206882001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 20689
048addec
JD
20690 * lread.c (Fload): Detect recursive load error for more than 3
20691 nestings of the same file.
20692 (Vrecursive_load_depth_limit): Variable deleted.
20693 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 20694
048addec 206952001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 20696
048addec
JD
20697 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
20698 mouse position if either left or top is not specified.
60a653f1 20699
048addec
JD
20700 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
20701 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
20702 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
20703 (my_create_tip_window): Assign tip_window.
20704 (x_create_tip_frame): Use same defaults as X.
20705 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 20706 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 20707
048addec
JD
20708 * w32term.c (x_after_update_window_line): Doc fix.
20709 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
20710 frames.
20711 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 20712
048addec
JD
20713 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
20714 for all Windowed systems.
60a653f1 20715
048addec 207162001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 20717
048addec
JD
20718 * msdos.c (IT_clear_screen): If the frame's faces are not yet
20719 realized, use the initial screen colors to clear the screen.
60a653f1 20720
048addec 207212001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20722
048addec
JD
20723 * textprop.c (Fset_text_properties): Remove unused variables
20724 `unchanged', `prev_changed', `s' and `len'.
60a653f1 20725
048addec
JD
20726 * search.c (Freplace_match): Remove unused variable `inslen'.
20727
20728 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
20729
207302001-11-22 Jason Rumney <jasonr@gnu.org>
20731
20732 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
20733 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
20734 (my_create_tip_window): New function.
20735 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
20736 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
20737
207382001-11-20 Jason Rumney <jasonr@gnu.org>
20739
20740 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
20741 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
20742
20743 * w32fns.c (Vw32_system_coding_system): Remove.
20744 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
20745
207462001-11-19 Stefan Monnier <monnier@cs.yale.edu>
20747
20748 * fileio.c (Fwrite_region): Move choose_write_coding_system to
20749 after build_annotations.
20750
20751 * syntax.c (describe_syntax): Add dummy arg.
20752 (describe_syntax_1): Update call to describe_vector.
20753
20754 * category.c (describe_category): Add dummy arg.
20755 (describe_category_1): Update call to describe_vector.
20756
20757 * keymap.c (Fdescribe_vector): Add `describer' parameter.
20758 (describe_command, describe_translation): Add dummy second param.
20759 (describe_map): Call elt_describer with two arguments.
20760 (describe_vector_princ): Add `fun' parameter.
20761 Call it instead of the hardcoded `princ'.
20762 (describe_vector): Add arg `args'.
20763 Pass it as a new second argument to elt_describer.
60a653f1 20764
048addec 20765 * keymap.h (describe_vector): Update prototype.
60a653f1 20766
048addec
JD
20767 * frame.c: Don't include keymap.h any more.
20768 (keys_of_frame): Remove.
60a653f1 20769
048addec 20770 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 20771
048addec 20772 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 20773
048addec 207742001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 20775
048addec
JD
20776 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
20777 if defined, 0 otherwise.
20778 (MAP_FAILED): Define if not defined and use it to test mmap failure.
20779 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 20780
048addec 207812001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 20782
048addec 20783 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 20784
048addec 207852001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 20786
048addec
JD
20787 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
20788 (x_draw_bar_cursor): If the background color of the glyph under
20789 the cursor equals the frame's cursor color, use the glyph's
20790 foreground color for drawing the bar cursor.
20791 (x_after_update_window_line): Clear internal border in different
20792 circumstances.
20793 (w32_set_vertical_scroll_bar): Check for width and height > 0.
20794 (w32_draw_relief_rect): Correct relief by 1 pixel.
20795 (x_set_glyph_string_background_width):
20796 Set extends_to_end_of_line_p if the row's fill_line_p is set and
20797 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
20798 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
20799 if cursor_in_non_selected_windows is false.
20800 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
20801 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
20802 Notice if cursor gets overwritten.
20803 (notice_overwritten_cursor): Renamed from
20804 note_overwritten_text_cursor. Rewritten to take glyph widths
20805 into account, and to take X positions as parameters.
20806 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
20807 around call to x_draw_glyphs.
20808 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
20809 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
20810 color to use for image glyph reliefs.
20811 (x_draw_image_relief): Accept zero tool_bar_button_relief.
20812 (glyph_rect): Remove unused variable `area'.
60a653f1 20813
048addec
JD
20814 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
20815 some items.
20816 (x_set_internal_border_width): Set frame garbaged when window
20817 doesn't exist yet.
20818 (Fx_create_frame): Accept zero tool_bar_button_relief.
20819 (x_clear_image_1, four_corners_best, image_background)
20820 (image_background_transparent): New functions.
20821 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
20822 (gs_format): Add `:background' entry.
20823 (lookup_image): Set IMG's background color if specified.
20824 (pbm_load, xbm_load_image, png_load): Set IMG's background field
20825 when appropriate.
20826 (x_clear_image_1): Reset `background_valid' and
20827 `background_transparent_valid' fields.
20828 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
20829 calculating it here. Set IMG's background_transparent field.
20830 (enum xpm_keyword_index): Add XPM_BACKGROUND.
20831 (enum png_keyword_index): Add PNG_BACKGROUND.
20832 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
20833 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
20834 (enum gif_keyword_index): Add GIF_BACKGROUND.
20835 (enum gs_keyword_index): Add GS_BACKGROUND.
20836 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
20837 Pre-calculate image background color where necessary.
20838 (x_create_x_image_and_pixmap, xbm_load, gs_load):
20839 Use display info's n_cbits entry for screen depth.
20840 (Fx_show_tip): Remove unused variables `buffer', `top',
20841 `left', `max_width' and `max_height'.
60a653f1 20842
048addec 20843 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 20844
048addec 208452001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 20846
048addec 20847 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 20848
048addec 208492001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20850
048addec 20851 * frame.c (Fframe_live_p): Doc fix.
60a653f1 20852
048addec 208532001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 20854
048addec
JD
20855 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
20856 (message_dolog_marker3): New static variables hold three markers.
20857 (syms_of_xdisp): Initialize and staticpro them.
20858 (message_dolog): Use message_dolog_marker1..3 instead of
20859 allocating markers each time. Unchain them when done.
60a653f1 20860
048addec 208612001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 20862
048addec 20863 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 20864
048addec 208652001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 20866
048addec 20867 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 20868
048addec 208692001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 20870
048addec 20871 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 20872
048addec 208732001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 20874
048addec 20875 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 20876
048addec 208772001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 20878
048addec
JD
20879 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
20880 with invalid position.
60a653f1 20881
048addec 208822001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 20883
048addec 20884 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 20885
048addec
JD
20886 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
20887 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
20888 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 20889
048addec 20890 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 20891
048addec 208922001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20893
048addec
JD
20894 * fileio.c (build_annotations): Split off the tail.
20895 (build_annotations_2): New fun. Extracted from build_annotations.
20896 (Fwrite_region): Split the call to build_annotations into two
20897 calls to build_annotations and build_annotations_2.
077907d4 20898
048addec 208992001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 20900
048addec
JD
20901 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
20902 clear_waiting_for_input with argument.
1756e2fb 20903
048addec 20904 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 20905
048addec 20906 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 20907
048addec 20908 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 20909
048addec 20910 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 20911
048addec 209122001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 20913
048addec
JD
20914 * fileio.c (choose_write_coding_system): New fun, extracted
20915 from Fwrite_region.
20916 (Fwrite_region): Use it.
fa336b91 20917
048addec
JD
20918 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
20919 (funcall_lambda, run_hook_with_args): Make static and add prototype.
20920 (ml_apply, find_handler_clause): Add prototype.
fa336b91 20921
048addec 209222001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 20923
048addec 20924 * config.in: Add #undef HAVE_COFF_H.
fa336b91 20925
048addec
JD
20926 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
20927 Required for ISC 4.1.
fa336b91 20928
048addec 209292001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 20930
52eb0373 20931 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 20932 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 20933
048addec 209342001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 20935
048addec
JD
20936 The following changes are made to clean up the various internal
20937 references to the fringes to actually use the term `fringe' for
20938 them. Previously, they were called `flags areas', `bitmap areas',
20939 `left/right side of windows', or implicitly as `flags' or
20940 `bitmaps':
fa336b91 20941
048addec 20942 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 20943 Comments fixed. Use renamed symbols.
06e8f738 20944
f63fd14e 20945 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 20946
048addec
JD
20947 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
20948 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
20949 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 20950
048addec 20951 * msdos.c: Comment fix.
9ce647f4 20952
048addec 20953 * w32fns.c: Use renamed symbols.
9b784ab8 20954
f63fd14e 20955 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
20956 (fringe_bitmap_type): Renamed from bitmap_type.
20957 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20958 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
20959 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 20960
f63fd14e 20961 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
20962 (fringes_extra): Renamed from flags_areas_extra.
20963 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20964 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20965 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20966 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20967 (FRAME_X_LEFT_FRINGE_WIDTH):
20968 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20969 (FRAME_X_RIGHT_FRINGE_WIDTH):
20970 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 20971
048addec 20972 * widget.c: Use renamed symbols.
9f7e52b4 20973
f63fd14e 20974 * window.c: Comment fixes. Use renamed symbols.
048addec 20975 (coordinates-in-window-p): Doc fix.
fa336b91 20976
f63fd14e 20977 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 20978
048addec 20979 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 20980
048addec 20981 * xfns.c: Use renamed symbols.
89512fcd 20982
f63fd14e 20983 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
20984 (fringe_bitmap_type): Renamed from bitmap_type.
20985 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20986 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
20987 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 20988
f63fd14e 20989 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
20990 (fringes_extra): Renamed from flags_areas_extra.
20991 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20992 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20993 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20994 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20995 (FRAME_X_LEFT_FRINGE_WIDTH):
20996 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20997 (FRAME_X_RIGHT_FRINGE_WIDTH):
20998 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
20999
210002001-11-15 Jason Rumney <jasonr@gnu.org>
21001
21002 * w32menu.c (add-menu-item): Make help_echo and radio buttons
21003 work for most menu items. From David Ponce
21004 <david.ponce@wanadoo.fr>.
21005
210062001-11-15 Gerd Moellmann <gerd@gnu.org>
21007
21008 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
21009 Some x_set_* function expect to be called even if old and new
21010 value are equal.
21011
21012 * xdisp.c (build_desired_tool_bar_string): Accept zero
21013 tool_bar_button_relief.
21014
21015 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
21016
21017 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
21018
21019 * xterm.c (x_draw_bar_cursor): If the background color of the
21020 glyph under the cursor equals the frame's cursor color, use
21021 the glyph's foreground color for drawing the bar cursor.
21022
21023 * dispnew.c (direct_output_forward_char): Fix character/byte
21024 position comparison.
7d18891d 21025
048addec 210262001-11-15 Miles Bader <miles@gnu.org>
d2936d21 21027
048addec
JD
21028 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
21029 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
21030 Update arguments to find_field.
21031 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
21032 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
21033 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
21034 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 21035
048addec 210362001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 21037
048addec 21038 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 21039
048addec
JD
21040 * dispextern.h (image_background, image_background_transparent):
21041 Conditionalize on HAVE_X_WINDOWS.
7d18891d 21042
048addec 210432001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 21044
048addec 21045 * print.c (Fprin1_to_string): Doc fix.
7d18891d 21046
048addec 21047 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 21048
048addec 21049 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 21050
048addec 21051 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 21052
048addec 21053 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 21054
048addec 21055 * eval.c (syms_of_eval): Doc fix.
7d18891d 21056
048addec 21057 * coding.c (syms_of_coding): Doc fix.
7d18891d 21058
048addec 21059 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 21060
048addec 21061 * dispnew.c (syms_of_display): Doc fix.
9474c847 21062
048addec 21063 * category.c (Fget_unused_category): Doc fix.
9474c847 21064
048addec 21065 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 21066
048addec 210672001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 21068
048addec 21069 * print.c (prin1, print): Doc fix.
e3059a5d 21070
048addec 210712001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 21072
048addec
JD
21073 * fontset.h: Remove declarations of variables
21074 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 21075
048addec
JD
21076 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
21077 `Vclip_large_size_font'.
eae936e2 21078
048addec 210792001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 21080
048addec 21081 * w32fns.c: Doc fix.
ddb67bdc 21082
048addec 210832001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 21084
048addec 21085 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 21086
048addec 21087 * fns.c: Doc fix.
6e1b91d7 21088
048addec 21089 * emacs.c: Doc fix.
1c1d3d69 21090
048addec 21091 * coding.c: Doc fix.
1c1d3d69 21092
048addec
JD
21093 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
21094 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
21095 `new style' [w/`doc:' keyword].
b6f4c7ba 21096
048addec 210972001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 21098
048addec
JD
21099 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
21100 LeaveNotify events. Only FocusIn and FocusOut do that now.
21101 (x_display_and_set_cursor): Do display hollow cursors in active
21102 minibuffer windows when they are not selected.
b6f4c7ba 21103
048addec 211042001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 21105
048addec 21106 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
21107 * w32term.c: Change doc-string comments to `new style'
21108 [w/`doc:' keyword]. Doc fixes.
a89f435d 21109
048addec
JD
21110 * w32fns.c: Don't define max.
21111 (Fx_open_connection): Only execute once.
a4cd0cd7 21112
048addec 211132001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 21114
048addec
JD
21115 * ccl.c: Change macros to use do-while block instead of if-else.
21116 Use braces to follow GNU Coding Standards.
eafb659a 21117
048addec 211182001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 21119
048addec 21120 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 21121
048addec 21122 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 21123
048addec
JD
21124 * insdel.c (replace_range): Use adjust_markers_for_replace
21125 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 21126
78819ebb 21127 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 21128
048addec
JD
21129 * textprop.c (set_text_properties_1): New subroutine
21130 broken out of set_text_properties.
21131 (set_text_properties): Use set_text_properties_1.
91823618 21132
048addec
JD
21133 * intervals.c (graft_intervals_into_buffer):
21134 Use set_text_properties_1 to clear out properties.
91823618 21135
048addec
JD
21136 * search.c (Freplace_match): Use replace_range to insert
21137 and delete. Don't request property inheritance from
21138 surrounding text.
86928dfb 21139
048addec 211402001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 21141
048addec 21142 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 21143 vertical fonts. Allow them if face name is explicitly specified.
048addec 21144 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 21145
048addec 211462001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 21147
048addec
JD
21148 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
21149 instead of malloc/free.
a78e0303 21150
048addec 211512001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 21152
048addec
JD
21153 * xfaces.c (merge_face_vectors): Use braces to follow GNU
21154 Coding Standards.
21155 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 21156
048addec 21157 * buffer.c (Fbury_buffer): Likewise.
0c99b139 21158
048addec 21159 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 21160
048addec
JD
21161 * coding.c (encode_coding): Use precomputed value of `src'.
21162 (encode_coding): Remove unused variable `src_end'.
21163 (code_convert_region): Remove unused variables `count'.
830ddd77 21164
048addec 211652001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 21166
048addec
JD
21167 * w32term.c (x_display_and_set_cursor): Do not move system caret
21168 if cursor_glyph is NULL.
55c6d645 21169
048addec 211702001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 21171
048addec 21172 * keymap.c (access_keymap): Fix compilation error.
5de38842 21173
048addec 211742001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 21175
048addec 21176 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 21177
048addec 211782001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 21179
048addec
JD
21180 * intervals.c (graft_intervals_into_buffer):
21181 Remove #ifdef'd-out code.
21182 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 21183
048addec
JD
21184 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
21185 code (eval-current-buffer).
21186 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 21187
048addec 211882001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 21189
048addec 21190 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 21191
048addec 211922001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 21193
048addec 21194 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 21195
048addec
JD
21196 * keyboard.c (make_lispy_event): Check integerness and fix
21197 Lisp_Object/int mixup.
17893c65 21198
048addec 211992001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 21200
048addec 21201 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 21202
048addec
JD
21203 * fontset.c (fontset_font_pattern): Remove unused variable
21204 `family_registry'.
d5360cc7 21205
048addec 21206 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 21207
048addec 212082001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 21209
048addec 21210 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 21211
048addec
JD
21212 * buffer.c (Fkill_buffer): Don't delete auto save file
21213 if buffer is modified.
d9d54213 21214
048addec 212152001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 21216
048addec
JD
21217 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
21218 CHECK_NUMBER_CDR.
b116830b 21219
048addec 212202001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 21221
048addec 21222 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 21223
048addec 212242001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 21225
048addec 21226 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 21227
048addec 212282001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 21229
048addec 21230 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 21231
048addec 212322001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 21233
048addec
JD
21234 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
21235 the program image directly.
982f6c7e 21236
048addec 212372001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 21238
048addec 21239 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 21240
048addec 212412001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 21242
048addec
JD
21243 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
21244 and CHECK_BUFFER.
d31053f9 21245
048addec
JD
21246 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
21247 (record_char): Likewise.
d31053f9 21248
048addec
JD
21249 * keyboard.c (make_lispy_event): Don't insist a drag event must
21250 move to a different buffer position. Instead, check for moving at
21251 least double_click_fuzz.
982f6c7e 21252
048addec 21253 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 21254
048addec 21255 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 21256
048addec
JD
21257 * indent.c (current_column_1, Fmove_to_column): Separate the code
21258 for display-table glyphs from the code for buffer text, to fix
21259 bugs in the former.
830047fd 21260
048addec 212612001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 21262
048addec
JD
21263 * buffer.c (Fbuffer_local_value): New function.
21264 (syms_of_buffer): Defsubr it.
2df5238c 21265
048addec
JD
21266 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
21267 value of `cursor-in-non-selected-windows'.
4e397688 21268
048addec
JD
21269 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
21270 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
21271 (syms_of_xdisp): Initialize it.
48b0f3ae 21272
048addec 212732001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 21274
048addec 21275 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 21276
048addec
JD
21277 * coding.c: Change doc-string comments to `new style' [w/`doc:'
21278 keyword].
3ecaf7e5 21279
048addec
JD
21280 * eval.c (top_level_value, top_level_set): Remove commented and
21281 #ifdef'd-out code.
21282 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 21283
048addec 212842001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 21285
048addec 21286 * xfns.c: Include unistd.h, if it exists.
8db2e33b 21287
048addec 21288 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 21289
048addec 21290 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 21291
048addec 212922001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 21293
048addec
JD
21294 * lisp.h (CHECK_STRING_CAR): New macro.
21295 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
21296 treating XCAR and XCDR as lvalues.
21297 (openp): Use CHECK_STRING_CAR.
21298 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 21299
048addec 213002001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 21301
048addec
JD
21302 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
21303 (SIGMASKTYPE): Define.
1b1acc13 21304
048addec 21305 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 21306
048addec 213072001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 21308
048addec
JD
21309 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
21310 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
21311 Fix typos in comments.
6cb16f95 21312
048addec
JD
21313 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
21314 and #ifdef'd-out code.
21315 Fix and reindent comments.
6cb16f95 21316
048addec 21317 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 21318
048addec
JD
21319 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
21320 argument `i' in macros.
6cb16f95 21321
048addec
JD
21322 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
21323 `i' in macros.
7e9d3c2f 21324
048addec
JD
21325 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
21326 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
21327 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
21328 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
21329 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
21330 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
21331 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
21332 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
21333 in macros.
7e9d3c2f 21334
048addec
JD
21335 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
21336 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
21337 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
21338 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
21339 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
21340 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
21341 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
21342 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
21343 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
21344 (remove unused second argument).
7e9d3c2f 21345
048addec 213462001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 21347
048addec
JD
21348 * syntax.c (describe_syntax): New wrapper.
21349 (Finternal_describe_syntax_value): Rename from describe_syntax.
21350 Don't insert space at front and \n at the end.
21351 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 21352
048addec
JD
21353 * regex.c (re_wctype): Try to fix some warnings.
21354 (regcomp, regexec): Don't forget the __restrict.
9ba48103 21355
048addec 213562001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 21357
048addec 21358 * textprop.c (Fget_char_property): Doc fix.
9ba48103 21359
048addec 213602001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 21361
048addec 21362 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 21363
048addec 21364 * data.c (Fsetq_default): Ditto.
c22e59e1 21365
048addec 21366 * callint.c (Finteractive): Ditto.
9271ed2c 21367
048addec 213682001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 21369
048addec
JD
21370 * macros.c: Don't include keymap.h any more.
21371
213722001-11-01 Richard M. Stallman <rms@gnu.org>
21373
21374 * data.c (Fmake_local_variable): Doc fix.
21375
21376 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
21377 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 21378
048addec 21379 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
21380 bindings along with or instead of the buffer local map.
21381 Make the overriding maps override what they should.
21382
f00691a3 213832001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
21384
21385 * window.c (grow_mini_window): Fix typo in comment.
21386
27188d11
GM
213872001-11-01 Gerd Moellmann <gerd@gnu.org>
21388
7b49b9d2
GM
21389 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
21390 (XTset_vertical_scroll_bar): Likewise.
21391
43f7c3ea
GM
21392 * xfns.c (x_build_heuristic_mask): Use four_corners_best
21393 instead of IMAGE_BACKGROUND.
c22e59e1 21394
b350c2e5
GM
21395 * xfns.c (four_corners_best): Reindent.
21396
c22e59e1 21397 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
21398 Handle :box so that it is possible to specify sexprs.
21399
bf00d461
EZ
214002001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
21401
21402 * s/hpux11.h: New file.
21403
f00691a3 214042001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 21405
2b209b97
PJ
21406 * emacs.c (USAGE1): Show command line option --no-window-system
21407 instead of --no-windows in usage.
21408 (standard_args): Rename --no-windows to --no-window-system.
21409 (bug_reporting_address): Follow Emacs coding conventions.
21410
9dbc9081
PJ
21411 * eval.c (Fcommandp): Doc fix.
21412 Change doc-string comments to `new style' [w/`doc:' keyword].
21413
4e10df59
PJ
21414 * frame.c (Fframe_live_p): Doc fix.
21415
21416 * buffer.c (selective-display-ellipses): Doc fix.
21417
dd387b25
GM
214182001-10-31 Gerd Moellmann <gerd@gnu.org>
21419
fe957e65
GM
21420 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
21421
dd387b25
GM
21422 * xfaces.c (realize_x_face): If C is not a single-byte character,
21423 set the face's colors_copied_bitwise_p instead of the defaulted_p
21424 members which have a different meaning.
21425 (free_face_colors): Do nothing for a face whose colors have been
21426 copied bitwise.
21427
c22e59e1 21428 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 21429
f00691a3 214302001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 21431
687784e8
PJ
21432 * marker.c, mocklisp.c: Change doc-string comments to `new style'
21433 [w/`doc:' keyword].
2e1280f8 21434
b9d9a9b9
GM
214352001-10-31 Gerd Moellmann <gerd@gnu.org>
21436
21437 * fns.c (require_unwind): Return Lisp_Object.
21438
f00691a3 214392001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 21440
fa1361cb
PJ
21441 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
21442 (last-input-char): Revert doc-string to be the same as the
21443 doc-string of `last-input-event'.
21444
6c465a15 21445 * xdisp.c: Fix typos in comments.
48400103 21446
eafa3196
GM
214472001-10-31 Gerd Moellmann <gerd@gnu.org>
21448
21449 * window.c (grow_mini_window): Handle case that the root
21450 window is already smaller than the nominal mininum height.
21451
747d3f2a
SM
214522001-10-30 Stefan Monnier <monnier@cs.yale.edu>
21453
bf9bb76f
SM
21454 * emacs.c (main): Don't call keys_of_macros any more.
21455
21456 * lisp.h (keys_of_macros): Remove.
21457
21458 * macros.c (keys_of_macros): Remove.
21459
747d3f2a
SM
21460 * xfaces.c (Fface_attribute_relative_p): Declare args.
21461
5e905a57
JR
214622001-10-30 Jason Rumney <jasonr@gnu.org>
21463
21464 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
21465 (enum_font_cb2): Ignore fonts with vertical orientation.
21466
3a426197
RS
214672001-10-30 Richard M. Stallman <rms@gnu.org>
21468
21469 * keyboard.c (Finput_pending_p): Doc fix.
21470
a742d646
GM
214712001-10-30 Gerd Moellmann <gerd@gnu.org>
21472
259cf6bc
GM
21473 * xterm.c (x_after_update_window_line): Don't run the code
21474 clearing in borders for rows whose visible height is 0.
21475
3f99f948
GM
21476 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
21477 resized_p flag is set. If not set, use the much less flickering
21478 method previously used.
21479
21480 * dispnew.c (change_frame_size_1): Set frame's resized_p.
21481
21482 * frame.h (struct frame) <resized_p>: New member.
21483
b4a3be43
GM
21484 * lread.c (to_multibyte): Ensure read_buffer is at least twice
21485 as large as the number of bytes to convert.
747d3f2a 21486
a742d646
GM
21487 * lread.c (to_multibyte): New function.
21488 (read1): Use it.
21489
cacbb9e9
EZ
214902001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
21491
21492 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
21493
99cb6b2f
GM
214942001-10-30 Gerd Moellmann <gerd@gnu.org>
21495
327f42ee 21496 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
21497 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
21498 if the row's fill_line_p is set and drawing the last glyph with
21499 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 21500
99cb6b2f
GM
21501 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
21502
8e8223e2
SM
215032001-10-29 Stefan Monnier <monnier@cs.yale.edu>
21504
21505 * xmenu.c: Include coding.h and charset.h.
21506 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
21507 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
21508 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
21509 Explicitly set wv->help. Use `TRUE' rather than `True'.
21510 (menu_help_callback): Use empty_string.
21511
21512 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
21513 (Fx_popup_dialog): Explicitly init f.
21514 (w32_menu_display_help): Use empty_string.
21515
4d083a8f
RS
215162001-10-29 Richard M. Stallman <rms@gnu.org>
21517
b2304472
RS
21518 * fns.c (Frequire): Detect recursive try to require the same
21519 feature 3 or more levels deep, and get error.
21520 (require_unwind): New subroutine.
21521 (require_nesting_list): New variable.
21522 (syms_of_fns): Init and staticpro it.
21523
4d083a8f
RS
21524 * print.c (print_object): Clarify indication of insertion type.
21525
2fe41216
EZ
215262001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
21527
90480000
EZ
21528 * coding.c (syms_of_coding): Document that locale-coding-system is
21529 used for decoding input on X.
21530
2fe41216
EZ
21531 * window.c (Fscroll_left, Fscroll_right): Doc fix.
21532
f00691a3 215332001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
21534
21535 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
21536 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
21537
60ebcfe8
GM
215382001-10-29 Gerd Moellmann <gerd@gnu.org>
21539
9a7bdceb
GM
21540 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
21541 use NO_CURSOR if cursor_in_non_selected_windows is false.
21542
3f08fcd2
GM
21543 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
21544 the slant attribute if FRAME is t.
21545
0ccfdad2
GM
21546 * xfns.c (x_set_internal_border_width): Set frame garbaged
21547 when X window doesn't exist yet.
21548
ef253080
GM
21549 * xterm.c (x_after_update_window_line): Clear internal border
21550 in different circumstances.
b116830b 21551
60ebcfe8
GM
21552 * xterm.c (XTread_socket) <KeyPress>: Don't use
21553 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
21554 <handa@etl.go.jp>.
21555
73d25f9c
EZ
215562001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
21557
21558 * m/ibms390.h: New file. From Adam Thornton
21559 <athornton@sinenomine.net>.
21560
cac1daf0
GM
215612001-10-28 Gerd Moellmann <gerd@gnu.org>
21562
053b3256 21563 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 21564
cac1daf0
GM
21565 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
21566 a loop counter.
21567
f00691a3 215682001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 21569
f9711de4 21570 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 21571
4707d2d0
PJ
21572 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
21573 keyword].
21574 Fix typos in comments.
b116830b 21575
d883731c
PJ
21576 * emacs.c (bug_reporting_address): New function.
21577 Use it when displaying usage message.
21578
04012254
PJ
21579 * minibuf.c (read_minibuf): Remove unused external declaration of
21580 variable `Qread_only'.
21581
13b1a09c
PJ
21582 * keymap.c (access_keymap): Remove unused variable `charset'.
21583
5bbf4378
MB
215842001-10-28 Miles Bader <miles@gnu.org>
21585
21586 * xfaces.c (merge_face_heights): Handle TO being relative as well.
21587 Remove #ifdef'd-out code.
21588 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
21589 (syms_of_xfaces): Initialize them.
21590
1ce1e4ee
JR
215912001-10-27 Jason Rumney <jasonr@gnu.org>
21592
21593 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
21594 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
21595 position using the system caret.
21596
21597 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
21598 (w32_system_caret_height, w32_system_caret_x)
21599 (w32_system_caret_y): New variables for tracking system caret.
21600 (w32_initialize): Initialize them.
c2d53558 21601 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 21602
c2d53558
SM
21603 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
21604 New messages types.
1ce1e4ee
JR
21605
21606 * w32term.c (note_mouse_highlight): Clear old help_echo.
21607
f00691a3 216082001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 21609
bb4600a4
PJ
21610 * xterm.c: Fix typo in a comment.
21611
7db35a48
PJ
21612 * emacs.c: Fix typos in comments.
21613 Remove unnecessary spaces.
21614 Change doc-string comments to `new style' [w/`doc:' keyword].
21615 (USAGE2): Fix typos in usage string.
21616
a7248e4f
PJ
21617 * xterm.c: Fix typo in a comment.
21618
52eb0373 21619 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
21620 emacs.c.
21621
62725a92
GM
216222001-10-27 Gerd Moellmann <gerd@gnu.org>
21623
798dbe1f 21624 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 21625 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
21626 farther backward when target_y was not reached.
21627
62725a92
GM
21628 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
21629 Display errno only if non-zero.
21630 (sound_warning): New function.
21631 (vox_configure): Don't treat failing to set sample rate as error.
21632 (various places): Improve error messages.
21633
d4e34d24
EZ
216342001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
21635
944e6f60
EZ
21636 * fileio.c (Faccess_file): Run the argument filename through
21637 Fexpand_file_name, before using it.
21638
d4e34d24
EZ
21639 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
21640 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
21641
38d2af0c
GM
216422001-10-26 Gerd Moellmann <gerd@gnu.org>
21643
da80a8d5
GM
21644 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
21645
38d2af0c
GM
21646 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21647 Fix clearing in the case of scroll bars on the right.
c2d53558 21648
45de4a6f 216492001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
21650
21651 * w32gui.h (XImage): Add a dummy typedef.
21652
fbd5ceb2
GM
216532001-10-26 Gerd Moellmann <gerd@gnu.org>
21654
c2d53558 21655 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 21656
b23236fb
EZ
216572001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
21658
21659 * frame.c (Fframe_parameter): Fix last change.
21660
5d991fc4
EZ
21661 * fileio.c: Revert last change (which removed old commented-out
21662 version of expand-file-name). Add a comment that explains why
21663 this old version should not be removed.
21664
879eadc3
GM
216652001-10-25 Gerd Moellmann <gerd@gnu.org>
21666
75700ff2
GM
21667 * frame.c (Fframe_parameter): Fix a bug whereby some
21668 ``artificial'' frame parameters, like `minibuffer' were not
21669 obtained by calling Fframe_parameters.
21670
dfe92a6a
GM
21671 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
21672 cursor differently.
21673
879eadc3
GM
21674 * xdisp.c (move_it_vertically_backward): Compute line height
21675 differently. Add heuristic to try to be more compatible to 20.x.
21676
e1010ebe
SM
216772001-10-25 Stefan Monnier <monnier@cs.yale.edu>
21678
d73a471b
SM
21679 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
21680
d6da5a06
GM
21681 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
21682 boolean.
e1010ebe 21683
f66bd220
MB
216842001-10-25 Miles Bader <miles@gnu.org>
21685
21686 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
21687 BG is a pointer to a structure, not a structure.
21688 (gif_format, png_format): Add missing commas.
21689
d436d538
RS
216902001-10-24 Richard M. Stallman <rms@gnu.org>
21691
21692 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 21693 (syms_of_xfaces): Defsubr it.
d436d538 21694
f00691a3 216952001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
21696
21697 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
21698 variable `area'.
21699
f00691a3 217002001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 21701
c2d53558 21702 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 21703
e2a57b34
MB
217042001-10-25 Miles Bader <miles@gnu.org>
21705
21706 * dispextern.h (struct image): Add `background',
21707 `background_valid', and `background_transparent' fields.
21708 (image_background, image_background_transparent): New declarations.
21709 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
21710 * xfns.c (image_background, image_background_transparent)
21711 (four_corners_best): New functions.
c2d53558 21712 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
21713 (gs_format): Add `:background' entry.
21714 (lookup_image): Set IMG's background color if specified.
21715 (pbm_load, xbm_load_image, png_load): Set IMG's background field
21716 when appropriate.
21717 (x_clear_image_1): Reset `background_valid' and
21718 `background_transparent_valid' fields.
21719 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
21720 calculating it here. Set IMG's background_transparent field.
21721 (enum xpm_keyword_index): Add XPM_BACKGROUND.
21722 (enum png_keyword_index): Add PNG_BACKGROUND.
21723 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
21724 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
21725 (enum gif_keyword_index): Add GIF_BACKGROUND.
21726 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 21727 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
21728 Pre-calculate image background color where necessary.
21729 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
21730 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
21731 color to use for image glyph reliefs.
21732
b547b6e8
GM
217332001-10-24 Gerd Moellmann <gerd@gnu.org>
21734
d9e3b8c6
GM
21735 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
21736 in full-width rows.
c2d53558 21737
b547b6e8
GM
21738 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21739 Fix clearing of area not covered by scroll bar.
21740
f00691a3 217412001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 21742
52eb0373 21743 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 21744 and `real_start'.
c2d53558 21745 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
21746 (glyph_rect): Remove unused variable `area'.
21747
76cb5e06
GM
217482001-10-24 Gerd Moellmann <gerd@gnu.org>
21749
bdbdebff 21750 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
21751
21752 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
21753 (row_containing_pos): Take additional argument DY.
21754 Treat rows ending in middle of char differently.
62e33982
GM
21755 (display_line): Handle tabs on window systems differently.
21756
21757 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
21758 with additional argument.
21759
21760 * dispextern.h (row_containing_pos): Adjust prototype.
21761
76cb5e06
GM
21762 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
21763 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
21764 (try_window_id, try_window_reusing_current_matrix)
21765 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 21766 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 21767
f00691a3 217682001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 21769
c9e60620
PJ
21770 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
21771 gnuemacs).
21772 (HAVE_BOXES): Fix typo in comment.
21773 (push_menu_pane): Fix typo in comment.
21774
52eb0373 21775 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
21776 of `Qwhen'.
21777 (single_display_prop_string_p): Remove unused local declarations
21778 of `Qwhen' and `Qmargin'.
21779 (string_buffer_position): Remove unused variable `around'.
21780 (store_frame_title): Remove unused variable `width'.
21781
15c565ac
PJ
21782 * window.c: Don't define max.
21783 (coordinates_in_window): Remove unused variable `uy'.
21784
a8818eb9
PJ
21785 * widget.c: Don't define max.
21786
996fee11
PJ
21787 * process.c: Don't define max.
21788 (create_process): Remove unused variable `buffer'.
21789
496e1a5b
GM
217902001-10-23 Gerd Moellmann <gerd@gnu.org>
21791
c2d53558 21792 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 21793
5905ae8b
EZ
217942001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
21795
21796 * xfaces.c (Finternal_set_lisp_face_attribute)
21797 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
21798 frame is on a windowed display.
21799
24db49fb
GM
218002001-10-23 Gerd Moellmann <gerd@gnu.org>
21801
c2d53558
SM
21802 * dispnew.c (sync_window_with_frame_matrix_rows):
21803 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
21804 of marginal areas.
21805
c2d53558 21806 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 21807
f0487f05
EZ
218082001-10-23 Andreas Schwab <schwab@suse.de>
21809
21810 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
21811 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
21812
f0a48a01
GM
218132001-10-23 Gerd Moellmann <gerd@gnu.org>
21814
c2d53558 21815 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
21816 REAL_END. Notice if cursor gets overwritten.
21817 (notice_overwritten_cursor): Take X positions as parameters.
21818 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
21819 around call to x_draw_glyphs.
21820
f00691a3 218212001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 21822
fc11dff0
PJ
21823 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
21824 instead of C) and usage.
a50a10a0 21825
fc11dff0
PJ
21826 * editfns.c (char-to-string): Fix argument names (use CHAR instead
21827 of C) and usage.
a50a10a0
PJ
21828
21829 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
21830 `left', `max_width' and `max_height'.
21831
8738febd
GM
218322001-10-23 Gerd Moellmann <gerd@gnu.org>
21833
21834 * xdisp.c (display_line): For a tab continued to the next line,
21835 set row's ends_in_middle_of_char_p.
21836
653c329b
GM
218372001-10-22 Gerd Moellmann <gerd@gnu.org>
21838
21839 * xdisp.c (display_line): Fix computation of continuation lines
21840 width for TABs.
21841
f00691a3 218422001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 21843
7ba51063
PJ
21844 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
21845 `Qlaplace'.
21846
f958c5ac
PJ
21847 * fileio.c: Remove unused code.
21848
eb360291
MB
218492001-10-22 Miles Bader <miles@gnu.org>
21850
21851 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
21852 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
21853 Remove `DOC_STRINGS_IN_COMMENTS' cases.
21854
98515cf0
JR
218552001-10-21 Jason Rumney <jasonr@gnu.org>
21856
21857 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
21858
93026d88
EZ
218592001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
21860
21861 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
21862 (Finsert_string): Avoid the multi-line string literals warning.
21863
c9a95b79
MB
218642001-10-22 Miles Bader <miles@gnu.org>
21865
21866 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
21867 (Fdocumentation): Don't use it.
21868 (syms_of_doc): Don't initialize it.
21869
21870 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
21871 * print.c (Fwith_output_to_temp_buffer): Likewise.
21872 * window.c (Fsave_window_excursion): Likewise.
c2d53558 21873 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 21874 (Fsave_restriction): Likewise.
c2d53558
SM
21875 * eval.c (Frun_hooks, Frun_hook_with_args)
21876 (Frun_hook_with_args_until_failure)
21877 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
21878 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
21879 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
21880 (Funwind_protect, Fcondition_case): Likewise.
21881 * coding.c (Ffind_operation_coding_system): Likewise.
21882 * keyboard.c (Ftrack_mouse): Likewise.
21883
a3b10252
MB
218842001-10-21 Miles Bader <miles@gnu.org>
21885
c2d53558 21886 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
21887 (Fmake_hash_table): Add usage: string to doc string.
21888 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 21889 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
21890 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
21891 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
21892 (Fml_prefix_argument_loop): Likewise.
21893
f00691a3 218942001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 21895
c2d53558 21896 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 21897
c6f73eec
PJ
21898 * sysdep.c (init_sys_modes): Change doc-string comments to `new
21899 style' [w/`doc:' keyword].
21900
21901 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
21902 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
21903 comments to `new style' [w/`doc:' keyword].
21904
3cf3436e
JR
219052001-10-21 Jason Rumney <jasonr@gnu.org>
21906
21907 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
21908
c169b8f1
JR
21909 * w32term.c (remember_mouse_glyph): New function.
21910 (w32_mouse_position): Use it.
21911 (note_mouse_movement): If the mouse moved off the glyph, remember
21912 its new position.
c2d53558 21913
4fdd691b
JR
21914 * w32term.h (struct w32_output): Correct spelling of x_compatible.
21915 (w32_display_info): Add mouse_face_overlay.
21916
c169b8f1
JR
21917 * w32term.c (notice_overwritten_cursor): Renamed from
21918 note_overwritten_text_cursor. Rewritten to take glyph widths into
21919 account.
21920 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
21921 (fast_find_string_pos): New function.
21922 (fast_find_position): Return the correct vpos. Add parameter
21923 STOP. In the final row, stop before glyphs having STOP as object.
21924 Don't consider glyphs that are not from a buffer.
21925 (fast_find_position) [0]: Add a presumably more correct version
21926 for after 21.1.
21927 (expose_window_tree, expose_frame): Don't compute intersections here.
21928 (expose_window): Do it here instead.
21929 (expose_window_tree, expose_window, expose_line): Return 1 when
21930 overwriting mouse-face.
21931 (expose_window): If W is the window currently being updated, mark
21932 the frame garbaged.
21933 (expose_frame): If mouse-face was overwritten, redo it.
21934 (x_use_underline_position_properties): New variable.
21935 (syms_of_xterm): DEFVAR_BOOL it.
21936 (x_draw_glyph_string): Add comment to use it in future.
21937 (x_draw_glyph_string): Restore clipping after drawing box.
21938 Fix a computation of the underline position.
21939 (w32_get_glyph_string_clip_rect): Minor cleanup.
21940 (x_fill_stretch_glyph_string): Remove an assertion.
21941 (x_produce_glyphs): Don't convert multibyte characters
21942 to unibyte characters in unibyte buffers.
21943 (cursor_in_mouse_face_p): New function.
21944 (x_draw_stretch_glyph_string): Use it to choose a different GC
21945 when drawing a cursor within highlighted text. Don't draw
21946 background again if it has already been drawn.
21947 (x_draw_glyph_string_box): Don't draw a full-width
21948 box just because the glyph row's full_width_p flag is set.
21949 (x_draw_glyphs): Fix computation of rightmost x for
21950 full-width rows.
21951 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
21952 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 21953 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
21954 (x_update_window_end): Handle overwritten mouse face
21955 also for tool bar windows.
21956 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
21957 DRAW is DRAW_IMAGE_RAISED.
21958 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
21959 actually redrawn. Make the function static.
21960 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
21961 optimize away highlighting if we pass over that same overlay again.
21962 (note_mouse_highlight): Call mouse_face_overlay_overlaps
21963 to detect a case where we have to highlight a different region
21964 despite not having left the currently highlighted region.
21965 Set mouse_face_overlay in the x_display_info. Avoid changing the
21966 mouse pointer shape when show_mouse_face has already done it, or
21967 there is no need. Handle mouse-face and help-echo in strings.
21968 (glyph_rect): New function.
21969 (w32_mouse_position): Use it to raise the threshold for mouse
21970 movement event generation.
21971 (w32_initialize_display_info): Initialize the x_display_info's
21972 mouse_face_overlay.
21973 (w32_set_vertical_scroll_bar): Don't clear a zero height
21974 or width area.
21975 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
21976 a widget to zero height.
21977
3cf3436e 21978 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 21979 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
21980 equivalents in menu_items.
21981 (w32_menu_show): Don't overwrite an item's name with its key
21982 description in case the description is a multibyte string.
21983 (single_submenu): Some cleanup.
21984
21985 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
21986 (postprocess_image): New function.
21987 (lookup_image): Call it for all image types except PostScript.
21988 (x_kill_gs_process): Call postprocess_image.
21989 (tiff_error_handler, tiff_warning_handler): New functions.
21990 (tiff_load): Install them as handlers.
21991 (x_kill_gs_process): Recognize if someone has cleared the image
21992 cache under us.
21993 (valid_image_p): Protect better against invalid image
21994 specifications. Previous code could signal an error.
21995 (Fx_hide_tip, Fshow_tip): Doc fix.
21996 (Fv_max_tooltip_size): New variable.
21997 (syns_of_xfns): DEFVAR_LISP it.
21998 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 21999 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
22000 window_width. Use a maximum tooltip size specified by
22001 Vx_max_tooltip_size, if that has valid contents.
22002 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
22003 Make sure the tooltip is completely visible.
22004 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
22005 (Fx_create_frame): Adjust the frame's height for presence
22006 of the tool bar before calling x_figure_window_size.
22007 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
22008 when the window gets smaller.
22009 (x_set_foreground_color): Set frame's cursor_pixel.
22010 (x_set_foreground_color, x_set_background_color): Cleaned up.
22011 (x_set_font): Handle case of x_new_fontset returning the same name
22012 as before, although there was a change in fontsets.
22013
386ca361
MB
220142001-10-21 Miles Bader <miles@gnu.org>
22015
c2d53558 22016 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
22017 (Flogxor): Add usage: string to doc string.
22018 * charset.c (Fstring): Likewise.
22019 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
22020 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
22021
f00691a3 220222001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 22023
03be2694
PJ
22024 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
22025
22026 * alloc.c: Reindent DEFUNs with doc: keywords.
22027
22028 * abbrev.c (Finsert_abbrev_table_description): Reindent.
22029
14ff1ee0
PJ
22030 * frame.c: Change doc-string comments to `new style' [w/`doc:'
22031 keyword].
22032
2f147815 22033See ChangeLog.9 for earlier changes.
6922b018
KH
22034
22035;; Local Variables:
49b3bd82 22036;; coding: iso-2022-7bit
6922b018 22037;; End:
2a34a036 22038
2f147815 22039 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
22040 Copying and distribution of this file, with or without modification,
22041 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
22042
22043;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4