(Fmodify_frame_parameters): Return a value.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
52b2c096
AS
12007-02-16 Andreas Schwab <schwab@suse.de>
2
3b58be21
AS
3 * frame.c (Fmodify_frame_parameters): Return a value.
4
52b2c096
AS
5 * editfns.c (Fformat): Add support for '+' flag.
6 * doprnt.c (doprnt1): Likewise. Fix overflow checking.
7
44713939
CY
82007-02-14 Chong Yidong <cyd@stupidchicken.com>
9
10 * s/umips.h: Unused file removed.
11
424f6998
JB
122007-02-14 Juanma Barranquero <lekktu@gmail.com>
13
14 * xfaces.c (Fcolor_distance): Don't continue checking a color for
15 errors after it has been correctly parsed as an RGB list.
16
6dac214c
JD
172007-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18
19 * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
20
409d2613
YM
212007-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22
23 * macfns.c (Fx_focus_frame): Move current process to foreground if
24 it is not.
25 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
26 #ifdef MAC_OSX.
27 (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
28 Fmac_set_font_panel_visibility. All uses changed. Rename argument
29 VISIBLE to FLAG.
30
31 * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
32 (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
33 MakeMeTheFrontProcess.
34
09efb30a
CY
352007-02-12 Chong Yidong <cyd@stupidchicken.com>
36
37 * frame.c (x_set_screen_gamma): Clear face cache.
38
550934c8
JB
392007-02-11 Juanma Barranquero <lekktu@gmail.com>
40
41 * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
42 Reflow docstrings.
43
3570640e
EZ
442007-02-10 Eli Zaretskii <eliz@gnu.org>
45
46 * window.c (Fwindow_height, Fwindow_hscroll)
47 (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
48 (Fwindow_end, Fwindow_display_table, Fwindow_text_height):
49 Document the effect of WINDOW arg being nil.
50
2b7ef867
KS
512007-02-08 Kim F. Storm <storm@cua.dk>
52
53 * minibuf.c (read_minibuf): Fix 2007-01-30 change.
550934c8 54 Use Qlambda as interim value of Vminibuffer_completing_file_name.
ac6ee452 55 (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
2b7ef867
KS
56 (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
57
8b57a7fd
JB
582007-02-07 Juanma Barranquero <lekktu@gmail.com>
59
60 * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
61 of $(ALL_DEPS).
62
f3d5bd22
EZ
632007-02-07 Eli Zaretskii <eliz@gnu.org>
64
65 * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
66 put into $(BLD).
67
c9008e63
CY
682007-02-06 Chong Yidong <cyd@stupidchicken.com>
69
70 * frame.c (Fmodify_frame_parameters): Don't bind
71 Qinhibit_default_face_x_resources, which has no effect.
72 (Qinhibit_default_face_x_resources): Symbol deleted.
73
77083ca3
EZ
742007-02-03 Eli Zaretskii <eliz@gnu.org>
75
76 * indent.c (Fmove_to_column): Document that the argument COLUMN is
77 taken from prefix numeric argument.
78
191c4353
JB
792007-02-03 Juanma Barranquero <lekktu@gmail.com>
80
81 * lread.c (syms_of_lread) <load-history>: Doc fix.
82
5e1a6e32
JB
832007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
84
85 * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
86 Use the foreground color of the scroll-bar face when drawing
87 the scroll-bar's border.
1024f9c0 88
849bb789
JD
892007-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
90
91 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
92 calling wm_supports.
93
099de390
JB
942007-02-01 Juanma Barranquero <lekktu@gmail.com>
95
96 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
97 Wording by Eli Zaretskii.
98
0cba6386
JD
992007-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
100
101 * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
102
25752d87
RS
1032007-01-30 Richard Stallman <rms@gnu.org>
104
105 * minibuf.c (read_minibuf):
106 Save and clear Vminibuffer_completing_file_name.
107 (read_minibuf_unwind): Restore it.
108 (Vminibuffer_completion_table, Qminibuffer_completion_table)
109 (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
110 (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
111 (Vminibuffer_completing_file_name): Definitions moved up.
112
956d1928
CY
1132007-01-29 Chong Yidong <cyd@stupidchicken.com>
114
115 * m/hp800.h: Restore, removing HP-UX support.
116
4abaeb50
JD
1172007-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
118
119 * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
120
d9380425
RS
1212007-01-28 Richard Stallman <rms@gnu.org>
122
123 * minibuf.c (Ftry_completion, Fall_completions)
124 (Fcompleting_read, Ftest_completion):
125 Rename arg ALIST or TABLE to COLLECTION.
126
b99e3557
CY
1272007-01-27 Chong Yidong <cyd@stupidchicken.com>
128
129 * unexhp9k800.c: Remove due to lack of legal papers.
130
131 * m/sr2k.h, m/hp800.h: Remove due to dependence on above.
132
4fda07c1
EZ
1332007-01-27 Eli Zaretskii <eliz@gnu.org>
134
65849ada
EZ
135 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
136
4fda07c1
EZ
137 * minibuf.c (Fcompleting_read): Doc fix.
138
aa4ff486
JD
1392007-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
140
cddb7844
JD
141 * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
142
aa4ff486
JD
143 * Makefile.in: Use XFT_LIBS if defined.
144
3fb8b536
YM
1452007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
146
147 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
148 BLOCK_INPUT/UNBLOCK_INPUT.
149
150 * blockinput.h (interrupt_input_blocked): Declare volatile.
151
152 * keyboard.c (interrupt_input_blocked): Declare volatile.
153
154 * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
155
ff40b263
KS
1562007-01-24 Kim F. Storm <storm@cua.dk>
157
158 * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
159
9671c13a
JB
1602007-01-23 Juanma Barranquero <lekktu@gmail.com>
161
162 * editfns.c (Finsert_char): Doc fix.
163 (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
164
447466a5
YM
1652007-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
166
167 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Don't
168 pass keyboard modifiers to mac_store_drag_event, but put them as
169 kEventParamKeyModifiers Apple event parameter.
170
64401adc
CY
1712007-01-21 Chong Yidong <cyd@stupidchicken.com>
172
173 * xdisp.c (try_window): Revert previous change.
174
175 * dispnew.c (update_text_area): Revert 2006-09-17 change.
176 Always redraw non-mode-line rows with mouse-face.
177
7d100727
CY
1782007-01-20 Chong Yidong <cyd@stupidchicken.com>
179
180 * xdisp.c (try_window): Clear mouse-face highlights first.
181
182 * window.c (set_window_buffer): Revert 2006-11-22 change.
183
4e251bd1
EZ
1842007-01-20 Eli Zaretskii <eliz@gnu.org>
185
186 * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
187 (xbuffer, xcons, xcar, xcdr): Fix doc strings.
188
25170427
CY
1892007-01-20 Chong Yidong <cyd@stupidchicken.com>
190
191 * keyboard.c (read_key_sequence): Extract local map only if the
192 given position is in an accessible buffer region.
193
acb38529
NR
1942007-01-19 Nick Roberts <nickrob@snap.net.nz>
195
196 * .gdbinit: Reformat documentation so that first sentence
197 displays properly with "help user-defined" (like apropos).
198
9671c13a 1992007-01-18 Bruno Haible <bruno@clisp.org> (tiny change)
4a75434a
CY
200
201 * epaths.in: Move PATH_DOC from local/info to local/share/info.
202
a35c8b70
YM
2032007-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
204
4e251bd1 205 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
a35c8b70 206 Create movable modal window instead of movable alert window.
4e251bd1
EZ
207 (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
208 of DisableControl.
a35c8b70
YM
209
210 * macselect.c (Fmac_resume_apple_event): Set error number when
211 descriptor type of reply is non-null.
212
28c96b4d
YM
2132007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
214
4e251bd1 215 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Use
28c96b4d
YM
216 DisableControl for disabled items. Set default button to first
217 enabled one. Use icon of application in execution.
218
9bd1cd35
EZ
2192007-01-13 Eli Zaretskii <eliz@gnu.org>
220
9671c13a
JB
221 * process.c (Fdelete_process, Fprocess_id, sigchld_handler):
222 Copy PID into EMACS_INT to avoid GCC warnings.
d30fe779 223
9bd1cd35
EZ
224 * fns.c (maybe_resize_hash_table): Copy new size of hash table
225 into EMACS_INT to avoid GCC warnings.
226
227 * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
228 geteuid and getuid into EMACS_INT to avoid GCC warnings.
229
230 * dired.c (Ffile_attributes): Fix last change.
231
b55445d6
EZ
2322007-01-12 Eli Zaretskii <eliz@gnu.org>
233
234 * dired.c (Ffile_attributes): Copy some members of `struct stat'
235 into int's to avoid GCC warnings about limited range of short in
236 arguments to FIXNUM_OVERFLOW_P.
237
37370cea
YM
2382007-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
239
240 * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
241 (mac_handle_dialog_event, install_dialog_event_handler)
242 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
243 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
244 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
245 (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
246 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
247 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
248 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
249 (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
250 (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
251 (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
252
253 * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]: Call
254 mac_prepare_for_quickdraw.
255 (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
256 outside #ifdef MAC_OSX.
257 (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
258 outside #ifdef MAC_OSX.
259 (mac_check_bundle) [MAC_OSX]: Remove unused function.
260
261 * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
262 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
263
959dc601
JD
2642007-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
265
266 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
267 block/unblock SIGIO.
268
8b9ae6b0
SM
2692007-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
270
c5c6b2cc
SM
271 * editfns.c (Fformat): Allow integer-format to work with floats of size
272 larger than most-positive-fixnum (but still smaller than MAXINT).
273
8b9ae6b0
SM
274 * dired.c (Ffile_attributes): Use floats for large uids/gids.
275
c7ed3276
EZ
2762007-01-09 Eli Zaretskii <eliz@gnu.org>
277
278 * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
279
5d348d3f
YM
2802007-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
281
282 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
283 around mkstemp.
284
285 * image.c (XDrawLine) [MAC_OS]: Remove macro.
286 (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
287 (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
288 XCreateGC_pixmap.
289
290 * macgui.h (Display): Typedef to opaque type.
291
292 * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
293 (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
294 Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
8b9ae6b0
SM
295 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
296 Use mac_quit_char_key_p.
5d348d3f
YM
297
298 * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
299 (XCreateGC): Change type of 2nd argument to void *.
300 (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
301 Fix last change.
302 (mac_to_emacs_modifiers): Change return type to int.
303 [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
304 (mac_mapped_modifiers): New function.
305 (XTread_socket): Use it.
306 [USE_TSM] (mac_handle_text_input_event): Likewise.
307 (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
8b9ae6b0
SM
308 (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
309 Remove variables.
5d348d3f
YM
310 (mac_determine_quit_char_modifiers, init_quit_char_handler)
311 [MAC_OSX]: Remove functions.
312 (make_ctrl_char) [MAC_OSX]: Add extern.
313 (mac_quit_char_key_p) [MAC_OSX]: New function.
314 (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
315
316 * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
317 (XCreateGC): Change type in extern.
318 (XDrawLine): Rename from mac_draw_line_to_pixmap.
319 (mac_quit_char_key_p) [MAC_OSX]: Add extern.
320
287110f5
JD
3212007-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
322
4c180390
JD
323 * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
324 interrupt_input_pending.
325
287110f5
JD
326 * xterm.h (x_display_info): New: net_supported_atoms,
327 nr_net_supported_atoms and net_supported_window.
328
9671c13a 329 * xterm.c (last_user_time): New variable.
287110f5
JD
330 (handle_one_xevent): Set last_user_time from events that have Time.
331 Set net_supported_window to 0 when reparented.
332 (wm_supports): New function.
333 (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
334 (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
335 and net_supported_window.
336
5be70981
KS
3372007-01-05 Kim F. Storm <storm@cua.dk>
338
339 * indent.c (Fvertical_motion): Fix it overshoot check for overlay
340 strings without embedded newlines immediately followed by newline.
341
1675bac7
YM
3422007-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
343
344 * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
345 (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
346 gmtime/localtime/emacs_memftimeu/mktime.
347
348 * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
349 instead of 'EMAx'.
350 [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
351
352 * macgui.h (struct _XGC) [USE_CG_DRAWING
353 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
354 and cg_back_color.
355
356 * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
357 (restore_show_help_function, menu_target_item_handler)
358 [TARGET_API_MAC_CARBON]: New functions.
359 (install_menu_target_item_handler): New function.
360 (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
361 item property.
362
363 * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
364 (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
365 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
366 (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
367 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
368 (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
369 (mac_cg_color_black) [USE_CG_DRAWING
370 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
371 (init_cg_color) [USE_CG_DRAWING]: New function.
372 (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
373 CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
374 (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
375 (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
376 Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
377 CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
378 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
379 (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
5e1a6e32 380 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
1675bac7
YM
381 gc->cg_back_color.
382 (install_drag_handler, remove_drag_handler): Make extern.
383 (install_menu_target_item_handler): Add extern.
384 (install_window_handler): Call install_menu_target_item_handler.
385 [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
5be70981 386 (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
1675bac7
YM
387
388 * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
389
4c9564e8
JB
3902007-01-04 Juanma Barranquero <lekktu@gmail.com>
391
392 * window.c (Fwindow_end): Fix use of >= operator.
393
c3295e7b
RS
3942007-01-03 Richard Stallman <rms@gnu.org>
395
396 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
397
0c5e9b06
JD
3982007-01-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
399
400 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
401 unhighlight_id.
402
403 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
404 parent of the menu item. Get menu item widget from event.
405 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
406 unhighlight_id has been removed.
407 (create_menus): Connect enter/leave-notify-event to the menu instead
408 of individual items.
409
1e0fe298
JD
4102006-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
411
412 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
413 xg_tool_bar_menu_proxy.
414 (xg_tool_bar_menu_proxy): New function.
415 (xg_tool_bar_proxy_callback): New function.
416
6e1440e6
JD
4172006-12-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
418
419 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
420 (xg_tool_bar_callback): Remove check for button.
421 (update_frame_tool_bar): Put an event box in the tool bar and a button
422 in the event box. Attach enter/leave-notify-event to the event box.
423
dced1a73
RS
4242006-12-30 Richard Stallman <rms@gnu.org>
425
426 * keymap.c (Fdefine_key): Doc fix.
427
05a699b6
KS
4282006-12-29 Kim F. Storm <storm@cua.dk>
429
430 * frame.h (struct frame): New member minimize_tool_bar_window_p.
431
432 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
433 (Vauto_resize_tool_bars): ... this.
434 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
435 to describe new value `grow-only', and use of C-l.
436 (display_tool_bar_line): Only use default face for border below
437 toolbar if not grow-only (to get acceptable visual appearence).
438 Explicitly set visible_height for empty toolbar lines.
439 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
440 minimize_tool_bar_window_p flag.
441
442 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
443 when called without arg to redraw with minimum toolbar height.
444 Update doc string.
445
e37b3faf
JR
4462006-12-29 Jason Rumney <jasonr@gnu.org>
447
448 * s/ms-w32.h (tzname): Do not define in msvc8.
40c41924 449 (utime): Do not define in msvc8.
e37b3faf
JR
450
451 * regex.c (regerror): Change parameter name err_code.
452
dbb8dfc7
RS
4532006-12-26 Richard Stallman <rms@gnu.org>
454
e817cc9b
RS
455 * search.c (Fsearch_forward): Doc fix.
456
dbb8dfc7
RS
457 * callint.c (Finteractive): Doc fix.
458
42f82ce7
KS
4592006-12-25 Kim F. Storm <storm@cua.dk>
460
461 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
462
fa1f0a88
EZ
4632006-12-23 Eli Zaretskii <eliz@gnu.org>
464
465 * keyboard.c (some_mouse_moved): Fix last change.
466
453027ac
EZ
4672006-12-22 Eli Zaretskii <eliz@gnu.org>
468
469 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
470
b9542c10
EZ
4712006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
472
473 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
474 * m/sh3el.h: New file.
475
5e059fc1
EZ
4762006-12-22 Eli Zaretskii <eliz@gnu.org>
477
478 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
479 $(BLD).
480 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
481 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
6808dce1 482 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
f278d4a6 483 (clean): Delete stamp_BLD.
5e059fc1 484
2f0fd19a
YM
4852006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
486
8b9ae6b0
SM
487 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
488 Call mac_update_proxy_icon also when buffer modification flag changed.
2f0fd19a
YM
489 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
490 but compare FSRef/FSSpec of resolved alias.
491
274fa194
KS
4922006-12-21 Kim F. Storm <storm@cua.dk>
493
494 * w32.c (_sys_wait_accept): Fix handle leak.
495
7fb24298
JD
4962006-12-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
497
498 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
499 defined.
500
15d6777e
KS
5012006-12-20 Kim F. Storm <storm@cua.dk>
502
503 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
504
209ceeef
JB
5052006-12-19 Juanma Barranquero <lekktu@gmail.com>
506
507 * keyboard.c (syms_of_keyboard) <double-click-time>:
508 * mac.c (Fmac_code_convert_string):
509 * search.c (Fsearch_forward): Doc fixes.
510
36ff6d6f
KS
5112006-12-19 Kim F. Storm <storm@cua.dk>
512
513 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
514 a sigusr1 event instead of [signal usr1] sequence, and signal events
515 are now supposed to be handled via special-event-map.
516
517 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
518 (make_lispy_event): Don't generate Qsignal prefix for code 0.
519 Abort if signal code is unknown.
520 (store_user_signal_events): Don't make Qsignal prefix (code 0).
521 (Qsignal): Move declaration back to process.c.
522 (syms_of_keyboard): Don't intern or staticpro it here.
523
524 * process.c (Qsignal): Declare here.
525 (syms_of_process): Intern or staticpro it.
526
527 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
528
529 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
530
6a28a84c
JB
5312006-12-19 Juanma Barranquero <lekktu@gmail.com>
532
3350dc42 533 * buffer.c (syms_of_buffer) <buffer-display-table>
6a28a84c
JB
534 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
535
294f1c39
RS
5362006-12-17 Richard Stallman <rms@gnu.org>
537
538 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
539 to Ffile_name_completion.
540
541 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
6a28a84c 542 (Ffile_name_completion): New arg PREDICATE.
294f1c39 543
f6e22881
JB
5442006-12-17 Juanma Barranquero <lekktu@gmail.com>
545
546 * buffer.c (Fkill_buffer): Doc fix.
547 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
548
f03c1894
JB
5492006-12-16 Juanma Barranquero <lekktu@gmail.com>
550
551 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
552
04afd01e
EZ
5532006-12-16 Eli Zaretskii <eliz@gnu.org>
554
b58d0378
EZ
555 * w32fns.c (w32-window-exists-p): New function.
556 (syms_of_w32fns): Defsubr it.
557
04afd01e
EZ
558 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
559
33202706
JB
5602006-12-16 Juanma Barranquero <lekktu@gmail.com>
561
562 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
563
75036d1c
EZ
5642006-12-15 Eli Zaretskii <eliz@gnu.org>
565
566 * emacs.c (USAGE3): Clarify documentation of --color.
567
e71b26ec
YM
5682006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
569
33202706
JB
570 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
571 New variable.
e71b26ec
YM
572 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
573 [!MAC_OSX] (select): Use them.
574 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
575 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
576
577 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
578 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
579 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
580
8b9ae6b0
SM
581 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
582 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
e71b26ec
YM
583
584 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
585 ATSUGetGlyphBounds if not necessary.
33202706 586 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
e71b26ec
YM
587 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
588 (fm_get_style_from_font, atsu_find_font_from_family_name)
589 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
590 [USE_ATSUI]: New functions.
591 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
592 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
593 Don't get metrics for Latin-1 right half characters.
594 (mac_load_query_font): Don't load font if space width is not positive.
8b9ae6b0
SM
595 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
596 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
e71b26ec
YM
597 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
598
599 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
600
cbaa9c44
KS
6012006-12-15 Kim F. Storm <storm@cua.dk>
602
603 * keyboard.c (ignore_mouse_drag_p): New global var.
604 (some_mouse_moved): Return 0 if it is non-zero.
605 (make_lispy_event): Generate click event on mouse up if
606 ignore_mouse_drag_p is non-zero, even if mouse moved.
607 Clear ignore_mouse_drag_p on mouse down/up.
608
609 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
610 is resized to avoid generating a mouse drag event.
611
8a4c4c7f
JB
6122006-12-14 Juanma Barranquero <lekktu@gmail.com>
613
614 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
615 minimum tracking size. Remove non-working old hack to do the same.
616
b1c6aa6e
YM
6172006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
618
619 * emacs.c (handle_user_signal): Move function to keyboard.c.
620 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
621
622 * keyboard.c (make_lispy_event): Use find_user_signal_name.
623 (read_avail_input): Store pending user signal events.
624 (struct user_signal_info): New struct.
625 (user_signals): New variable.
e71b26ec
YM
626 (add_user_signal, store_user_signal_events)
627 (find_user_signal_name): New functions.
b1c6aa6e
YM
628 (handle_user_signal): Move function from emacs.c. Don't store
629 USER_SIGNAL_EVENT here, but increment number of pending signals.
630
631 * keyboard.h (add_user_signals): Add extern.
632
fc961256
JB
6332006-12-11 Juanma Barranquero <lekktu@gmail.com>
634
635 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
636 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
637 <line-spacing, left-margin>: Doc fixes.
638
53d45a17
JB
639 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
640
df20dc2b
KS
6412006-12-10 Kim F. Storm <storm@cua.dk>
642
643 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
644
28e86dc4
JB
6452006-12-10 Juanma Barranquero <lekktu@gmail.com>
646
647 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
648 * buffer.c (syms_of_buffer) <default-major-mode>:
649 * keymap.c (Flookup_key):
650 * lread.c (Feval_buffer, Feval_region):
651 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
652 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
653 * marker.c (Fmarker_insertion_type):
654 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
655 * msdos.c (syms_of_msdos) <delete-exited-processes>:
656 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
657 <x-underline-at-descent-line>:
658 * xdisp.c (format-mode-line):
659 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
660 <x-underline-at-descent-line>: Doc fixes.
661
64d962c1
AS
6622006-12-10 Andreas Schwab <schwab@suse.de>
663
664 * systime.h (EMACS_GET_TIME): Remove check for
665 HAVE_STRUCT_TIMEZONE which is never defined.
666
43726c05
AM
6672006-12-10 Alan Mackenzie <acm@muc.de>
668
669 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
670 result is now neither the last elt nor optional for OLDSTATE.
671
cbf9640e
EZ
6722006-12-09 Eli Zaretskii <eliz@gnu.org>
673
674 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
675 extract the process ID from a Lisp float.
676
3ca241e1
CY
6772006-12-09 Chong Yidong <cyd@stupidchicken.com>
678
28e86dc4 679 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
3ca241e1 680
9e67e94f
EZ
6812006-12-08 Eli Zaretskii <eliz@gnu.org>
682
683 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
684 platforms where long is 64-bit.
685
686 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
687
28e86dc4 6882006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
a15fc3c3
CY
689
690 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
691
65fa9a64
KH
6922006-12-08 Kenichi Handa <handa@m17n.org>
693
694 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
695
b4963755
JB
6962006-12-08 Juanma Barranquero <lekktu@gmail.com>
697
698 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
699
f7a706cf
KS
7002006-12-07 Kim F. Storm <storm@cua.dk>
701
702 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
703 (Fsignal_process): Don't use strncasecmp.
704
da9109f7
GM
7052006-12-05 Glenn Morris <rgm@gnu.org>
706
707 * abbrev.c (Qforce): New Lisp_Object.
708 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
709 abbrevs, unless 'force is applied.
710 (syms_of_abbrev): Add Qforce.
711
5c35ec32
KS
7122006-12-04 Kim F. Storm <storm@cua.dk>
713
55ba687b
KS
714 * process.c (parse_signal): Rename macro from handle_signal.
715 (Fsignal_process): Also accept lower-case variants of signal
716 names (to align with signal names generated by Emacs itself).
717
5c35ec32
KS
718 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
719 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
720 first with code == 0 [signal] and one with code == sig number.
721 (main): Use it as handler for SIGUR1 and SIGUSR2.
722
723 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
724 if first event in [signal xxx] sequence.
725 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
726 (syms_of_keyboard): Don't intern and staticpro them.
9d8b24a2
KS
727 (Qsignal): Declare here.
728 (syms_of_keyboard): Intern and staticpro it.
729 (make_lispy_event): Use it. Intern symbols on the fly for other
730 USER_SIGNAL_EVENTs events.
5c35ec32
KS
731
732 * process.c (Qsignal): Declare extern.
9d8b24a2 733 (syms_of_process): Don't intern/staticpro it here.
5c35ec32
KS
734
735 * process.c (read_process_output): Abort if carryover < 0.
736
ee77eef5
YM
7372006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
738
739 * config.in: Regenerate.
740
741 * fileio.c [__NetBSD__]: Don't define `unix'.
742 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
743 `#ifdef unix'.
744
4a3363c5
GM
7452006-12-04 Glenn Morris <rgm@gnu.org>
746
747 * Makefile.in (version): New variable, set by configure.
748 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
749
a3893a90
JD
7502006-12-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
751
752 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
753 without an image.
754
107fae8b
EZ
7552006-12-01 Eli Zaretskii <eliz@gnu.org>
756
757 * w32fns.c (Fw32_shell_execute): Doc fix.
758
b88548b1
CY
7592006-11-30 Chong Yidong <cyd@stupidchicken.com>
760
761 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
762 lines ending in tab.
763
65dc67a9
JD
7642006-11-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
765
766 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
767 property ...
768 (XTframe_raise_lower): ... to here.
769
3aaab9a0
KH
7702006-11-30 Kenichi Handa <handa@m17n.org>
771
772 * regex.c (regex_compile): Fix previous change.
773
c6605d63
JB
7742006-11-29 Juanma Barranquero <lekktu@gmail.com>
775
776 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
777
1a52930b
CY
7782006-11-28 Chong Yidong <cyd@stupidchicken.com>
779
780 * config.in: Regenerate.
781
6358f8b2
KH
7822006-11-28 Kenichi Handa <handa@m17n.org>
783
784 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
785 multibyte character.
786
55107ae5
CY
7872006-11-27 Chong Yidong <cyd@stupidchicken.com>
788
2b8d8474 789 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
55107ae5 790
89692b9a
KS
7912006-11-27 Kim F. Storm <storm@cua.dk>
792
793 * window.c (set_window_buffer): Refactor recent changes.
794
7e993c06
JR
7952006-11-27 Jason Rumney <jasonr@gnu.org>
796
797 * w32term.c (w32_msg_worker): Declare correctly.
798 (w32_initialize): Don't cast w32_msg_worker.
799
800 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
801
fb873e6b
CY
8022006-11-26 Chong Yidong <cyd@stupidchicken.com>
803
804 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
805 directory exists.
806
69a6e74d
EZ
8072006-11-25 Eli Zaretskii <eliz@gnu.org>
808
809 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
810 as per the calling sequence change on 2006-07-11.
811
d496cfc0
CY
8122006-11-25 Chong Yidong <cyd@stupidchicken.com>
813
814 * window.c (set_window_buffer): Use BLOCK_INPUT.
815
5ee699a7
JB
8162006-11-24 Juanma Barranquero <lekktu@gmail.com>
817
818 * fns.c (substring_both): Add missing address operator.
819
7edbb0da
SM
8202006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
821
822 * fns.c: Use AREF/ASIZE macros.
823 (concat): Provide the full ANSI prototype.
824
96215ace
JB
8252006-11-24 Juanma Barranquero <lekktu@gmail.com>
826
827 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
828
09566666
NR
8292006-11-23 William Smith <William.Smith@global360.com> (tiny change)
830
609b291d 831 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
09566666 832
550934c8 8332006-11-22 Alfred M. Szmidt <ams@gnu.org> (tiny change)
6a022bd9
CY
834
835 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
836 /usr/pkg/lib from the library search path.
837 (LD_SWITCH_X_DEFAULT): New macro.
838
63cb1543
CY
8392006-11-22 Chong Yidong <cyd@stupidchicken.com>
840
841 * window.c (set_window_buffer): Clear mouse highlight if it is in
842 this window.
843
ca612449
CY
8442006-11-21 Chong Yidong <cyd@stupidchicken.com>
845
846 * xfaces.c (realize_default_face): Check if the default font name
847 exists on this display before trying to use it.
848
a98d0b8e
RS
8492006-11-21 Richard Stallman <rms@gnu.org>
850
851 * fileio.c: Break line before &&, not after.
852
1ce0a32d
EZ
8532006-11-20 Eli Zaretskii <eliz@gnu.org>
854
855 * fns.c (concat) [!__GNUC__]: Add prototype.
856
565f08cd
KH
8572006-11-20 Kenichi Handa <handa@m17n.org>
858
859 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
860 check the tailing slash of a filename.
861
e15a0495
KH
8622006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
863
864 * indent.c (Fvertical_motion): Include composition in the case of
865 overshoot expected.
866
221439a0
AS
8672006-11-19 Andreas Schwab <schwab@gnu.org>
868
7edbb0da 869 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
221439a0
AS
870
871 * xmenu.c (Fx_popup_menu): Initialize selection.
872
bcd7101a
AS
8732006-11-18 Andreas Schwab <schwab@suse.de>
874
7edbb0da 875 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
bcd7101a 876
118ddbdd
JD
8772006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
878
879 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
880 to avoid gcc 2.96 error.
881
347d9bbe
KH
8822006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
883
884 * search.c (simple_search): In the loop of backward searching,
885 check also the byte position against the limit.
886
d089c7a8
RF
8872006-11-14 Romain Francoise <romain@orebokech.com>
888
889 * minibuf.c (Fcompleting_read): Fix typo in docstring.
890
1364f420
KH
8912006-11-14 Kenichi Handa <handa@m17n.org>
892
7edbb0da 893 * coding.c (code_convert_region): Initialize coding->heading_ascii.
1364f420
KH
894 (decode_coding_string, code_convert_region): Likewise.
895
9b150aa2
YM
8962006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
897
898 * config.in: Regenerate.
899
900 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
901 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
902 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
903 CGDisplayScreenSize is available.
904
905 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
906 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
907 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
908 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
909 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
910 CancelMenuTracking is available.
911
912 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
913 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
914 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
915 CGContextShowGlyphsWithAdvances is available.
916
52dcc2d0
JR
9172006-11-13 Jason Rumney <jasonr@gnu.org>
918
919 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
920
55a314a5
YM
9212006-11-13 Nozomu Ando <nand@mac.com>
922
923 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
924 Fix address calculations for case END < START.
925 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
926
4cb8645c
JB
9272006-11-12 Juanma Barranquero <lekktu@gmail.com>
928
929 * coding.c (Fencode_sjis_char, Fencode_big5_char):
930 Improve argument/docstring consistency.
931
932 * editfns.c (Fmessage): Doc fixes.
933
934 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
935
b071677f
CY
9362006-11-12 Chong Yidong <cyd@stupidchicken.com>
937
938 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
939
0924e3f6
RF
9402006-11-12 Romain Francoise <romain@orebokech.com>
941
942 * xselect.c (selection-coding-system): Fix docstring.
943
947129a2
JB
9442006-11-12 Juanma Barranquero <lekktu@gmail.com>
945
946 * category.c (Fchar_category_set): Improve arg/docstring consistency.
947
948 * data.c (Flogxor):
949 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
950 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
951 (Fstring_make_unibyte): Fix typos in docstrings.
952
b8e7655f
JD
9532006-11-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
954
955 * xterm.h (struct x_display_info): Fix indentation.
956
957 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
958 (x_check_fullscreen): Call do_ewmh_fullscreen.
959 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
960
961 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
962
963 * term.c: Define fullscreen_hook.
964 (syms_of_term): Initialize fullscreen_hook to NULL.
965
966 * termhooks.h: Add fullscreen_hook.
967
eed1152f
JB
9682006-11-08 Juanma Barranquero <lekktu@gmail.com>
969
970 * bytecode.c (Fbyte_code):
971 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
972
3dd428fa
JB
9732006-11-06 Juanma Barranquero <lekktu@gmail.com>
974
975 * lread.c (syms_of_lread):
976 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
977
e8407323
CY
9782006-11-06 Martin Rudalics <rudalics@gmx.at>
979
980 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
981
982 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
983 Return nil if building without menus.
984
985 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
986 Return nil if building without menus.
987
faefde36
RS
9882006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
989
7edbb0da 990 * s/netbsd.h (POSIX_SIGNALS): Define.
faefde36 991
107709d4
EZ
9922006-11-05 Martin Rudalics <rudalics@gmx.at>
993
994 * macmenu.c (Fmenu_or_popup_active_p): New function.
995 (syms_of_macmenu): Defsubr it.
996
997 * w32menu.c (Fmenu_or_popup_active_p): New function.
998 (syms_of_w32menu): Defsubr it.
999 (popup_activated_flag, popup_activated): Remove.
1000
1001 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
1002 check popup_activated.
1003
1004 * xmenu.c (Fmenu_or_popup_active_p): New function.
1005 (syms_of_xmenu): Defsubr it.
1006
c57038f8
YM
10072006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1008
1009 * unexmacosx.c (malloc_cookie): Remove unused variable.
1010 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
1011 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
1012 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
1013 (num_unexec_regions, unexec_regions): Make variables static.
1014 (print_regions, find_emacs_zone_regions): Make static.
1015 (unexec_region_info): New typedef.
1016 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
1017 All uses changed.
1018 (unexec_regions_recorder): Subtract size of trailing null pages from
1019 filesize. Show filesize.
1020 (unexec_regions_merge): Don't merge if null pages of preceding region
1021 is not too small. Use long format in printf.
1022 (copy_segment, copy_data_segment): Show filesize.
7edbb0da
SM
1023 (copy_data_segment): Write filesize bytes of region data.
1024 Adjust filesize in segment command accordingly.
c57038f8
YM
1025 (dump_it): Use long format in printf.
1026
60a294e2
JB
10272006-11-05 Juanma Barranquero <lekktu@gmail.com>
1028
1029 * dosfns.c (Finsert_startup_screen):
1030 * fns.c (Ffeaturep, syms_of_fns):
1031 * frame.c (syms_of_frame): Fix typos in docstrings.
1032
1033 * unexcw.c (unexec): Fix typo in output message.
1034
b20d6154
EZ
10352006-11-04 Ralf Angeli <angeli@caeruleus.net>
1036
1037 * w32fns.c (w32_createwindow): Remove code for handling -geometry
1038 command line option and `initial-frame-alist' which is superfluous
1039 after the last change to `w32_createwindow'.
1040
ccc54d96 10412006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
3ac04ed0 1042
ccc54d96
JB
1043 * w32proc.c (sys_wait): Only wait for processes with fd<0.
1044 Others should be handled by sys_select instead. Fixes problems
1045 with (progn (start-process "" nil "ls") (call-process "ls")).
3ac04ed0 1046
ccc54d96 10472006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
8630721e
CY
1048
1049 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
1050 avoid gcc 2.95 error.
1051
b20d6154 10522006-11-04 Chong Yidong <cyd@stupidchicken.com>
ffbdf67b
CY
1053
1054 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
1055 wicon is null, insert an empty button.
1056
45a26c42
JD
10572006-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1058
1059 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
1060 window.
1061
b224de9b
JB
10622006-11-02 Juanma Barranquero <lekktu@gmail.com>
1063
1064 * emacs.c (Fkill_emacs): Fix typo in docstring.
1065
73da71f9
YM
10662006-11-02 Nozomu Ando <nand@mac.com>
1067
1068 * unexmacosx.c (mach_header, segment_command, vm_region, section)
1069 [_LP64]: New defines.
1070 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
1071 (MH_MAGIC) [_LP64]: Redefine.
1072 (delta): Remove variable.
1073 (curr_file_offset, pagesize): New variables.
1074 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
1075 (data_segment_old_fileoff): Initialize explicitly.
1076 (print_region, unexec_regions_recorder, print_load_command_name)
1077 (copy_segment, copy_data_segment): Use long format in printf.
1078 (MAX_UNEXEC_REGIONS): Increase to 400.
1079 (unexec_regions_recorder): Don't warn too many regions here.
1080 (find_emacs_zone_regions): Warn too many regions here.
1081 (print_load_command_name) [_LP64]: Show correct load command name.
1082 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
1083 Show starting virtual memory address. Don't show ending file offset.
1084 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
1085 (dump_it): Use new local variable `linkedit_delta' and pass to them.
1086 Error if trying to handle multiple DATA segments.
1087 (unexec): Initialize variable `pagesize'.
1088
ebc20ca0
JB
10892006-11-01 Juanma Barranquero <lekktu@gmail.com>
1090
1091 * eval.c (Fcatch): Doc fix.
1092
6ceb8058
YM
10932006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1094
1095 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
5e1a6e32 1096 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
6ceb8058
YM
1097 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
1098 (xpm_load_image): Add const qualifier to arguments.
1099 [MAC_OS] (xpm_color_key_strings): Make static const.
1100
1101 * mac.c (create_apple_event_from_event_ref)
1102 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
1103 (parse_include_file, parse_binding, parse_component)
1104 (parse_resource_name, parse_value, parse_resource_line)
1105 (xrm_merge_string_database, xrm_get_resource)
1106 (xrm_get_preference_database): Add const qualifier to arguments.
1107 [MAC_OSX] (sys_select): Make variable `context' static const.
1108
1109 * macfns.c (mac_color_map): Make static const.
1110 (mac_color_map_lookup): Add const qualifier to arguments.
1111
1112 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
1113 static const.
1114 (name_is_separator): Add const qualifier to arguments.
1115
1116 * macselect.c (init_service_handler): Make variable `specs' static
1117 const.
1118
1119 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
1120 `swap_nibbles' static const.
1121 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
1122 `tags', `sizes', `values' static const.
7edbb0da
SM
1123 (mac_draw_string_common): Make variables `context' static.
1124 Make variables `tags', `sizes', and `values' static const.
6ceb8058
YM
1125 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
1126 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
1127 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
1128 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
1129 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
1130 qualifier to arguments.
1131 (xlfd_scalable_fields, keycode_to_xkeysym_table)
1132 (fn_keycode_to_keycode_table): Make static const.
1133 (mac_load_query_font): Make variables `tags', `sizes', `values',
1134 `types', and `selectors' static const.
7edbb0da
SM
1135 (mac_handle_command_event, mac_handle_window_event):
1136 Make variables `names' and `types' static const.
6ceb8058
YM
1137 (init_command_handler, install_window_handler): Make variables
1138 `specs*' static const.
1139 (mac_handle_font_event, mac_handle_text_input_event)
1140 (mac_store_service_event): Make variables `names' and `types'
1141 const. Make variables `names_*' and `types_*' static const.
1142
1143 * macterm.h (create_apple_event_from_event_ref)
1144 (create_apple_event_from_drag_ref, xrm_merge_string_database)
1145 (xrm_get_resource, xrm_get_preference_database): Add const
1146 qualifier to arguments in externs.
1147
7147863a
KH
11482006-10-31 Kenichi Handa <handa@m17n.org>
1149
1150 * xfns.c (xic_create_xfontset): Fix previous change.
1151
78667db7
CY
11522006-10-30 Chong Yidong <cyd@stupidchicken.com>
1153
1154 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
1155 /usr/pkg/lib to library search path.
1156
ebc20ca0 11572006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
8d31e373
CY
1158
1159 * ralloc.c (relinquish): Use a long for excess space counter to
1160 handle 64-bit case correctly.
1161
1dbfd8e3
CY
11622006-10-29 Jeramey Crawford <jeramey@jeramey.com>
1163
1164 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
1165
856bb2b0
JB
11662006-10-29 Juanma Barranquero <lekktu@gmail.com>
1167
1168 * window.c (Fdisplay_buffer): Fix typo in docstring.
1169
4975e695
JB
11702006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
1171
1172 * w32term.c (x_draw_glyph_string_foreground): Set background mode
1173 to TRANSPARENT before using overstrike to simulate bold faces.
1174
1175 * xfaces.c (best_matching_font): Fix logic to decide whether to
1176 use overstriking to simulate bold-face (it was reversed).
1177
cbfe778a
KS
11782006-10-23 Kim F. Storm <storm@cua.dk>
1179
4975e695
JB
1180 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
1181 initialized.
a4614668 1182
cbfe778a
KS
1183 * keyboard.c (read_char): Make an element (t . EVENT) in
1184 unread-command-events add EVENT to the current command's key sequence.
1185 (syms_of_keyboard) <unread-command-events>: Update doc.
1186
627fb581
RS
11872006-10-21 Richard Stallman <rms@gnu.org>
1188
1189 * minibuf.c (Vread_expression_map): Define here.
1190 (Qread_expression_history): New variable.
1191 (syms_of_minibuf): Initialize them.
1192 (Feval_minibuffer): Use Vread_expression_map and
1193 Qread_expression_history.
1194
cd987aaa
KH
11952006-10-21 Kenichi Handa <handa@m17n.org>
1196
1197 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
1198 card, change it to "*".
1199 (xic_create_xfontset): Call XCreateFontSet for each single
1200 fontname in fontsetname.
1201
55b41ef5
CY
12022006-10-19 Chong Yidong <cyd@stupidchicken.com>
1203
1204 * callint.c (callint_message): Convert to a Lisp string.
1205 (syms_of_callint): Initialize it.
1206 (callint_message_size): Var deleted.
1207 (Fcall_interactively): Use Fformat instead of doprnt to construct
1208 prompt string.
1209
cc7aa8dc
KS
12102006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1211
1212 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
1213
045b1908
YM
12142006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1215
1216 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
1217 New variable.
1218 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
1219
866f8518
JD
12202006-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1221
1222 * xselect.c (x_handle_selection_request): If the converted_selection
14a56a1b 1223 is nil or XCDR (converted_selection) is nil, decline the request.
866f8518 1224
b43da352
JD
12252006-10-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1226
1227 * gtkutil.c (get_utf8_string): Remove warnings with casts.
7edbb0da 1228 (xg_tool_bar_button_cb): Ditto.
b43da352
JD
1229 (xg_tool_bar_callback): Ditto.
1230
7c682cf1
YM
12312006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1232
1233 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
1234 variable ch_dim.
1235 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
1236 menu bar window matrices on non-X systems.
1237
1238 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
1239
1240 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
1241 adjustment is needed.
1242 (mac_load_query_font): Check if width and height are positive.
1243
563964ae
RS
12442006-10-14 Richard Stallman <rms@gnu.org>
1245
1246 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
1247
98721beb
CY
12482006-10-13 Chong Yidong <cyd@stupidchicken.com>
1249
1250 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
1251 title.
1252
eae637ec
CY
12532006-10-12 Chong Yidong <cyd@stupidchicken.com>
1254
1255 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
1256 XCAR and XINT.
1257
431feaf6
RF
12582006-10-12 Romain Francoise <romain@orebokech.com>
1259
1260 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
1261
de9855d5
SM
12622006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
1263
b70e1a2b
SM
1264 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
1265
1266 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
1267
1268 * xterm.c (x_check_expected_move): Remove unused var `count'.
1269
de9855d5
SM
1270 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
1271 Fdefalias is not declared in any *.h file.
1272
394ccd7d
CY
12732006-10-09 Chong Yidong <cyd@stupidchicken.com>
1274
2bcac766
CY
1275 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
1276
1277 * keyboard.c (command_loop_1): Handle non-number values of
1278 `minibuffer-message-timeout'.
1279 (Fexecute_extended_command): Fix typo.
1280
394ccd7d
CY
1281 * minibuf.c (temp_echo_area_glyphs): Sit for
1282 `minibuffer-message-timeout' seconds.
1283
bb420759
YM
12842006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1285
de9855d5
SM
1286 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
1287 Add argument OVERSTRIKE_P.
bb420759
YM
1288 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
1289 Support overstrike.
1290 (mac_draw_string, mac_draw_string_16): Remove functions.
1291 (x_draw_glyph_string_foreground): Use overstrike when needed.
de9855d5
SM
1292 (x_draw_composite_glyph_string_foreground): Likewise.
1293 Use mac_draw_image_string_16 instead of mac_draw_string_16.
4975e695
JB
1294 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
1295 F instead of DPY. All uses changed. Don't save/restore font.
bb420759 1296
2770d589
JR
12972006-10-07 Ralf Angeli <angeli@caeruleus.net>
1298
1299 * w32fns.c (w32_createwindow): Honour left and top positions if
1300 supplied explicitly.
1301
ee37d135
KS
13022006-10-06 Kim F. Storm <storm@cua.dk>
1303
1304 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
1305
26c34ec2
CY
13062006-10-05 Chong Yidong <cyd@stupidchicken.com>
1307
1308 * frame.c (Qinhibit_face_set_after_frame_default): New var.
1309 (syms_of_frame): Initialize it.
1310 (x_set_frame_parameters): Avoid resetting :font attributes to the
1311 new-frame defaults.
1312
54dd3310
SM
13132006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
1314
1315 * lisp.h (clear_regexp_cache): Declare.
1316
1317 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
1318 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
1319 (clear_regexp_cache): Only flush those regexps which depend on
1320 a syntax-table.
1321
1322 * regex.c (regex_compile): Set the new `used_syntax' bit.
1323
1324 * regex.h: Remove file local variables.
1325 (struct re_pattern_buffer): New field `used_syntax'.
1326
73812be6
KS
13272006-10-03 Kim F. Storm <storm@cua.dk>
1328
1329 * process.c (list_processes_1): Run sentinels before removing dead
1330 processes. Also remove `closed' network connections.
1331
2201c41c
SM
13322006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1333
1334 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
1335
79e01e93
EZ
13362006-09-30 Eli Zaretskii <eliz@gnu.org>
1337
4975e695 1338 * config.in: Regenerated.
79e01e93 1339
f9df5f68
JL
13402006-09-29 Juri Linkov <juri@jurta.org>
1341
1342 * buffer.c (syms_of_buffer): Reorder coding systems in the
1343 docstring of %z to the real order displayed in the modeline.
1344
7ae8428d
SM
13452006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1346
1347 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
1348
14a7cabf
CY
13492006-09-26 Chong Yidong <cyd@stupidchicken.com>
1350
1351 * indent.c (Fvertical_motion): Do move back if the Lisp string
1352 being displayed contains newlines.
1353
444a42fd
YM
13542006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1355
1356 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
1357 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
1358
4ccaff67
KH
13592006-09-26 Kenichi Handa <handa@m17n.org>
1360
1361 * keymap.c (Fsingle_key_description): For an invalid char, return
1362 "Invalid char code NNNNN".
1363
2a95a27c
CY
13642006-09-25 Chong Yidong <cyd@stupidchicken.com>
1365
1366 * callint.c (Fcall_interactively): Doc fix.
1367
cf2c6835
YM
13682006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1369
1370 * macterm.c (x_underline_at_descent_line): New variable.
1371 (syms_of_macterm): DEFVAR_BOOL it.
1372 (x_draw_glyph_string): Use it.
1373 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
1374
173517c6
KH
13752006-09-25 Kenichi Handa <handa@m17n.org>
1376
1377 * keymap.c (Fsingle_key_description): Return unique names for
1378 generic characters.
1379
45c912f2
RS
13802006-09-24 Richard Stallman <rms@gnu.org>
1381
1382 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
1383
1133f8e7
EZ
13842006-09-24 Eli Zaretskii <eliz@gnu.org>
1385
de9855d5
SM
1386 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
1387 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
8f59d602
EZ
1388
1389 * w32proc.c (nl_langinfo): New function.
1390
1133f8e7
EZ
1391 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
1392 (w32-pass-lwindow-to-system, w32-enable-num-lock)
1393 (w32-enable-caps-lock, w32-scroll-lock-modifier)
1394 (w32-lwindow-modifier, w32-rwindow-modifier)
1395 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
1396
ba5524f4
JB
13972006-09-23 Juanma Barranquero <lekktu@gmail.com>
1398
1399 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
1400 (Fdisplay_completion_list): Fix typos in docstrings.
1401
47a0ee40
RF
14022006-09-23 Romain Francoise <romain@orebokech.com>
1403
1404 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
1405
5dfe789c
KH
14062006-09-23 Kenichi Handa <handa@m17n.org>
1407
ba5524f4 1408 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
5dfe789c 1409
4560a582
SM
14102006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
1411
1412 * regex.c (analyse_first): For eight-bit-control chars, mark both the
1413 char's value and its leading byte in the fastmap.
1414 (re_search_2): When fast-scanning without translation, be careful to
1415 check that we only match the leading byte of a multibyte char.
1416
1417 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
1418 byte sequence.
1419 (AT_CHAR_BOUNDARY): New macro.
1420
2e77924d
KH
14212006-09-22 Kenichi Handa <handa@m17n.org>
1422
1423 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
1424 whose default value is non-nil.
1425
66687b7c
JD
14262006-09-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1427
db4fd914 1428 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
782447bd
JD
1429 Gtk+ versions < 2.10.
1430
66687b7c
JD
1431 * xfns.c (syms_of_xfns): Fix typo in help text for
1432 x-gtk-file-dialog-help-text.
1433
b521ddce
KS
14342006-09-21 Kim F. Storm <storm@cua.dk>
1435
1436 * fns.c (Fmemq): Refill doc string.
1437 (Fmemql): New defun, like memq but using eql.
1438 (syms_of_fns): Defsubr it.
1439
d0e0bd5f
KS
14402006-09-20 Kim F. Storm <storm@cua.dk>
1441
1442 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
1443 last visible glyph in window.
1444
a4df1f8b 1445 * window.c (Fset_window_hscroll, Fwindow_line_height):
d0e0bd5f
KS
1446 Doc fix. Use "off-window" instead of "off-screen".
1447 (Fpos_visible_in_window_p): Likewise.
1448 If POS is t, return info for last visible glyph in window.
1449
b69e3c18
CY
14502006-09-19 Chong Yidong <cyd@stupidchicken.com>
1451
1452 * search.c (struct regexp_cache): New entry syntax_table.
1453 (compile_pattern_1): Set it.
1454 (syms_of_search): Initialize it.
1455 (compile_pattern): Require the syntax_table entry of the cache
1456 element to match the current syntax table entry.
1457
31790df3
SM
14582006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
1459
1460 * window.c (Fwindow_end): Fix recent change.
1461
06e6b4be
KS
14622006-09-19 Kim F. Storm <storm@cua.dk>
1463
1464 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
1465 Doc fix. Use "off-screen" instead of "invisible".
1466 (Fwindow_line_height): Make line numbers 0-based. Make line arg
1467 optional; if nil, use current cursor row. Handle text terminals
1468 properly. Return nil if non-interactive or pseudo-window.
1469
08e26e8b
SM
14702006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
1471
1472 * keymap.c: Include alloca.h if available.
1473 (Fkey_binding): Only use AREF after checking it's a vector.
1474 Remove unused var `window'.
1475
61973eb6
YM
14762006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1477
1478 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
1479 inhibit_sentinels.
1480
1481 * mac.c [!MAC_OSX] (select): Fix argument name.
1482
1483 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
1484 menu ID for Apple menu.
1485 (menubar_selection_callback): Remove function.
1486 (find_and_call_menu_selection): New function from xmenu.c.
1487 (x_activate_menubar): Use it.
1488 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
1489
1490 * macterm.c (menubar_selection_callback): Remove extern.
1491 (M_APPLE): Change to 234.
1492 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
1493 (do_menu_choice): Remove function.
1494
1495 * macterm.h (struct mac_output): Remove member menubar_active.
1496 (do_menu_choice): Remove extern.
1497 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
1498
1dd3c9b6
JD
14992006-09-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1500
1a2b3a9f
JD
1501 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
1502 x_gtk_file_dialog_help_text.
1503
1dd3c9b6
JD
1504 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
1505 to x-gtk-use-old-file-dialog.
1a2b3a9f
JD
1506 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
1507 x_gtk_file_dialog_help_text.
1dd3c9b6
JD
1508
1509 * xfns.c (syms_of_xfns): Ditto.
1510
661bdc06
KS
15112006-09-18 Kim F. Storm <storm@cua.dk>
1512
1513 * window.c (Fwindow_line_visibility): Remove.
1514 (Fwindow_line_height): New defun replacing it.
1515 (syms_of_window): Defsubr it.
1516
37228c38
YM
15172006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1518
1519 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
1520 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
1521
a688d8b5
JB
15222006-09-17 Jay Belanger <belanger@truman.edu>
1523
1524 * gmalloc.c:
1525 * md5.c:
1526 * md5.h:
1527 * strftime.c: Replace "GNU Library General Public License" by "GNU
1528 General Public License" throughout.
1529
059fd1a1
KS
15302006-09-17 Kim F. Storm <storm@cua.dk>
1531
1532 * dispnew.c (update_text_area): Undo 2000-07-18 change.
1533 Always redrawing whole row if line has mouse-face in it causes
1534 excessive flickering of the mode line.
1535
e5b94d44
CY
15362006-09-17 Chong Yidong <cyd@stupidchicken.com>
1537
1538 * search.c (clear_regexp_cache): New function.
1539
1540 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
1541
241ad3ca
JD
15422006-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1543
31790df3
SM
1544 * gtkutil.c (xg_get_file_with_chooser):
1545 Check x-gtk-show-chooser-help-text before adding the help text.
fbce5860
JD
1546
1547 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
1548
241ad3ca
JD
1549 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
1550 will simply crash if we fail.
1551
6875fe9a
RS
15522006-09-16 Richard Stallman <rms@gnu.org>
1553
1554 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
1555
0c9337fb
KS
15562006-09-15 Kim F. Storm <storm@cua.dk>
1557
1558 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
1559 (syms_of_window): Defsubr it.
1560 (Fwindow_end): Use window's buffer rather than current buffer.
1561
45a2056c
JB
15622006-09-15 Jay Belanger <belanger@truman.edu>
1563
1564 * COPYING: Replace "Library Public License" by "Lesser Public
1565 License" throughout.
1566
b74e16a3
DK
15672006-09-15 David Kastrup <dak@gnu.org>
1568
de9855d5 1569 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
b74e16a3
DK
1570
1571 * keymap.c: include "window.h".
1572 (Fcommand_remapping): New optional POSITION argument.
1573 (Fkey_binding): New optional POSITION argument. Completely rework
1574 handling of mouse clicks to get the same order of keymaps as
1575 `read-key-sequence' and heed POSITION. Also temporarily switch
1576 buffers to location of mouse click and back.
1577
1578 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
1579 for additional argument.
1580 (parse_menu_item): Adjust call of `Fkey_binding' for additional
1581 argument.
1582 (read_key_sequence): If there are both `local-map' and `keymap'
1583 text properties at some buffer position, heed both.
1584
1585 * keymap.h: Declare additional optional arguments of
1586 `Fcommand_remapping' and `Fkey_binding'.
1587
6cb66a31
JB
15882006-09-15 Juanma Barranquero <lekktu@gmail.com>
1589
1590 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
1591
cd3587c1
AS
15922006-09-14 Andreas Schwab <schwab@suse.de>
1593
1594 * print.c: Whitespace fixup.
1595
84be646f
KS
15962006-09-14 Kim F. Storm <storm@cua.dk>
1597
1598 * xdisp.c (produce_image_glyph): Automatically crop wide images at
1599 right window edge so we can draw the cursor on the same row to
1600 avoid confusing redisplay by placing the cursor outside the visible
1601 window area.
1602
856bb2b0 16032006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
98a20c65
CY
1604
1605 * xterm.c (x_initialize): Don't install Xt event timer here.
1606 (x_timeout_atimer_activated_flag): New var.
1607 (x_activate_timeout_atimer): New function to install Xt timer.
1608 (x_send_scroll_bar_event, x_process_timeouts): Use it.
1609
1610 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
1611 (create_and_show_popup_menu, create_and_show_dialog): Use it.
1612
2371cbe9 1613 * xterm.h (x_activate_timeout_atimer): Add prototype.
98a20c65 1614
efb15f96
RS
16152006-09-13 Richard Stallman <rms@gnu.org>
1616
1617 * print.c (print_string): When printcharfun is t,
1618 copy string contents and call strout on the copy.
1619
1620 * keyboard.c (read_char): If end_time specified, don't put the
1621 event into this_command_keys.
1622 (read_key_sequence): If Voverriding_terminal_local_map is specified,
1623 don't check Voverriding_local_map at all.
1624
1baa749c 16252006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
52c0f270
CY
1626
1627 * textprop.c (Fnext_property_change, Fnext_single_property_change)
1628 (Fprevious_property_change, Fprevious_single_property_change):
1629 Avoid changing limit, so we can correctly catch the case where the
1630 property is constant up to limit.
1631
eee81f5d
YM
16322006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1633
1634 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1635 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1636 Undo 2006-09-08 change.
1637
91197db4
CY
16382006-09-11 Chong Yidong <cyd@stupidchicken.com>
1639
1640 * keymap.c (Fkey_binding): Use string position for string objects.
1641
83279b3e
KS
16422006-09-11 Kim F. Storm <storm@cua.dk>
1643
9a71d7de
KS
1644 * keymap.c (Fkey_binding): Fix last change.
1645
83279b3e
KS
1646 * editfns.c (Fmessage): Recommend using (message "%s" ...).
1647
b067ddb6
CY
16482006-09-10 Chong Yidong <cyd@stupidchicken.com>
1649
1650 * keymap.c (Fkey_binding): Check for local keymap for mouse click
1651 events.
1652
322dd254
KS
16532006-09-10 Kim F. Storm <storm@cua.dk>
1654
606fd469
KS
1655 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
1656 and Vunread_post_input_method_events.
1657
322dd254
KS
1658 * dispnew.c (Fredisplay): Document return value.
1659
437b2a15
JD
16602006-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1661
1662 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
1663
1664 * gtkutil.c (xg_display_close): Always change default display if needed,
1665 check for < Gtk+ version 2.10 before calling gdk_display_close.
1666
6eeee4d6
YM
16672006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1668
eee81f5d
YM
1669 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
1670 Make variable `ofds' static. Remove variable `maxfd'.
6eeee4d6 1671
6cb66a31
JB
1672 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
1673 Call check_mac.
6eeee4d6 1674
eee81f5d 1675 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
6cb66a31
JB
1676 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
1677 Apply 2006-09-08 change for xmenu.c.
6eeee4d6 1678
d7b1ea44 1679 * xfns.c (Fx_file_dialog): Call check_x.
6eeee4d6 1680
f90660aa
KS
16812006-09-10 Kim F. Storm <storm@cua.dk>
1682
1683 * xdisp.c (get_window_cursor_type): Use hollow cursor on
1684 non-transparent images.
1685
c048d606
EZ
16862006-09-09 Eli Zaretskii <eliz@gnu.org>
1687
1688 * editfns.c (Fsystem_name): Mention "host" in the doc string.
1689 (syms_of_editfns) <system-name>: Likewise.
1690
f4cfdbbe 16912006-09-08 Martin Rudalics <rudalics@gmx.at>
92b23323 1692
4560a582 1693 * xdisp.c (mouse_autoselect_window): Remove.
92b23323
CY
1694 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
1695
1696 * dispextern.h (mouse_autoselect_window): Remove extern.
1697 (Vmouse_autoselect_window): Add extern.
1698
1699 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
1700 instead of mouse_autoselect_window.
1701
1702 * msdos.c (dos_rawgetc): Likewise.
1703
1704 * w32term.c (w32_read_socket): Likewise.
1705
1706 * xterm.c (handle_one_xevent): Likewise.
1707
d799329b
RS
17082006-09-08 Richard Stallman <rms@gnu.org>
1709
af09dd78
RS
1710 * xdisp.c (Vmenu_updating_frame): Define here.
1711 (syms_of_xdisp): DEFVAR it here.
1712 (update_menu_bar): Always return hooks_run.
1713 Set Vmenu_updating_frame.
c989bc87 1714
af09dd78
RS
1715 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
1716 before calculating SELECTED_FRAME.
1717
1718 * xmenu.c (Vmenu_updating_frame): Don't define here.
1719 (syms_of_xmenu): Don't DEFVAR it here.
1720
1721 * xterm.c (x_error_quitter): For BadName error, just return.
1722
d799329b
RS
1723 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
1724
1725 * casetab.c (init_casetab_once): Call set_case_table.
1726
1727 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
1728
1729 * process.c (inhibit_sentinels): New variable.
1730 (exec_sentinel): Test inhibit_sentinels.
1731 (init_process): Initialize it.
1732
1733 * process.h (inhibit_sentinels): Add decl.
1734
1735 * search.c (looking_at_1, string_match_1, search_command):
1736 Make syntax table's canon table point to eqv table.
1737
bcdbfd36
AS
17382006-09-08 Andreas Schwab <schwab@suse.de>
1739
1740 * print.c (strout): Fix whitespace.
1741
70c6267a
KS
17422006-09-08 Kim F. Storm <storm@cua.dk>
1743
1744 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
1745
9deaefb7
YM
17462006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1747
1748 * mac.c [!MAC_OSX]: Don't include keyboard.h.
1749 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
1750 in the same BLOCK_INPUT block, in case that some input has already
1751 been read asynchronously. Pretend to be interrupted by a signal
1752 if some input is available.
1753 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
1754 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
1755 Now used for ReceiveNextEvent timeout instead of select timeout.
1756 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
1757 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
1758 support. Quit event loop.
1759 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
1760 connect support. Reuse previously allocated CFRunLoopSource.
1761 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
1762 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
1763
1764 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1765 Specify kWindowAsyncDragAttribute.
1766
1767 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
1768 (mac_get_ideal_size): New functions.
1769 (x_set_offset, x_set_window_size, x_make_frame_visible)
1770 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
1771 (install_window_handler, mac_handle_window_event)
1772 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
1773 kEventWindowBoundsChanged.
1774 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
1775 DragWindow.
70c6267a 1776
d7695a63
AS
17772006-09-07 Andreas Schwab <schwab@suse.de>
1778
1779 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
1780 use lib64 instead of lib.
1781
be9b5a60
SM
17822006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
1783
1784 * Makefile.in: Avoid double quotes when possible.
1785
04e28558
KH
17862006-09-06 Kenichi Handa <handa@m17n.org>
1787
1788 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
1789 a Lisp string from the result of emacs_memftimeu call.
1790
902f06ed
KS
17912006-09-06 Kim F. Storm <storm@cua.dk>
1792
1793 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
f90660aa
KS
1794 so calculate heights even when pos-visible-in-window-p is called
1795 with partially = t. Don't overshoot last_visible_y in move_it_to.
1796 Return row height and row number in new rowh and vpos args.
1797 (cursor_row_fully_visible_p): First line is always "fully visible".
902f06ed
KS
1798 (try_window): Don't clear matrix if vscrolled.
1799
1800 * lisp.h (pos_visible_p): Update prototype.
1801
1802 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
1803 Return row height and row number for partially visible rows.
647b07d1
AS
1804 Modify return value to a 2 element list for fully visible rows and
1805 6 for partially visible row.
902f06ed 1806 (window_scroll_pixel_based): Use pos_visible_p directly instead of
647b07d1
AS
1807 Fpos_visible_in_window_p. Fix auto vscrolling for partially
1808 visible lines. Only vscroll backwards if already vscrolled
1809 forwards. Unconditionally vscroll forwards if PT is first (and
1810 only) line. Set new window start instead of scrolling at
1811 start/end of tall line.
902f06ed 1812
750a6cf4
YM
18132006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1814
1815 * macterm.c (install_window_handler, mac_handle_window_event)
1816 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
1817 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
1818 ASCII keystroke event.
1819
ae6c1c19
JD
18202006-09-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1821
1822 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
1823 the file chooser message. Only call gtk_file_chooser_set_current_name
1824 when action is SAVE.
1825
5aa17bb2
AS
18262006-09-04 Andreas Schwab <schwab@suse.de>
1827
1828 * Makefile.in: Double all single and back quotes in C-style
1829 comments to help fontifier.
1830
934db434
JR
18312006-09-03 Jason Rumney <jasonr@gnu.org>
1832
1833 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
1834 (globals_of_w32): Register it as a signal handler.
1835
6a8c7cfe
JL
18362006-09-02 Juri Linkov <juri@jurta.org>
1837
1838 * marker.c (Fmarker_position): Doc fix.
1839
5c4aaa79
EZ
18402006-09-03 Eli Zaretskii <eliz@gnu.org>
1841
1842 * window.c (syms_of_window) <split-height-threshold>:
1843 <window-min-height, window-min-width>: Doc fix.
1844
655ea21c
JD
18452006-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1846
4f3097d8
JD
1847 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
1848 for writing files. Call gtk_file_chooser_set_current_name to keep
1849 default filename.
1850
655ea21c
JD
1851 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
1852
79f6ba1f
EZ
18532006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
1854
1855 * fns.c (concat) [__GNUC__]: Declare with
1856 `__attribute__((noinline))'.
1857
1858 * eval.c (apply1, call2) [__GNUC__]: Declare with
1859 `__attribute__((noinline))'.
1860
ebc80ddf
EZ
18612006-09-02 Stuart D. Herring <herring@lanl.gov>
1862
1863 * minibuf.c (Finternal_complete_buffer): New function.
1864 (syms_of_minibuf): Defsubr it.
1865 (Fread_buffer): Use it, instead of Vbuffer_alist.
1866
5deb7a51 18672006-09-01 Martin Rudalics <rudalics@gmx.at>
3e145152 1868
5deb7a51
RF
1869 * buffer.h (struct buffer_text): New field chars_modiff.
1870 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
1871 * buffer.c (Fbuffer_chars_modified_tick): New function returning
1872 value of BUF_CHARS_MODIFF.
1873 (syms_of_buffer): Defsubr it.
1874 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
1875 * insdel.c (modify_region): New argument preserve_chars_modiff.
1876 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
1877 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
1878 (adjust_after_replace, adjust_after_replace_noundo)
1879 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
1880 * lisp.h (modify_region): Add fourth argument in extern.
1881 * casefiddle.c (casify_region): Call modify_region with fourth
1882 argument zero to assert that CHARS_MODIFF is updated.
1883 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1884 (Ftranspose_regions): Likewise.
1885 * textprop.c (Fadd_text_properties, Fset_text_properties)
1886 (Fremove_text_properties, Fremove_list_of_text_properties):
1887 Call modify_region with fourth argument 1 to avoid that
1888 CHARS_MODIFF is updated.
3e145152 1889
80e0572b
RS
18902006-08-31 Richard Stallman <rms@gnu.org>
1891
1892 * editfns.c (Fformat): Don't sign-extend for %o or %x.
1893
41d24b39
CY
18942006-08-29 Chong Yidong <cyd@stupidchicken.com>
1895
1896 * indent.c (Fvertical_motion): Don't move back if we were
1897 displaying a Lisp string, either.
1898
62d108d4
KS
18992006-08-28 Kim F. Storm <storm@cua.dk>
1900
1901 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
1902 Don't attempt to replace cursor on image glyphs.
1903
c6f8bb3a
KH
19042006-08-28 Kenichi Handa <handa@m17n.org>
1905
1906 * coding.c (Fdetect_coding_region, Fdetect_coding_string): Fix
1907 docstring about ISO-2022 control characters.
1908
7b9c9125
KS
19092006-08-28 Kim F. Storm <storm@cua.dk>
1910
1911 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
1912 with a hollow box cursor if image is larger than 32x32 (or the default
1913 frame font if that is bigger). Replace any other cursor on images
1914 with hollow box cursor, as redisplay doesn't support bar and hbar
1915 cursors on images.
1916
eb411049
YM
19172006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1918
1919 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
1920 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
1921
1922 * dired.c (directory_files_internal_unwind, directory_files_internal)
1923 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
1924
1925 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
1926 of OSErr.
1927
1928 * keyboard.c (in_sighandler): Remove variable.
1929 (Fcurrent_idle_time): Add missing `doc:'.
1930 (input_available_signal, init_keyboard): Undo previous change.
1931
1932 * keyboard.h (in_sighandler): Remove extern.
1933
1934 * mac.c (create_apple_event_from_event_ref, select)
1935 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
1936 (Fmac_set_file_type, cfstring_create_normalized)
6cb66a31
JB
1937 (mac_get_system_locale, select_and_poll_event, sys_select):
1938 Use OSStatus instead of OSErr.
eb411049 1939
6cb66a31
JB
1940 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
1941 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
eb411049
YM
1942 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
1943
1944 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
1945 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
1946 (get_scrap_private_timestamp, get_scrap_target_type_list)
1947 (x_own_selection, x_get_foreign_selection)
1948 (Fx_disown_selection_internal, Fx_selection_owner_p)
1949 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
1950
1951 * macterm.c (mac_draw_string_common, mac_query_char_extents)
1952 (x_iconify_frame, XLoadQueryFont, install_window_handler)
1953 (mac_handle_command_event, init_command_handler, init_menu_bar):
1954 Use OSStatus instead of OSErr.
1955 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
1956 FRAME_FILE_NAME.
1957 (x_query_font): Apply 2006-08-04 change for xterm.c.
1958 (Qhi_command): Rename from Qhicommand. All uses changed.
1959
1960 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
1961 file_name.
1962 (FRAME_FILE_NAME): Remove macro.
1963 (install_window_handler, create_apple_event_from_event_ref):
1964 Return OSStatus instead of OSErr.
1965
d489b9c5
KS
19662006-08-26 Kim F. Storm <storm@cua.dk>
1967
1968 * buffer.c (Fset_buffer_multibyte):
1969 * editfns.c (Fcurrent_time, Fget_internal_run_time):
1970 * macfns.c (Fxw_color_values):
1971 * w32fns.c (Fxw_color_values):
1972 * xfns.c (Fxw_color_values): Simplify; use list3.
1973
1974 * fileio.c (Fmake_directory_internal, Fdelete_directory)
1975 (Fdelete_file): Simplify; use list1.
1976 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
1977 Simplify; remove NO_ARG_ARRAY stuff, use list2.
1978
24d8984e
RS
19792006-08-25 Richard Stallman <rms@gnu.org>
1980
1981 * buffer.c (Fswitch_to_buffer): Fix previous change.
1982
16fb6ded
KS
19832006-08-25 Kim F. Storm <storm@cua.dk>
1984
1985 * keyboard.c (Fcurrent_idle_time): Simplify.
1986
3e04a8fc
RS
19872006-08-25 Richard Stallman <rms@gnu.org>
1988
1989 * fns.c (sxhash_string): Rotate properly; don't lose bits.
1990
8d8dafeb
KS
19912006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
1992
1993 * xdisp.c (overline_margin): New variable.
1994 (x_produce_glyphs): Use it.
1995 (syms_of_xdisp): DEFVAR_INT it.
1996
1997 * xterm.c (x_underline_at_descent_line): New variable.
1998 (syms_of_xterm): DEFVAR_BOOL it.
1999 (x_draw_glyph_string): Use it.
2000 Draw underline and overline up to the end of line if the face
2001 extends to the end of line.
2002
2003 * macterm.c: Likewise.
2004
2005 * w32term.c: Likewise.
2006
20072006-08-24 Nick Roberts <nickrob@snap.net.nz>
6410aac9
NR
2008
2009 * buffer.c (Fswitch_to_buffer): Move buffer to front of
2010 buffer-alist if necessary.
2011
6b4d8762
KS
20122006-08-22 Kim F. Storm <storm@cua.dk>
2013
2014 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
2015 number of items changes.
2016
7e1de68d
KS
20172006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
2018
2019 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
2020
f73858ce
JD
20212006-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2022
2023 * keyboard.c: Clarify difference between in_sighandler and
2024 handling_signal.
2025
c58790e6
KS
20262006-08-21 Kim F. Storm <storm@cua.dk>
2027
2028 * macterm.c (x_draw_stretch_glyph_string):
2029 * w32term.c (x_draw_stretch_glyph_string):
2030 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
5e1a6e32 2031 stretch glyph in left marginal areas on header and mode lines.
c58790e6 2032
748726f4
KH
20332006-08-21 Kenichi Handa <handa@m17n.org>
2034
2035 * keyboard.c (syms_of_keyboard): Docstring of
2036 Vunread_post_input_method_events and Vunread_input_method_events
2037 fixed.
2038
c5b76d6c
CY
20392006-08-20 Chong Yidong <cyd@stupidchicken.com>
2040
2041 * keyboard.c (show_help_echo): Preserve mouse movement flag if
2042 tracking mouse.
2043
ce629713
RS
20442006-08-20 Richard Stallman <rms@gnu.org>
2045
2046 * xfaces.c (load_pixmap): Add quotes in error message.
2047
2048 * keyboard.c (Fcurrent_idle_time): New function.
2049 (syms_of_keyboard): defsubr it.
2050
454e31b3
NR
20512006-08-18 Nick Roberts <nickrob@snap.net.nz>
2052
2053 * window.c (Fset_window_fringes): Do nothing on a tty.
2054 (Fwindow_fringes): Put ? operator after the line break.
2055
dae581bf
AS
20562006-08-16 Andreas Schwab <schwab@suse.de>
2057
2058 * print.c (debug_output_compilation_hack): Fix return type.
2059
3cb74cd1
RS
20602006-08-16 Richard Stallman <rms@gnu.org>
2061
2062 * print.c (debug_output_compilation_hack): New function.
2063
29cbc482
KH
20642006-08-16 Kenichi Handa <handa@m17n.org>
2065
2066 * fileio.c (choose_write_coding_system): Use LF for end-of-line
2067 in auto-saving.
2068
3236e6b8
CY
20692006-08-15 Chong Yidong <cyd@stupidchicken.com>
2070
2071 * keyboard.c (read_char): Don't change idle timer state at all if
2072 end_time is supplied.
2073
8db1f9fa
KH
20742006-08-15 Kenichi Handa <handa@m17n.org>
2075
2076 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
2077 is exhausted, return with RET.
2078 (detect_coding_emacs_mule, detect_coding_iso2022)
2079 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
2080 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
2081 change.
2082
70282fce
CY
20832006-08-14 Chong Yidong <cyd@stupidchicken.com>
2084
2085 * keyboard.c (read_char): Don't reset idle timers if a time limit
2086 is supplied.
2087
9bdc2a5d
KS
20882006-08-14 Kim F. Storm <storm@cua.dk>
2089
2090 * .gdbinit (pitx): Print iterator position.
2091 Limit stack dump in case iterator is not initialized.
2092
e6b8d662
EZ
20932006-08-12 Eli Zaretskii <eliz@gnu.org>
2094
2095 * frame.c (Fmouse_position, Fmouse_pixel_position)
2096 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
2097
0c584069
JD
20982006-08-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2099
2100 * xselect.c (Fx_register_dnd_atom): New function.
2101 (syms_of_xselect): Defsubr it.
9bdc2a5d 2102 (x_handle_dnd_message): Check that message_type is in
0c584069
JD
2103 dpyinfo->x_dnd_atoms before generating lisp event.
2104
2105 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
2106 of drag and drop Atoms.
2107
2108 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
2109
abef1dd7
JD
21102006-08-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2111
2112 * keyboard.c: Define in_sighandler.
2113 (input_available_signal): Set in_sighandler.
2114 (init_keyboard): Initialize in_sighandler.
2115
2116 * keyboard.h: Declare in_sighandler.
2117
2118 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
2119 to check if mutex should be locked or not.
2120
c2028ac6
RS
21212006-08-09 Richard Stallman <rms@gnu.org>
2122
2123 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
2124 (read_key_sequence): Always start fkey.start and fkey.end at 0,
2125 and likewise for keytran.
2126
bb0825cb
KH
21272006-08-09 Kenichi Handa <handa@m17n.org>
2128
2129 * coding.c (syms_of_coding): Improve the docstring
2130 file-coding-system-alist.
2131
61486999
AS
21322006-08-07 Andreas Schwab <schwab@suse.de>
2133
2134 * puresize.h (BASE_PURESIZE): Increase to 1120000.
2135
43ed3b8d
CY
21362006-08-06 Chong Yidong <cyd@stupidchicken.com>
2137
2138 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
2139 (Fkill_all_local_variables): Use it.
2140 (syms_of_buffer): Defvar it.
2141
6b657e42
EZ
21422006-08-05 Eli Zaretskii <eliz@gnu.org>
2143
0a3297f7
EZ
2144 * w32.c (w32_valid_pointer_p): New function.
2145
2146 * w32.h: Add prototype for w32_valid_pointer_p.
2147
2148 * alloc.c: Include w32.h.
2149 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
2150 the job.
2151
6b657e42
EZ
2152 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
2153 is exactly equal to end_time, not only when it is past that.
2154
092869b9
CY
21552006-08-04 Chong Yidong <cyd@stupidchicken.com>
2156
2157 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
2158
2159 * process.c: Reapply 2006-08-01 change.
2160
3046c3f9
EZ
21612006-08-04 Eli Zaretskii <eliz@gnu.org>
2162
2163 * w32fns.c (w32_query_font): Fix last change: use stricmp.
2164
0f2e2a3b
SM
21652006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2166
2167 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
2168 the before-change-functions since they may have altered the buffer.
2169
316a275a
EZ
21702006-08-04 Ralf Angeli <angeli@caeruleus.net>
2171
2172 * w32fns.c (w32_createwindow): Handle -geometry command line option
2173 and the geometry settings in the Registry.
2174
ef8f7cdd
KH
21752006-08-04 Kenichi Handa <handa@m17n.org>
2176
6f64cebf
KH
2177 * w32fns.c (w32_query_font): Compare names by ignoring case.
2178
ef8f7cdd
KH
2179 * xterm.c (x_query_font): Compare names by ignoring case.
2180
f3e0a6de
JR
21812006-08-03 Jason Rumney <jasonr@gnu.org>
2182
2183 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
2184 when no option selected.
2185
d634a670
CY
21862006-08-03 Chong Yidong <cyd@stupidchicken.com>
2187
2188 * process.c: Revert last change.
2189
0885202f
KS
21902006-08-01 Kim F. Storm <storm@cua.dk>
2191
2192 * process.c (wait_reading_process_output_unwind): New function.
2193 Restores waiting_for_user_input_p to saved value.
2194 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
2195 instead of save/restore old value on stack.
2196
0f42ea76
TTN
21972006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
2198
2199 * editfns.c: Undo 2006-06-27 change.
2200
69666f77
EZ
22012006-07-29 Eli Zaretskii <eliz@gnu.org>
2202
cfb37af8
EZ
2203 * coding.c (Ffind_operation_coding_system): Revert the change from
2204 2006-05-29.
2205
69666f77
EZ
2206 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
2207
0de8dcc9
RS
22082006-07-28 Richard Stallman <rms@gnu.org>
2209
0f42ea76 2210 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
0de8dcc9
RS
2211 Add conditional aborts for clarity.
2212
2213 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
2214 Used to avoid running the hooks over and over for each frame.
2215 (prepare_menu_bars): Pass value from update_menu_bar
2216 as HOOKS_RUN of next call.
2217
2218 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
2219
4dbdb9eb
KS
22202006-07-28 Kim F. Storm <storm@cua.dk>
2221
2222 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
2223 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
2224
2f1950bf
CY
22252006-07-26 Chong Yidong <cyd@stupidchicken.com>
2226
2227 * keyboard.c (read_char): New arg END_TIME specifying timeout.
2228 All callers changed. Turn off echoing if END_TIME is non-NULL.
2229 (kbd_buffer_get_event): New arg END_TIME.
2230
2231 * lread.c (read_filtered_event): New arg SECONDS to wait until.
2232 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
2233
2234 * lisp.h: Update read-char, read-event, and read_filtered_event
2235 prototypes.
2236
2237 * keyboard.h: Include systime.h. Update read_char prototype.
2238
55a90501
YM
22392006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2240
2241 * alloc.c (find_string_data_in_pure): New function.
2242 (make_pure_string): Use it to reuse existing string data if possible.
2243
2244 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
2245
2db8f173
SM
22462006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
2247
2248 * keymap.c (Fdefine_key): If the key binding definition looks like an
2249 XEmacs-style key sequence, convert it to Emacs's format.
2250
272f22eb
EZ
22512006-07-22 Ralf Angeli <angeli@caeruleus.net>
2252
2253 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
2254 parameters are bound to some values, use that instead of
2255 CW_USEDEFAULT.
2256
69b72317
EZ
22572006-07-21 Eli Zaretskii <eliz@gnu.org>
2258
2259 * w32.c (convert_time): Use explicit long double constants to
2260 ensure long double arithmetics is used throughout.
2261
14eee502
YM
22622006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2263
5e1a6e32 2264 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
14eee502
YM
2265 (init_alloc_once): Initialize them.
2266 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
2267 without alignment.
2268
2269 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
2270
eeeda6f1
KS
22712006-07-18 Francis Litterio <franl@world.std.com>
2272
2273 * w32term.c (x_calc_absolute_position): Fix frame positioning
2274 with negative X/Y coordinates.
2275
2381d38d
DN
22762006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
2277
2278 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
2279
2280 * textprop.c (text_read_only): Likewise.
2281
2282 * lread.c (end_of_file_error): Likewise.
2283
2284 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
2285 Likewise.
2286
2287 * eval.c (unwind_to_catch): Likewise.
2288
2289 * buffer.h (buffer_slot_type_mismatch): Likewise.
2290
5b5fca28
KS
22912006-07-18 Kim F. Storm <storm@cua.dk>
2292
2293 Cleanup Fsignal calls that never returns; now only use it for Qquit.
2294
2295 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
2296 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
2297 (signal_error): New no-return function (from xfaces.c).
2298 (Fthrow): Use xsignal2 instead of Fsignal + abort.
2299 (error): Use xsignal1 instead of Fsignal + abort.
2300 (FletX, Flet, grow_specpdl): Use signal_error.
2301 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
2302
6cb66a31 2303 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
5b5fca28
KS
2304 (list1): New function.
2305
2306 * lisp.h (list1): Add EXFUN.
2307 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
2308 Add prototypes. Mark them as no-return.
2309
2310 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
2311 Use xsignal1.
2312
2313 * callint.c (check_mark): Use xsignal0.
2314
2315 * casefiddle.c (casify_object): wrong_type_argument is no-return.
2316
2317 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
2318
2319 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
2320 (Fdefine_coding_system_internal): Use xsignal1.
2321
2322 * data.c (circular_list_error): Use xsignal.
2323 (wrong_type_argument): Use xsignal2. Don't care about return value.
2324 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
2325 Remove loop around Fsignal.
2326 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
2327 (indirect_function, Findirect_function, Fstring_to_number)
2328 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
2329 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
2330 Use xsignal0.
2331
2332 * doc.c (Fdocumentation): Use xsignal1.
2333
2334 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
2335
2336 * fileio.c (report_file_error): Use xsignal.
2337 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
2338 (Finsert_file_contents): Use xsignal2.
2339 (syms_of_fileio): Use list2, list3.
2340
2341 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
2342 (range_error2, domain_error2): Use xsignal3.
2343 (rounding_driver, fmod_float): Use xsignal0.
2344 (float_error): Use xsignal1.
2345 (matherr): Use xsignal.
2346
2347 * fns.c (Flength): wrong_type_argument is no-return.
2348 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
2349 (Fmd5): Use xsignal1.
2350
2351 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
2352
2353 * keyboard.c (recursive_edit_1): Use xsignal1.
2354
2355 * keymap.c (Fmap_keymap): Use xsignal1.
2356
2357 * lread.c (Fload): Use xsignal2, signal_error.
2358 (end_of_file_error): Use xsignal0, xsignal1.
2359 (read0): Use xsignal1.
2360 (invalid_syntax): New error function marked no-return.
2361 (read_integer, read1, read_list): Use it.
2362
2363 * macselect.c (x_get_local_selection): Use signal_error.
2364
2365 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
2366
2367 * search.c (compile_pattern_1): Use xsignal1.
2368 (signal_failure): Remove (was only called once).
2369 (search_command): Use xsignal1 instead of signal_failure.
2370
2371 * syntax.c (scan_lists): Use xsignal3.
2372
2373 * textprop.c (text_read_only): Use xsignal0, xsignal1.
2374
2375 * unexsol.c (unexec): Use xsignal.
2376
2377 * window.c (window_scroll_pixel_based, window_scroll_line_based):
2378 Use xsignal0.
2379
2380 * xfaces.c (signal_error): Move to eval.c.
2381 (resolve_face_name): Use xsignal1.
2382
2383 * xfns.c (x_decode_color): Use signal_error.
2384
2385 * xselect.c (x_get_local_selection, copy_multiple_data)
2386 (x_get_window_property_as_lisp_data)
2387 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
2388 (Fx_get_cut_buffer_internal): Use signal_error.
2389
d3f31bc5
YM
23902006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2391
2392 * macterm.c (XTread_socket): Undo previous change.
2393
1e53bd0e
YM
23942006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2395
2396 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
2397 directly lookup keycode_to_xkeysym_table.
2398 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
2399 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
2400 (XTread_socket): Use character codes to construct keypad key events.
2401 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
2402 (x_delete_display): Apply 2006-07-04 change for xterm.c.
2403
0de8dcc9
RS
24042006-07-17 Richard Stallman <rms@gnu.org>
2405
2406 * keyboard.c (Vcommand_error_function): New variable.
2407 (syms_of_keyboard): Defvar it.
2408 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
2409
2410 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
2411
55dc982c
KS
24122006-07-17 Kim F. Storm <storm@cua.dk>
2413
2414 * xdisp.c (handle_single_display_spec): Ensure the right value of
2415 it->position is saved by push_it.
2416 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
2417 (reseat_1): Don't setup it->object twice.
2418 (set_iterator_to_next): No need to set it->object after pop_it.
2419 (move_it_to): Explicitly check to see if last move reached to_charpos.
2420
ce7d5efe
TTN
24212006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
2422
2423 * xdisp.c (display_mode_line): Preserve match data.
2424
d753d9b7
KS
24252006-07-14 Kim F. Storm <storm@cua.dk>
2426
2427 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
2428 (init_winsock): Load them. Use ws2_32.dll.
2429 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
2430 (sys_accept): Undo last change. Instead, set child status to
2431 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
2432 sys_select will wakeup the reader thread.
2433 (_sys_wait_accept): New function used by reader thread to wait for
2434 an incoming connection on a server socket.
2435
2436 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
2437
2438 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
2439 server socket (FILE_LISTEN flag).
2440
dcc88121
JD
24412006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2442
2443 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
2444
8a8476f9
KS
24452006-07-14 Kim F. Storm <storm@cua.dk>
2446
2447 * w32.c: Fix high cpu load for server sockets.
2448 (pfn_WSAEventSelect): New function ptr.
2449 (init_winsock): Load it.
2450 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
2451 char_avail event object to FD_ACCEPT.
2452 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
2453 socket's char_avail event object to FD_READ|FD_CLOSE.
2454
2455 * w32.h (FILE_LISTEN): New filedesc flag value.
2456
f3500bbe
KS
24572006-07-13 Kim F. Storm <storm@cua.dk>
2458
2459 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
2460 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
2461 Simplify loops and use CAR for Bnth and Belt.
2462
2463 * data.c (Findirect_function): Optimize for no indirection.
2464
2465 * eval.c (Fthrow): Remove loop around Fsignal.
2466 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
2467 Use original function name in all signaled errors.
2468 Simplify Fsignal calls (no return).
2469 (funcall_lambda): Simplify Fsignal calls (no return).
2470
60c86a83
AS
24712006-07-13 Andreas Schwab <schwab@suse.de>
2472
2473 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
2474 out_charpos.
2475
d40ec4a0
KH
24762006-07-13 Kenichi Handa <handa@m17n.org>
2477
2478 * editfns.c (Fformat): Fix calculation of text property positions
2479 of format string.
2480
b8a6aaa7
KS
24812006-07-12 Kim F. Storm <storm@cua.dk>
2482
2483 * lisp.h (CHECK_TYPE): New macro for generic type checking.
2484 (CAR_SAFE, CDR_SAFE): New macros.
2485 (ARRAYP, CHECK_ARRAY): New macros.
2486 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
2487 (CHECK_WINDOW_CONFIGURATION): New macro.
2488 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
2489 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2490 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
2491 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
2492 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
2493 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
2494 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2495 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
2496
2497 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
2498 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
2499
2500 * callint.c (Fcall_interactively):
2501 * casefiddle.c (casify_object):
2502 * editfns.c (general_insert_function):
2503 * fns.c (Flength, Felt, Ffillarray):
2504 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
2505
2506 * data.c (wrong_type_argument): Remove loop around Fsignal.
2507 (Farrayp, Fsequencep): Use ARRAYP.
2508 (Fcar): Use CAR.
2509 (Fcar_safe): Use CAR_SAFE.
2510 (Fcdr): Use CDR.
2511 (Fcdr_safe): Use CDR_SAFE.
2512 (Fsetcar, Fsetcdr): Use CHECK_CONS.
2513 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
2514 (Faset): Use CHECK_ARRAY.
2515
2516 * fns.c (Felt): Use CHECK_ARRAY.
2517 (concat): Use CHECK_NUMBER.
2518 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
2519 (Fmemq): Use CHECK_LIST.
2520 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
2521 (assq_no_quit): Use CAR_SAFE.
2522 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
2523 Use CHECK_LIST_CONS.
2524 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
2525
2526 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
2527
2528 * casetab.c (check_case_table):
2529 * category.c (check_category_table):
2530 * marker.c (Fcopy_marker):
2531 * syntax.c (check_syntax_table):
2532 * xfaces.c (load_pixmap): Use CHECK_TYPE.
2533
2534 * fns.c (Fcopy_sequence, concat):
2535 * fringe.c (Fdefine_fringe_bitmap):
2536 * lread.c (check_obarray): Cleanup wrong_type_argument use.
2537
e55deb0b
KS
2538 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
2539
b8a6aaa7
KS
2540 * keymap.c (Fdefine_key, Flookup_key):
2541 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
2542
2543 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
2544
2545 * search.c (Fset_match_data): Use CHECK_LIST.
2546
2547 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
2548
2549 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
2550 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
2551
099d4201
YM
25522006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2553
2554 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
2555
2556 * dired.c: Include blockinput.h.
2557 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
2558
2559 * editfns.c: Include blockinput.h.
2560 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
2561 getpwuid/getpwnam.
2562
2563 * fileio.c: Include blockinput.h.
2564 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
2565 around getpwnam.
2566 (search_embedded_absfilename): Remove spurious xfree.
2567
2e42ee7b
KS
25682006-07-11 Kim F. Storm <storm@cua.dk>
2569
2570 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
2571 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
2572 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
8e09f23f 2573 Signal error if TIMEOUT is not a number.
2e42ee7b
KS
2574 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
2575 The rework of sit_for args also fixes several incorrect Qt args
2576 which should have been 1.
2577 (Fredisplay): Pass 1 instead of Qt to swallow_events and
2578 detect_input_pending_run_timers.
2579
2580 * lisp.h (sit_for): Update prototype.
2581 (Fredisplay): Add EXFUN.
2582
2583 * dispextern.h (sit_for): Remove prototype.
2584
2585 * callint.c (Fcall_interactively):
2586 * minibuf.c (temp_echo_area_glyphs):
2587 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
2588 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
2589
a0aa7fcf
SM
25902006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
2591
2592 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
2593
ff97f952
KS
25942006-07-11 Kim F. Storm <storm@cua.dk>
2595
68ade564 2596 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
ff97f952
KS
2597 input is available. Fix test for redisplay_dont_pause non-nil.
2598 Specbind redisplay-dont-pause to t if FORCE non-nil.
2599
7ba07a1a
CY
26002006-07-10 Chong Yidong <cyd@stupidchicken.com>
2601
2602 * puresize.h (BASE_PURESIZE): Increment to 1211000.
2603
2604 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
2605 (Fsit_for): Function deleted.
2606
a0aa7fcf
SM
2607 * keyboard.c (command_loop_1, Fexecute_extended_command):
2608 Call sit_for instead of Fsit_for.
7ba07a1a
CY
2609
2610 * minibuf.c (temp_echo_area_glyphs): Likewise.
2611
2312c580
SM
26122006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
2613
2614 * syntax.c (Fforward_comment): Revert the reversion.
932e6895 2615 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
2312c580 2616
bf88ca63
JPW
26172006-07-09 John Paul Wallington <jpw@pobox.com>
2618
2619 * syntax.c (Fforward_comment): Revert previous change.
2620
08b17d37
KS
26212006-07-09 Kim F. Storm <storm@cua.dk>
2622
2623 * window.c (Fforce_window_update): Doc fix.
2624
26816cbf
SG
26252006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
2626
2627 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
2628 directory unreadable for better user privacy.
2629
4332cf50
SM
26302006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
2631
dd9f0dcd
SM
2632 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
2633
4332cf50
SM
2634 * lread.c (read_filtered_event): Remove `register' qualifier because it
2635 causes compilation problem with gcc-4.0.2-20051125 on amd64.
91fe9496
SM
2636 (readevalloop): Remove unused var `bpos'.
2637 Yet another int/Lisp_Object mixup (YAILOM).
4332cf50 2638
dfb4bff5
EZ
26392006-07-07 Eli Zaretskii <eliz@gnu.org>
2640
2641 * keyboard.c (Fexecute_extended_command): Mention the argument
2642 PREFIXARG in the doc string.
2643
efaed3b0
KS
26442006-07-07 Kim F. Storm <storm@cua.dk>
2645
2646 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2647
e2e6e4d2
CY
26482006-07-05 Chong Yidong <cyd@stupidchicken.com>
2649
234fb773
CY
2650 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
2651 clash detection using the base buffer.
2652
e2e6e4d2
CY
2653 * puresize.h (BASE_PURESIZE): Increment to 1210500.
2654
e128be55
KS
26552006-07-04 Kim F. Storm <storm@cua.dk>
2656
2657 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
2658
2462bc66
KH
26592006-07-04 Kenichi Handa <handa@m17n.org>
2660
2661 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
2662 to update Voverriding_fontspec_alist.
2663
9ca24617
RS
26642006-07-03 Richard Stallman <rms@gnu.org>
2665
2666 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
2667
2668 * xfaces.c (Fface_attribute_relative_p): Doc fix.
2669
2670 * textprop.c (Fget_char_property_and_overlay): Doc fix.
2671
2672 * eval.c (Fdefvaralias): Doc fix.
2673
d8ab3c6d
KS
26742006-07-03 Kim F. Storm <storm@cua.dk>
2675
2676 * dispnew.c (sit_for): Fix preempt condition.
2677
ca77ee45
SM
26782006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
2679
2680 * lread.c (read_filtered_event): Treat select-window just like
2681 switch-frame.
2682
8cb72de5
KS
26832006-07-02 Kim F. Storm <storm@cua.dk>
2684
2685 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
2686 to ever fit the tool-bar,
2687 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
2688 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
2689 (redisplay_tool_bar): Only clear desired matrix if we actually
2690 change the tool-bar window height. Only try to make the tool-bar
2691 window bigger if there is actually room for it.
2692
6407e67c
EZ
26932006-06-30 Ralf Angeli <angeli@caeruleus.net>
2694
2695 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
2696 SPI_GETWORKAREA to find the dimensions of the screen work area,
2697 and adjust vertical position of the frame in order to avoid being
2698 covered by the task bar.
2699
2700 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
2701 f->left_pos and SH_SHOW instead of f->top_pos in the call to
2702 CreateWindow. Record the actual position in f->left_pos and
2703 f->top_pos.
2704
639804b3
JPW
27052006-06-30 John Paul Wallington <jpw@pobox.com>
2706
2707 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
2708 Doc fix - default value has changed.
2709
3ff05183
YM
27102006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2711
2712 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
2713
2714 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
2715
2716 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
2717
2718 * macterm.c (Qeql): Add extern.
2719 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
2720 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
2721 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
2722 Change keys of Vmac_atsu_font_table from strings to numbers.
2723 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
2724 (init_font_name_table) [USE_ATSUI]: Use it.
2725 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
2726 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
2727 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
2728 only when saved_ts_script_language_on_focus coincides with
2729 Vmac_ts_script_language_on_focus.
2730 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
2731 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
2732 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
2733 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
2734
df8ffa05
CY
27352006-06-27 Chong Yidong <cyd@stupidchicken.com>
2736
2737 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
2738 (Ffield_string_no_properties, Ffield_end): Mention
2739 args-out-of-range error condition in docstring.
2740
04405ad9
KS
27412006-06-27 Kim F. Storm <storm@cua.dk>
2742
2743 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
2744
f8e83735
KS
27452006-06-25 Kim F. Storm <storm@cua.dk>
2746
2747 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
2748 version 2.4 and later.
2749
86b2ba0d
CY
27502006-06-24 Chong Yidong <cyd@stupidchicken.com>
2751
2752 * xfns.c (Fx_create_frame): Set font parameter directly instead of
2753 using x_default_parameter, since x_get_args clears the parm alist.
2754
eff6bfea
EZ
27552006-06-24 Eli Zaretskii <eliz@gnu.org>
2756
2757 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
2758 case-insensitively.
2759
d9034473
EZ
27602006-06-24 Aidan Kehoe <kehoea@parhasard.net>
2761
2762 * lread.c (read_escape): When an unknown Unicode code point is
2763 encountered as a string or character escape, signal an error.
2764
8800bd5c
KS
27652006-06-23 Kim F. Storm <storm@cua.dk>
2766
31005921
KS
2767 * .gdbinit (pitx): Dump iterator stack.
2768
8800bd5c
KS
2769 * xdisp.c (handle_composition_prop): Push iterator on stack.
2770 (set_iterator_to_next): Pop iterator at end of composition.
2771
28fa06ea
EZ
27722006-06-23 Martin Rudalics <rudalics@gmx.at>
2773
2774 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
2775 itself on DOS_NT platforms, if the old and new names are identical
2776 but for the letter-case.
2777
43a37241
KS
27782006-06-21 Kim F. Storm <storm@cua.dk>
2779
2780 * dispextern.h (struct it): Add `position' member to iterator stack.
2781 Rename `pos' member to `current'. Rearrange and add comments.
2782
2783 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
2784 if we get any overlays.
2785 (set_cursor_from_row): Don't clobber `end' if we rescan from
2786 start_string.
2787 (push_it, pop_it): Save it->position.
2788
a5bd14d3
RS
27892006-06-19 Richard Stallman <rms@gnu.org>
2790
2791 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
2792 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
2793 for the case of a top-level window and the following minibuffer.
2794 Don't exit because of no `next' when there is a parent.
2795 Use the FIRST_ONLY feature when resizing following windows.
eb85ecac 2796
a5bd14d3
RS
2797 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
2798
a3efc408
KS
27992006-06-17 Kim F. Storm <storm@cua.dk>
2800
2801 * dispnew.c (update_frame): Check for input pending on entry.
2802 (update_window, update_frame_1): Break loop if input is detected.
2803
d692a3d5
JD
28042006-06-16 Francis Litterio <flitterio@gmail.com>
2805
2806 * xterm.c (x_check_expected_move, handle_one_xevent)
2807 (x_set_offset, x_check_fullscreen): Extensive changes to make
2808 frame positioning deterministic under X.
2809
b70e1a2b 2810 * xterm.h (x_output): Add members left_before_move and
d692a3d5
JD
2811 top_before_move. Removed members expected_left and expected_top.
2812
df05d913
KS
28132006-06-16 Kim F. Storm <storm@cua.dk>
2814
626c7c71
KS
2815 * dispextern.h (struct it): Add union to iterator stack to save
2816 image, composition, and stretch specific paramters.
2817
2818 * xdisp.c (next_overlay_string): Fix assert.
2819 (push_it, pop_it): Handle composition and stretch specific values.
2820 Only handle it->slice in image (for now).
2821 (back_to_previous_visible_line_start): Continue search if newline is
2822 part of a compisition. Simplify.
2823 (reseat_1): Set it->object to buffer.
2824 (set_iterator_to_next): Set it->object to string or buffer, when
2825 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
2826 (next_element_from_composition): Set it->object to buffer if not
2827 from string.
2828 (set_cursor_from_row): Only save start of string if not already
2829 done to handle multiple strings in a row.
2830
df05d913
KS
2831 * .gdbinit (pitx): Show composition parameters.
2832 (pgx, pg): New commands to print a glyph structure.
2833 (pgi, pgn): New commands to print specific/next glyph.
2834 (pgrowx, pgrow): New commands to print all glyphs in a row.
2835
aa2f234a
YM
28362006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2837
2838 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
2839 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
2840
2841 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
2842 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
2843 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
2844 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
2845 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2846 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
2847 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
2848 Services functions to get size of main display in pixels.
2849
633e63ca
CY
28502006-06-14 Chong Yidong <cyd@stupidchicken.com>
2851
d0f891a7
SM
2852 * xdisp.c (back_to_previous_visible_line_start):
2853 Reset it->continuation_lines_width.
633e63ca 2854
cac9d766
RS
28552006-06-14 Richard Stallman <rms@gnu.org>
2856
2857 * eval.c (Fdefconst): Mark variable as risky.
2858
2859 * callproc.c (Fcall_process): Doc fix.
2860
2861 * window.c (adjust_window_trailing_edge): Don't break out of the loop
2862 because there's no next window, if there are parallel windows.
2863 Do break out when WINDOW is nil.
df05d913 2864
bae1ed29
KS
28652006-06-14 Kim F. Storm <storm@cua.dk>
2866
1bb32610
KS
2867 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
2868 iterator stack (instead of hardcoded number). Increase from 2 to
2869 4 to make room for propertized overlay strings before and after a
2870 display string, image or composition.
2871 (struct it): Add image_id and method members to iterator stack.
2872
2873 * xdisp.c (init_from_display_pos): Don't set it->method and
2874 overlay_string_index after pop_it. Add asserts.
2875 (handle_stop): Look for overlay strings around a display string,
2876 image, or composition. Handle properties on those strings.
2877 (next_overlay_string): Don't set string, pos or method after pop_it.
2878 (get_overlay_strings_1): Split from get_overlay_strings; don't
2879 modify it if no overlay strings are found.
2880 (get_overlay_strings): Use get_overlay_strings_1. Always set
2881 it->string and it->method.
2882 (push_it): Push it->image_id and it->method. Push it->object
2883 instead of it->string if method is GET_FROM_IMAGE.
2884 (pop_it): Pop it->image_id and it->method. Ppo it->object
2885 instead of it->string if method is GET_FROM_IMAGE.
2886 Reset it->current.string_pos if popped it->string is nil.
2887 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
2888 whether a given change was correct; but the change is correct.
2889 Clear it->string_from_display_prop_p.
2890 (set_iterator_to_next): Rely on it->method and it->image_id from
2891 iterator stack, instead of setting them explicitly after pop_it.
2892
bae1ed29
KS
2893 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
2894 negative time forces redisplay even when input is available.
2895 (Fsit_for): Doc fix.
2896
8eb2b87f
KS
28972006-06-13 Kim F. Storm <storm@cua.dk>
2898
2899 * dispnew.c: Modify preemptive redisplay to be based on periodic
2900 checks for input.
2901 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
2902 (Vredisplay_preemption_period): New variable.
2903 (syms_of_display): DEFVAR_LISP and initialize it.
2904 (preemption_period, preemption_next_check): New variables.
2905 (update_frame, update_single_window): Initialize them based on
2906 Vredisplay_preemption_period if !force_p.
2907 (update_window, update_frame_1): Use them to determine when to
2908 check for input.
2909
7cb93181
EZ
29102006-06-03 Aidan Kehoe <kehoea@parhasard.net>
2911
2912 * lread.c (read_escape): Provide a Unicode character escape
2913 syntax; \u followed by exactly four or \U followed by exactly
2914 eight hex digits in a comment or string is read as a Unicode
2915 character with that code point.
2916
cf402f3f
EZ
29172006-06-09 Eli Zaretskii <eliz@gnu.org>
2918
2919 * window.c (window_scroll_pixel_based): Signal "Beginning of
2920 buffer" when scroll-down at the beginning of an empty buffer.
2921
67b5f809
YM
29222006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2923
d0f891a7
SM
2924 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
2925 Exclude 0x7f from ASCII range.
67b5f809 2926
94856834
JR
29272006-06-05 Jason Rumney <jasonr@gnu.org>
2928
2929 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
2930 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
2931 (x_scroll_bar_report_motion): Remove workarounds for
2932 versions of Windows NT < 3.51.
2933 [!SIF_ALL]: Remove.
2934 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
2935 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
2936
d495ccfc
DK
29372006-06-04 David Kastrup <dak@gnu.org>
2938
2939 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
2940 `sit-for'.
2941
fabcf455
YM
29422006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2943
2944 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
2945
2946 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
2947
2948 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
2949 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
2950 [USE_MAC_TSM]: Likewise.
2951 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
2952 (Qbefore_string) [USE_MAC_TSM]: Add extern.
2953 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
2954 ActivateTSMDocument/DeactivateTSMDocument.
2955 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
2956 (mac_handle_window_event) [USE_MAC_TSM]: Handle
2957 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
2958 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
2959 (install_window_handler) [USE_MAC_TSM]: Install it. Register
2960 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
2961 (keycode_to_xkeysym_table): Add entry for f16.
2962 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
2963 before/after passing keystroke event to toolbox dispatcher.
2964 (init_tsm) [USE_MAC_TSM]: New function.
2965 (mac_initialize) [USE_MAC_TSM]: Call it.
2966 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
2967
2968 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
2969
4985dde2
JPW
29702006-06-02 John Paul Wallington <jpw@gnu.org>
2971
2972 * xfns.c (x_set_name_internal): Set icon to `text', derived from
2973 name, when frame's icon_name isn't a string rather than only when
2974 it is nil.
2975
3f65d6f5
EZ
29762006-06-03 Eli Zaretskii <eliz@gnu.org>
2977
2978 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
2979 and not nil.
2980
56f41f98
CY
29812006-06-02 Chong Yidong <cyd@stupidchicken.com>
2982
2983 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
2984 string.
2985
70a4cae4
YM
29862006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2987
2988 * xdisp.c (next_element_from_composition): Set it->object to
2989 it->string if composition is coming from string.
2990 (set_cursor_from_row): Don't return 0 unless row displays a
2991 continued line.
2992 (dump_glyph): Dump composite glyph.
06c7827a 2993
8b2b00f5
JD
29942006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2995
2996 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
2997
963128f3
RS
29982006-06-01 Richard Stallman <rms@gnu.org>
2999
3000 * window.c (Fsplit_window): Doc fix.
3001
24a71bb1
KS
30022006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
3003
3004 * process.c (deleted_pid_list): New variable to store the pids
3005 of deleted processes. Declare it only if SIGCHLD is defined.
3006 (init_process): Initialize it.
3007 (syms_of_process): Staticpro it.
3008 (Fdelete_process): Add pid of the deleted process to it. Check after
3009 the addition and before the kill if the process is already stopped,
3010 in which case it is deleted from the list and not killed.
3011 (sigchld_handler): Define it only if SIGCHLD is. Search the process
3012 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
3013 Original idea by Stefan Monnier.
3014
a71a7704
KS
30152006-06-01 Kim F. Storm <storm@cua.dk>
3016
3017 * dispnew.c (sit_for): Perform redisplay even if input is pending
3018 when redisplay-dont-pause is non-nil.
3019
36f0107c
YM
30202006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3021
3022 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
3023 (XTread_socket): Remove obsolete comment.
3024
2e92a7cb
JD
30252006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3026
3027 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
3028 menu-bar-open.
3029
c9467aaa
JD
30302006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3031
3032 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
3033 menu-bar-open.
3034
3035 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
3036
82db8fa7
JL
30372006-05-31 Juri Linkov <juri@jurta.org>
3038
3039 * minibuf.c (Vhistory_add_new_input): New variable.
3040 (read_minibuf): Use it.
3041 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
3042 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
3043
360fecca
KS
30442006-05-31 Kim F. Storm <storm@cua.dk>
3045
3046 * process.c (select_wrapper): Add wrapper around select to work around
3047 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
3048 select called from wait_reading_process_output.
3049
303e108c
AS
30502006-05-30 Andreas Schwab <schwab@suse.de>
3051
3052 * xmenu.c (Fmenu_bar_start): Return a value.
3053
d9e8091d
RS
30542006-05-30 Richard Stallman <rms@gnu.org>
3055
3056 * coding.c (Ffind_operation_coding_system): Doc fix.
3057
7c42b3e0
EZ
30582006-05-30 Eli Zaretskii <eliz@gnu.org>
3059
3060 * w32term.c (x_draw_hollow_cursor): Fix last change.
3061
73af0716
KS
30622006-05-29 Kim F. Storm <storm@cua.dk>
3063
3064 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
3065
30662006-05-29 Eli Zaretskii <eliz@gnu.org>
a952cebe
EZ
3067
3068 * coding.c (Ffind_operation_coding_system): Doc fix.
3069
ffd71266
YM
30702006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3071
3072 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
3073 Call mac_set_font_info_for_selection if font panel is made visible.
3074
3075 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
3076 (mac_font_panel_visible_p, mac_show_hide_font_panel)
3077 [USE_MAC_FONT_PANEL]: New functions.
3078 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
3079 immediately if font panel is not visible.
3080
3081 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
3082 Add externs.
3083
01d09305
DN
30842006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
3085
3086 * search.c (matcher_overflow): Mark as NO_RETURN.
3087
3088 * xterm.c (x_connection_closed): Likewise.
3089
3090 * sysdep.c (croak): Likewise.
3091
3092 * sound.c (sound_perror, alsa_sound_perror): Likewise.
3093
3094 * lisp.h (die, nsberror): Likewise.
3095
c1c032a3
JD
30962006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3097
3fc7a865
JD
3098 * sound.c (alsa_open, alsa_configure, alsa_write): Move
3099 assignment to err out of if-statement.
3100
c1c032a3
JD
3101 * gtkutil.c (menu_nav_ended): New function.
3102 (create_menus): Connect menu_nav_ended to "selection-done" to fix
3103 grabs.
3104
3105 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
3106
345b3483
DN
31072006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
3108
3109 * charset.h (invalid_character): Mark as NO_RETURN.
3110
7311509e
KH
31112006-05-29 Kenichi Handa <handa@m17n.org>
3112
3113 * coding.c (Ffind_operation_coding_system): Call a function by
3114 safe_call1 instead of call1.
3115
6ad0381c
SM
31162006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3117
3118 * window.c (struct saved_window): Add `dedicated'.
3119 (Fset_window_configuration, save_window_save): Save/restore the
3120 `dedicated' flag.
3121
794033ae
KS
31222006-05-28 Kim F. Storm <storm@cua.dk>
3123
3124 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
3125 don't update w->cursor and return 0. Return 1 on success.
3126 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
3127 until it succeeds.
3128
3129 * dispextern.h (set_cursor_from_row): Update prototype.
3130
26837cd3
KS
31312006-05-28 Kim F. Storm <storm@cua.dk>
3132
3133 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
3134 parameters. Adjust x and width in case cursor in on a partially
3135 visible stretch glyph on the left edge.
3136 (erase_phys_cursor): Don't erase into left fringe/margin in case
3137 previous cursor glyph is a partially visible stretch glyph on left.
3138
3139 * dispextern.h (get_phys_cursor_geometry): Update prototype.
3140
3141 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
3142 cursor and erasing cursor on partially visible stretch glyph on left.
3143 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
3144
3145 * macterm.c: Likewise.
3146
3147 * w32term.c: Likewise.
3148
412f3f18
YM
31492006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3150
6ad0381c
SM
3151 * macselect.c (mac_handle_apple_event):
3152 Return errAEEventNotHandled if key binding is not found.
412f3f18 3153
0f7078f0
EZ
31542006-05-26 Eli Zaretskii <eliz@gnu.org>
3155
3156 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
3157 [__MINGW32__]: MinGW-specific declaration of `etext'.
3158
3159 * w32heap.c (etext, edata): Remove unused definitions.
3160
795c20df
CY
31612006-05-26 Chong Yidong <cyd@stupidchicken.com>
3162
6ad0381c
SM
3163 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
3164 Incorporate the exclusive file-opening functionality into the behavior
3165 when OK-IF-ALREADY-EXISTS is nil.
795c20df
CY
3166 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
3167
07a7837c
JD
31682006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3169
3170 * sound.c (alsa_configure): Move get period/buffer_size after
3171 setting hwparams.
3172
f1c582b4
KH
31732006-05-26 Kenichi Handa <handa@m17n.org>
3174
3175 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
3176 . BUFFER) in TARGET.
3177
3165e450
CY
31782006-05-25 Chong Yidong <cyd@stupidchicken.com>
3179
3180 * image.c (png_load): Don't call fclose on NULL.
3181
d579f53b
LT
31822006-05-25 Luc Teirlinck <teirllm@auburn.edu>
3183
3184 * fns.c (Fyes_or_no_p):
3185 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
3186 only seven args.
3187
abeb5483
JL
31882006-05-25 Juri Linkov <juri@jurta.org>
3189
3190 * lisp.h (Fread_from_minibuffer): Decrement number of args.
3191
3192 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
3193 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
3194
3195 * buffer.c (mode-line-format): Fix docstring.
3196
403a7bca
RS
31972006-05-25 Richard Stallman <rms@gnu.org>
3198
3199 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
3200
24b0232f
LT
32012006-05-24 Luc Teirlinck <teirllm@auburn.edu>
3202
3203 * puresize.h (BASE_PURESIZE): Increase to 1210000.
3204
ac9f37df
AM
32052006-05-24 Alan Mackenzie <acm@muc.de>
3206
3207 * lread.c (Vload_history): Enhance doc-string to say that the file
3208 is the absolute truename of the loaded file.
3209
3210 * lread.c (Vafter_load_alist): doc-string: state that an element
3211 now has a regexp to match file names, not a file name as such.
3212
3213 * lread.c (readevalloop): Call file-truename on the name for
3214 load-history, except at preloading time.
3215
3216 * lread.c (Fload): At preloading time, preserve the extension of
6ad0381c 3217 the filename which goes into load-history. New var hist_file_name.
ac9f37df
AM
3218
3219 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
3220 function do-after-load-evaluation.
3221
e4dff88d
YM
32222006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3223
3224 * mac.c (ae_attr_table): New variable.
3225 (syms_of_mac): Intern and staticpro its elements.
3226 (mac_aelist_to_lisp): Also convert Apple event attributes.
3227 (mac_ae_put_lisp): New function.
3228 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
3229
3230 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
3231
3232 * macselect.c (Qemacs_suspension_id): New variable.
3233 (syms_of_macselect): Intern and staticpro it.
3234 (struct suspended_ae_info): New struct.
3235 (deferred_apple_events, defer_apple_events)
3236 (Fmac_process_deferred_apple_events): Use it.
3237 (suspended_apple_events): New variable.
3238 (mac_handle_apple_event_1): New function.
3239 (mac_handle_apple_event): Use it. Don't process previously
3240 suspended events.
412f3f18 3241 (cleanup_suspended_apple_events, get_suspension_id)
e4dff88d
YM
3242 (cleanup_all_suspended_apple_events): New functions.
3243 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
3244 at exit.
3245 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
3246 (Fmac_resume_apple_event): New defuns.
3247 (syms_of_macselect): Defsubr them.
3248
3249 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
3250 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
3251
3252 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
3253 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
3254 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
3255 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
3256 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
3257 Likewise.
3258 (typeUTF8Text, kEventParamWindowMouseLocation)
3259 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
3260 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
3261
b8c6940e
YM
32622006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3263
3264 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
3265 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
3266 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
3267 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
3268 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
3269 resource to backtranslate key with modifiers.
3270 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
3271
0277e36c
JD
32722006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3273
3274 * xterm.c: Remove declarations already in xterm.h
3275
3276 * xterm.h: Add extern declarations for x_clear_errors,
26837cd3 3277 x_fully_uncatch_errors, x_catching_errors and
0277e36c
JD
3278 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
3279
63af6055
RS
32802006-05-21 Richard Stallman <rms@gnu.org>
3281
55815819
RS
3282 * xfaces.c (best_matching_font): Abort for best == NULL
3283 before we start to use it.
3284
63af6055
RS
3285 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
3286
5748161e
KS
32872006-05-20 Kim F. Storm <storm@cua.dk>
3288
3289 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
3290
431225c6
YM
32912006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3292
3293 * macterm.c (convert_fn_keycode): Fix last change.
3294
e00b99c8
EZ
32952006-05-19 Eli Zaretskii <eliz@gnu.org>
3296
3297 * w32.c (init_environment): Perform the processing of environment
3298 variables on a copy of default variables and their values, not on
75e3b957
EZ
3299 the original. Simplify code that calls ExpandEnvironmentStrings
3300 and make buf1[] and buf2[] more visible for easier debugging.
e00b99c8 3301
689840b9
YM
33022006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3303
3304 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
3305
3306 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
3307
3308 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
3309
3310 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
3311 Forward keyUp events to toolbox_dispatcher.
3312
3313 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
3314
a940e2c6
JD
33152006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3316
3317 * config.in: Regenerated (HAVE_ALSA).
3318
3319 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
3320 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
3321 (snd_error_quiet, alsa_init): New functions.
3322 (vox_init): Return 0 if unable to open device.
3323 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
3324 a fallback.
3325 (struct sound_device): Add period_size.
3326 (wav_play, au_play): Use period_size if set.
3327
14a56a1b
JB
3328 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
3329 (ALL_CFLAGS): Add CFLAGS_SOUND.
a940e2c6 3330
8acb7dad
KH
33312006-05-18 Kenichi Handa <handa@m17n.org>
3332
3333 * callproc.c (Fcall_process): Reject encoding arguments by
3334 ascii-incompatible coding systems (e.g. utf-16).
3335
3336 * coding.c (Qascii_incompatible): New variable.
3337 (syms_of_coding): Setup Qascii_incompatible.
3338 (setup_coding_system): Be sure to initialize coding->common_flags.
3339 Check `ascii-incompatible' property of the coding system.
3340
3341 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
3342
f5ecbcee
KS
33432006-05-18 Kim F. Storm <storm@cua.dk>
3344
647b07d1
AS
3345 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
3346 geometry when backtracking in case last image doesn't fit on line.
f5ecbcee 3347
856bb2b0 33482006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
f5ecbcee 3349
647b07d1
AS
3350 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
3351 more than height of one frame default line.
f5ecbcee 3352
5748161e
KS
33532006-05-17 Richard Stallman <rms@gnu.org>
3354
3355 * xfaces.c (better_font_p): Any font beats no font.
3356 (best_matching_font): Simplify based on above change.
26837cd3 3357
6f5c4cc9 3358 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
5748161e 3359
b3abe3a5
KS
33602006-05-16 Kim F. Storm <storm@cua.dk>
3361
3362 * xterm.c (handle_one_xevent): Check that f is not NULL before
3363 calling x_kill_gs_process.
3364
46a2df8e
RS
33652006-05-14 Richard Stallman <rms@gnu.org>
3366
3367 * textprop.c (Fnext_single_char_property_change)
3368 (Fprevious_single_char_property_change): Don't allow returning
3369 value beyond LIMIT in any cases.
3370 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
b3abe3a5 3371
46a2df8e
RS
3372 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
3373
79fb0ab7
JD
33742006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3375
3376 * xterm.c (handle_one_xevent): Check that f is not NULL before
3377 calling _XEditResCheckMessages.
3378
0f479f06
KS
33792006-05-14 Kim F. Storm <storm@cua.dk>
3380
3381 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
3382
642c61f3
EZ
33832006-05-13 Eli Zaretskii <eliz@gnu.org>
3384
dac85f4b
EZ
3385 * frame.c (x_set_border_width): Fix error message to say "frame",
3386 not "window".
3387
642c61f3
EZ
3388 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
3389
4e8f005c
CY
33902006-05-12 Chong Yidong <cyd@stupidchicken.com>
3391
3392 * intervals.c (set_point_both): Fix mixup before before and after
3393 in variable names.
3394
3395 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
3396 while setting point temporarily.
3397
1ed7b9ae
RS
33982006-05-11 Richard Stallman <rms@gnu.org>
3399
3400 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
3401
f46f3e21
KS
34022006-05-11 Kim F. Storm <storm@cua.dk>
3403
3404 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
3405
17ad716a
KH
34062006-05-11 Kenichi Handa <handa@m17n.org>
3407
3408 * fileio.c (Finsert_file_contents): Fix for the case of IO error
3409 while handling replace operation.
3410
4da9c136
KH
34112006-05-10 Kenichi Handa <handa@m17n.org>
3412
3413 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
3414 chosen for the default face was different from the frame font,
3415 adjust the frame font.
3416
dec94049
YM
34172006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3418
3419 * image.c (Qduration) [MAC_OS]: Undo previous change.
3420 (syms_of_image) [MAC_OS]: Likewise.
3421 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
3422
3423 * macfns.c (x_to_mac_color): Fix shift amount change.
b8c6940e 3424 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
dec94049
YM
3425 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
3426
3427 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
3428 Vmac_services_selection. All uses changed.
3429 (mac_store_service_event): Rename from mac_store_services_event in
3430 extern and calls.
3431
3432 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
3433 changed.
3434 [MAC_OSX] (mac_store_service_event): Rename from
3435 mac_store_services_event. All callers changed.
3436 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
3437 FACE_ID and C. All callers changed.
3438 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
3439 mac_set_font_info_for_selection when focus frame is destroyed.
3440 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
3441
3442 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
3443 args in extern.
3444
d3ee989e
CY
34452006-05-09 Chong Yidong <cyd@stupidchicken.com>
3446
3447 * keymap.c (describe_map): Avoid generating duplicate entries if
3448 the shadowed binding has the same definition.
3449
5f2c7b2a
KH
34502006-05-09 Kenichi Handa <handa@m17n.org>
3451
3452 * keymap.c (push_key_description): Handle invalid character key.
3453
76a25e79
KH
34542006-05-08 Kenichi Handa <handa@m17n.org>
3455
3456 * callproc.c (Fcall_process): Use system_eol_type for encoding
3457 arguments if eol_type is not yet decided.
3458
3459 * coding.h (system_eol_type): Extern it.
3460
3461 * coding.c (setup_coding_system): For invalid coding-system, set
3462 coding->eol_type to CODING_EOL_UNDECIDED.
3463 (encode_coding): Cancel previous change.
3464 (shrink_encoding_region): Likewise.
3465 (code_convert_region1): Likewise.
3466 (code_convert_string1): Likewise.
3467 (code_convert_string_norecord): Likewise.
3468
3469 * fileio.c (choose_write_coding_system): Use system_eol_type for
3470 encoding if eol_type is not yet decided.
3471
3472 * process.c (setup_process_coding_systems): Use system_eol_type
3473 for encoding if eol_type is not yet decided.
3474 (read_process_output): Likewise.
3475 (send_process): Likewise.
3476
f4b46bb9
JB
34772006-05-07 Juanma Barranquero <lekktu@gmail.com>
3478
3479 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
3480
cc9945f2
YM
34812006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3482
3483 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
3484 (syms_of_mac): Likewise for defsubr.
3485
3486 * macfns.c (mac_set_font): New function.
3487 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
3488 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
3489 kWindowToolbarButtonAttribute when creating window.
3490 (Fmac_clear_font_name_table): Move from macfns.c.
3491 (syms_of_macfns): Likewise for defsubr.
3492 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
3493 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
3494
3495 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
3496 and build is done on Mac OS X 10.2 and later.
3497
3498 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
3499 (mac_store_services_event): Change return type in extern.
3500
dec94049
YM
3501 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
3502 FMFontFamily value.
cc9945f2
YM
3503 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
3504 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
3505 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
3506 (QWindow) [MAC_OSX]: Likewise.
3507 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
3508 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
3509 (syms_of_macterm) [USE_ATSUI]: Defvar it.
3510 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
3511 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
3512 (syms_of_macterm): Intern and staticpro them.
dec94049 3513 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
cc9945f2
YM
3514 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
3515 function.
3516 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
3517 [MAC_OSX] (mac_store_services_event): Likewise.
3518 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
3519 kEventWindowToolbarSwitchMode event.
3520 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
3521 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
3522 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
3523 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
3524 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
3525
3526 * macterm.h (mac_set_font_info_for_selection): Add extern.
3527
41f7a85e
YM
35282006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3529
3530 * image.c (Qduration) [MAC_OS]: New variable.
3531 (syms_of_image) [MAC_OS]: Intern and staticpro it.
3532 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
3533 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
3534 instead of cfstring_create_with_string.
3535
a1dfdf24
KS
35362006-05-06 Kim F. Storm <storm@cua.dk>
3537
3538 * .gdbinit (xframe): Print frame name.
3539 (xlist): New command to print a list (max 10 elements).
3540 (xpr): Print lisp object of any type.
3541 (pitx): Print it->pixel_width.
3542
37e21325
KH
35432006-05-05 Kenichi Handa <handa@m17n.org>
3544
3545 * xdisp.c (handle_composition_prop): Fix for the case of empty
3546 composition component.
3547
ef0154b5
YM
35482006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3549
3550 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
3551 from event->arg.
3552
3553 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
3554 MAC_APPLE_EVENT.
3555
3556 * macterm.h (mac_make_lispy_event_code): Remove extern.
3557 (mac_post_mouse_moved_event): Add extern.
3558 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
3559 `const AEDesc *' in externs.
3560 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
3561
3562 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
3563 `const AEDesc *'.
3564 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
3565 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
3566 Use xrealloc instead of repeated xmalloc/xfree.
3567 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
3568 function.
3569
3570 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
3571
3572 * macselect.c: Update copyright year.
3573 (mac_store_apple_event): Change return type to void in extern.
3574 (mac_handle_apple_event): Don't get return value from
3575 mac_store_apple_event.
3576 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
3577 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
3578 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
3579 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
3580 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
3581 implementation using create_apple_event_from_drag_ref.
3582 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
3583 (mac_do_receive_dragUPP): Move variables from macterm.c.
3584 (install_drag_handler, remove_drag_handler): New functions.
3585
3586 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
3587 path select also for proxy icon click.
3588 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
3589 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
3590 (xlfdpat_create): Remove unused label `error' and trailing sentences.
3591 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
3592 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
3593 macselect.c.
3594 (install_drag_handler, remove_drag_handler): Add extern.
3595 (mac_store_apple_event): Change return type to void. All uses changed.
3596 Create Lisp object from Apple event and store it into input event.
3597 (mac_make_lispy_event_code): Remove function.
3598 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
3599 (install_window_handler): Call install_drag_handler.
3600 (remove_window_handler): Call remove_drag_handler.
3601
8b0ba111
RS
36022006-05-03 Richard Stallman <rms@gnu.org>
3603
e4a9a1cf
RS
3604 * sound.c (Fplay_sound_internal): Dynamically allocate
3605 current_sound_device and current_sound.
3606 (sound_cleanup): Free them.
3607
8b0ba111
RS
3608 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
3609 when inside a keyboard macro.
3610
64ec8b2f
AS
36112006-05-02 Andreas Schwab <schwab@suse.de>
3612
3613 * xmenu.c (restore_menu_items): Return a value.
3614
fcdd4585
SM
36152006-05-01 Martin Rudalics <rudalics@gmx.at>
3616
3617 * syntax.c (Fforward_comment): Detect generic comment at beginning of
3618 buffer when moving backwards.
3619
c1eb34c2
YM
36202006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3621
3622 * dispnew.c (update_window): Don't set changed_p when mode/header
3623 line is updated.
3624
3625 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
fcdd4585
SM
3626 (get_glyph_face_and_encoding, get_char_face_and_encoding):
3627 Don't distinguish known faces from others.
c1eb34c2
YM
3628
3629 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
3630 through typeFileURL failed.
3631
3632 * macfns.c (mac_update_title_bar): New function.
3633 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
fcdd4585
SM
3634 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
3635 Call mac_prepare_for_quickdraw.
c1eb34c2
YM
3636
3637 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
3638 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
3639 (enum pcm_status): New enum.
3640 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
3641 (XCharStructRow): Remove. Now validity is represented by
3642 non-negativeness of sum of ascent and descent.
3643 (struct MacFontStruct): Change type of member `rows'.
3644 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
3645
fcdd4585
SM
3646 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
3647 Adjust endpoints of strictly horizontal/vertical lines.
c1eb34c2
YM
3648 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
3649 (pcm_init, pcm_get_status): New functions.
3650 (x_per_char_metric, XLoadQueryFont): Use them instead of
3651 XCharStructRow and related macros.
3652 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
3653 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
3654 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
3655 and window path pop-up menu on title bar.
3656 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
3657
3658 * macterm.h (mac_update_title_bar): Add extern.
3659 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
3660 (FRAME_FILE_NAME): New macro.
3661
3662 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
3663
9abc5f45
RS
36642006-04-30 Richard Stallman <rms@gnu.org>
3665
3666 * keymap.c (Fdefine_key): Improve error message
3667 when KEY begins with a non-prefix key.
3668
5fed8c15 36692006-04-30 Martin Rudalics <rudalics@gmx.at>
39c41ad4
SM
3670
3671 * syntax.c (Fforward_comment): Don't forget to break out of the loop
3672 when we skipped backward over a generic comment.
3673
4a113e3f
NR
36742006-04-27 Nick Roberts <nickrob@snap.net.nz>
3675
3676 * .gdbinit (pp1, pv1): Only print value as expression is now
3677 printed out by gud-print.
3678 (pv1): Correct doc string.
3679
e89e07cc
SM
36802006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
3681
3682 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
3683 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
3684 keymap.c:895: error: address of register variable `def' requested.
3685
7d6f8c68
JR
36862006-04-26 Jason Rumney <jasonr@gnu.org>
3687
8b03732e
JR
3688 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
3689
7d6f8c68
JR
3690 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
3691 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
3692 where we preempt mouse_button_timer.
3693
51d793da
MB
36942006-04-25 Miles Bader <miles@gnu.org>
3695
3696 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
3697
a9ec7317
SM
36982006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
3699
3700 * process.h: Include headers for pid_t.
3701
e9346494
KS
37022006-04-24 Kim F. Storm <storm@cua.dk>
3703
1ada896b
KS
3704 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
3705 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
6fcd305c 3706 (produce_stretch_glyph): Assume that face box height and width is
5e1a6e32 3707 already included in stretch glyph size so caller doesn't have to
6fcd305c 3708 consider the extra space otherwise added (fixes problem in ses.el).
1ada896b 3709
e9346494
KS
3710 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
3711 matrices to force recalculation of tool-bar height after font change.
3712
3713 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
14922abe
KS
3714 Clear it when done, so we don't accidentally draw a second copy of
3715 the tool-bar after resetting f->n_tool_bar_rows.
e9346494
KS
3716 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
3717 we recalculate f->n_tool_bar_rows.
3718
4f261b99
RF
37192006-04-23 Lars Hansen <larsh@soem.dk>
3720
59062dce
LH
3721 * editfns.c (find_field): Fix comment.
3722 (Ffield_beginning): Fix bug when POS is at field beginning.
3723
3705332d
EZ
37242006-04-22 Eli Zaretskii <eliz@gnu.org>
3725
3726 * puresize.h (BASE_PURESIZE): Increase to 1205000.
3727
cdd2341c
KS
37282006-04-21 Kim F. Storm <storm@cua.dk>
3729
95797ede
KS
3730 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
3731 window start is at BEGV.
3732
cdd2341c
KS
3733 * dispextern.h (struct image): New member `corners'.
3734 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
3735
3736 * image.c (four_corners_best): New arg CORNERS specifies what pixels
3737 to look at in case image has margin.
3738 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
3739 (image_background, image_background_transparent)
3740 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
3741 (gif_load): Set img->corners according to image's margin spec.
3742 Use img->corners values directly where applicable.
3743 Save image extension data in img->data.lisp_val.
3744 (gif_clear_image): New function to free img->data.lisp_val.
3745 (gif_type): Use it instead of generic x_clear_image.
3746 (Fimage_extension_data): New defun.
3747 (syms_of_image): Defsubr it.
3748
72ffd9d0
EZ
37492006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
3750
3751 * window.c (Fdisplay_buffer): Doc fix.
3752
0d95f6b2
EZ
37532006-04-21 Eli Zaretskii <eliz@gnu.org>
3754
3755 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
3756
a0c62ca2
YM
37572006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3758
3759 * image.c [MAC_OS] (xpm_load_image): Fill in background field
3760 while we have ximg handy.
3761
3762 * macmenu.c (restore_menu_items, save_menu_items): New functions
3763 from xmenu.c.
3764 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
3765 changes for xmenu.c.
3766
3767 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
3768 (add_mac_font_name): New function.
3769 (init_font_name_table): Use it. Adopt the first found font from
3770 those having the same family name.
3771
bf49275d
NR
37722006-04-21 Nick Roberts <nickrob@snap.net.nz>
3773
3774 * xdisp.c (note_mouse_highlight): Use build_string.
3775
570fab6c
LH
37762006-04-20 Lars Hansen <larsh@soem.dk>
3777
a9ec7317
SM
3778 * textprop.c (Fremove_list_of_text_properties):
3779 Ensure modify_region is called only when buffer is modified and that
570fab6c
LH
3780 signal_after_change is allways called in that case.
3781
3782 * print.c (PRINTFINISH): Call signal_after_change.
3783
7f32b80b
KS
37842006-04-20 Kim F. Storm <storm@cua.dk>
3785
bdb60d06
KS
3786 * xdisp.c (redisplay_window): Fix last change.
3787
5e1a6e32 3788 * xdisp.c (redisplay_window): If current window start is not at the
7f32b80b
KS
3789 beginning of a line, select a new window start if buffer is modified
3790 and window start is in the modified region, but the first change is
3791 before window start.
3792
290e4aae
RS
37932006-04-18 Richard Stallman <rms@gnu.org>
3794
3795 * xmenu.c (restore_menu_items, save_menu_items): New fns.
3796 (set_frame_menubar): Use save_menu_items. Save updated vector in
a9ec7317
SM
3797 the frame before unwinding it. Don't use unuse_menu_items.
3798 Don't use discard_menu_items.
290e4aae
RS
3799 (digest_single_submenu): Abort if an item is not in a pane.
3800 (init_menu_items): Put the error check at the top.
3801
3802 * keymap.c (describe_map): Make "shadowed" warning more verbose.
3803
3804 * window.c (adjust_window_trailing_edge): Correctly distinguish
3805 series vs parallel cases, even when window has no parent.
3806
3807 * abbrev.c (record_symbol): New function.
3808 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
3809
b96fe6ea
YM
38102006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3811
3812 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
3813 value of xmalloc.
3814
3815 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
3816 (create_apple_event_from_event_ref, xrm_get_preference_database)
3817 (cfstring_create_normalized): Don't check return value of xmalloc.
3818
3819 * macselect.c (get_scrap_target_type_list, defer_apple_events)
3820 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
3821 return value of xmalloc/xrealloc.
3822
3823 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
3824 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
a0c62ca2
YM
3825 (XLoadQueryFont, mac_store_apple_event): Don't check return value
3826 of xmalloc.
b96fe6ea 3827
6c7809b3
NR
38282006-04-17 Kim F. Storm <storm@cua.dk>
3829
3830 * window.c (coordinates_in_window): On the vertical border,
3831 calculate the row number measured from the top of the window, not
3832 the top of the frame.
39d78835
KS
3833 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
3834 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
6c7809b3 3835
4bba3064
EZ
38362006-04-16 Eli Zaretskii <eliz@gnu.org>
3837
3838 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
3839
8d95636b
RF
38402006-04-16 Romain Francoise <romain@orebokech.com>
3841
3842 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
3843
6a258a33
AS
38442006-04-16 Andreas Schwab <schwab@suse.de>
3845
3846 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
3847
f70a96b0
RF
38482006-04-15 Romain Francoise <romain@orebokech.com>
3849
3850 * puresize.h (BASE_PURESIZE): Increment to 1210000.
3851
28b257dc 38522006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
cda4c00b
EZ
3853
3854 * print.c (Fprin1_to_string): Mention in the `doc' that the
3855 behavior is modified by `print-level' and `print-length'.
3856
6e9715ae
KH
38572006-04-13 Kenichi Handa <handa@m17n.org>
3858
3859 * coding.c (setup_coding_system): If eol-type is not yet decided
3860 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
3861 If coding_system is nil, return 0.
3862 (code_convert_region1): Even if coding_system is nil, don't skip
3863 conversion if system_eol_type is not LF.
3864 (code_convert_string1): Likewise.
3865 (code_convert_string_norecord): Likewise.
3866
2b89a53f
KH
38672006-04-13 Kenichi Handa <handa@m17n.org>
3868
3869 * coding.c (setup_coding_system): Fix previous change.
a9ec7317 3870 (encode_coding): If eol_type is not yet decided, use system_eol_type.
73ec0f89
KH
3871 (shrink_encoding_region): If eol_type is not yet decided and
3872 system_eol_type is not LF, don't shrink.
2b89a53f 3873
5c24517a
NR
38742006-04-13 Nick Roberts <nickrob@snap.net.nz>
3875
3876 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
3877 line.
3878
9d1a8e5d
RS
38792006-04-12 Richard Stallman <rms@gnu.org>
3880
a53fe666
RS
3881 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
3882
9d1a8e5d
RS
3883 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
3884 (Fprocess_send_eof): Abort if fail to open null device.
3885
190998d8
YM
38862006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3887
3888 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
3889
3890 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
3891 assignment used as truth value. Add explicit braces to avoid
3892 ambiguous `else'.
3893 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
3894
3895 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
3896 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
3897 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
3898 Put externs in #ifdef HAVE_X_WINDOWS.
3899 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
3900 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
3901 (init_mac_osx_environment) [MAC_OSX]: Add extern.
3902
3903 * mac.c (init_process): Remove undef.
3904 (select) [MAC_OSX]: Undefine before including sysselect.h.
3905 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
3906 Remove functions and prototypes.
3907 (parse_value): Add parentheses around + inside shift.
3908 (path_from_vol_dir_name): Make static.
3909 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
3910 [!MAC_OSX] (get_path_to_system_folder): Likewise.
3911 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
3912 variable `cCode'.
3913 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
3914 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
3915
3916 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
3917 (x_set_mouse_color): Remove unused variable `dpy'.
3918 (Fx_create_frame): Remove unused variable `x_frame_count'.
3919 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
3920 (x_sync): Move from macterm.c.
3921 (Fx_file_dialog): Remove unused variable `default_filter_index'.
3922
3923 * macmenu.c (min_menu_id): Make element type explicit.
3924
3925 * macselect.c (get_flavor_type_from_symbol): Remove unused
3926 variable `val'.
3927 (get_scrap_private_timestamp, x_get_foreign_selection)
3928 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
3929 (Fmac_process_deferred_apple_events): Remove unused variables
3930 `keyword', `reply', `apple_event', `count', and `err'.
3931
3932 * macterm.c: Don't include gnu.h.
3933 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
3934 (x_sync): Move to macfns.c.
3935 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
3936 variable `mask_bits'.
3937 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
3938 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
3939 (x_mac_to_emacs_modifiers): Remove function.
3940 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
3941 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
3942 Add explicit braces to avoid ambiguous `else'.
3943 (x_make_frame_visible): Remove unused variables `type',
3944 `original_top', and `original_left'.
3945 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
3946 (x_load_font): Remove unused variables `full_name', and `value'.
3947 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
3948 Remove functions.
3949 (do_zoom_window): Reorganize variables with respect to conditionals.
3950 (init_command_handler): Remove unused variable `err'.
3951 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
3952
3953 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
3954 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
3955 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
3956 (do_menu_choice, have_menus_p, x_real_positions)
3957 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
3958 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
3959 (free_frame_menubar): Add externs.
3960
3961 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
3962 (malloc, realloc, free): Add undefs.
3963 (read_load_commands): Remove unused variable `n' and `j'.
3964 (copy_data_segment): Remove unused variable `r'.
3965
3966 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
3967 within ||. Add explicit braces to avoid ambiguous `else'.
3968 (dump_glyph_row): Remove label for `inverse_p' from legend.
3969
a9ec7317
SM
3970 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
3971 Add explicit braces to avoid ambiguous `else'.
190998d8 3972
28b257dc 39732006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
00d70d57
JD
3974
3975 * dispnew.c (init_display): Don't init X display if the user asked
3976 for a non-X display.
7e37cb69 3977
957b3c5f
KH
39782006-04-12 Kenichi Handa <handa@m17n.org>
3979
3980 * coding.c (setup_coding_system): Use system_eol_type for default
3981 coding->eol_type.
3982
db926d80
DN
39832006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3984
3985 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
3986
3987 * data.c (wrong_type_argument): Try to avoid compiler warnings due
3988 to the fact the function is now marked as NO_RETURN.
3989
978781a5
EZ
39902006-04-10 Eli Zaretskii <eliz@gnu.org>
3991
3992 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
3993
8fd0f424
RF
39942006-04-10 Romain Francoise <romain@orebokech.com>
3995
3996 * xrdb.c (gethomedir): Use xstrdup.
3997
f8f10777
AS
39982006-04-10 Andreas Schwab <schwab@suse.de>
3999
4000 * xrdb.c (gethomedir): Make sure to always return a pointer that
4001 can be passed to free.
4002
2a8da555
RS
40032006-04-09 Richard Stallman <rms@gnu.org>
4004
4005 * lisp.h (Fkill_emacs): Undo previous change.
4006
40072006-04-08 Richard Stallman <rms@gnu.org>
4008
4009 * search.c (boyer_moore): Test ch >= 0400, not >.
4010
404be028
DN
40112006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
4012
4013 * puresize.h (pure_write_error): Mark as NO_RETURN.
4014
4ca412ec 4015 * lisp.h (args_out_of_range, args_out_of_range_3)
404be028 4016
f93bd8e4
EZ
40172006-04-08 Eli Zaretskii <eliz@gnu.org>
4018
4019 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
4020 if a menu is active on this frame.
4021
31a4f621
DN
40222006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
4023
4024 * lisp.h (report_file_error): Mark as NO_RETURN.
4025
7e773529
EZ
40262006-04-08 Eli Zaretskii <eliz@gnu.org>
4027
4f27350a
EZ
4028 * alloc.c [STDC_HEADERS]: Include stddef.h.
4029
7e773529
EZ
4030 * lisp.h (PSEUDOVECSIZE): Fix last change.
4031
6bfd98e7
SM
40322006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
4033
4034 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
4035 `raw_status_high', and `raw_status_low' with plain integers, and move
4036 them to the end of the structure.
4037
4038 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
4039 pseudovector's size field so only the Lisp_Object fields get GC'd.
4040
4041 * process.c (update_status, make_process, Fdelete_process)
4042 (Fprocess_status, list_processes_1, start_process_unwind)
4043 (create_process, Fmake_network_process, server_accept_connection)
4044 (wait_reading_process_output, send_process, Fprocess_running_child_p)
4045 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
4046 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
4047 `pid' and `raw_status'.
4048 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
4049 representing PIDs that are larger than most-positive-fixnum.
4050
4051 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
4052
4053 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
4054
1d79e521
EZ
40552006-04-08 Eli Zaretskii <eliz@gnu.org>
4056
4057 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
4058
d65b4235
PE
40592006-04-03 Paul Eggert <eggert@cs.ucla.edu>
4060
4061 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
4062 ../lib-src/b2m.c and ../lib-src/editfns.c.
4063 (Fcurrent_time_string): Use it.
4064 Document that the year might not consume 4 columns if it's outside
4065 the range 1000-9999.
4066 Check for asctime failure.
4067 Don't assume that the output string length is always exactly 24.
4068
fc9f8d15
YM
40692006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4070
4071 * macterm.c (XTread_socket): Initialize variable `f' before its use.
4072
022af124
KH
40732006-04-03 Kenichi Handa <handa@m17n.org>
4074
4075 * image.c: Include "charset.h" and "coding.h".
4076 (x_find_image_file): Return an encoded file name.
4077
61be4a8a
EZ
40782006-04-01 Eli Zaretskii <eliz@gnu.org>
4079
4080 * configure: Regenerated.
4081
a869edd4
KH
40822006-03-31 Kenichi Handa <handa@m17n.org>
4083
4084 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
4085
29444a2f
DN
40862006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4087
4088 * xdisp.c (syms_of_xdisp): Fix variable name.
4089
3c5f9492
KH
40902006-03-30 Kenichi Handa <handa@m17n.org>
4091
4092 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
4093
267ee78f
JB
40942006-03-29 Juanma Barranquero <lekktu@gmail.com>
4095
4096 * keyboard.c (process_tool_bar_item): Reorder dummy args.
4097
293bd733
SM
40982006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
4099
4100 * keyboard.c (tool_bar_items): Use map_keymap.
4101 (process_tool_bar_item): Add dummy args to fit the required interface.
4102
4fccedb5
EZ
41032006-03-25 Eli Zaretskii <eliz@gnu.org>
4104
4105 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
4106 to zero before calling debug_print or safe_debug_print.
4107
4108 * print.c (print_output_debug_flag): New global variable.
4109 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
4110 OutputDebugString if print_output_debug_flag is zero.
4111
aac18aa4
PE
41122006-03-24 Paul Eggert <eggert@cs.ucla.edu>
4113
71c3f28f 4114 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
aac18aa4 4115 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
71c3f28f
EZ
4116 (Fdecode_time): Cast tm_year to EMACS_INT.
4117 (Fcurrent_time_string): Report an invalid time specification if
293bd733 4118 the argument is invalid. Also, check for out-of-range time stamps.
aac18aa4 4119
0ef4f79b
KS
41202006-03-24 Kim F. Storm <storm@cua.dk>
4121
95d8aa28
KS
4122 * xterm.c (handle_one_xevent):
4123 * w32term.c (w32_read_socket):
95d8aa28
KS
4124 * macterm.c (XTread_socket): Don't let key-press clear mouse face
4125 on in toolbar window if mouse-highlight is an integer.
4126
0ef4f79b
KS
4127 * fns.c (sxhash_list): Include last non-nil CDR in hash.
4128
e2e206ae
YM
41292006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4130
4131 * macmenu.c (enum mac_menu_kind): New enum.
4132 (min_menu_id): New variable.
4133 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
4134 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
4135 min_menu_id and enumerators in enum mac_menu_kind.
4136 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
4137 All uses changed. Add range check for menu ID.
4138 (fill_menubar): Add range check for menu ID.
4139 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
4140 GetEventParameter.
4141 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
4142 for each menu kind.
4143
5a32a2f2
KS
41442006-03-22 Kim F. Storm <storm@cua.dk>
4145
ea049c5e
KS
4146 * xdisp.c: Undo 2006-03-21 change.
4147
4148 * term.c: Define aliases for append_glyph and produce_stretch_glyph
4149 when `static' is defined to avoid name clash with those in xdisp.c.
4150
647b07d1
AS
4151 * process.c (Faccept_process_output): Fix to comply with lisp
4152 reference. Change arg "timeout" to "seconds" and allow both
4153 integer and float value. Change arg "timeout-msec" to "millisec"
4154 and interpret" as milliseconds rather than microseconds. Fix doc
4155 string accordingly.
5a32a2f2 4156
d63cd766
KR
41572006-03-21 Ken Raeburn <raeburn@raeburn.org>
4158
293bd733
SM
4159 * xdisp.c (store_next_glyph): Rename from append_glyph.
4160 (generate_stretch_glyph): Rename from produce_stretch_glyph.
d63cd766
KR
4161 All callers changed accordingly.
4162
11e887e2
JD
41632006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4164
4165 * xterm.c: x_session_initialized new variable.
4166 (x_term_init): Use x_session_initialized to check if
4167 x_session_initialize should be called.
4168 (x_initialize): Initialize x_session_initialized.
4169
52bd2f43
KS
41702006-03-21 Kim F. Storm <storm@cua.dk>
4171
4172 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
4173 bitmap here, but ...
4174 (update_window_fringes): ... here, so we can test if it has changed.
4175
c1fc674b
AS
41762006-03-20 Andreas Schwab <schwab@suse.de>
4177
4178 * dispnew.c (init_display): Check DISPLAY here.
4179
4180 * emacs.c (main): Don't check here.
4181
4182 * xterm.c (x_display_ok): Don't use DISPLAY env var.
4183
7d619454
SM
41842006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4185
4186 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
4187 mixup (YAILOM).
4188
e2916251
EZ
41892006-03-20 Eli Zaretskii <eliz@gnu.org>
4190
4191 * emacs.c (main): Fix last change.
4192
95c1c901
KH
41932006-03-20 Kenichi Handa <handa@m17n.org>
4194
7d619454 4195 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
95c1c901
KH
4196
4197 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
4198
4199 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
4200
4201 * xterm.c (x_term_init): Remove unnecessary GCPRO.
4202
45c1c789
KS
42032006-03-19 Kim F. Storm <storm@cua.dk>
4204
5e1a6e32 4205 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
45c1c789
KS
4206 so it doesn't associate overlay string with following glyph by default.
4207 Allow integer property value to specify explicit number of buffer
4208 positions associate with overlay string.
4209
11aaf447
CY
42102006-03-18 Chong Yidong <cyd@stupidchicken.com>
4211
4212 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
4213
e4d181dc
EZ
42142006-03-18 Nozomu Ando <nand@mac.com>
4215
4216 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
4217 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
4218 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
4219 Don't redefine.
4220
4221 * m/mips.h: Don't use unexmips on NetBSD.
4222 (LIBS_MACHINE): Move definition lower, so it doesn't use
4223 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
4224 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
4225
4226 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
4227 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
4228 option is broken (e.g., MIPS/NetBSD).
4229
50f9edc2
EZ
42302006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
4231
4232 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
7b833ed1 4233 Remove the HAVE_X_WINDOWS conditional.
50f9edc2 4234
7e37c7c0
EZ
42352006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
4236
4237 * emacs.c (main): If user asks for a display that is unavailable,
4238 simulate -nw.
4239
4240 * xterm.c (x_display_ok): New function.
4241
4242 * xterm.h: Add prototype for x_display_ok.
4243
c85eab3a
EZ
42442006-03-18 Eli Zaretskii <eliz@gnu.org>
4245
4246 * w32fns.c (Fw32_select_font): Doc fix.
4247
e09ce637
YM
42482006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4249
4250 * image.c [MAC_OS] (XPutPixel, XGetPixel)
4251 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
4252 version when depth is 32.
7d619454
SM
4253 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
4254 New function.
e09ce637
YM
4255 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
4256 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
4257
4258 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
4259 Create GWorld in ARGB pixel format.
7d619454
SM
4260 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
4261 Remove functions.
e09ce637
YM
4262 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
4263 instead of mac_copy_area/mac_copy_area_with_mask.
4264
b0896280
KS
42652006-03-15 Kim F. Storm <storm@cua.dk>
4266
4267 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
4268 empty row. Fixes memory corruption revealed by 2006-03-02 change.
4269 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
4270 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
4271 width is exactly the same as the window width. Don't count a final
4272 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
4273
713cb18d
JB
42742006-03-15 Juanma Barranquero <lekktu@gmail.com>
4275
364d0cf8 4276 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
713cb18d
JB
4277 conditional on HAVE_NTGUI, not WINDOWS_NT.
4278
ad21830e
YM
42792006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4280
4281 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
4282
4283 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
4284
4285 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
4286 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
4287 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
4288 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
4289 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
4290 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
4291 instead of mac_draw_bitmap.
4292 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
4293 define_fringe_bitmap and destroy_fringe_bitmap.
4294
8a34117e
CY
42952006-03-14 Chong Yidong <cyd@stupidchicken.com>
4296
4297 * xterm.c (x_uncatch_errors): Block input for entire function.
4298
ab68b375
JR
42992006-03-12 Jason Rumney <jasonr@gnu.org>
4300
92cc46af 4301 * w32fns.c (Fx_create_frame): Remove call to
364d0cf8 4302 Qface_set_after_frame_default (from xfns.c 2003-05-26).
92cc46af 4303
335be36b
JR
4304 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
4305 finished with the menu.
4306
ab68b375
JR
4307 * w32term.c: Sync 2005-10-24 xterm.c changes.
4308 (last_mouse_glyph_frame): New var.
4309 (note_mouse_movement): Say mouse moved if current frame differs
4310 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4311 (w32_mouse_position): Set last_mouse_glyph_frame.
875e613d 4312 Remove OLD_REDISPLAY_CODE block.
ab68b375 4313
204b78de
YM
43142006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4315
4316 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
4317
4318 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
4319 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
4320
4321 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4322
4323 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
4324
4325 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
4326 (x_draw_composite_glyph_string_foreground)
4327 (x_draw_image_foreground): Undo previous changes.
4328 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
4329 argument of mac_draw_rectangle.
4330 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
4331 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
4332 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
4333 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
4334 [USE_CG_DRAWING]: New functions.
4335 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
4336 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
4337 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
4338 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
4339 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
4340 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
4341 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4342
a9d54793
KL
43432006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4344
4345 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
4346
b452fd7a
JR
43472006-03-11 Jason Rumney <jasonr@gnu.org>
4348
4349 * w32fns.c (signal_user_input): New function.
4350 (post_character_message): Use it for keyboard input.
4351 (w32_msg_pump): Use it for mouse input.
4352
f372bd5b
LT
43532006-03-11 Luc Teirlinck <teirllm@auburn.edu>
4354
4355 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
4356 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
4357
2c1bd367
EZ
43582006-03-11 Eli Zaretskii <eliz@gnu.org>
4359
4360 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
4361 if a menu is already active (the menubar_active flag is on).
4362
f161146b
EZ
43632006-03-11 David Ponce <david@dponce.com>
4364
7d619454 4365 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
f161146b 4366
9257b627
EZ
43672006-03-11 Eli Zaretskii <eliz@gnu.org>
4368
db3c0e9c
EZ
4369 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
4370 the list of unused display error handling functions.
4371
8887e8ec
EZ
4372 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
4373 HAVE_X_WINDOWS.
4374 (internal_condition_case, internal_condition_case_1)
4375 (internal_condition_case_2): Call x_catching_errors only if
4376 HAVE_X_WINDOWS.
4377
9257b627
EZ
4378 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
4379 Don't include sys/resource.h unless defined.
4380
395d3972
RS
43812006-03-11 Richard Stallman <rms@gnu.org>
4382
5a893bff
RS
4383 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
4384
395d3972 4385 * vm-limit.c (get_lim_data, lim_data, data_space_start):
7d619454 4386 Move from mem-limits.h.
395d3972
RS
4387 (enum warnlevel): New data type.
4388 (check_memory_limits): Rewrite the logic about warnings.
4389 Use standard `struct rlimit'. Check return values for nonsense.
4390 (memory_warnings): Always clear lim_data.
4391
4392 * mem-limits.h (get_lim_data, lim_data, data_space_start):
7d619454 4393 Move to vm-limit.c.
395d3972
RS
4394
4395 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
4396
4397 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
f372bd5b 4398 (internal_condition_case_1, internal_condition_case_2):
395d3972
RS
4399 Abort if within unclosed x_catch_errors.
4400
635a3496
RF
44012006-03-11 Romain Francoise <romain@orebokech.com>
4402
4403 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
4404
306cea3a
EZ
44052006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4406
4407 * lisp.h: Remove duplicate prototypes. Make the prototype of
4408 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
4409
97b5ae78
EZ
44102006-03-11 Eli Zaretskii <eliz@gnu.org>
4411
7325e714
EZ
4412 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
4413 argument of XDrawRectangle.
4414
97b5ae78
EZ
4415 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
4416
4417 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
4418 (x_draw_glyph_string_foreground)
4419 (x_draw_composite_glyph_string_foreground)
4420 (x_draw_image_foreground): Don't subtract 1 from width and height
4421 arguments to mac_draw_rectangle.
4422 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
4423
68f632a8
KS
44242006-03-10 Kim F. Storm <storm@cua.dk>
4425
4426 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
4427
349a4500
SM
44282006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
4429
4430 * alloc.c (USE_POSIX_MEMALIGN): New macro.
4431 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
4432
53a5eba9
KH
44332006-03-09 Kenichi Handa <handa@m17n.org>
4434
4435 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
4436 ASCII component of a composition.
4437
629f023d
LT
44382006-03-08 Luc Teirlinck <teirllm@auburn.edu>
4439
4440 * window.c: Declare preserve_y as a static global variable.
4441 (window_scroll_pixel_based): No longer declare preserve_y;
4442 it is global now.
f945af42 4443 (syms_of_window): Set preserve_y to -1.
629f023d 4444
4cdffedf
YM
44452006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4446
4447 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
4448 depth is 32.
204b78de 4449 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
4cdffedf
YM
4450 depth is 32.
4451
45b5f35d
CY
44522006-03-06 Chong Yidong <cyd@stupidchicken.com>
4453
4454 * xdisp.c (handle_invisible_prop): Don't update it->position with
4455 a buffer position if we're in a display string.
4456
48b60fa1
YM
44572006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4458
4459 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
4460 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
4461
4462 * macfns.c (x_default_scroll_bar_color_parameter)
349a4500
SM
4463 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
4464 Remove unnecessary prototypes.
4465 (x_set_scroll_bar_default_width):
4466 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
48b60fa1
YM
4467 (mac_set_scroll_bar_width): New function.
4468 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
4469
4470 * macterm.c (get_control_part_bounds): Fix type of return value.
4471 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4472 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
4473 scroll bar if it is not tall enough to display scroll bar thumb.
4474 [USE_CARBON_EVENTS] (mac_convert_event_ref)
4475 (mac_handle_command_event, mac_handle_window_event)
4476 (mac_handle_mouse_event): Check error code of GetEventParameter.
4477 (convert_fn_keycode) [MAC_OSX]: Likewise.
f945af42 4478
6f10509c
AS
44792006-03-05 Andreas Schwab <schwab@suse.de>
4480
4481 * xselect.c (x_catch_errors_unwind): Fix missing return value.
4482
f79bc642
KS
44832006-03-02 Kim F. Storm <storm@cua.dk>
4484
4485 * frame.h (struct frame): New member n_tool_bar_rows.
4486
4487 * xdisp.c: Minimize the unpleasent visual impact of the requirement
4488 that non-toolkit tool-bars must occupy an integral number of screen
875e613d 4489 lines, by distributing the rows evenly over the tool-bar screen area.
f79bc642
KS
4490 (Vtool_bar_border): New variable.
4491 (syms_of_xdisp): DEFVAR_LISP it.
349a4500
SM
4492 (display_tool_bar_line): Add HEIGHT arg for desired row height.
4493 Make tool-bar row the desired height. Use default face for border
4494 below tool-bar.
f79bc642
KS
4495 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
4496 actual tool-bar rows.
4497 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
4498 Adjust the height of the tool-bar rows to fill tool-bar screen area.
4499 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
4500 is resized.
4501
0bbe0c9c
LT
45022006-03-01 Luc Teirlinck <teirllm@auburn.edu>
4503
4504 * search.c (Fregexp_quote): Do not precede a literal `]' with two
4505 backslashes to try to make clear that it has a literal meaning; it
4506 does not do that. (It could close a character alternative
4507 containing a backslash.)
4508
c525d842
CY
45092006-02-28 Chong Yidong <cyd@stupidchicken.com>
4510
4511 * xselect.c (x_catch_errors_unwind): New function.
4512 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
4513 (Fx_get_atom_name): Call x_uncatch_errors earlier.
4514
4515 * window.c (Qscroll_up, Qscroll_down): New syms.
4516 (window_scroll_pixel_based): Make preserve_y static to avoid
4517 getting point stuck when scrolling 1 line.
4518
4545fa20
CY
45192006-02-26 Chong Yidong <cyd@stupidchicken.com>
4520
349a4500 4521 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
4545fa20 4522
364d0cf8
JB
4523 * xterm.c (x_load_font, x_term_init, XTmouse_position)
4524 (handle_one_xevent, x_connection_closed, x_list_fonts):
4525 No arg for x_uncatch_errors.
4545fa20
CY
4526
4527 * xselect.c (x_own_selection, x_decline_selection_request)
4528 (x_reply_selection_request, x_get_foreign_selection)
4529 (Fx_get_atom_name, Fx_send_client_event): Likewise.
4530
4531 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
4532 Likewise.
4533
a5e25a4c
LT
45342006-02-26 Luc Teirlinck <teirllm@auburn.edu>
4535
440cbd9e
LT
4536 * lread.c: Declare Vload_file_rep_suffixes instead of
4537 deleted variable default_suffixes.
4538 (Fget_load_suffixes): New function.
4539 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
4540 No longer use deleted variable default_suffixes. Update docstring.
4541 (syms_of_lread): defsubr Sget_load_suffixes.
4542 Expand `load-suffixes' docstring.
4543 Delete default_suffixes and DEFVAR_LISP the new variable
4544 `load-file-rep-suffixes'.
4545
4546 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
4547 of Vload_suffixes.
4548
4549 * lisp.h: EXFUN Fget_load_suffixes.
4550 Extern Vload_file_rep_suffixes.
4551
a5e25a4c
LT
4552 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
4553 with lisp.h.
4554
a7af5886
SM
45552006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
4556
4557 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
4558 qualifier which was trying to avoid the bug that was fixed by
4559 yesterday's changes to xterm.c.
4560
9ba8e10d
CY
45612006-02-25 Chong Yidong <cyd@stupidchicken.com>
4562
4563 * xterm.h (x_catch_errors) Return value changed to void.
4545fa20 4564 (x_uncatch_errors): Delete unused count argument.
a7af5886 4565
9ba8e10d
CY
4566 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
4567 it can be called in a signal handler.
4568 (x_catch_errors_unwind): Function deleted.
4569 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
4570 (x_check_errors): Call x_uncatch_errors before signalling error.
4571
4572 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
4573 (x_connection_closed, x_list_fonts): Use new versions of
4574 x_catch_errors and x_uncatch_errors.
4575
4576 * xselect.c (x_own_selection, x_decline_selection_request)
4577 (x_reply_selection_request, x_get_foreign_selection)
4578 (Fx_get_atom_name, Fx_send_client_event): Likewise.
4579
4580 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
4581 Likewise.
4582
4583 * eval.c (record_unwind_protect): Add an assertion.
4584
f523e0c3
SM
45852006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4586
4587 * process.c (Fmake_network_process): Init the process's mark.
4588
a7a7e1d7
KS
45892006-02-25 Kim F. Storm <storm@cua.dk>
4590
4591 * buffer.c (modify_overlay): Force redisplay if we modify an
4592 overlay at the end of the buffer.
4593
a821c035
JD
45942006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4595
4596 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
4597 nil the image file has been removed, in that case use the (cached)
4598 pixmap.
4599
77343e1d
KH
46002006-02-24 Kenichi Handa <handa@m17n.org>
4601
4602 * fileio.c (Finsert_file_contents): When a text is replaced
4603 partially, be sure to set point before the inserted characters.
4604
92fb5516
KH
46052006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
4606
4607 * xfns.c (Fx_file_dialog): Return a decoded file name.
4608
78897758
YM
46092006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4610
4611 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
4612 glyph whose face is extended to the text area end.
4613
5b574e69
YM
4614 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
4615 values if control is not visible or values are not changed.
4616
acc6289a
SM
46172006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
4618
4619 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
4620 The default `window' should not be "on a different frame".
4621
c4336e88
KS
46222006-02-22 Kim F. Storm <storm@cua.dk>
4623
4624 * indent.c (Fvertical_motion): Only try to move back if we can.
4625
b6e3efe0
YM
46262006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4627
4628 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
4629 n_clip_rects.
4630
4631 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
4632 xmenu.c.
4633
4634 * macterm.c (GC_CLIP_REGION): Remove macro.
4635 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
4636 All uses changed. Don't do clipping if n_clip_rects is zero.
acc6289a
SM
4637 (mac_set_clip_rectangles): Use xassert instead of abort.
4638 Set n_clip_rects. Don't make clip_region empty when number of
b6e3efe0
YM
4639 clipping rectangles is zero.
4640 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
4641 calling mac_set_clip_rectangles.
4642 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
4643 avoid multiple redraws.
4644
6f62a45e
KS
46452006-02-22 Kim F. Storm <storm@cua.dk>
4646
4647 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
4648
dd9959da
KS
46492006-02-21 Kim F. Storm <storm@cua.dk>
4650
4651 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
4652
364d0cf8 46532006-02-21 Zhang Wei <brep@newsmth.org>
a8f4bdc6
JD
4654
4655 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
4656 returning it.
4657
dd9959da 46582006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9866a438
JB
4659
4660 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
4661 (standard_bitmaps): Use it.
4662
9fb446e3
YM
46632006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4664
4665 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
4666 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
4667 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
4668 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
acc6289a
SM
4669 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
4670 Draw background if BG_WIDTH is not zero. Use float constants as
9fb446e3
YM
4671 divisors instead of double. Use alloca instead of xmalloc/xfree.
4672 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4673 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
4674 mac_draw_image_string* functions.
4675 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
4676 some fonts when srcCopy text transfer mode might be used.
4677 (mac_begin_clip, mac_end_clip): Check if region is empty.
4678 (mac_set_clip_rectangles): When resetting clip region, make it
4679 empty instead of disposing of it.
4680
49af2995
KS
46812006-02-20 Kim F. Storm <storm@cua.dk>
4682
4683 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
4684
4685 * buffer.h (struct buffer): New members fringe_indicator_alist and
4686 fringe_cursor_alist.
4687
4688 * buffer.c (init_buffer_once): Set dummy default values for
4689 fringe-indicator-alist and fringe-cursor-alist. The proper
4690 default values are set by pre-loading fringe.el.
4691 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
4692 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
9866a438 4693 corresponding default- variables.
49af2995
KS
4694
4695 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
4696 to use `int'.
4697 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
4698 Define explicitly.
4699 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
4700 (Qhollow_small): New variables.
4701 (syms_of_fringe): Intern and staticpro them.
4702 (question_mark_bits): Rename from unknown_bits.
4703 (left_curly_arrow_bits): Rename from continuation_bits.
4704 (right_curly_arrow_bits): Rename from continued_bits.
4705 (left_triangle_bits): Rename from ov_bits.
acc6289a 4706 (right_triangle_bits): Add.
49af2995
KS
4707 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
4708 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
acc6289a 4709 (filled_square_bits): Add.
49af2995 4710 (vertical_bar_bits): Rename from bar_cursor_bits.
9866a438 4711 (horizontal_bar_bits): Rename from hbar_cursor_bits.
49af2995
KS
4712 (empty_line_bits): Rename from zv_bits.
4713 (standard_bitmaps): Update to use new names.
4714 (draw_fringe_bitmap_1): Make static.
4715 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
4716 to map from logical cursors and indicators to physical bitmaps.
875e613d 4717 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
49af2995
KS
4718 bitmaps using symbol names instead of bitmap numbers.
4719 (update_window_fringes): Use logical indicator symbol names
4720 instead of bitmap numbers for logical. Add bitmap cache.
4721 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
4722
a77f947b
CY
47232006-02-20 Chong Yidong <cyd@stupidchicken.com>
4724
a073faa6
CY
4725 * regex.c: Revert 2006-02-19 change.
4726 (xmalloc, xrealloc): Define these when not linked to Emacs.
4727 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
a77f947b 4728
2f90d2bc
LT
47292006-02-19 Luc Teirlinck <teirllm@auburn.edu>
4730
4731 * regex.c (extend_range_table_work_area): Fix typo.
4732
5498b6af
RS
47332006-02-19 Richard M. Stallman <rms@gnu.org>
4734
7b1d7d66
RS
4735 * xterm.c (x_catch_errors): Use xmalloc.
4736
4737 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
4738 (regex_compile): Likewise.
4739 (regcomp): Use xmalloc.
4740
4741 * gtkutil.c (malloc_widget_value): Use xmalloc.
4742
5498b6af
RS
4743 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
4744 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
4745
4746 * xmenu.c (digest_single_submenu): When pane_string is empty,
4747 do initialize save_wv.
4748
4f2f3214
YM
47492006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4750
4751 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
4752 w->update_mode_line if arg F is not the selected frame.
4753
4754 * macmenu.c (popup_activated_flag, submenu_id)
4755 (next_menubar_widget_id): Remove variables.
4756 (initialize_frame_menubar): Remove function.
4757 (pop_down_menu, mac_menu_show): Simplify save value.
4758 (dispose_menus): New function.
4759 (pop_down_menu, fill_menubar): Use it.
4760 (fill_submenu): Remove function. All uses changed to fill_menu.
4761 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
4762 POS. Don't call SetMenuItemHierarchicalID here.
4763 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
4764 used next. Call SetMenuItemHierarchicalID here.
4765 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
4766 objects if needed. Reuse existing menu bar titles if possible.
4767 (set_frame_menubar): Don't clean up menu objects here.
4768
da7520de
CY
47692006-02-18 Chong Yidong <cyd@stupidchicken.com>
4770
4771 * window.c (window_min_size_1): Ensure room for the scroll bar and
4772 fringes.
4773
a9c18b84
RF
47742006-02-17 Romain Francoise <romain@orebokech.com>
4775
4776 * puresize.h (BASE_PURESIZE): Increment to 1200000.
4777
537407f0
SM
47782006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
4779
4780 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
4781 addition of the BLOCK_INPUTs.
4782
5bf3610f
JB
47832006-02-17 Juanma Barranquero <lekktu@gmail.com>
4784
4785 * window.c (Fset_window_scroll_bars): Doc fix.
4786
ed0218e2
KH
47872006-02-17 Kenichi Handa <handa@m17n.org>
4788
4789 * xdisp.c (display_mode_element): Call display_string with correct
4790 PREC arg (which must be a number of characters, not column width).
4791
f036d043
YM
47922006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4793
4794 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
4795
4796 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
4797
4798 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
4799
885f1975
RS
48002006-02-14 Richard M. Stallman <rms@gnu.org>
4801
9d8f542c
RS
4802 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
4803
885f1975
RS
4804 * m/ibms390x.h: New file.
4805
26ebccfd
JD
48062006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4807
4808 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
4809 value of x-gtk-whole-detached-tool-bar.
d8d3d48c 4810 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
26ebccfd
JD
4811
4812 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
4813
4d7637b8 48142006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
58118de5
JD
4815
4816 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
4817
4818 * xterm.h: Declare x_x_to_emacs_modifiers.
4819
4820 * gtkutil.c (xg_tool_bar_button_cb): New function.
4821 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
4822 store modifiers in event.
4823 (update_frame_tool_bar): Connect button-release-event to
4824 xg_tool_bar_button_cb.
4825
f8d775e1
RS
48262006-02-13 Richard M. Stallman <rms@gnu.org>
4827
4828 * .gdbinit (xwindow): Update the code to show the window box.
4829
0c0351b5
JD
48302006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4831
4832 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
4833
4d94dd9a
RS
48342006-02-12 Richard M. Stallman <rms@gnu.org>
4835
4836 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
4837
c54fb9ef
EZ
48382006-02-11 Eli Zaretskii <eliz@gnu.org>
4839
4840 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
4841 (syms_of_keyboard): DEVFAR_LISP and initialize it.
4842 (parse_tool_bar_item, parse_menu_item): If that variable is
4843 non-nil, don't disable menu items and tool-bar buttons.
4844
ac6a9b55
JB
48452006-02-11 Juanma Barranquero <lekktu@gmail.com>
4846
4847 * doc.c (Fsubstitute_command_keys): Doc fix.
4848
0ddb0ae8
TTN
48492006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
4850
4851 * data.c (Findirect_function): Rewrite docstring.
4852 Fix omission bug: Declare new arg NOERROR.
4853
cbd488c4
YM
48542006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4855
4856 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
4857 if window_desc is not set yet.
4858 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
4859 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
4860 parameter `visibility' is `icon'.
4861 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
4862 instead of "fontset-mac".
4863 (Fx_focus_frame): New defun.
4864 (syms_of_macfns): Defsubr it.
4865
4866 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
4867 for unfocused frame.
4868 (x_raise_frame): Call BringToFront instead of SelectWindow.
4869 (x_lower_frame): Use NULL instead of nil.
4870 (x_make_frame_visible): Don't call SelectWindow.
4871 (XTread_socket): Increment handling_signal at the start, decrement
4872 it at the end.
4873 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
4874 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
4875
a7f96a35
KS
48762006-02-10 Kim F. Storm <storm@cua.dk>
4877
4878 * data.c (Findirect_function): Add NOERROR arg. All callers changed
4879 to pass Qnil for NOERROR.
4880
4881 * keymap.c (current_minor_maps_error): Remove.
4882 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
4883 instead of using internal_condition_case_1+current_minor_maps_error.
4884
1834d8e7
JD
48852006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4886
4887 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
4888 frames for GTK, in that case it is the tool bar. This is so that
4889 highlighted text get reset properly.
4890
cffc3472
JB
48912006-02-09 Juanma Barranquero <lekktu@gmail.com>
4892
4893 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
4894
e99c7521
JD
48952006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4896
4897 * window.c (adjust_window_trailing_edge): Check that shrinking
4898 does not set a window to size zero or less.
4899
42ab8e36
MB
49002006-02-08 Miles Bader <miles@gnu.org>
4901
4902 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
cffc3472 4903 of Fget_text_property (other field functions work with overlays as
42ab8e36
MB
4904 well as text-properties).
4905
6a80c3ba
KH
49062006-02-07 Kenichi Handa <handa@m17n.org>
4907
e1a67366 4908 * dispextern.h (unibyte_display_via_language_environment): Extern it.
6a80c3ba 4909
e1a67366
KS
4910 * xterm.h (unibyte_display_via_language_environment):
4911 * w32term.h (unibyte_display_via_language_environment):
4912 * macterm.h (unibyte_display_via_language_environment): Delete extern.
6a80c3ba 4913
d2b4c17d
KH
49142006-02-07 Kenichi Handa <handa@m17n.org>
4915
e1a67366 4916 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
d2b4c17d 4917 (produce_glyphs): Set the character to print in
e1a67366
KS
4918 it->char_to_display. Handle unibyte-display-via-language-environment.
4919 (produce_stretch_glyph): Set character to print in it->char_to_display.
d2b4c17d 4920
8b9d426a
KH
49212006-02-06 Kenichi Handa <handa@m17n.org>
4922
e1a67366 4923 * lread.c (openp): Initialize encoded_fn before GCPRO it.
8b9d426a 4924
d63b4018
KR
49252006-02-05 Ken Raeburn <raeburn@raeburn.org>
4926
4927 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
4928
98950fd6
KR
4929 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
4930 Cast bitfield value to EMACS_INT, to suppress gcc warning.
4931
0cf36656
KR
4932 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
4933 defining.
4934
ad02d7ea
KS
49352006-02-03 Kim F. Storm <storm@cua.dk>
4936
4937 * xdisp.c: Cache last merged escape glyph face.
4938 (last_escape_glyph_frame, last_escape_glyph_face_id)
4939 (last_escape_glyph_merged_face_id): New variables.
4940 (get_next_display_element): Use/update them.
4941 (redisplay_internal): Reset them before redisplay.
4942
4943 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
4944 Only recheck faces after displaying ellipsis.
4945
999a0fe5
KH
49462006-02-02 Kenichi Handa <handa@m17n.org>
4947
4948 * coding.c (decode_composition_emacs_mule): Fix handling of
4949 incorrect format data.
4950
cd7cd4ac
JD
49512006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4952
14a56a1b
JB
4953 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
4954 gtk_toolbar_insert() so we can have tool bars of different sizes.
cd7cd4ac 4955
4cf7e99c
LT
49562006-01-30 Luc Teirlinck <teirllm@auburn.edu>
4957
4958 * data.c (Flistp): Doc fix.
4959
a3bc032f
JB
49602006-01-30 Juanma Barranquero <lekktu@gmail.com>
4961
4962 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
4963 Fix typos in docstrings.
4964
6badf38c
LT
49652006-01-28 Luc Teirlinck <teirllm@auburn.edu>
4966
1f2907ee 4967 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
6badf38c 4968
e2984df0
CY
49692006-01-27 Chong Yidong <cyd@stupidchicken.com>
4970
4971 * alloc.c (make_interval, allocate_string)
4972 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
4973 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
4974 global variables.
4975
dc86c16d
EZ
49762006-01-27 Eli Zaretskii <eliz@gnu.org>
4977
4978 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
4979 the MSDOS definition.
4980
57436ee7
RS
49812006-01-26 Richard M. Stallman <rms@gnu.org>
4982
4983 * alloc.c (check_pure_size): Make overflow message an "error message".
4984
4985 * keymap.c (Fmap_keymap): Doc fix.
4986
4987 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
4988 unless they were cleared out.
4989
4990 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
4991
2cb3aec4
KL
49922006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4993
e477bb04
KL
4994 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
4995 (find_field): Set before_field to after_field when pos is at BEGV.
293bd733
SM
4996 (Fline_beginning_position, Fline_end_position):
4997 Clarify confusing doc string.
2cb3aec4
KL
4998
4999 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
5000 string.
5001
34b87689
KH
50022006-01-26 Kenichi Handa <handa@m17n.org>
5003
5004 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
5005 current_dir, and error_file. On reporting an error, decode them
5006 back.
5007
1cee1e27
SM
50082006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5009
5010 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
5011 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
5012 Don't check for quit, since any loop will go through fail or jump.
5013
a0b08700
CY
50142006-01-24 Chong Yidong <cyd@stupidchicken.com>
5015
5016 * alloc.c (allocate_string_data): Update next_free immediately, to
5017 reduce risk of memory clobberage.
5018
bf7f1d30
KL
50192006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5020
5021 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
5022 display when point moves across an ellipsis. If there are
5023 adjacent invisible texts, don't lose the second one's ellipsis.
5024 (x_produce_glyphs): Doc fix.
5025
e5e26d8f
SM
50262006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
5027
5028 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
5029
1ff4535b
KS
50302006-01-23 Kim F. Storm <storm@cua.dk>
5031
5032 * xdisp.c (handle_single_display_spec): Fix handling of space
5033 property on char from string: set *position rather than
5034 it->current.pos.
5035 (produce_stretch_glyph): Reduce width of stretch glyphs so they
5036 don't get wider than the window (unless truncate-lines is on).
5037
5badc98d
SM
50382006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
5039
5040 * xterm.c: Avoid allocating Lisp data from a signal handler.
5041 (x_error_message): New var to replace x_error_message_string.
5042 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
5043 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
5044 (syms_of_xterm): Use it instead of x_error_message_string.
5045
5046 * alloc.c (lisp_align_free): Add an assertion.
5047 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
5048 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
5049 a signal handler.
5050
638590e8
LT
50512006-01-21 Luc Teirlinck <teirllm@auburn.edu>
5052
5053 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
5054
cde0a40c
RF
50552006-01-21 Romain Francoise <romain@orebokech.com>
5056
5057 * xdisp.c (get_window_cursor_type): Fix last change.
5058 Update copyright year.
5059
ea5f3ad4
EZ
50602006-01-20 Eli Zaretskii <eliz@gnu.org>
5061
3fdf12ca
EZ
5062 * lread.c (Fload): Don't leak the file descriptor returned by
5063 openp if we are going to signal an error.
5064
7559f399
EZ
5065 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
5066 directly to _close.
5067 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
5068 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
5069 to _read.
cde0a40c 5070 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
7559f399
EZ
5071 directly to _write.
5072
ea5f3ad4
EZ
5073 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
5074 if it is NULL.
5075
ef8beec6
KH
50762006-01-20 Kenichi Handa <handa@m17n.org>
5077
5078 * puresize.h (BASE_PURESIZE): Increment to 1190000.
5079
995f2df9
CY
50802006-01-19 Chong Yidong <cyd@stupidchicken.com>
5081
5082 * xdisp.c (get_window_cursor_type): Use cursor type specified by
5083 the selected buffer for the echo area too.
5084
c94c4d0a
RS
50852006-01-19 Richard M. Stallman <rms@gnu.org>
5086
5087 * keymap.c (Fmap_keymap): Doc fix.
5088
5089 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
5090
5091 * keyboard.c (echo_char): Don't omit the space between first two
5092 echoed chars.
5093
5094 * minibuf.c (read_minibuf): Fix previous change.
5095
71578d4f
KH
50962006-01-19 Kenichi Handa <handa@m17n.org>
5097
5098 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
5099
edd1c685
RS
51002006-01-17 Richard M. Stallman <rms@gnu.org>
5101
5102 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
5103 value in f->param_alist.
5104
0501acd4
AS
51052006-01-15 Andreas Schwab <schwab@suse.de>
5106
5107 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
5108
d33a7384
NR
51092006-01-13 Richard M. Stallman <rms@gnu.org>
5110
5111 * Makefile.in: Define new macro WINDOW_SUPPORT.
5112 (lisp): Use it.
5113 (SOME_MACHINE_LISP): Add conditionally loaded files.
5114
2026418c
YM
51152006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5116
5117 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
22e6707e 5118 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2026418c
YM
5119 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
5120 decomposed form.
5121
5122 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
5123 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
5124 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
5125 macro. Also try member ifr_addr when getting netmask.
5126
b8f7f3be
SM
51272006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
5128
5129 * fileio.c (Fexpand_file_name): Remove redundant tests.
5130 Fix elimination of // so that it doesn't prevent elimination of an
5131 immediately following /. or /..
5132
4c9ca1a3
JD
51332006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5134
5135 * gtkutil.c (xg_toggle_notify_cb): New function.
5136 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
5137 xg_toggle_notify_cb.
5138 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
5139 parameter value changes so the toggle button gets updated.
5140
340bb2ea
NR
51412006-01-06 Nick Roberts <nickrob@snap.net.nz>
5142
5143 * .gdbinit: Fix typo.
5144
feaf060a
EZ
51452006-01-05 Eli Zaretskii <eliz@gnu.org>
5146
5147 * .gdbinit: Fix last change.
5148
c22cc558
KS
51492006-01-05 Kim F. Storm <storm@cua.dk>
5150
5151 * process.c (Fmake_network_process): Use AF_INET instead of
22e6707e 5152 AF_UNSPEC when AF_INET6 is not defined.
c22cc558 5153
07f9b01c
YM
51542006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5155
5156 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
5157 Don't check that the other type is known file-related one.
5158
5159 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
5160 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
5161 OS X 10.4 and later.
5162
0facd9c3
JD
51632006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5164
5165 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
5166 let GTK do all image processing. Importing Emacs own pixmaps to GTK
5167 looks bad for inactive tool bar items with some Gnome themes.
5168
805b0439
EZ
51692006-01-04 Eli Zaretskii <eliz@gnu.org>
5170
913645cd
EZ
5171 * .gdbinit: Avoid a warning message when x_error_quitter is not
5172 compiled in.
5173
805b0439
EZ
5174 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
5175 for w32.
5176
0f5642c2
KS
51772006-01-04 Kim F. Storm <storm@cua.dk>
5178
8a5db8ae
KS
5179 * process.c: Add IPv6 support.
5180 (Qipv4, Qipv6): New vars.
5181 (syms_of_process): Intern and staticpro them.
5182 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
5183 with or without port number. Handle 4 element vector as IPv4 address
5184 without port number.
5185 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
5186 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
5187 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
5188 request that address family only. :family nil or omitted means to
5189 determine address family from the specified :host and :service.
5190 (ifflag_table): Add missing OpenBSD IFF_ flags.
5191 (server_accept_connection): Handle IPv6 addresses.
5192 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
5193
0f5642c2
KS
5194 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
5195 determine which breakpoints to set.
5196
e7b394e1
SM
51972006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
5198
5199 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
5200
5201 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
5202
dcc9b98d
RF
52032006-01-03 Romain Francoise <romain@orebokech.com>
5204
5205 * emacs.c (main): Update copyright year.
5206
6918ac24 52072006-01-03 Ken Raeburn <raeburn@gnu.org>
1a271e14
KR
5208
5209 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
5210 nil for the call to internal_delete_file.
5211
bb951f0e
KR
52122006-01-01 Ken Raeburn <raeburn@gnu.org>
5213
5214 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
5215 to nil for the call to Fwrite_region.
5216
b20de1cd
RS
52172005-12-31 Richard M. Stallman <rms@gnu.org>
5218
5219 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
5220
b5871831
EZ
52212005-12-31 Eli Zaretskii <eliz@gnu.org>
5222
5223 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
5224
c26ec07f
LT
52252005-12-30 Luc Teirlinck <teirllm@auburn.edu>
5226
5227 * textprop.c (set_text_properties): Reword description of return value.
5228 Return Qnil if caller wants to remove all text properties from a
5229 string and the string already has no intervals.
5230
0db017c0
SM
52312005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
5232
5233 * term.c (visible_cursor): New boolean var.
5234 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
5235 visible_cursor.
5236 (syms_of_term): Export the new var as "visible-cursor".
5237
fc8dc7cf
EZ
52382005-12-30 Eli Zaretskii <eliz@gnu.org>
5239
5240 * .gdbinit: Tell users not to worry about GDB warnings that some
5241 functions do not exist in the binary.
5242
82a80058
AS
52432005-12-30 Andreas Schwab <schwab@suse.de>
5244
5245 * process.c (Fnetwork_interface_info): Correctly terminate the
5246 loop over ifflag_table.
5247
c36238ee
RS
52482005-12-29 Richard M. Stallman <rms@gnu.org>
5249
d11db2c8
RS
5250 * lread.c (readevalloop): Test for reading a whole buffer
5251 before actually reading anything. Handle all cases, including
5252 START = END = nil and an already-narrowed buffer.
5253 Convert END to a marker if it is a number.
5254
c36238ee
RS
5255 * keymap.c (describe_map): Put sparse map elements into an array,
5256 sort them, then output a sequence of identical bindings on one line.
5257 (struct describe_map_elt): New data type.
5258 (describe_map_compare): New function.
5259
82bc1fd6
JD
52602005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5261
e7b394e1 5262 * gtkutil.c (xg_get_file_with_chooser): Change message shown
82bc1fd6
JD
5263 in file chooser.
5264
fe5195e8
RS
52652005-12-27 Richard M. Stallman <rms@gnu.org>
5266
6281e1e8
RS
5267 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
5268 not the current one.
5269
5270 * minibuf.c (Fminibuffer_message): Doc fix.
5271 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
5272
fe5195e8
RS
5273 * eval.c (do_autoload): Ignore elements of Vautoload_queue
5274 where car is not symbol.
5275
0d9fb289
KH
52762005-12-27 Kenichi Handa <handa@m17n.org>
5277
5278 * charset.c (lisp_string_width): Check multibyteness of STRING.
5279
ff9c9c59
JD
52802005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5281
14a56a1b 5282 * xfns.c (x_show_hidden_files): New variable.
ff9c9c59
JD
5283 (syms_of_xfns): Defvar it.
5284
5285 * gtkutil.c (xg_toggle_visibility_cb): New function.
5286 (xg_get_file_with_chooser): Add toggle hidden files and a message
5287 to the new file chooser dialog. Show hidden files if
5288 x_show_hidden_files is non-zero.
5289
d7504d5c
RS
52902005-12-26 Richard M. Stallman <rms@gnu.org>
5291
5292 * keyboard.h: Undo previous change.
5293
5294 * Makefile.in (undo.o): Undo previous change.
5295
5296 * undo.c: Undo previous change.
5297
0ad017ce
LT
52982005-12-26 Luc Teirlinck <teirllm@auburn.edu>
5299
403c00a5
LT
5300 * keyboard.h: extern last_point_position_window.
5301
0ad017ce
LT
5302 * undo.c: include keyboard.h.
5303
403c00a5 5304 * Makefile.in (undo.o): Depend on keyboard.h.
0ad017ce 5305
91e25f5e
RS
53062005-12-26 Richard M. Stallman <rms@gnu.org>
5307
d7504d5c
RS
5308 * commands.h (last_point_position_window): Declare.
5309
91e25f5e
RS
5310 * undo.c: Depend on window.h.
5311 (record_point): Save old point from the correct window.
5312
5313 * keyboard.c (last_point_position_window): New variable.
5314 (command_loop_1): Set last_point_position_window.
5315 (syms_of_keyboard): Init it.
5316
5317 * Makefile.in (undo.o): Depend on window.h.
5318
cad1051b
RS
53192005-12-25 Richard M. Stallman <rms@gnu.org>
5320
5321 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
5322 to undo a `provide'.
5323
5324 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
5325
d52c26e9
KB
53262005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
5327
5328 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
5329 define for FreeBSD on this platform.
5330
14af1e44
YM
53312005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5332
5333 * macterm.h (TYPE_FILE_NAME): New define.
5334 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
5335
e7b394e1
SM
5336 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
5337 Add prototypes. Make static.
14af1e44
YM
5338 (mac_aedesc_to_lisp): Initialize err to noErr.
5339 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
5340 (init_coercion_handler): New functions.
5341 (Fmac_coerce_ae_data): Use coercion of Apple event data for
5342 translation from/to file names.
5343
5344 * macterm.c: Don't include sys/param.h.
5345 (init_coercion_handler): Add extern.
5346 [MAC_OS8] (main): Call init_coercion_handler.
5347 (mac_initialize) [MAC_OSX]: Likewise.
5348 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
5349 Apple event data for translation from/to file names.
5350
5351 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
5352
5353 * image.c [MAC_OS] (find_image_fsspec): Likewise.
5354
5fed8c15 53552005-12-23 Martin Rudalics <rudalics@gmx.at>
bab3eee1
EZ
5356
5357 * insdel.c (insert, insert_and_inherit, insert_before_markers)
5358 (insert_before_markers_and_inherit): Make sure FROM is correct
5359 when `after-change-functions' are called.
5360
90f2e16b
JD
53612005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5362
5363 * xfns.c (Fx_uses_old_gtk_dialog): New function.
5364
5365 * gtkutil.c (xg_uses_old_file_dialog): New function.
5366 (xg_get_file_name): Use xg_uses_old_file_dialog.
5367
5368 * gtkutil.h: Declare xg_uses_old_file_dialog.
5369
0ee01fff
RS
53702005-12-22 Richard M. Stallman <rms@gnu.org>
5371
5372 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
5373
b73e4d84
YM
53742005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5375
5376 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
5377
5378 * macgui.h (XCharStruct): Remove member `valid_p'.
5379 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
5380 (XCharStructRow): New typedef.
e7b394e1
SM
5381 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
5382 New macros.
b73e4d84
YM
5383 (struct MacFontStruct): Add member `bounds'. Remove member
5384 `per_char'. All uses for QuichDraw Text fonts are changed to
5385 `bounds.per_char'. ATSUI font bounds are represented as an array
5386 `bounds.rows' of XCharStructRow's, each of which consists of a
5387 bitmap of valid entries and an array of char bounds.
5388
5389 * macterm.c (mac_per_char_metric): Add prototype.
5390 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
5391 (mac_query_char_extents): New function.
5392 (x_per_char_metric): Use it.
5393 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
e7b394e1
SM
5394 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
5395 Use mac_per_char_metric instead of x_per_char_metric.
b73e4d84
YM
5396 (mac_text_extents_16): New function.
5397 (mac_compute_glyph_string_overhangs): Use it.
5398 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
5399
a425bd03
SM
54002005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5401
5402 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
5403 (Fminibuffer_completion_help): Remove duplicates before display.
5404
aa0b0cd9
KL
54052005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5406
da3863b5 5407 * print.c (print_preprocess): Don't lose print_depth levels while
aa0b0cd9
KL
5408 iterating.
5409
5a61ec18
YM
54102005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5411
5412 * macmenu.c (Qmac_apple_event): Add extern.
5413 (set_frame_menubar, mac_menu_show keymp_panes)
5414 (single_keymap_panes, list_of_panes, list_of_item)
5415 (single_menu_item): Add argument types to prototypes.
5416 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
5417 (struct skp): New struct (from xmenu.c).
5418 (single_keymap_panes, single_menu_item, list_of_panes)
5419 (list_of_item): Sync with xmenu.c.
5420 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
5421 POSITION if it is mac-apple-event event.
5422 (menubar_selection_callback): Don't use menu_command_in_progress.
5423 (set_frame_menubar): First parse all submenus, then make
5424 widget_value trees from them. Don't allocate any widget_value
5425 objects until we are done with the parsing.
5426 (parse_single_submenu, digest_single_submenu): New functions.
5427 (single_submenu): Function deleted, replaced by those two.
5428 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
5429 create or dispose of EventHandlerUPP. Install hander to all submenus.
5430 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
5431 instead of ENCODE_SYSTEM.
5432 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
5433 integer values.
5434 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
5435 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
5436 format menu item string. Don't use NULL for integer value.
5437
5438 * macterm.h (struct mac_output): Remove unused member
5439 menu_command_in_progress.
5440
3bdba51d
JL
54412005-12-20 Juri Linkov <juri@jurta.org>
5442
5443 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
5444 position is non-nil, else set it to nil.
5445
5446 * macmenu.c (Fx_popup_menu): Add `else' to set
5447 Vmenu_updating_frame to nil only if position is nil.
5448
5449 * w32menu.c (Fx_popup_menu): Add `else' to set
5450 Vmenu_updating_frame to nil only if position is nil.
5451
d6a90a49
YM
54522005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5453
5454 * keyboard.c (make_lispy_event): Drag-and-drop items are now
5455 stored in member `args' of struct input_event.
5456
5457 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
5458
5459 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
5460 stored in member `args' of struct input_event.
5461
5462 * w32term.c (construct_drag_n_drop): Likewise.
5463
5464 * macterm.c (mac_do_receive_drag): Likewise.
5465 (x_use_underline_position_properties): Undo 2005-07-13 change.
5466 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
5467 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
a425bd03
SM
5468 (mac_pass_command_to_system, mac_pass_control_to_system):
5469 New boolean variables renamed from Lisp_Object ones
d6a90a49 5470 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
a425bd03
SM
5471 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
5472 All uses changed.
d6a90a49
YM
5473 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
5474 Make them user options.
a425bd03
SM
5475 (mac_handle_command_event, mac_store_services_event):
5476 Call create_apple_event_from_event_ref without 5th argument.
d6a90a49
YM
5477 (backtranslate_modified_keycode): Mask off modifier keys that are
5478 mapped to some Emacs modifiers before passing it to KeyTranslate.
5479 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
5480 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
5481 Fix docstrings of `mac-*-modifier'.
5482
5483 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
a425bd03
SM
5484 (do_applescript): Change argument types to Lisp_Object.
5485 All uses changed.
d6a90a49
YM
5486
5487 * macterm.h (create_apple_event_from_event_ref): Remove 5th
5488 argument from extern.
5489
20d1c5c5
DN
54902005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5491
5492 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
5493 the answer, return `lambda', not nil.
5494
abeb5855
EZ
54952005-12-17 Eli Zaretskii <eliz@gnu.org>
5496
5497 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
5498 enclosed in $(ARGQUOTE)s should not be split between two lines, as
5499 that will break with GNU Make >3.80, when sh.exe is used and
5500 arg quoting is with '..'.
5501
6b8dfbf7
CY
55022005-12-17 Chong Yidong <cyd@stupidchicken.com>
5503
5504 * print.c (print_preprocess): Just signal an error if print_depth
5505 is exceeded.
5506
d912b87a
EZ
55072005-12-17 Eli Zaretskii <eliz@gnu.org>
5508
5509 * .gdbinit: Set a breakpoint on w32_abort.
5510
2a502a32
JL
55112005-12-16 Juri Linkov <juri@jurta.org>
5512
5513 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
5514 created from minibuffer_completion_contents.
5515 (minibuffer_completion_contents): Remove.
5516 (do_completion, Fminibuffer_complete_word)
5517 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
5518 with Fminibuffer_completion_contents.
5519 (syms_of_minibuf): Add Sminibuffer_completion_contents.
5520 (Fdisplay_completion_list): Doc fix.
5521 (display_completion_list_1): Use `nil' for second arg of
5522 `Fdisplay_completion_list'.
5523
bf63eb69
JD
55242005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5525
5526 * xfns.c (compute_tip_xy): Handle negative dx and dy.
5527
a425bd03 5528 * w32fns.c (compute_tip_xy): Ditto.
bf63eb69 5529
a425bd03 5530 * macfns.c (compute_tip_xy): Ditto.
bf63eb69 5531
9b98e161
CY
55322005-12-14 Chong Yidong <cyd@stupidchicken.com>
5533
5534 * print.c (print_preprocess): Go to a deeper print_depth to avoid
5535 print_object loop.
5536
89aa725a
KH
55372005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
5538
5539 * coding.c (code_convert_region_unwind): GCPRO arg.
5540
3b006f5b
JD
55412005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5542
57134802
JD
5543 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
5544 i.e. dy is offset from top of frame instead of bottom.
5545
5546 * macfns.c (compute_tip_xy): Ditto.
5547
5548 * w32fns.c (compute_tip_xy): Ditto.
5549
3b006f5b
JD
5550 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
5551 (xg_get_image_for_pixmap, xg_create_frame_widgets)
5552 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
5553
5554 * xmenu.c (menubar_selection_callback): Do nothing if the callback
5555 is for an unselected radio menu item.
5556
2cb33a98
RS
55572005-12-11 Richard M. Stallman <rms@gnu.org>
5558
5559 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
5560
5561 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
5562
5563 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
5564 (Flookup_key): Doc fix.
5565 (syms_of_keymap) <function-key-map>: Doc fix.
5566
5567 * fns.c (Frequire): Treat evaluating from a source file
5568 like loading the file.
5569
5570 * floatfns.c (Flog): Doc fix.
5571
5572 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
5573 when we change the buffer.
5574
d7d1f75e
JL
55752005-12-11 Juri Linkov <juri@jurta.org>
5576
5577 * minibuf.c (display_completion_list_1):
5578 Call `minibuffer_completion_contents' instead of using `nil' as
5579 second arg of `Fdisplay_completion_list'.
5580 (keys_of_minibuf): Unbind SPC in
5581 Vminibuffer_local_filename_completion_map (see also related
5582 change on 2005-12-06).
5583
ac8fcf0f
YM
55842005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5585
5586 * emacs.c (main) [MAC_OS8]: Undo previous change.
5587
5588 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
5589 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
5590
4b3eb407
YM
55912005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5592
5593 * Makefile.in (macselect.o): Depend on keymap.h.
5594
5595 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
5596 syms_of_macselect.
5597
5598 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
5599 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
5600
5601 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
5602 (syms_of_keyboard) [MAC_OS]: Initialize it.
5603 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
5604
5605 * mac.c (Qundecoded_file_name): New variable.
5606 (syms_of_mac): Initialize it.
5607 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
a425bd03 5608 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4b3eb407
YM
5609 (Fmac_coerce_ae_data): New defun.
5610 (syms_of_mac): Defsubr it.
5611
5612 * macselect.c: Include keymap.h.
5613 (mac_ready_for_apple_events): New variable.
5614 (Vmac_apple_event_map, Qmac_apple_event_class)
5615 (Qmac_apple_event_id): New variables.
5616 (syms_of_macselect): Initialize them.
5617 (Qundefined, mac_store_apple_event): Add externs.
5618 (struct apple_event_binding): New struct.
5619 (find_event_binding_fun, find_event_binding)
5620 (mac_find_apple_event_spec, defer_apple_events)
5621 (mac_handle_apple_event, init_apple_event_handler)
5622 (copy_scrap_flavor_data): New functions.
5623 (Fmac_process_deferred_apple_events): New defun.
5624 (syms_of_macselect): Defsubr it.
5625 (mac_store_services_event): Fix extern.
5626 (mac_handle_service_event): Don't allocate Lisp objects during
5627 asynchronous input processing. Use mac_store_services_event
5628 instead of mac_store_application_menu_event.
5629
5630 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
5631 (Qpreferences): Remove variables.
5632 (syms_of_macterm) : Don't initialize them.
5633 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
5634 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
5635 (init_required_apple_events, do_ae_open_application)
5636 (do_ae_print_documents, do_ae_open_documents)
5637 (do_ae_quit_application): Remove functions and prototypes.
5638 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
5639 (mac_find_apple_event_spec): Add externs.
5640 (mac_store_application_menu_event): Remove function.
5641 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
5642 (mac_handle_command_event): Create Apple event from Carbon event.
5643 Use mac_store_apple_event instead of mac_store_application_menu_event.
5644 [MAC_OSX] (mac_store_services_event): Likewise.
5645 (struct SelectionRange, SelectionRange): Remove struct and typedef.
5646 [MAC_OS8] (main): Call init_apple_event_handler instead of
5647 init_required_apple_events.
5648 (mac_initialize) [MAC_OSX]: Likewise.
e7b394e1
SM
5649 [!USE_CARBON_EVENTS] (mac_wait_next_event):
5650 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
4b3eb407 5651
e7b394e1
SM
5652 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
5653 Add externs.
4b3eb407
YM
5654 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
5655 (Fmac_get_preference): Add EXFUN.
5656
5657 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
5658 event.
5659
e358e052
RS
56602005-12-09 Richard M. Stallman <rms@gnu.org>
5661
5662 * xfns.c (Fx_create_frame): Reinstate previous change.
5663
9ea74bfb
EZ
56642005-12-09 Eli Zaretskii <eliz@gnu.org>
5665
5666 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
5667 GDB to the abort dialog.
5668
9dd28cae 56692005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
84fdb82c
KS
5670
5671 * indent.c (Fvertical_motion): Force move if starting on
5672 stretch glyph.
5673
2fda6977
RS
56742005-12-08 Richard M. Stallman <rms@gnu.org>
5675
2663a204
RS
5676 * lread.c (read_escape) <\s>: Don't treat strings specially.
5677
2fda6977
RS
5678 * xfns.c (Fx_create_frame): Comment out previous change.
5679
225c13a5
KL
56802005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5681
5682 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
5683 when needed.
5684
da8ec671
SM
56852005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
5686
5687 * minibuf.c (keys_of_minibuf): Just unbind SPC in
5688 Vminibuffer_local_filename_completion_map rather than forcing it
5689 explicitly to the same binding as the global map.
5690
88fde92a
KR
56912005-12-06 Ken Raeburn <raeburn@gnu.org>
5692
e7b394e1 5693 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
88fde92a 5694 * bytecode.c (Fbyte_code): Likewise.
e7b394e1 5695 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
88fde92a
KR
5696 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
5697 * undo.c (truncate_undo_list): Likewise.
5698
fa0d4d0c
RS
56992005-12-05 Richard M. Stallman <rms@gnu.org>
5700
5701 * window.c (enlarge_window): Eliminate arg preserve_before.
5702 Assume it is 0. All callers changed.
5703 (Fenlarge_window, Fshrink_window): Likewise.
5704
5a98616e
EZ
57052005-12-02 Eli Zaretskii <eliz@gnu.org>
5706
5707 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
5708 fit below.
5709
1dbacb90
JD
57102005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5711
5712 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
5713
5714 * xfns.c (x_real_positions): int ign => unsigned int.
5715 (xg_set_icon_from_xpm_data): Remove unused variable err.
5716 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
5717 to remove compiler warning.
5718 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
5719
0a79da1b
EZ
57202005-12-02 David Reitter <david.reitter@gmail.com>
5721
5722 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
5723 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
5724 and Vminibuffer_local_must_match_filename_map keymaps.
5725 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
5726
5727 * keymap.c (Vminibuffer_local_filename_completion_map)
5728 (Vminibuffer_local_must_match_filename_map): New variables.
5729 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
5730 parent to be Vminibuffer_local_completion_map and
5731 Vminibuffer_local_must_match_map, respectively.
5732
5733 * commands.h (Vminibuffer_local_filename_completion_map)
5734 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
5735
e67a1dea
SM
57362005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
5737
5738 * window.c (Fset_window_configuration): Don't accidentally copy the
5739 window-point of one window to another.
5740
6ad0f04d
KL
57412005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5742
7854b2a3 5743 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6ad0f04d 5744
4269a2fd
KS
57452005-11-30 Kim F. Storm <storm@cua.dk>
5746
5747 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
5748 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
5749 passing it to `emacs_write'.
5750
96013ba9
SM
57512005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
5752
5753 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
5754
161ef3be
RS
57552005-11-27 Richard M. Stallman <rms@gnu.org>
5756
5757 * window.c (adjust_window_trailing_edge): New function.
5758 (Fadjust_window_trailing_edge): New function.
96013ba9 5759 (syms_of_window): Defsubr it.
161ef3be
RS
5760 (window_deletion_count): New variable.
5761 (delete_window): Update window_deletion_count.
5762
02b1a164
EZ
57632005-11-26 Eli Zaretskii <eliz@gnu.org>
5764
5765 * minibuf.c (syms_of_minibuf): Mention the extension of
5766 `completion-auto-help's meaning by complete.el.
5767
07908aec
EZ
57682005-11-26 Henrik Enberg <henrik.enberg@telia.com>
5769
96013ba9 5770 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
07908aec
EZ
5771 Handle :inherit property as a lisp expression.
5772
b9c7cbf9
YM
57732005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5774
5775 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
5776 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
5777 Qsuper, and Qmodifier_value.
5778 (Vmac_control_modifier, Vmac_option_modifier)
5779 (Vmac_command_modifier, Vmac_function_modifier)
5780 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
5781 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
5782 (Vmac_charset_info_alist): Doc fixes.
5783
2c012c41
YM
57842005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5785
5786 * emacs.c (main) [MAC_OSX]: Change working directory to home
5787 directory if `-psn_*' option is specified.
5788
5789 * mac.c (DECODE_UTF_8): Remove macro.
5790 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
5791 created from cfstring_to_lisp.
5792 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
5793 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
5794
5795 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
5796 Add prototype.
5797
88fde92a 57982005-11-21 Ken Raeburn <raeburn@gnu.org>
d7c0be75
KR
5799
5800 * keymap.c (shadow_lookup): Use make_number to pass a number to
5801 Fsubstring.
5802
17c1971a
JL
58032005-11-21 Juri Linkov <juri@jurta.org>
5804
5805 * puresize.h (BASE_PURESIZE): Increment to 1180000.
5806
0268cef3
CY
58072005-11-20 Chong Yidong <cyd@stupidchicken.com>
5808
96013ba9
SM
5809 * xfaces.c (Finternal_set_lisp_face_attribute):
5810 Use :ignore-defface for new frame defaults when `unspecified' is
0268cef3
CY
5811 supplied.
5812 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
67d23e01
CY
5813 (merge_face_vectors): Don't do :ignore-defface overwriting here.
5814 (Finternal_merge_in_global_face): Do it here.
0268cef3 5815
dd949173
JL
58162005-11-20 Juri Linkov <juri@jurta.org>
5817
5818 * charset.c (invalid_character): Use Lisp-readable syntax
5819 for octal and hex. Reorder decimal, octal and hex values.
5820
76986433
NR
58212005-11-20 Nick Roberts <nickrob@snap.net.nz>
5822
5823 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
5824 this type is recognised when debugging.
5825
603add2d
AS
58262005-11-19 Andreas Schwab <schwab@suse.de>
5827
5828 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
5829 Lisp_Cons and Lisp_Float.
5830
125ce9ec
YM
58312005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5832
5833 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
5834 New variable.
96013ba9 5835 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
125ce9ec
YM
5836 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
5837 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
5838 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
5839
2ff10663
CY
58402005-11-17 Chong Yidong <cyd@stupidchicken.com>
5841
96013ba9 5842 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
fe45ad15 5843
2ff10663
CY
5844 * xfaces.c (Qignore_defface): New variable.
5845 (syms_of_xfaces): Provide `:ignore-defface'.
5846 (IGNORE_DEFFACE_P): New macro.
05338727
CY
5847 (check_lface_attrs, lface_fully_specified_p)
5848 (Finternal_set_lisp_face_attribute)
96013ba9
SM
5849 (Fface_attribute_relative_p, Fmerge_face_attribute):
5850 Handle Qignore_defface as a possible value.
2ff10663
CY
5851 (merge_face_vectors): The merged face is `unspecified' if the
5852 mergee specifies `:ignore-defface'.
5853
c01f0ed3
SM
58542005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
5855
5856 * lread.c (readevalloop): Add missing GCPROs.
5857
786a43d6
CY
58582005-11-16 Chong Yidong <cyd@stupidchicken.com>
5859
9f7b984b
CY
5860 * xfns.c (xg_set_icon_from_xpm_data): New function.
5861
c01f0ed3
SM
5862 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
5863 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
786a43d6
CY
5864
5865 * xterm.c (x_bitmap_icon): Use the xpm if available.
5866
5867 * image.c (x_create_bitmap_from_xpm_data): New function.
54188d8f 5868 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
786a43d6 5869
8ab84823
LT
58702005-11-15 Luc Teirlinck <teirllm@auburn.edu>
5871
5872 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
5873
3671718b
NR
58742005-11-16 Nick Roberts <nickrob@snap.net.nz>
5875
5876 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
5877
28a099a4
AS
58782005-11-15 Andreas Schwab <schwab@suse.de>
5879
5880 * lisp.h (struct Lisp_Cons): Make cdr a union.
5881 (XCDR_AS_LVALUE): Adjust.
5882 (struct Lisp_Float): Make data a union.
5883 (XFLOAT_DATA): Adjust.
5884
5885 * alloc.c (free_float): Make free list chaining aliasing-safe.
5886 (make_float): Likewise.
5887 (free_cons): Likewise.
5888 (Fcons): Likewise.
5889 (check_cons_list): Likewise.
5890 (Fmake_symbol): Likewise.
5891 (allocate_misc): Likewise.
5892 (free_misc): Likewise.
5893 (gc_sweep): Likewise.
5894
308a6607
YM
58952005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5896
fc09d07f
YM
5897 * mac.c (HASHKEY_QUERY_CACHE): New define.
5898 (xrm_create_database, xrm_q_put_resource): Empty query cache.
5899 (xrm_get_resource): Use query cache.
5900
308a6607
YM
5901 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
5902 inhibit_window_system is set.
5903
29b585db
YM
59042005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5905
5906 * macgui.h (USE_CG_TEXT_DRAWING): New define.
5907 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
5908 and cg_glyphs.
5909
5910 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
5911 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
5912 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
5913 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
5914 not used and font substitution never occurs for ASCII and Latin-1
5915 characters.
5916 (XLoadQueryFont): Maximum and minimum metrics are now those among
5917 ASCII characters.
5918 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
5919 height adjustments for Courier, Helvetica, and Times.
5920
5921 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
5922
9dd28cae 59232005-11-11 David Reitter <david.reitter@gmail.com>
b02e3f7b 5924
dff79d04 5925 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
267ee78f 5926 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
dff79d04
ST
5927 Vmac_control_modifier / mac-control-modifier,
5928 Vmac_option_modifier / mac-option-modifier,
5929 Vmac_command_modifier / mac-command-modifier.
5930 (mac_to_emacs_modifiers): Use the new style modifier
c01f0ed3
SM
5931 variables. Return UInt32 (modifiers are longs now.)
5932 (backtranslate_modified_keycode): New function (refactoring).
5933 (XTread_socket): Use new modifier variables and refactored function.
5934 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
5935 no dedicated meta key. Not in use anyway.)
b02e3f7b
ST
5936 (convert_fn_keycode): Map Fn-keys to their original keycode
5937 using a table (english keyboard only).
b02e3f7b 5938
6a77a9f5
KS
59392005-11-11 Kim F. Storm <storm@cua.dk>
5940
ab4d879e
KS
5941 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
5942 Add post hook to "backtrace" to always dump lisp call stack to
5943 increase chance of people sending it to us when reporting bugs.
5944
8c41220c
KS
5945 * doc.c (Fsubstitute_command_keys): Doc fix.
5946
6a77a9f5
KS
5947 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
5948
5949 * xdisp.c (handle_stop): Skip overlay string handling if
5950 ignore_overlay_strings_at_pos_p is set.
5951 (set_iterator_to_next): At end of display vector, set
5952 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
5953 string, so we skip those overlay strings at current pos.
5954
9dd28cae 59552005-11-10 Lars Hansen <larsh@soem.dk>
19a9c3b7
LH
5956
5957 * fileio.c (file-regular-p): Doc fix.
5958
932954d1
KS
59592005-11-10 Kim F. Storm <storm@cua.dk>
5960
5961 * alloc.c (valid_lisp_object_p): New function to validate that
5962 an object is really a valid Lisp_Object.
5963
5964 * lisp.h (valid_lisp_object_p): Add prototype.
5965
5966 * print.c (safe_debug_print): New function to be called from gdb
5967 to print Lisp objects; use valid_lisp_object_p to avoid crashing
5968 if user tries to print something which is not a Lisp object.
5969
5970 * .gdbinit (pp, pp1): Use safe_debug_print.
5971 (pv, pv1): New commands to print value of a lisp variable.
5972
78e5988d
NR
59732005-11-10 Nick Roberts <nickrob@snap.net.nz>
5974
5975 * .gdbinit (pp1): New user-defined function.
5976
f56a5bd8
YM
59772005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5978
5979 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
5980
5981 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
5982 related variables for dumped executable.
5983
5984 * unexmacosx.c (unexec_write_zero): New function.
5985 (copy_data_segment): Clear uninitialized local variables in
5986 statically linked libraries.
5987
5988 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
5989
58b6f884
JL
59902005-11-09 Juri Linkov <juri@jurta.org>
5991
5992 * keymap.c (shadow_lookup): If Flookup_key returns a number,
5993 call it again with a sub-key-sequence, and if its return value
5994 is non-nil (sub-key is bound), return nil.
5995
1f5f957a
KS
59962005-11-08 Kim F. Storm <storm@cua.dk>
5997
5998 * process.c (Fsignal_process): Recognize signal names with and
5999 without SIG prefix, e.g. SIGHUP and HUP.
6000
6001 * search.c (search_buffer): No need to initialize base_pat.
6002
20b69789
SM
60032005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
6004
6005 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
6006 Don't abuse the `mini' arg. Use the `obj' arg instead.
6007
7353f169
KS
60082005-11-04 Kim F. Storm <storm@cua.dk>
6009
6010 * xdisp.c (show_mouse_face): Clear mouse face to eol.
6011
1f7b1131
DN
60122005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
6013
6014 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
6015 font-lock.elc and jit-lock.elc.
6016
e082564e
RS
60172005-11-03 Richard M. Stallman <rms@gnu.org>
6018
6019 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
6020 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
6021 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
6022
6023 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
6024
6025 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
6026
49e99345
SM
60272005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6028
6029 * window.c (Fdisplay_buffer): Fix last change to not use
6030 a dedicated window.
6031
8f15921b
KS
60322005-11-01 Kim F. Storm <storm@cua.dk>
6033
6034 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
6035 Instead, rotate the bottom angle bitmap 180 degrees to indicate
6036 that the bottom row does not end in a newline.
6037
b4235a80
AS
60382005-11-01 Andreas Schwab <schwab@suse.de>
6039
6040 * unexelf.c (unexec): Handle .plt section in BSS segment.
6041
3cbb13c8
SM
60422005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6043
e5f64be2
SM
6044 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
6045
3cbb13c8
SM
6046 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
6047 determine whether to consider dedicated windows as well.
6048 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
6049 (Fdisplay_buffer): Do consider dedicated windows in those cases where
6050 we will split the window rather than reuse it.
6051 Don't try to use windows on other displays.
6052
c94f08ff
DN
60532005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
6054
6055 * puresize.h (BASE_PURESIZE): Increment to 1170000.
6056
edf84ae9
RF
60572005-10-31 Romain Francoise <romain@orebokech.com>
6058
6059 * macfns.c: Update copyright year.
6060 * m/gould.h: Likewise.
6061
6f07f649
KS
60622005-10-30 Kim F. Storm <storm@cua.dk>
6063
6064 * xdisp.c (display_line): Restore it->current_x and call
6065 extend_face_to_end_of_line when last glyph doesn't fit on line.
9dd28cae 6066 (set_glyph_string_background_width): Remove specific tests here
6f07f649
KS
6067 to see if face background should extend to end of line. Simplify.
6068
4d74a5fc
RS
60692005-10-30 Richard M. Stallman <rms@gnu.org>
6070
6071 * alloc.c (BYTES_USED): Use uordblks, not arena.
6072 (bytes_used_when_reconsidered): New variable.
6073 (emacs_blocked_free): Set that.
6074
bccfb310
CY
60752005-10-29 Chong Yidong <cyd@stupidchicken.com>
6076
6077 * alloc.c (emacs_blocked_free): Fix typo.
6078
f5b8d5f2
RS
60792005-10-29 Richard M. Stallman <rms@gnu.org>
6080
4d74a5fc
RS
6081 * data.c (Fmake_variable_frame_local): Doc fix.
6082
f5b8d5f2
RS
6083 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
6084 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
6085 controls whether to save and restore mode_line_proptrans_alist.
6086 Callers changed.
6087 (unwind_format_mode_line): Work with that feature.
6088 (redisplay_internal): Don't call prepare_menu_bars if memory full.
6089 (move_elt_to_front): New function.
6090 (display_mode_element): Use move_elt_to_front.
6091 Don't bother munging text props on a null string.
6092 Delete obsolete elts from mode_line_proptrans_alist.
6093 (decode_mode_spec): Test Vmemory_full, not spare_memory.
685abb98 6094 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
f5b8d5f2 6095
49e99345
SM
6096 * lisp.h (memory_full_cons_threshold): Declare.
6097 (internal_lisp_condition_case): Declare.
f5b8d5f2
RS
6098
6099 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
6100 (Fmemory_full_p): Function deleted.
6101 (syms_of_alloc): Don't defsubr it.
6102 (memory_full_cons_threshold): New variable.
6103 (spare_memory): Now a vector of 7 elts.
6104 (buffer_memory_full): Don't set Vmemory_full here.
6105 (xfree): Don't try to refill here.
6106 (emacs_blocked_free): Record BYTES_USED in local var.
6107 (memory_full): Now free all the slots in spare_memory.
6108 (refill_memory_reserve): Allocate each slot in spare_memory.
6109 (init_alloc_once): Call refill_memory_reserve.
6110
6111 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
6112
6113 * eval.c (internal_lisp_condition_case): New function.
6114 (Fcondition_case): Use internal_lisp_condition_case.
6115 (Feval): Test Vmemory_full and memory_full_cons_threshold.
6116 (Ffuncall): Likewise.
6117
6118 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
6119
c390e28c
SM
61202005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
6121
6122 * syntax.c (Fparse_partial_sexp): Fix docstring.
6123
ab5d87b3
RF
61242005-10-28 Romain Francoise <romain@orebokech.com>
6125
c390e28c 6126 * puresize.h (BASE_PURESIZE): Increment to 1130000.
ab5d87b3 6127
107fb6c9
RS
61282005-10-28 Richard M. Stallman <rms@gnu.org>
6129
6130 * xfns.c (syms_of_xfns): Provide `x' as feature.
6131
6132 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
6133
6134 * editfns.c (Fformat): Don't include string padding
6135 between info[n].start and info[n].end.
6136
6137 * alloc.c (spare_memory): No longer static.
6138 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
6139
c390e28c 6140 * puresize.h (BASE_PURESIZE): Increment to 1120000.
107fb6c9 6141
f351b58b
CY
61422005-10-27 Chong Yidong <cyd@stupidchicken.com>
6143
c390e28c 6144 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
437610c5 6145
f351b58b
CY
6146 * fringe.c (update_window_fringes): Handle case where buffer ends
6147 with a newline.
6148
581e7427
KH
61492005-10-27 Kenichi Handa <handa@m17n.org>
6150
6151 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
6152
61532005-10-24 Kenichi Handa <handa@m17n.org>
6154
6155 * charset.h (charset_mule_unicode_0100_24ff)
6156 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
6157 Extern them.
6158
6159 * charset.c (charset_mule_unicode_0100_24ff)
6160 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
6161 New variables.
6162 (Fsetup_special_charsets): Initialize them.
6163
6164 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6165 supported Unicode characters.
6166
813fa8a8
JR
61672005-10-25 Jason Rumney <jasonr@gnu.org>
6168
6169 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
6170
05f7d868
YM
61712005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6172
6173 * image.c [MAC_OS] (image_load_qt_1): Check image size.
6174 Use GraphicsImportGetImageDescription instead of
6175 GraphicsImportGetNaturalBounds.
6176 [MAC_OSX] (image_load_quartz2d): Check image size.
6177 [MAC_OS] (xpm_load_image): Likewise.
6178
6179 * macterm.c (last_mouse_glyph_frame): New var.
6180 (note_mouse_movement): Say mouse moved if current frame differs
6181 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6182 (XTmouse_position): Set last_mouse_glyph_frame.
6183 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
29b585db 6184 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
05f7d868
YM
6185 Use EndianU16_BtoN.
6186 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
6187 (x_per_char_metric, XLoadQueryFont)
6188 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
6189 glyph bounds.
6190 (mac_to_x_fontname, mac_do_list_fonts)
6191 (mac_initialize_display_info): Change screen resolutions to 72dpi.
6192
128e729d
MY
61932005-10-25 Masatake YAMATO <jet@gyve.org>
6194
6195 * minibuf.c (Fdisplay_completion_list): Small doc fix.
6196
59017afb
KS
61972005-10-24 Kim F. Storm <storm@cua.dk>
6198
94717db1
KS
6199 * xterm.c: Undo 2005-10-23 change.
6200 (last_mouse_glyph_frame): New var.
6201 (note_mouse_movement): Say mouse moved if current frame differs
6202 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6203 (XTmouse_position): Set last_mouse_glyph_frame.
6204 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
6205 last_mouse_glyph] on mouse up/down event.
6206
59017afb
KS
6207 * editfns.c (Fcompare_buffer_substrings): Fix last change.
6208
7c5ba0d2
SM
62092005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6210
6211 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
6212
a4b0e228
JD
62132005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6214
6215 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
6216 so tool tips don't interfere with press on tool bar button.
6217
f6a18aa2
RS
62182005-10-23 Richard M. Stallman <rms@gnu.org>
6219
6220 * casetab.c (Fset_case_table): Doc fix.
6221
6222 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
6223 (readevalloop): Compute ENTIRE properly.
6224 (syms_of_lread) <load-history>: Doc fix.
6225
45158e77
RS
62262005-10-21 Richard M. Stallman <rms@gnu.org>
6227
6228 * lread.c (Fload): Simplify gcpro structure.
6229 Gcpro FOUND as well as FILE, but not EFOUND.
6230 Unless preloading, record FOUND instead of FILE in Vload_history.
6231 Rename repeat local FILE to MSG_FILE.
6232 (syms_of_lread) <load-history>: Doc fix.
6233
dfa1cd4d
KH
62342005-10-21 Kenichi Handa <handa@m17n.org>
6235
96664fc0 6236 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 6237
1064a9ea
KS
62382005-10-20 Kim F. Storm <storm@cua.dk>
6239
6240 * buffer.c (clone_per_buffer_values): Remove unused var tem.
6241 (init_buffer): Remove unused vars dotstat, pwdstat.
6242
6243 * ccl.c (check_ccl_update): Remove unused var vp.
6244
6245 * fileio.c (auto_save_error): Call SAFE_FREE.
6246
6247 * fns.c (Fchar_table_range): Remove unused var i.
6248
6249 * minibuf.c (display_completion_list_1): New wrapper function
6250 for Fdisplay_completion_list.
6251 (Fminibuffer_completion_help): Use it.
6252
6253 * term.c (encode_terminal_code): Remove unused var src_start.
6254
6255 * window.c (Fwindow_tree): Remove unused var alist.
6256
6257 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
6258
ce13796f
EZ
62592005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
6260
20b69789 6261 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
ce13796f 6262
ad9c16d3
EZ
62632005-10-20 Olli Savia <ops@iki.fi> (tiny change)
6264
6265 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
6266
26e9d2cf
AS
62672005-10-20 Andreas Schwab <schwab@suse.de>
6268
6269 * minibuf.c (Fdisplay_completion_list): Doc fix.
6270
e50165ec
KS
62712005-10-19 Kim F. Storm <storm@cua.dk>
6272
6273 * image.c (check_image_size): Handle integer Vmax_image_size value
6274 directly as max pixel value. Use default frame size for null frame.
6275 (syms_of_image) <max-image-size>: Describe integer value.
6276
d7b94c98
RF
62772005-10-19 Romain Francoise <romain@orebokech.com>
6278
6279 * emacs.c (main): Update copyright year.
6280
f1f25b99
CY
62812005-10-18 Chong Yidong <cyd@stupidchicken.com>
6282
6283 * image.c (Vmax_image_size): New variable.
6284 (check_image_size): New function.
6285 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
6286 (gif_load, gs_load): Use it.
6287 (lookup_image): Try loading again if previous load failed.
6288 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
6289 to display in, NULL if none.
6290 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
6291 argument.
6292
f42d19a2
RS
62932005-10-18 Richard M. Stallman <rms@gnu.org>
6294
6295 * search.c (Fstring_match): Doc fix.
6296
bcbdafce
YM
62972005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6298
6299 * macterm.c (note_mouse_movement): Use PtInRect.
6300 (XTread_socket): Also ignore mouse motion just before a button
6301 release event. Don't process button release event when mouse is
6302 not grabbed.
6303
f5fab556
MY
63042005-10-16 Masatake YAMATO <jet@gyve.org>
6305
6306 * minibuf.c (Fdisplay_completion_list): Add new optional
e5f64be2 6307 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
6308 to the optional argument during running `completion-setup-hook'.
6309
2ef1363e
YM
63102005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6311
6312 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
6313 Allow nil as argument.
6314 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
6315 for encoding arguments as UTF-16 in native byte order, no BOM.
6316
6317 * macfns.c (Fx_create_frame): Add debugging code.
6318 (Fx_show_tip): Set frame pixel width and height.
6319
6320 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
6321 (FRAME_NORMAL_GC): New macro.
6322 (mac_draw_line, mac_clear_area, mac_clear_window)
6323 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
6324 (mac_draw_image_string, mac_draw_image_string_16): Rename from
6325 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
6326 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
6327 All uses changed.
6328 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
6329 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
6330 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
6331 (mac_draw_string_16, mac_draw_image_string)
6332 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
6333 (mac_scroll_area): Drawing functions now take frame as destination.
6334 All uses changed.
6335 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
6336 (x_draw_fringe_bitmap): Set clipping area in face->gc.
6337
6338 * macterm.h (mac_clear_area): Add extern.
6339
fc5c7550
YM
63402005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6341
6342 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
6343 changes for xterm.c.
6344
6345 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
6346
fed91c38
KH
63472005-10-14 Kenichi Handa <handa@m17n.org>
6348
6349 * search.c (search_buffer): Give up BM search on case-fold-search
6350 if one of a target character has a case-equivalence of different
6351 charset even if that target charcter is an ASCII.
6352
6353 * casefiddle.c (casify_object): Fix for the case that case
6354 conversion change the byte length.
6355
0ea1a8af
KS
63562005-10-14 Kim F. Storm <storm@cua.dk>
6357
6358 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
6359 (handle_one_xevent): Only clear help_echo_string; restore it if
6360 note_mouse_movement didn't record any mouse movement.
6361
6362 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
6363 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
6364
647b07d1
AS
6365 * keyboard.c (make_lispy_position): Adjust wx for left margin if
6366 ON_TEXT.
0ea1a8af
KS
6367 (Fposn_at_x_y): Fix calculation of x coordinate.
6368 (Fposn_at_point): Return nil if point is hscrolled out of view.
6369
6e5b2385
AS
63702005-10-13 Andreas Schwab <schwab@suse.de>
6371
6372 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
6373 non-interactive mode.
6374
6de0e1a2
YM
63752005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6376
6377 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
6378
78f3b91f
KS
63792005-10-12 Kim F. Storm <storm@cua.dk>
6380
6381 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
6382
b639c9be
RF
63832005-10-12 Romain Francoise <romain@orebokech.com>
6384
6385 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
6386
76d8f04c
YM
63872005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6388
6389 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
6390 get end of text rows. Obtain header-line/mode-line rows directly.
6391
96013ba9
SM
6392 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
6393 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
621036f9 6394
d76432f5
KS
63952005-10-12 Kim F. Storm <storm@cua.dk>
6396
7a127784
KS
6397 * xdisp.c (remember_mouse_glyph): New generic version based on
6398 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
6399 properly handle all different window areas.
6400
6401 * dispextern.h (remember_mouse_glyph): Add prototype.
6402
6403 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
6404 (note_mouse_movement, XTmouse_position): Use generic
6405 remember_mouse_glyph, add last_mouse_glyph arg.
6406
6407 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
6408 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
6409 (note_mouse_movement, w32_mouse_position): Use generic
6410 remember_mouse_glyph, add last_mouse_glyph arg.
6411
6412 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
6413 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
6414 (XTmouse_position): Adapt to use generic remember_mouse_glyph
6415 instead of pixel_to_glyph_coords.
6416
d76432f5
KS
6417 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
6418 Fix x position for ON_TEXT when left margin width > 0.
6419
55a4ac3e
KS
64202005-10-11 Kim F. Storm <storm@cua.dk>
6421
d76432f5 6422 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
6423
6424 * keyboard.c (make_lispy_position): Fix buffer calculations for
6425 mouse click or movement in right fringe and the margins.
6426
2d4713aa
JB
64272005-10-11 Juanma Barranquero <lekktu@gmail.com>
6428
6429 * image.c (fn_jpeg_stdio_src): Don't define it.
6430 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
6431 (our_common_init_source): Rename from `our_init_source'.
6432 (our_common_term_source): Rename from `our_term_source'.
6433 (our_memory_fill_input_buffer): Rename from
6434 `our_fill_input_buffer'.
6435 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
6436 (jpeg_memory_src): Use the new names.
6437 (struct jpeg_stdio_mgr): New struct.
6438 (JPEG_STDIO_BUFFER_SIZE): New constant.
6439 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
6440 (jpeg_file_src): New functions.
6441 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
6442
71b7a47f
YM
64432005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6444
6445 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
6446 (fm_font_family_alist): New variable.
6447 (syms_of_macterm): Initialize and staticpro it.
6448 (decode_mac_font_name): Replace '-' in family name with '_' if it
6449 occurs just once. Lower family name.
6450 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
6451 All uses changed. Remove argument MF and code conversion for it.
6452 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
6453 to CHARSET. Parse font size. Lower family name. Return integer
6454 value for status of parsing.
6455 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
6456 Don't use Fdowncase because family name is already lowered by
6457 decode_mac_font_name.
96013ba9
SM
6458 (init_font_name_table): Always call decode_mac_font_name.
6459 Add pair of family name and its reference to fm_font_family_alist.
71b7a47f
YM
6460 (mac_clear_font_name_table): Clear fm_font_family_alist.
6461 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
6462 Lookup fm_font_family_alist to get font family reference.
6463 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
6464 name is already lowered by parse_x_font_name.
6465
74051a92
KS
64662005-10-11 Kim F. Storm <storm@cua.dk>
6467
31ab1f05
KS
6468 * xterm.c (glyph_rect): Return 0 if position is outside text area.
6469
74051a92
KS
6470 * keyboard.c (make_lispy_position): Fix buffer position calculation for
6471 mouse click or movement in fringe.
6472
9b909870
JR
64732005-10-10 Jason Rumney <jasonr@gnu.org>
6474
6475 * xterm.c (remember_mouse_glyph): New function.
58af5591 6476 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 6477 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 6478 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 6479
f9e36a6d
JD
64802005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6481
58af5591 6482 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 6483
04bc7945
JB
64842005-10-10 Juanma Barranquero <lekktu@gmail.com>
6485
6486 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
6487 (next_frame, prev_frame, set_term_frame_name): Make static.
6488
6489 * window.c (Fwindow_tree): Fix spelling.
6490
41791a20
RF
64912005-10-09 Romain Francoise <romain@orebokech.com>
6492
6493 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
6494
e313fc07
JD
64952005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6496
58af5591
KS
6497 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
6498 Add options -nb, --no-bitmap-icon.
e313fc07
JD
6499
6500 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
6501
61e62f5f
YM
65022005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6503
6504 * macgui.h (MAX_CLIP_RECTS): New define.
6505 (struct _XGC): New member clip_region.
6506 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
6507 clip_rects.
6508
6509 * macterm.c (GC_CLIP_REGION): New macro.
6510 (saved_port_clip_region): New variable.
6511 (mac_begin_clip, mac_end_clip): New functions.
6512 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
6513 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
6514 (mac_copy_area_with_mask, mac_scroll_area): Use them.
6515 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
6516 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
6517 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
6518 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
6519 rectangles stored in gc.
71b7a47f 6520 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
6521 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
6522 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
6523 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
6524 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
6525 (x_draw_bar_cursor): Use them.
6526 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
6527 get multiple clipping rectangles.
6528
6529 * macterm.h (mac_term_init): Add types to extern.
6530 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 6531 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
6532 scroll_bar_background_pixel in #if 0.
6533 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
6534
6535 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 6536 Add debugging code.
61e62f5f 6537
ef1b4c9e
KS
65382005-10-08 Kim F. Storm <storm@cua.dk>
6539
6540 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
6541
f1010549
KS
65422005-10-07 Kim F. Storm <storm@cua.dk>
6543
6544 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
6545 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
6546 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
6547
c2ded1b7
YM
65482005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6549
6550 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
6551 to for_overlaps. Now occupy 3 bits.
6552 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
6553 (OVERLAPS_ERASED_CURSOR): New defines.
6554 (struct redisplay_interface): Add new OVERLAPS arg to member
6555 fix_overlapping_area.
6556 (x_fix_overlapping_area): Add new OVERLAPS arg.
6557 (get_glyph_string_clip_rects): Add extern.
6558
96013ba9
SM
6559 * dispnew.c (redraw_overlapping_rows):
6560 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
c2ded1b7
YM
6561
6562 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
6563 for_overlaps.
6564 (get_glyph_string_clip_rects): New function created from
f1010549
KS
6565 get_glyph_string_clip_rect. Set clipping rectangles according to the
6566 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
6567 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
6568 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
6569 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 6570 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 6571 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
6572 calculating clipping rectangles later. Call x_fix_overlapping_area
6573 with new OVERLAPS arg to draw only erased cursor area.
f7270128 6574 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 6575 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
6576
6577 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
6578 struct glyph_string to for_overlaps.
6579
a19a0003
RS
65802005-10-04 Richard M. Stallman <rms@gnu.org>
6581
6582 * alloc.c (refill_memory_reserve): Conditionalize the body,
6583 not the function's existence.
6584
abc8ce50
KS
65852005-10-04 Kim F. Storm <storm@cua.dk>
6586
6587 * window.c (window_split_tree): New function.
6588 (Fwindow_split_tree): New defun.
6589 (syms_of_window): Defsubr it.
6590
66533b25
YM
65912005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6592
6593 * macterm.c (mac_invert_rectangle): New function.
6594 (XTflash): Use it.
6595
4156359e
SM
65962005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
6597
4e2f601f
SM
6598 * regex.h (re_char): Don't expose it in the interface.
6599 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
6600
6601 * regex.c (re_char): Move it back here.
6602 (re_set_whitespace_regexp): Change the arg's type to not use it.
6603
4156359e
SM
6604 * keyboard.c (make_lispy_event): If point has moved between down and up
6605 event, make it a drag, not a click, to mirror what
6606 mouse-drag-region expects.
6607
eb27c2ca
DN
66082005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6609
6610 * lisp.h (fatal): Undo previous change.
6611 * term.c (fatal): Undo previous change.
6612
b059f7d0
RS
66132005-10-01 Richard M. Stallman <rms@gnu.org>
6614
6615 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
6616
21a9a7be
KS
66172005-10-01 Kim F. Storm <storm@cua.dk>
6618
6619 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
6620
ddcb7665
YM
66212005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6622
6623 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
6624
6625 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 6626 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
6627 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
6628 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
6629
6630 * macgui.h (struct _XCharStruct): New member valid_p.
6631 (STORE_XCHARSTRUCT): Set valid_p.
6632 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
6633
6634 * macterm.c (mac_draw_string_common, x_per_char_metric)
6635 (mac_compute_glyph_string_overhangs, init_font_name_table)
6636 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
6637 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
6638 (x_draw_glyph_string_background)
6639 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
6640 XDrawImageString. Always draw background and foreground separately.
6641 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
6642 functions for one-byte chars when using ATSUI-compatible fonts.
6643 (atsu_font_id_hash) [USE_ATSUI]: New variable.
6644 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
6645 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
6646 max_char_or_byte2 more in detail.
6647 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
6648
fa8459a3
DN
66492005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
6650
4156359e 6651 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
6652 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
6653
6654 * unexelf.c (fatal): Fix prototype.
6655
6656 * term.c (fatal): Implement using varargs.
6657
21a9a7be 6658 * regex.c (re_char): Move typedef ...
fa8459a3 6659 * regex.h (re_char): ... here.
4156359e 6660 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
6661
6662 * emacs.c (malloc_set_state): Fix return type.
6663 (endif): Fix type.
6664
6665 * lisp.h (fatal): Add argument types.
6666
6667 * dispextern.h (fatal): Delete prototype.
6668
9dd28cae 6669 * systime.h (make_time): Prototype moved from ...
fa8459a3
DN
6670 * editfns.c (make_time): ... here.
6671
6672 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
6673 * dired.c:
6674 * xsmfns.c:
fa8459a3 6675 * process.c: Likewise.
21a9a7be 6676
fa8459a3
DN
6677 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
6678 Add parameter types.
6679 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
6680 (emacs_blocked_free): Change definition to match __free_hook.
6681 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 6682 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 6683
97c3e4cc
RF
66842005-09-30 Romain Francoise <romain@orebokech.com>
6685
6686 * minibuf.c (Fread_buffer): Follow convention for reading from the
6687 minibuffer with a default value. Doc fix.
6688
8ad8c5ce
JL
66892005-09-29 Juri Linkov <juri@jurta.org>
6690
6691 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
6692 Rename argument name `string' to `format-string'.
6693 (Fformat): Doc fix.
6694
64da5759
KS
66952005-09-28 Kim F. Storm <storm@cua.dk>
6696
6697 * image.c (gif_load): Fix size of allocated image buffer
6698 for images where a sub-image may be larger than the image's
6699 total height/width specifications.
6700
eaf92438
YM
67012005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6702
6703 * macgui.h (struct _XCharStruct): Each member now takes short value.
6704
43f15d4a
DN
67052005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
6706
6707 * xfaces.c (lookup_derived_face): Add parameter type.
6708
6709 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
6710
6711 * marker.c (verify_bytepos): Add parameter type.
6712
6713 * process.c (get_operating_system_release): Move prototype ...
6714
6715 * systime.h (get_operating_system_release): ... here.
6716
04bc7945
JB
6717 * xterm.c (handle_one_xevent): Refer to union field to match the
6718 type required by the function definition.
6719 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
6720
6721 * xterm.h: ... here.
6722
6723 * fns.c (internal_equal, seed_random): Fix prototypes.
6724 (internal_equal): Add missing parameter.
6725
c769dcac
RS
67262005-09-25 Richard M. Stallman <rms@gnu.org>
6727
6728 * keyboard.c (update_menu_bindings): Variable deleted.
6729 (syms_of_keyboard): Don't defvar it.
6730 (parse_menu_item): Don't test it.
6731
8dbf19c7
RS
67322005-09-23 Richard M. Stallman <rms@gnu.org>
6733
6734 * editfns.c (Fformat): Explicitly test for end of format string
6735 and don't use `index'.
6736
3480d92b
DN
67372005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
6738
4156359e
SM
6739 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
6740 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
6741
6742 * sysdep.c (get_current_dir_name): Also define if
64da5759 6743 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
6744
6745 * m/ibmrs6000.h: Test for USG5, not USG5_4.
6746
5db60f31
KS
67472005-09-22 Kim F. Storm <storm@cua.dk>
6748
6749 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
6750 (message2): Fix commentary. Ok to use alloca'ed memory.
6751 Still not ok to use Lisp string data (because of GC).
6752 (set_message): Add comment why GC cannot happen.
6753
7c3d233d
YM
67542005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6755
6756 * macterm.c (xlfdpat_block_match_1): Fix assertion.
6757 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
6758 variants for a scalable font multiple times.
6759
acde1152
YM
67602005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6761
6762 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
6763 Setup slave tty options before forking.
6764
52d166e0
JD
67652005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6766
6767 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
6768 positions have been set for the frame (as is done for frames in
6769 special-display-buffer-names).
6770
12d10bc7
KS
67712005-09-19 Kim F. Storm <storm@cua.dk>
6772
6773 * editfns.c (Fformat): Don't scan past end of format string that
6774 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
6775
9f1cf0e3
AS
67762005-09-18 Andreas Schwab <schwab@suse.de>
6777
6778 * window.h (struct window): Remove height_fixed_p, no longer set.
6779
6780 * window.c (make_window): Don't initialize height_fixed_p.
6781 (window_fixed_size_p): Don't use it.
6782
8a658a52
JPW
67832005-09-18 John Paul Wallington <jpw@pobox.com>
6784
6785 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
6786
be9bb408
YM
67872005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6788
6789 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
6790
6791 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
6792 New variables.
6793 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
6794 file selection.
6795
6796 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
6797
cbf223e1
EZ
67982005-09-17 Eli Zaretskii <eliz@gnu.org>
6799
6800 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
6801 (obj): Use XMENU_OBJ, not a literal xmenu.o.
6802
e3f509dd
RF
68032005-09-16 Romain Francoise <romain@orebokech.com>
6804
8ccd3630 6805 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 6806
5c4757d3
RS
68072005-09-15 Richard M. Stallman <rms@gnu.org>
6808
6809 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
6810 (display_mode_element): Instead of `lisp_string' and `this',
6811 record `offset' and increment that.
6812 `last_offset' replaces `last'.
6813
6814 * Makefile.in (XMENU_OBJ): Variable deleted.
6815 (obj): Use xmenu.o unconditionally.
6816 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
6817
6818 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
6819
01978521
KS
68202005-09-15 Kim F. Storm <storm@cua.dk>
6821
6822 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
6823 (reseat_at_next_visible_line_start): Likewise (in xassert).
6824
ccf61795
RF
68252005-09-14 Romain Francoise <romain@orebokech.com>
6826
6827 * fileio.c (write_region_inhibit_fsync): New variable.
6828 (Fwrite_region): Use it to skip call to fsync.
6829 (syms_of_fileio): Initialize it.
6830
2b046a72
KH
68312005-09-14 Kenichi Handa <handa@m17n.org>
6832
24a2b282
KH
6833 * coding.c (code_convert_region_unwind): Argument format changed.
6834 (run_pre_post_conversion_on_str): If pre-write-conversion function
6835 changed the current buffer, delete the new buffer.
6836 (run_pre_write_conversin_on_c_str): Likewise.
6837
2b046a72
KH
6838 * fileio.c (Fexpand_file_name): Check multibyteness of
6839 default_directory.
6840
d008f7b7
KH
68412005-09-13 Kenichi Handa <handa@m17n.org>
6842
6843 * composite.c (compose_chars_in_text): Delete it.
6844
6845 * composite.h (compose_chars_in_text): Delete extern.
6846
2ada8ac5
KS
68472005-09-13 Kim F. Storm <storm@cua.dk>
6848
6849 * print.c (print_error_message): Fix last change.
6850
48c60938
KS
68512005-09-12 Kim F. Storm <storm@cua.dk>
6852
0fdbe302
KS
6853 * composite.c (compose_chars_in_text): Fix setup of `pend'.
6854 Unconditionally reload `ptr' and `pend' after eval.
6855
48c60938
KS
6856 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
6857
6858 * print.c (print_error_message): Pass copy of caller name to
6859 message_dolog.
6860
6861 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
6862
5add1986
KH
68632005-09-12 Kenichi Handa <handa@m17n.org>
6864
6865 * xdisp.c (display_mode_element): Be sure to make variables THIS
6866 and LISP_STRING point into a string data of ELT.
6867
18bb66c7
KS
68682005-09-12 Kim F. Storm <storm@cua.dk>
6869
6870 * editfns.c (Ftranslate_region_internal): Reload `tt' after
6871 signal_after_change that may have GC'ed.
6872 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
6873
6874 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
6875 after insert while runs signal_after_change.
6876
6877 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
6878 declaration to where it is used.
6879
6880 * w32.c (check_windows_init_file): Fix allocation of error buffer.
6881
6882 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
6883 (x_set_name_internal): Call x_encode_text with new FREEP arg to
6884 know if xfree is needed instead of guessing.
6885
6886 * xterm.h (x_encode_text): Remove prototype.
6887
945a75f8
JR
68882005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
6889
6890 * w32term.c (x_bitmap_icon): Load small icons too.
6891
156bdb41
RF
68922005-09-10 Romain Francoise <romain@orebokech.com>
6893
6894 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 6895 and terminal zero. Fix typos.
156bdb41 6896
67b8391b
EZ
68972005-09-10 Eli Zaretskii <eliz@gnu.org>
6898
a17b5ed1
EZ
6899 * buffer.c (init_buffer): Fix error message for failed call to
6900 get_current_dir_name.
6901 (get_current_dir_name): Remove prototype.
6902
9dd28cae 6903 * xsmfns.c (get_current_dir_name): Remove prototype.
a17b5ed1 6904
9dd28cae 6905 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
96013ba9 6906 Add prototype.
a17b5ed1 6907
ed326e35 6908 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 6909 Don't #undef NULL after including blockinput.h.
ed326e35 6910
67b8391b
EZ
6911 * config.in: Regenerated.
6912
c187839d
EZ
69132005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
6914
6915 Remove the MAXPATHLEN limitations:
6916
1486d036
EZ
6917 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
6918 New function.
c187839d
EZ
6919
6920 * buffer.c (init_buffer): Use it.
6921
6922 * xsmfns.c (smc_save_yourself_CB): Ditto.
6923
ae8a5689
KS
69242005-09-09 Kim F. Storm <storm@cua.dk>
6925
39cac6b3
KS
6926 * doc.c (Fsubstitute_command_keys): Lookup key binding for
6927 commands that are remapped from some other command.
6928
aeb55c44
KS
6929 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
6930 flag in disabled rows below the window.
6931
ae8a5689
KS
6932 * frame.h (struct frame): New member updated_p.
6933
6934 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
6935 member. Remove local `updated' array and associated variables.
6936
821f6dae
KS
69372005-09-07 Kim F. Storm <storm@cua.dk>
6938
6e5395f2
KS
6939 * xdisp.c (handle_display_prop): Respect overlay window property.
6940
821f6dae
KS
6941 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
6942 Fixes crash reported by YAMAMOTO Mitsuharu.
6943
9655b404
YM
69442005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6945
6946 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
6947 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
6948 (xlfdpat_block_match_1, xlfdpat_match): New functions.
6949 (xlfdpat_block_match): New macro.
6950 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
6951 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
6952 (add_font_name_table_entry): Increase font_name_table_size more
6953 rapidly.
6954 (mac_c_string_match): Remove function.
6955 (mac_do_list_fonts): Use XLFD pattern match instead of regular
6956 expression match.
6957
6958 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
6959
d7ea8b71
RS
69602005-09-03 Richard M. Stallman <rms@gnu.org>
6961
6962 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
6963 (move_it_in_display_line_to): Stop after last char on line even
6964 on a windowing terminal, if that's the specified stop position.
6965
6966 * fns.c (Fsort): Doc fix.
6967
6968 * editfns.c (Fpropertize): Don't insist that properties be symbols.
6969
1550ae60
SM
69702005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
6971
6972 * dired.c (directory_files_internal_unwind, directory_files_internal)
6973 (file_name_completion): Use a Save_Value object rather than a cons of
6974 two 16bit ints to store the DIR*.
6975 (directory_files_internal, file_name_completion): Handle both EINTR and
6976 EAGAIN consistently after `readdir'.
6977
bdb4d6d8
SM
69782005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
6979
1550ae60
SM
6980 * intervals.c (update_interval): Add position info in error.
6981
bdb4d6d8
SM
6982 * dispnew.c (window_to_frame_hpos, update_window):
6983 Avoid gcc warning about unused variable `f'.
6984
6bcc3ca4
JR
69852005-08-31 Jason Rumney <jasonr@gnu.org>
6986
6987 * w32menu.c (add_menu_item): If unicode_append_menu returns an
6988 error, revert to using AppendMenu.
6989
07c5948c
YM
69902005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6991
bdb4d6d8
SM
6992 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
6993 All uses changed.
07c5948c
YM
6994 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
6995 cases.
6996 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
6997 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
6998 Use posix_pathname_to_fsspec.
07c5948c
YM
6999 [MAC_OS] (xpm_load_image): Fill in background_transparent field
7000 while we have mask.
7001
7002 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
7003
7004 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
7005
5a774522
SM
70062005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7007
7008 * syntax.c (update_syntax_table): Properly reproduce the special +1
7009 setting of e_property at the end of the buffer when bumping into the
7010 INTERVALS_AT_ONCE limit.
7011
0fb57cc0
EZ
70122005-08-27 Eli Zaretskii <eliz@gnu.org>
7013
7014 * emacs.c (USAGE1): Fix the description of the -Q option.
7015
5a774522
SM
70162005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
7017
7018 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
7019
4e6b8c5a
KS
70202005-08-26 Kim F. Storm <storm@cua.dk>
7021
7022 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
7023 Don't move PT to new window start.
7024
1f98fbb4
YM
70252005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7026
7027 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
7028 ICONIFY/DEICONIFY_EVENT.
7029
5a774522
SM
7030 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
7031 Restore background color.
1f98fbb4
YM
7032 (mac_handle_visibility_change): New function.
7033 (x_make_frame_invisible, x_iconify_frame)
7034 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
7035 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 7036 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
7037 (x_make_frame_visible): Don't reposition window if it is iconified
7038 or asked for visible before. Select and uncollapse window when it
7039 is made visible.
7040 (x_make_frame_invisible): Don't reset x_highlight_frame.
7041 (x_iconify_frame): Likewise. Make invisible frame visible before
7042 it is iconified.
7043 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
7044 (do_window_update): Don't change visibility of invisible frame.
7045
16691d29
JL
70462005-08-22 Juri Linkov <juri@jurta.org>
7047
7048 * term.c (turn_on_face): Check for TS_set_foreground and
7049 TS_set_background depending on standout_mode. Simplify.
7050
7c3f805b
KS
70512005-08-21 Kim F. Storm <storm@cua.dk>
7052
0f467468
KS
7053 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
7054 bitmaps on fully visible rows.
7055
7c3f805b
KS
7056 * fringe.c (update_window_fringes): Replace FORCE_P arg with
7057 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
7058 and return 0.
7059
7060 * xdisp.c (redisplay_window): Call update_window_fringes with
7061 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
7062
40b388f9
RS
70632005-08-20 Richard M. Stallman <rms@gnu.org>
7064
7065 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
7066 (resize_mini_window): Set w->start, and PT, so as to display the tail
7067 end of the buffer, if it doesn't all fit.
7068
581360f0
KS
70692005-08-18 Kim F. Storm <storm@cua.dk>
7070
7071 * xdisp.c (calc_pixel_width_or_height): Use actual display
7072 resolution when available instead of Vdisplay_pixels_per_inch.
7073
0eefa6fb
KS
70742005-08-17 Kim F. Storm <storm@cua.dk>
7075
7076 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
7077
7078 * dispnew.c (buffer_posn_from_coords): Check that target row is
7079 within matrix.
7080
ada192ba
JD
70812005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7082
7083 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
7084 xg_set_frame_icon and call it.
7085
7086 * gtkutil.c (xg_set_frame_icon): New function.
7087
0eefa6fb 7088 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 7089
ab89a403
KS
70902005-08-16 Kim F. Storm <storm@cua.dk>
7091
7092 * dispnew.c (increment_row_positions): Skip non-enabled rows.
7093
7094 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
7095 (Fcurrent_window_configuration): Use VECSIZE macro instead.
7096
8d34b5e1
RS
70972005-08-15 Richard M. Stallman <rms@gnu.org>
7098
7099 * xdisp.c (message3_nolog): Clear echo_message_buffer.
7100
71e37f3c
KS
71012005-08-15 Kim F. Storm <storm@cua.dk>
7102
0781c303
KS
7103 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
7104
71e37f3c
KS
7105 * process.c (deactivate_process, status_notify, read_process_output)
7106 (update_status, status_convert, decode_status, allocate_pty)
7107 (make_process, remove_process, list_processes_1)
7108 (create_process_1, unwind_request_sigio, read_process_output)
7109 (send_process, keyboard_bit_set): Declare static.
7110 (Fdelete_process): Simplify. Pass process to status_notify, so we
7111 don't try to read output from it.
7112 (status_notify): New arg deleting_process--don't try to read
7113 output from that process.
7114
7115 * lisp.h (deactivate_process, status_notify, read_process_output):
7116 Remove prototypes.
7117
0bf14bfd
RS
71182005-08-14 Richard M. Stallman <rms@gnu.org>
7119
bdb4d6d8
SM
7120 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
7121 define_image_type.
0bf14bfd 7122
6c7eb721
JD
71232005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7124
7125 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
7126 (xg_get_image_for_pixmap): Move some code to
7127 xg_get_pixbuf_from_pix_and_mask, and call it.
7128
7129 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
7130
7131 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
7132 to get an GTK icon and set it with GTK functions to avoid having GTK
7133 override an icon set with just X functions.
7134
6e2d14c8
RS
71352005-08-11 Richard M. Stallman <rms@gnu.org>
7136
bdb4d6d8
SM
7137 * image.c (syms_of_image): Init image_types here, and call
7138 define_image_type.
6e2d14c8
RS
7139 (init_image): Not here.
7140
61298e17
RS
71412005-08-09 Richard M. Stallman <rms@gnu.org>
7142
7143 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
7144
7145 * lisp.h (QUIT): Throw t to Vthrow_on_input.
7146
5a9807a8
TTN
71472005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
7148
7149 * floatfns.c (Fexpt): Use floats for negative exponent.
7150
93469010
JD
71512005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7152
7153 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
7154 should not be there, causing menu display errors with GTK 2.6.9.
7155
44edd521
RS
71562005-08-07 Richard M. Stallman <rms@gnu.org>
7157
8b6a9551
RS
7158 * floatfns.c (Fexpt): Undo previous change.
7159
44edd521
RS
7160 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
7161 so it can be used with various state vectors.
7162
7163 * emacs.c (endif): Convert -script into -scriptload.
7164 (standard_args): Add -scriptload. Allow -basic-display with one dash.
7165
7166 * fns.c (syms_of_fns): Add `emacs' to features.
7167
7168 * term.c (set_terminal_modes): If no TS_termcap_modes string,
7169 output newlines to scroll the old screen contents off the screen.
7170
cac87e30
TTN
71712005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
7172
2a205424
TTN
7173 * floatfns.c (Fexpt): Use floats for negative exponent.
7174 Reported by D Goel.
cac87e30 7175
31b7cc74
JB
71762005-08-02 Richard M. Stallman <rms@gnu.org>
7177
7178 * frame.c (Fframe_char_width): Doc fix.
7179
e2b64074
JB
71802005-07-30 Juanma Barranquero <lekktu@gmail.com>
7181
7182 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
7183 Defvar it.
7184
0962822d
JB
71852005-07-28 Juanma Barranquero <lekktu@gmail.com>
7186
7187 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
7188 (my_create_window, my_create_tip_window): Make static.
7189
7190 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
7191 (my_set_foreground_window, my_destroy_window): Make static.
7192
9eff9fe3
PE
71932005-07-26 Paul Eggert <eggert@cs.ucla.edu>
7194
7195 Merge gnulib getopt implementation into Emacs.
7196
7197 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
7198 now part of lib-src.
7199
1c9916a1
SM
72002005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
7201
7202 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
7203
94c7f257
JR
72042005-07-25 Jason Rumney <jasonr@gnu.org>
7205
7206 * w32menu.c (w32_menu_display_help): Suppress tooltip when
7207 navigating menus with the keyboard.
7208
bf0bf758
RS
72092005-07-23 Richard M. Stallman <rms@gnu.org>
7210
7211 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
7212
7213 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
7214 gc_relative_threshold, one by one.
7215
7216 * keyboard.c (read_char): Test gc_cons_threshold.
7217 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
7218
7219 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
7220 gc_relative_threshold, one by one.
7221
7222 * alloc.c (gc_cons_threshold): Not static.
7223 (gc_cons_combined_threshold): Var deleted.
7224 (gc_relative_threshold): New variable.
7225 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
7226 instead of gc_cons_combined_threshold.
7227
1c9916a1 7228 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
7229 (gc_cons_combined_threshold): Declaration deleted.
7230
99f963e4
YM
72312005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7232
7233 * mac.c: Don't include stdlib.h or string.h.
7234 (Fdo_applescript, Fmac_file_name_to_posix)
7235 (Fmac_file_name_to_posix): Doc fixes.
7236 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
7237 (Fmac_code_convert_string): Likewise.
7238 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
7239 if the executable is not contained in a bundle.
7240
7241 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
7242 (gray_width, gray_height): Remove defines.
7243 (gray_bits, gray_bitmap_width, gray_bitmap_height)
7244 (gray_bitmap_bits): Remove variables.
7245 (lispy_function_keys): Remove extern.
7246 (free_frame_menubar): Add extern.
7247 (x_window_to_frame): Remove function.
7248 (unwind_create_tip_frame): Add declaration.
7249 (x_set_name_internal): New function.
7250 (x_set_name, x_set_title): Use it.
7251 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
7252 (Fx_display_pixel_height, Fx_display_planes)
7253 (Fx_display_color_cells, Fx_server_max_request_size)
7254 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7255 (Fx_display_mm_height, Fx_display_mm_width)
7256 (Fx_display_backing_store, Fx_display_visual_class)
7257 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
7258
7259 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
7260
bdb4d6d8 7261 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
7262 (Fx_get_selection_internal, Fx_selection_owner_p)
7263 (Fx_selection_exists_p): Doc fixes.
7264 (syms_of_macselect) <selection-converter-alist>: Likewise.
7265
1d256714
JB
72662005-07-21 Juanma Barranquero <lekktu@gmail.com>
7267
7268 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
7269
7270 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
7271 (Fccl_execute_on_string): Likewise; add usage info.
7272
7273 * composite.c (Fcompose_region_internal)
7274 (Fcompose_string_internal):
7275 Improve argument/docstring consistency.
7276
7277 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
7278 Fix typos in docstrings.
7279
7280 * textprop.c (Fnext_char_property_change)
7281 (Fprevious_char_property_change): Doc fixes.
7282
7283 * window.c (Fset_window_margins, Fset_window_fringes):
7284 Improve argument/docstring consistency.
7285
7286 * xfaces.c (Finternal_lisp_face_p): Doc fix.
7287
538f78c3
AS
72882005-07-21 Andreas Schwab <schwab@suse.de>
7289
7290 * eval.c (restore_stack_limits): Return a value.
7291
a5b5bf44
JB
72922005-07-20 Juanma Barranquero <lekktu@gmail.com>
7293
7294 * eval.c (Fdefvar): Doc fix.
7295
ae643123
KS
72962005-07-20 Kim F. Storm <storm@cua.dk>
7297
0ed4bf15
KS
7298 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
7299 Use make_save_value to unwind protect stream.
7300
7301 * lread.c (Fload, load_unwind):
7302 Use make_save_value to unwind protect stream.
ae643123 7303
82fc29a1
JB
73042005-07-19 Juanma Barranquero <lekktu@gmail.com>
7305
7306 * eval.c (Fprog2, Fcalled_interactively_p),
7307 (syms_of_eval) <debug-on-quit>: Doc fixes.
7308 (syms_of_eval) <max-specpdl-size>:
7309 (Finteractive_p): Fix typos in docstrings.
7310
73b90087
KS
73112005-07-19 Kim F. Storm <storm@cua.dk>
7312
7313 * w32fns.c (Vx_hand_shape): Variable removed.
7314 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
7315
dfc434d0
KH
73162005-07-19 Kenichi Handa <handa@m17n.org>
7317
bdb4d6d8 7318 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 7319
bcd98331
SM
73202005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
7321
7322 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
7323
2a85a754
KS
73242005-07-18 Kim F. Storm <storm@cua.dk>
7325
7326 * frame.h (struct frame): New member already_hscrolled_p.
7327
7328 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
7329 to avoid redisplay looping hscrolling back and forth ad infinitum.
7330
426179e1
JL
73312005-07-18 Juri Linkov <juri@jurta.org>
7332
7333 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
7334 * keymap.c (Fminor_mode_key_binding):
7335 * macterm.c (mac-emulate-three-button-mouse):
7336 Delete duplicate duplicate words.
7337
9f4a578d
KR
73382005-07-18 Ken Raeburn <raeburn@gnu.org>
7339
7340 * minibuf.c (Ftest_completion): Fix odd syntax in test.
7341
d005338b
YM
73422005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7343
bcd98331 7344 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
7345
7346 * macgui.h (struct _XGC): New struct.
7347 (GC): Use it.
7348 (GCForeground, GCBackground, GCFont): Use X11 mask values.
7349 (XCreateGC, XParseGeometry): Move externs to macterm.h.
7350
bcd98331 7351 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 7352 (XSetFont): Add declaration.
bcd98331
SM
7353 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
7354 Remove functions.
7355 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
7356 New defines.
d005338b
YM
7357 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
7358 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
7359 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
7360 Use them.
d005338b
YM
7361 (mac_erase_rectangle): New function.
7362 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
7363 (x_draw_stretch_glyph_string): Use it.
7364 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
7365 (XSetBackground, XSetFont): Adjust for new GC implementation.
7366 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
7367 (XTset_vertical_scroll_bar): Clear area under scroll bar.
7368
7369 * macterm.h (struct mac_display_info): Change types of
7370 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
7371 (XCreateGC, XParseGeometry): Move externs from macgui.h.
7372
7373 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
7374
9b0c2c56
RS
73752005-07-16 Richard M. Stallman <rms@gnu.org>
7376
7377 * buffer.c (Fmake_overlay): Doc fix.
7378
2e9c1c6d
EZ
73792005-07-16 Eli Zaretskii <eliz@gnu.org>
7380
7381 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
7382 Vw32_valid_locale_ids, and Vw32_valid_codepages.
7383
407289a4
YM
73842005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7385
bcd98331
SM
7386 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
7387 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 7388
e4b477a1
RS
73892005-07-15 Richard M. Stallman <rms@gnu.org>
7390
7391 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
7392
a8613adf
KS
73932005-07-15 Kim F. Storm <storm@cua.dk>
7394
7395 * xdisp.c: Fix redisplay loop in last change.
7396 (IT_POS_VALID_AFTER_MOVE_P): New macro.
7397 (move_it_vertically_backward, move_it_by_lines): Use it.
7398
2d5324c5
JR
73992005-07-14 Jason Rumney <jasonr@gnu.org>
7400
7401 * w32.c (init_environment): Default HOME directory to user's
7402 appdata directory if possible.
7403
3ed70dc4
KS
74042005-07-14 Kim F. Storm <storm@cua.dk>
7405
7b9389b0
KS
7406 * .gdbinit (pitx): Fix output format. Print string charpos.
7407
3ed70dc4
KS
7408 * lread.c (syms_of_lread): Initialize seen_list.
7409
7410 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
7411
7412 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
7413 Staticpro re_match_object.
7414
ef029e5a
YM
74152005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7416
7417 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
7418 dereference.
7419
7420 * macterm.c (mac_window_to_frame): Remove duplicate define.
7421
16ef9c56
KH
74222005-07-14 Kenichi Handa <handa@m17n.org>
7423
7424 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 7425 (code_convert_region): Adjust for the above change.
16ef9c56
KH
7426 (set_conversion_work_buffer): If the work buffer is already in
7427 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 7428 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
7429 (run_pre_write_conversin_on_c_str): Likewise.
7430
098e1273
KS
74312005-07-13 Kim F. Storm <storm@cua.dk>
7432
010b9a45
KS
7433 * xdisp.c (start_display): Don't reseat to next visible line start
7434 if current start position is in a string or image.
7435 (move_it_vertically_backward): Be sure to move out of strings and
7436 images when moving it2 forward.
7437 (move_it_by_lines): When moving forward, move to next buffer
7438 position if we end up in a string or image. When moving backward,
7439 count rows moved over when moving to start of current row in case
7440 row starts in middle of a string or image. Also move further
7441 backward if we end up in a string or image.
bcd98331 7442 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
7443 move backward to set cursor on start of an overlay string.
7444 (cursor_row_p): Row is ok if cursor is at newline from string, but
7445 string starts on this line (so we always position cursor at start
7446 of string).
7447
7448 * indent.c (Fvertical_motion): If start position is on an image,
7449 don't move back if we move too far (that's almost certain to happen).
7450
098e1273
KS
7451 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
7452 row in minibuffer windows.
7453 (try_window): Don't check margins in minibuffer windows.
7454
c229fb15
YM
74552005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7456
7457 * macterm.c: Don't include stdlib.h or composite.h.
7458 (x_use_underline_position_properties, last_mouse_press_frame)
7459 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
7460 (syms_of_macterm, mac_initialize): Don't initialize them.
7461 (waiting_for_input, initial_argv, initial_argc)
7462 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
7463 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
7464 (extra_keyboard_modifiers): Fix type in extern.
7465 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
7466 (x_scroll_bar_report_motion): Add argument types to declaration.
7467 (mac_compute_glyph_string_overhangs): Add declaration.
7468 (disable_mouse_highlight): Remove unused variable.
7469 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
7470 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
7471 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
7472 All callers changed.
c229fb15
YM
7473 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
7474 timestamp.
7475 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
7476 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
7477 only when its width is less than the height.
7478 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
7479 (font_name_table, font_name_table_size, font_name_count):
7480 Make static.
c229fb15
YM
7481 (drag_and_drop_file_list): Remove variable. Previous use is now
7482 local to function.
7483 (do_ae_open_documents): Move DRAG_N_DROP event construction part
7484 from XTread_socket.
bcd98331
SM
7485 (XTread_socket): Consolidate setting of event timestamp.
7486 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
7487 Support extra_keyboard_modifiers.
7488
7489 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
7490 beginning with that for ASCII.
7491
69d05d83
SM
74922005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
7493
7494 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
7495 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
7496 (syms_of_alloc): Declare gc-cons-percentage.
7497
7498 * eval.c (Feval, Ffuncall):
7499 * keyboard.c (read_char):
7500 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
7501
7502 * lisp.h (gc_cons_combined_threshold): Declare.
7503
5c7f9de1
KS
75042005-07-12 Kim F. Storm <storm@cua.dk>
7505
7506 * coding.c (Qprocess_argument):
7507 * coding.h (Qprocess_argument): Remove unused var.
7508
7509 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
7510
c37efb7a
YM
75112005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7512
7513 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
7514 Endian.h.
7515 [!MAC_OSX] (fchmod, fchown): New functions.
7516 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
7517 Use SBYTES and EndianU32_BtoN.
7518 (mac_get_object_from_code): Return 4 byte string even if argument
7519 is 0. Use make_unibyte_string and EndianU32_NtoB.
7520 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
7521 (Fmac_set_file_type): Fix documents and argument declarations.
7522 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
7523
a4429c5b
SM
75242005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
7525
7526 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
7527
a2d7e722
JD
75282005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7529
7530 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
7531 Lucid if X_I18N, font otherwise.
7532
9a4183e9
ST
75332005-07-10 Steven Tamm <steventamm@mac.com>
7534
a4429c5b
SM
7535 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
7536 (Fmac_set_file_type, Fmac_set_file_creator): Add.
7537 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 7538
51f74c37
RS
75392005-07-10 Richard M. Stallman <rms@gnu.org>
7540
7541 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
7542 (syms_of_lread): Set up eval-buffer-list.
7543 (Feval_buffer, Feval_region): Bind eval-buffer-list.
7544
93c7da4c
RS
75452005-07-08 Richard M. Stallman <rms@gnu.org>
7546
7547 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
7548
64af5917
KS
75492005-07-08 Kim F. Storm <storm@cua.dk>
7550
7551 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
7552 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
7553
a96b333c
KS
75542005-07-07 Kim F. Storm <storm@cua.dk>
7555
7556 * window.c (Frecenter): Fix last change (set iarg before use).
7557
dc2204be
RS
75582005-07-06 Richard M. Stallman <rms@gnu.org>
7559
7560 * window.c (Frecenter): When arg is inside the scroll margin,
7561 move it out of the margin.
7562
3fb1d72b
JR
75632005-07-06 Jason Rumney <jasonr@gnu.org>
7564
7565 * w32console.c (initialize_w32_display): Detect when the console
7566 dimensions are insane, and default to 80x25 instead.
14a56a1b 7567 (w32_use_full_screen_buffer): Default to nil.
3fb1d72b 7568
dd15724d
YM
75692005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7570
7571 * macterm.c (mac_draw_vertical_window_border): Use foreground of
7572 VERTICAL_BORDER_FACE_ID for vertical border line.
7573 (mac_encode_char): Call check_ccl_update in advance.
7574 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
7575 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
7576 Don't assume that font family length is less than 32.
dd15724d
YM
7577 (x_compute_min_glyph_bounds): Make static.
7578 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 7579
68003d6b
LK
75802005-07-04 Lute Kamstra <lute@gnu.org>
7581
dc2204be 7582 * Update FSF's address in GPL notices.
68003d6b 7583
3d393029
RS
75842005-07-03 Richard M. Stallman <rms@gnu.org>
7585
7586 * xdisp.c (try_window): Fix previous change in how it handles
7587 a partially-visible line or one only partly past the margin.
7588
7589 * window.c (window_scroll_pixel_based): Take account
7590 of this_scroll_margin when finding point when scrolling up.
7591
75922005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
7593
7594 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7595 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
9dd28cae 7596 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3d393029 7597
d6951bb4
EZ
75982005-07-02 Juri Linkov <juri@jurta.org>
7599
7600 * w32term.c (w32_draw_vertical_window_border): Use foreground of
7601 VERTICAL_BORDER_FACE_ID for vertical border line.
7602
b016179b
EZ
76032005-07-02 Eli Zaretskii <eliz@gnu.org>
7604
7605 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
7606 fchmod so that chmod doesn't get called on MSDOS before the file
7607 is closed.
7608
c2baa2b6
JR
76092005-07-01 Jason Rumney <jasonr@gnu.org>
7610
7611 * w32term.c (cleartype_active): New flag for enabling sub-pixel
7612 workaround.
7613 (w32_initialize): Initialize it.
7614 (w32_native_per_char_metric): Allow a couple of extra pixels when
7615 Cleartype is active.
7616
7617 * w32term.c (w32_initialize): Move check for screen reader here
7618 from syms_of_w32term.
7619
a6d0ae55
JD
76202005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7621
7622 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
7623 is not zero.
7624
711877f3
MY
76252005-07-01 Masatake YAMATO <jet@gyve.org>
7626
a4429c5b 7627 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 7628
63f7ffb3
JL
76292005-06-30 Juri Linkov <juri@jurta.org>
7630
7631 * xdisp.c (x_draw_vertical_border): If left fringe is not present
7632 decrease x coord of vertical border by 1 pixel to not occupy text
7633 area of the right window.
7634
7635 * xterm.c (x_draw_vertical_window_border): Use foreground of
7636 VERTICAL_BORDER_FACE_ID for vertical border line.
7637
7638 * term.c (turn_on_face): In standout mode apply specified
7639 fg to bg, and specified bg to fg (this makes the logic of
7640 inversion on terminal consistent with X).
7641
b26860ad
JB
76422005-06-29 Juanma Barranquero <lekktu@gmail.com>
7643
7644 * eval.c (user_variable_p_eh): New function.
7645 (Fuser_variable_p): Use it. Clarify docstring.
7646 Return t for aliases of user options, nil for alias loops.
7647
3a1f1d79
RS
76482005-06-27 Richard M. Stallman <rms@gnu.org>
7649
7650 * eval.c (Fdefvar): Improve error message.
7651
92de1e01
YM
76522005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7653
7654 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
7655 change.
7656
69410484
JB
76572005-06-27 Juanma Barranquero <lekktu@gmail.com>
7658
7659 * eval.c (Fdefvar): Don't try to set constant symbols.
7660
09352e8f
RS
76612005-06-25 Richard M. Stallman <rms@gnu.org>
7662
a68d870b
RS
7663 * macfns.c (Fx_show_tip): Pass new arg to try_window.
7664
7665 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
7666
7667 * xfns.c (Fx_show_tip): Pass new arg to try_window.
7668
7669 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
7670 (redisplay_window): Handle try_window reporting point in scroll margin.
7671
7672 * dispextern.h (try_window): Declare new arg.
7673
7674 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
7675 Use fchmod to copy the file modes.
7676 (Frename_file): Don't copy UID and GID here;
7677 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
7678
df13531d
RS
7679 * eval.c (call_debugger): Take full care of extending stack limits
7680 to make space for the debugger, and restore the change afterward.
7681 Bind debug-on-error to nil.
7682 (restore_stack_limits): New subroutine.
7683 (Fsignal): Extend specpdl bound along with eval depth bound,
7684 for calling edebug. Don't do either one, for calling debugger.
7685 (find_handler_clause): Don't bind debug-on-error here.
7686 Don't unbind anything either.
7687 Temporarily advance max_specpdl_size for calling
7688 internal_with_output_to_temp_buffer.
7689 (grow_specpdl): Don't alter max_specpdl_size before signaling
7690 an error.
7691 (syms_of_eval) <max-specpdl-size>: Doc fix.
7692
09352e8f
RS
7693 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
7694
90296dd3
EZ
76952005-06-24 Eli Zaretskii <eliz@gnu.org>
7696
7697 * fileio.c (Frename_file): Undo last change: no need to ifdef away
7698 chown on DOS_NT platforms.
7699
7700 * w32.c (sys_chown): New function.
7701
7702 * s/ms-w32.h (chown): New; define to sys_chown.
7703
c4f6ca24
JB
77042005-06-24 Juanma Barranquero <lekktu@gmail.com>
7705
3338c0ad
JB
7706 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
7707 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
7708
9a1505e9 7709 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 7710
528b6abc
RS
77112005-06-23 Richard M. Stallman <rms@gnu.org>
7712
7713 * xdisp.c (get_next_display_element): Finish reversing the tests of
7714 Vnobreak_char_display.
7715
9a1505e9 7716 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 7717 All uses changed.
9a1505e9 7718 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
7719 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
7720
7721 * fileio.c (Frename_file): Preserve owner and group, if possible,
7722 when copying.
7723
1d1c7e75
JB
77242005-06-23 Juanma Barranquero <lekktu@gmail.com>
7725
253b2298
JB
7726 * abbrev.c (Funexpand_abbrev):
7727 * category.c (Fmake_category_set):
7728 * dispnew.c (Fsleep_for, Fsit_for):
7729 * editfns.c (Fsubst_char_in_region):
7730 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
7731 * frame.c (make_frame_without_minibuffer):
7732 * lread.c (read_vector):
7733 * macfns.c (check_x_frame):
7734 * process.c (Fstop_process, Fcontinue_process):
7735 * search.c (Freplace_match):
7736 * syntax.c (Fstring_to_syntax):
7737 * w32fns.c (check_x_frame, check_x_display_info):
7738 * xfaces.c (x_supports_face_attributes_p):
7739 * xselect.c (Fx_own_selection_internal): Follow error conventions.
7740
1d1c7e75
JB
7741 * image.c (fn_png_init_io): Don't define it.
7742 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
7743 (png_read_from_file): New function, based on png_read_from_memory.
7744 (png_load): Use it, instead of fn_png_init_io.
7745
d1fab151
KS
77462005-06-23 Kim F. Storm <storm@cua.dk>
7747
7748 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 7749 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
7750 Add commentary explaining evaporate arg (for internal use only).
7751 (unwind_set_match_data): Add comment on evaporate use.
7752
53abc3bf
MB
77532005-06-22 Miles Bader <miles@gnu.org>
7754
a4429c5b 7755 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
7756 (realize_basic_faces, syms_of_xfaces): Update references to it.
7757 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
7758 to `VERTICAL_BORDER_FACE_ID'.
7759 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
7760
36a3b076
JL
77612005-06-21 Juri Linkov <juri@jurta.org>
7762
7763 * dispextern.h: Add extern Qframe_set_background_mode.
7764
7765 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
7766 Qframe_set_background_mode.
7767
7768 * frame.c (Fmodify_frame_parameters):
7769 Call frame-set-background-mode after changing the background color
7770 on non-window non-dos branch.
7771
23873c96
JB
77722005-06-21 Juanma Barranquero <lekktu@gmail.com>
7773
7774 * fns.c (Fchar_table_range):
7775 * process.c (Fmake_network_process): Fix spellings.
7776
b7d1f38f
KS
77772005-06-20 Kim F. Storm <storm@cua.dk>
7778
7779 * fns.c (Fsort): Doc fix.
7780
b4e49aee
MB
77812005-06-20 Miles Bader <miles@gnu.org>
7782
7783 * xfaces.c (Qvertical_divider): New variable.
7784 (realize_basic_faces): Realize its face.
7785 (syms_of_xfaces): Initialize it.
7786
7787 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
7788
7789 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
7790 window-separator on ttys using `vertical-divider' face by default.
7791
b7da00ba
RS
77922005-06-17 Richard M. Stallman <rms@gnu.org>
7793
a4429c5b
SM
7794 * xdisp.c (get_next_display_element):
7795 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
7796
7797 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
7798 (Ftty_no_underline): New function.
7799 (syms_of_term): defsubr it.
b7d1f38f 7800
b7da00ba
RS
7801 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
7802
7803 * dispnew.c (spec_glyph_lookup_face): New function.
7804 (build_frame_matrix_from_leaf_window): Use it.
7805
7806 * dispextern.h (spec_glyph_lookup_face): Add declaration.
7807
7808 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
7809
78102005-06-12 Richard M. Stallman <rms@gnu.org>
7811
7812 * keyboard.c (read_char): After catching a longjmp,
7813 call restore_getcjmp.
7814
289824a3
JB
78152005-06-17 Juanma Barranquero <lekktu@gmail.com>
7816
7817 * xselect.c (lisp_data_to_selection_data): Fix spelling.
7818
95085023
YM
78192005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7820
7821 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
7822 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
7823 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
7824 events.
7825 (XTread_socket): Don't pass keyboard events with the option
7826 modifier to the system when Vmac_command_key_is_meta is nil or
7827 Vmac_option_modifier is non-nil.
7828 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
7829 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
7830 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
7831 handler function.
7832 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
7833 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
7834 handler part to mac_handle_mouse_event.
7835
4a9308b8
JB
78362005-06-14 Juanma Barranquero <lekktu@gmail.com>
7837
7838 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
7839 NEW-ALIAS and BASE-VARIABLE, respectively.
7840
5aa6db57
SM
78412005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
7842
7843 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
7844 (get_phys_cursor_geometry, format_mode_line_unwind_data)
7845 (get_line_height_property, x_produce_glyphs): Remove unused vars.
7846
7847 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
7848
0e0dddda
EZ
78492005-06-13 Eli Zaretskii <eliz@gnu.org>
7850
7851 * w32term.c (x_use_underline_position_properties): New variable.
7852 (x_draw_glyph_string): Remind in a comment to change doc string of
7853 x-use-underline-position-properties if/when underline positioning
7854 is implemented.
7855 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
7856 and initialize it to nil.
7857
7f2b4738
JR
78582005-06-12 Jason Rumney <jasonr@gnu.org>
7859
7860 * w32fns.c (NEWOPENFILENAME): New struct.
7861 (Fx_file_dialog): Use it to trick the system into giving us up to
7862 date dialogs on systems that are documented to support it.
7863 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
7864
a1e8cad6
EZ
78652005-06-12 Eli Zaretskii <eliz@gnu.org>
7866
7867 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
7868 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
7869
099a3eea
EZ
78702005-06-11 Eli Zaretskii <eliz@gnu.org>
7871
2e09fef1
EZ
7872 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
7873 to CreateDIBSection to avoid a compiler warning.
7874 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
7875 warning.
7876 (png_load): Cast return values of fn_png_create_read_struct and
7877 fn_png_create_info_struct, to avoid compiler warnings on W32.
7878 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
7879 to avoid compiler warnings.
7880 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
7881 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
7882 avoid a compiler warning.
7883 (tiff_load): Cast return values of fn_TIFFOpen and
7884 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
7885 to IMAGE_BACKGROUND to avoid a compiler warning.
7886 (gif_load): Cast return values of fn_DGifOpenFileName and
7887 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
7888 IMAGE_BACKGROUND to avoid a compiler warning.
7889 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
7890 before redefining.
7891
099a3eea
EZ
7892 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
7893 the call to CreateDIBSection, to avoid a compiler warning.
7894
d11f8e1a
JR
78952005-06-11 Jason Rumney <jasonr@gnu.org>
7896
7897 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
7898 minibuffer.
7899 * macfns.c (Fx_file_dialog): Likewise.
7900
cd4344a3
EZ
79012005-06-10 Eli Zaretskii <eliz@gnu.org>
7902
7903 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
7904
578c1340
JB
79052005-06-10 Juanma Barranquero <lekktu@gmail.com>
7906
7907 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
7908 * w32fns.c (syms_of_w32fns): Fix spellings.
7909
4162f25f
EZ
79102005-06-10 Eli Zaretskii <eliz@gnu.org>
7911
7912 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
7913 `verbose'; print diagnostic messages only if it is non-zero.
7914 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
7915 in the environment.
7916 (copy_executable_and_dump_data): Print section names with %.8s.
7917
121c59a3
MY
79182005-06-10 Masatake YAMATO <jet@gyve.org>
7919
7920 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
7921 when mouse_face is not given.
121c59a3 7922
c869384d
LT
79232005-06-09 Luc Teirlinck <teirllm@auburn.edu>
7924
7925 * window.c (Fselect_window): Adapt call to Fselect_frame.
7926
7927 * lisp.h: Update EXFUN of Fselect_frame.
7928
7929 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
7930
6ecf436d
LT
7931 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
7932 no_enter.
7933 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
7934 Adapt to above change.
7935
c14ec135
JB
79362005-06-10 Juanma Barranquero <lekktu@gmail.com>
7937
7938 * fns.c (Fmemq, Fmaphash): Doc fixes.
7939
9fed2905
JB
79402005-06-09 Juanma Barranquero <lekktu@gmail.com>
7941
7942 * xfaces.c (Fdisplay_supports_face_attributes_p):
7943 Fix typo in docstring.
7944
427c5b1b
ST
79452005-06-08 Steven Tamm <steventamm@mac.com>
7946
7947 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
7948 used by gcc4 on intel mac.
7949
b7aae902
KS
79502005-06-09 Kim F. Storm <storm@cua.dk>
7951
7952 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
7953 in REUSE list if non-nil; free them if equal to evaporate.
5e1a6e32 7954 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
b7aae902
KS
7955 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
7956 (restore_search_regs): Rename from restore_match_data. Uses changed.
7957 (unwind_set_match_data): New function.
7958 (record_unwind_save_match_data): New function like save-match-data.
7959
7960 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
7961 (record_unwind_save_match_data): Add prototype.
7962 (restore_search_regs): Rename from restore_match_data.
7963
7964 * composite.c (compose_chars_in_text):
7965 * eval.c (do_autoload):
7966 * macmenu.c (set_frame_menubar):
7967 * process.c (read_process_output, exec_sentinel):
7968 * xmenu.c (set_frame_menubar):
7969 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
7970 * w32menu.c (set_frame_menubar):
7971 Use record_unwind_save_match_data.
7972
547d2b37
RS
79732005-06-08 Richard M. Stallman <rms@gnu.org>
7974
7975 * xdisp.c (get_next_display_element): Alter previous change:
7976 Distinguish Vshow_nonbreak_escape = t or not t.
7977 For t, use escape_glyph once again, as before previous change.
7978 Use space or hyphen for display, instead of the non-ASCII char.
7979 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
7980
7981 * process.c (Fstart_process): Don't touch command_channel_p slot.
7982
99598737 7983 * process.h (struct process): Delete command_channel_p.
547d2b37 7984
602907ae
MY
79852005-06-07 Masatake YAMATO <jet@gyve.org>
7986
5aa6db57
SM
7987 * xdisp.c (note_mode_line_or_margin_highlight):
7988 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 7989 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
7990 is not ON_MODE_LINE nor ON_HEADER_LINE.
7991
8b793bed
KS
79922005-06-07 Kim F. Storm <storm@cua.dk>
7993
7994 * process.c: Improve commentary for adaptive read buffering.
7995
3d031334
SM
79962005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
7997
7998 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
7999 if available.
8000
16d2e704
JD
80012005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8002
5aa6db57
SM
8003 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
8004 New functions for popping down menus on C-g.
16d2e704
JD
8005 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
8006
8007 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
8008 non-static.
8009
9fed2905 8010 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 8011
b6cc2ad0
EZ
80122005-06-06 Eli Zaretskii <eliz@gnu.org>
8013
9a1505e9 8014 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 8015
5aa6db57 8016 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
8017
8018 * w32proc.c (RVA_TO_PTR): New macro.
8019
8020 * w32heap.c (RVA_TO_PTR): No need to #undef now.
8021
8022 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
8023 Depend on w32heap.h.
8024
24e55feb
LT
80252005-06-06 Luc Teirlinck <teirllm@auburn.edu>
8026
8027 * keyboard.c (command_loop_1): Update Vthis_original_command.
8028
ce6e10af
RS
80292005-06-06 Richard M. Stallman <rms@gnu.org>
8030
8031 * xmenu.c (popup_get_selection): Undo previous change.
8032
c476bcb0
JL
80332005-06-06 Juri Linkov <juri@jurta.org>
8034
8035 * xdisp.c (Qno_break_space): New variable.
8036 (syms_of_xdisp): Initialize it.
8037 (get_next_display_element): Add no-break space and soft hypen
8038 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
8039 Use `no-break-space' face for no-break spaces.
8040
5494d7bc
JD
80412005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8042
8043 * window.c (delete_window): Handle the case where a h/vchild has
8044 a h/vchild.
8045
a0c38328
EZ
80462005-06-05 Eli Zaretskii <eliz@gnu.org>
8047
8048 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
8049 call to pfn_setsockopt, cast optval to `const char *'.
8050
91018229
EZ
80512005-06-04 Eli Zaretskii <eliz@gnu.org>
8052
1a8fb426
EZ
8053 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
8054 (open_unc_volume): Cast return value of map_w32_filename, to avoid
8055 compiler warnings.
8056
b6f0a397
EZ
8057 * s/ms-w32.h (fileno): Don't define if already defined.
8058
17a7c5c2 8059 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 8060
91018229
EZ
8061 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
8062
196ac78c
RS
80632005-06-04 Richard M. Stallman <rms@gnu.org>
8064
8065 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
8066
b8987570
JD
80672005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8068
8069 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 8070 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
8071 mac_menu_show Quit:s.
8072 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
8073 a dialog).
8074
555228aa
KS
80752005-06-04 Kim F. Storm <storm@cua.dk>
8076
8077 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
8078
8079 * callproc.c (Fcall_process): Don't use alloca to gradually
8080 increase size of buf, as it effectively uses twice the necessary
8081 space on the stack. Instead, pre-allocate buf of full size, and
8082 gradually increase the read size.
8083
8084 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
8085
8086 * eval.c (unbind_to): Preserve value of Vquit_flag.
8087
8088 * xterm.c (handle_one_xevent): Also ignore mouse motion just
8089 before a button release event.
8090
6312e5f7
JB
80912005-06-03 Juanma Barranquero <lekktu@gmail.com>
8092
8093 * xfaces.c (Finternal_lisp_face_equal_p): Really report
8094 on faces in a frame, if the argument FRAME is non-nil.
8095 Improve argument/docstring consistency.
8096
0493f7be
KS
80972005-06-02 Kim F. Storm <storm@cua.dk>
8098
8099 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
8100 (x_consider_frame_title, Fformat_mode_line): Save offset into
8101 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
8102
89fe657e
KS
81032005-06-01 Kim F. Storm <storm@cua.dk>
8104
8105 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
8106
02a6375c
YM
81072005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8108
8109 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
8110 resolution fields for scalable fonts to 0.
8111
8112 * xfaces.c (build_scalable_font_name): Round pixel size to the
8113 nearest integer.
8114
95d4fad8
KS
81152005-06-01 Kim F. Storm <storm@cua.dk>
8116
8117 * xdisp.c (display_mode_line): Support nested calls to redisplay
8118 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
8119
3c1b433a
SM
81202005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8121
8122 * fileio.c (Finsert_file_contents):
8123 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
8124
13cc7d61
KS
81252005-05-31 Kim F. Storm <storm@cua.dk>
8126
8127 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
8128 (mode_line_noprop_ptr): Rename from frame_title_*.
8129 (store_mode_line_noprop_char): Rename from store_frame_title_char.
8130 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 8131 (mode_line_target): New enum to specify current output target
13cc7d61
KS
8132 for mode line formatting.
8133 (display_mode_element): Test it rather than frame_title_ptr and
8134 mode_line_string_list to determine where output should go.
8135 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
8136 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
8137 (format_mode_line_unwind_data, unwind_format_mode_line):
8138 New functions for unwind protection in mode line formatting.
13cc7d61 8139 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
8140 to support nested calls to format-mode-line and redisplay.
8141 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 8142 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
8143 support nested calls to format-mode-line and redisplay.
8144 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 8145 Don't trim trailing dashes.
13cc7d61
KS
8146 (decode_mode_spec): Don't make infinite number of trailing dashes
8147 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
8148 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
8149 mode_line_string_face_prop, and Vmode_line_unwind_vector.
8150 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
8151 Initialize mode_line_target to MODE_LINE_DISPLAY.
8152
c16b1394
RS
81532005-05-29 Richard M. Stallman <rms@gnu.org>
8154
8155 * buffer.c (Fbuffer_local_value): Call indirect_variable.
8156
edfaeb4e
MY
81572005-05-28 Masatake YAMATO <jet@gyve.org>
8158
8159 * xdisp.c (note_mode_line_or_margin_highlight): Change the
8160 pointer to a hand cursor when hoovering over a mouse-face.
8161
7cf49add
KH
81622005-05-27 Kenichi Handa <handa@m17n.org>
8163
8164 * xterm.c (x_encode_char): Call check_ccl_update in advance.
8165
8166 * ccl.c: Now an element of Vccl_program_table is a vector of
8167 length 4, not 3.
3c1b433a
SM
8168 (ccl_get_compiled_code): New arg idx. Caller changed.
8169 Adjust for the change of Vccl_program_table.
8170 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
8171 (check_ccl_update): New function.
8172 (Fregister_ccl_program): Use ASET to set an element of a vector.
8173 Adjusted for the change of Vccl_program_table.
8174
8175 * ccl.h (struct ccl_program): New member idx.
8176 (check_ccl_update): Extern it.
8177
5e2ad10b
JB
81782005-05-27 Juanma Barranquero <lekktu@gmail.com>
8179
3c1b433a 8180 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
8181 (syms_of_image): Defvar it.
8182 (lookup_image_type): Use it.
8183
5e2ad10b
JB
8184 * buffer.c (Fbuffer_local_value): Make argument name match its use
8185 in docstring.
8186
6e604a9b
JB
81872005-05-26 Juanma Barranquero <lekktu@gmail.com>
8188
8189 * keyboard.c (Frecursive_edit): Fix typo in docstring.
8190 (Fposn_at_x_y): Make argument name match its use in docstring.
8191
59244a3f
LK
81922005-05-26 Lute Kamstra <lute@gnu.org>
8193
8194 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
8195
55ce5058
MY
81962005-05-24 Masatake YAMATO <jet@gyve.org>
8197
8198 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
8199 as loop sentinels.
8200
cb5db137
NR
82012005-05-24 Nick Roberts <nickrob@snap.net.nz>
8202
8203 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
8204 select frame title ("Question"/"Information").
8205 (xdialog_show): Use it.
8206
13dcfc35
NR
8207 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
8208
8209 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
8210
d3393daa
NR
8211 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
8212 a third argument (Qnil).
8213
8214 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
8215
8216 * editfns.c (Fmessage_box): Use "Information" for frame title.
8217
71d4fba1
TTN
82182005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
8219
8220 * termcap.c [VMS]: Include <starlet.h>.
8221
359e4563
MY
82222005-05-23 Masatake YAMATO <jet@gyve.org>
8223
6e604a9b
JB
8224 * xdisp.c (note_mode_line_or_margin_highlight): Add code
8225 for mouse-face. Change the type of the first argument from `window'
8226 to `Lisp_Object'.
359e4563
MY
8227 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
8228 window instead of w.
8229
edceb51c
AS
82302005-05-22 Andreas Schwab <schwab@suse.de>
8231
41c4895c 8232 * process.c (send_process): Move misplaced volatile.
edceb51c 8233
5c213fcc
RS
82342005-05-21 Richard M. Stallman <rms@gnu.org>
8235
8236 * xdisp.c (display_mode_element): If we're processing a list and
8237 padding is specified, put it after the last element.
8238
aa4060b9
EZ
82392005-05-21 Eli Zaretskii <eliz@gnu.org>
8240
8241 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
8242 "superroot" on DOS_NT systems.
8243
a2c9aee6
EZ
82442005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
8245
8246 * process.c (send_process): Restore the SIGPIPE handler if we
8247 catch a SIGPIPE.
8248
09e8eb5b
JB
82492005-05-20 Juanma Barranquero <lekktu@gmail.com>
8250
8251 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
8252 misleading comments).
8253 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
8254
f3fbdb1f
LK
82552005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8256
8257 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
8258 Correct the right value.
8259
639ec765
NR
82602005-05-19 Nick Roberts <nickrob@snap.net.nz>
8261
240d926e 8262 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
8263 post-command-idle-hook and post-command-idle-delay.
8264 (command_loop_1): Don't try to execute post-command-idle-hook.
8265
03d42907
KS
82662005-05-16 Kim F. Storm <storm@cua.dk>
8267
1cb83e13
KS
8268 * xdisp.c (handle_display_prop): Handle empty replacement.
8269 (handle_single_display_spec): Return -1 for empty replacement.
8270
8271 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
8272
03d42907
KS
8273 * .gdbinit (pitx): Print more info about iterator.
8274
0da46b6e
AS
82752005-05-16 Andreas Schwab <schwab@suse.de>
8276
3c1b433a 8277 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 8278
d06ba294
RS
82792005-05-14 Richard M. Stallman <rms@gnu.org>
8280
8281 * xdisp.c (message3): Call cancel_echoing.
8282
8283 * alloc.c (Fmemory_full_p): New function.
8284 (syms_of_alloc): defsubr it.
8285
8286 * process.c (send_process_trap): Unblock SIGPIPE.
8287 (send_process): Reset SIGPIPE handler before reporting error.
8288
90713743
NR
82892005-05-14 Nick Roberts <nickrob@snap.net.nz>
8290
8291 * emacs.c (syms_of_emacs): Fix doc string for system-type.
8292
68780e2a
RS
82932005-05-13 Richard M. Stallman <rms@gnu.org>
8294
8295 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
8296 (Finsert_file_contents): If we read 0 bytes from a special file,
8297 unlock the visited file if we locked it.
8298 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 8299 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 8300
5063dbbf
YM
83012005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8302
8303 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
8304
3c1b433a
SM
8305 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
8306 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
8307 redisplay from being paused by them.
8308
8309 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
8310 [!MAC_OSX] (target_ticks): Remove variable.
8311 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
8312 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
8313 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 8314 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
8315 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
8316 handling using Time Manager routines.
3c1b433a
SM
8317 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
8318 New variables.
5063dbbf
YM
8319 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
8320 (setitimer): New functions.
8321
8322 * macfns.c, macmenu.c: Don't include signal.h.
8323
8324 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
8325 Rename from get_control_part_bound. All callers changed.
8326 (x_scroll_bar_clear): New function.
8327 (x_clear_frame): Use it.
8328 (XTset_vertical_scroll_bar): Don't call Draw1Control.
8329 (x_scroll_bar_handle_click): Change type of second argument from
8330 int to ControlPartCode.
8331 (check_alarm): Remove declaration.
02a6375c
YM
8332 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
8333 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
8334
83352005-05-13 Nozomu Ando <nand@mac.com>
8336
8337 * unexmacosx.c: Include assert.h.
8338 (MACOSX_MALLOC_MULT16): New define.
8339 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
8340 ptr is in unexec regions by checking it is multiple of 16.
8341 (unexec_malloc_header_t): New typedef.
8342 (unexec_malloc, unexec_realloc, unexec_free): Store and use
8343 allocated size information in unexec_malloc_header.
8344
d101bf56
RS
83452005-05-10 Richard M. Stallman <rms@gnu.org>
8346
8347 * xterm.c (noinclude): Add #undef.
8348
8349 * image.c, xfns.c, xmenu.c: Don't include signal.h.
8350
2f60660a
JB
83512005-05-09 Juanma Barranquero <lekktu@gmail.com>
8352
f1701e65
JB
8353 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
8354 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
8355 Doc fixes.
8356
2f60660a
JB
8357 * dired.c (Ffile_name_completion): Make argument name
8358 match its use in docstring.
8359
9f29e806
LT
83602005-05-08 Luc Teirlinck <teirllm@auburn.edu>
8361
8362 * eval.c (Fdefvaralias): Remove any pre-existing
8363 variable-documentation property of the alias.
8364
a790bcd4
TTN
83652005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
8366
8367 * xfns.c (start_hourglass): Do nothing when running on a tty.
8368
d5fb8dab
JB
83692005-05-07 Juanma Barranquero <lekktu@gmail.com>
8370
8371 * fns.c (Fchar_table_range): Fix typos in docstring.
8372
7ec64183
SM
83732005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8374
8375 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
8376
6ff95f1d
EZ
83772005-05-06 Eli Zaretskii <eliz@gnu.org>
8378
2c6b25c7
EZ
8379 * lread.c (Flocate_file_internal): Doc fix.
8380
6ff95f1d
EZ
8381 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
8382
17d28d26
YM
83832005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8384
8385 * macselect.c (x_own_selection): Accept Lisp string as result of
8386 selection converter function.
8387 (x_clear_frame_selections): Don't call x-lost-selection-functions
8388 if Emacs is not owner of the selection.
8389 (Vmac_services_selection): Put variable and initialization in
8390 #ifdef MAC_OSX.
8391 (syms_of_macselect) [MAC_OSX]: Set default value of
8392 Vmac_services_selection to PRIMARY.
8393
7ec64183
SM
8394 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
8395 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
8396 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
8397 (install_scroll_bar_timer, set_scroll_bar_timer)
8398 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
8399 (get_control_part_bound, x_scroll_bar_handle_press)
8400 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
8401 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
8402 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
8403 (scroll_bar_timer_event_posted_p): New variables.
8404 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
8405 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
8406 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
8407 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
8408 Initialize track_top and track_height to nil.
8409 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
8410 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
8411 (XTset_vertical_scroll_bar): Don't make space between scroll bar
8412 and associated window.
8413 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
8414 from window config.
7ec64183
SM
8415 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
8416 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
8417 Recalculate them if they are nil.
8418 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
8419 clicked control is a scroll bar.
8420 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
8421 event handler functions. Don't add modifiers to scroll bar click
7ec64183 8422 events. Call scroll bar release handler when window is deactivated.
17d28d26 8423 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
8424 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
8425 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 8426
7ec64183
SM
8427 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
8428 New members track_top and track_height.
17d28d26
YM
8429
8430 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
8431 init_process when including sys/select.h.
8432
643b4cf5
LT
84332005-05-05 Luc Teirlinck <teirllm@auburn.edu>
8434
8435 * eval.c (Fdefvaralias): Doc fix.
8436
8437 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
8438
99bda128
KS
84392005-05-05 Kim F. Storm <storm@cua.dk>
8440
8441 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
8442 default value.
8443 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
8444 Fix type of cursor-in-non-selected-windows.
8445
3a3563e9
JD
84462005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8447
8448 * mac.c: #undef init_process so not to conflict with system headers.
8449
0124c5bd
RS
84502005-05-02 Richard M. Stallman <rms@gnu.org>
8451
8452 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
8453
8454 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
8455
8456 * xdisp.c (Vcursor_in_non_selected_windows)
8457 (Qcursor_in_non_selected_windows): Vars deleted.
8458 (syms_of_xdisp): Don't initialize them.
8459 (get_window_cursor_type): Use cursor_in_non_selected_windows
8460 buffer slot.
8461
4b3f161f
KS
84622005-05-02 Kim F. Storm <storm@cua.dk>
8463
e40527dc
KS
8464 * macros.c (executing_kbd_macro_index): Rename from
8465 executing_macro_index. All uses changed.
8466 (executing_kbd_macro_iterations): Rename from
8467 executing_macro_iterations. All uses changed.
8468 (executing_kbd_macro): Rename from executing_macro.
8469 All uses changed.
8470 (syms_of_macros): Rename Lisp var executing-macro-index to
8471 executing-kbd-macro-index.
8472
4b3f161f
KS
8473 * xdisp.c (move_it_in_display_line_to): Fix last change.
8474
4d49edf6
LT
84752005-05-01 Luc Teirlinck <teirllm@auburn.edu>
8476
f6b1b15a
LT
8477 * xmenu.c (Fx_popup_menu): Doc fix.
8478
4d49edf6
LT
8479 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
8480
4a766fe6
JR
84812005-05-02 Jason Rumney <jasonr@gnu.org>
8482
8483 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
8484
c924d3ff
TTN
84852005-05-02 Nozomu Ando <nand@mac.com>
8486
8487 * sysselect.h: Fix typo.
8488
b161ea4e 84892005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 8490
b161ea4e
NR
8491 * charset.c (Fchars_in_region): Remove as obsolete.
8492
d37e919d 84932005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
8494
8495 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 8496 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 8497 glyph.
5c2e5a5e 8498
bec0b768
LT
84992005-05-01 Luc Teirlinck <teirllm@auburn.edu>
8500
8501 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
8502
ebbfa918
RS
85032005-05-01 Richard M. Stallman <rms@gnu.org>
8504
8505 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
8506 If user cancels the menu, quit unless FOR_CLICK.
8507
7ec64183 8508 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
8509 All uses changed.
8510 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
8511 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
8512 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
8513 * commands.h (Vexecuting_kbd_macro): Likewise.
8514
a72c2d97
TTN
85152005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
8516
8517 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
8518
7e995a23
RS
85192005-04-30 Richard M. Stallman <rms@gnu.org>
8520
8521 * fileio.c (Ffind_file_name_handler): Handle the `operations'
8522 property of the file name handler.
8523 (Qoperations): New variable.
8524 (syms_of_fileio): Initialize and staticpro it.
8525
8526 * xdisp.c (set_message_1): Delete xassert.
8527
7a92caf8
YM
85282005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8529
7ec64183 8530 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
8531
8532 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
8533
8534 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
8535 before/after including Carbon.h if there is a working mktime.
8536
5ae91803
KS
85372005-04-28 Kim F. Storm <storm@cua.dk>
8538
8539 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
8540 Fix cyclic alias check. If alias loop is detected, signal
8541 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
8542
d79b6c21
LK
85432005-04-28 Lute Kamstra <lute@gnu.org>
8544
8545 * eval.c (do_autoload): Record only autoloads in the autoload
8546 property of symbols.
8547
8c75afbf
NR
85482005-04-28 Nick Roberts <nickrob@snap.net.nz>
8549
8550 * emacs.c (USAGE1): Add --basic-display and --quick options.
8551
832e294f
KS
85522005-04-27 Kim F. Storm <storm@cua.dk>
8553
8554 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
8555
f03f317a
RS
85562005-04-26 Richard M. Stallman <rms@gnu.org>
8557
c019856e
RS
8558 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
8559 (syms_of_window): Doc fixes.
8560
f03f317a
RS
8561 * indent.c (Fvertical_motion): Undo previous change.
8562
38f60cd9
KH
85632005-04-26 Kenichi Handa <handa@m17n.org>
8564
8565 * fns.c (char_table_range): New function.
8566 (Fchar_table_range): Signal an error if characters in the range
8567 have inconsistent values. Don't check the parent.
8568
87ede5a1
KH
85692005-04-25 Kenichi Handa <handa@m17n.org>
8570
8571 * fontset.c (fontset_set): Fix previous change.
8572
a6390474
RS
85732005-04-24 Richard M. Stallman <rms@gnu.org>
8574
8575 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
8576
7fce7dfe
EZ
85772005-04-24 Eli Zaretskii <eliz@gnu.org>
8578
cf1982d9
EZ
8579 * regex.c (re_search_2, re_match_2_internal): Convert second arg
8580 of RE_TRANSLATE to int, to shut up GCC warnings.
8581
7fce7dfe
EZ
8582 * fileio.c (Fcopy_file): Doc fix.
8583 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
8584 not needed.
8585
49ed33c7
YM
85862005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8587
8588 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
8589 (SOME_MACHINE_OBJECTS): Likewise.
8590 (mac.o): Depend on ccl.h.
8591 (macselect.o): New target.
8592
7ec64183
SM
8593 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
8594 Call syms_of_macselect.
49ed33c7
YM
8595
8596 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
8597
7ec64183 8598 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
8599 (QCLIPBOARD): Remove variable.
8600 (syms_of_mac): Don't initialize it.
8601 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
8602 Remove functions.
8603 (syms_of_mac): Don't defsubr them.
8604 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
8605 (QHFS_plus_D, QHFS_plus_C): New variables.
8606 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
8607 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
8608 (cfstring_create_normalized): New functions.
8609 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
8610 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
8611
7ec64183
SM
8612 * macterm.c (handling_window_update, terminate_flag):
8613 Remove variables.
8614 (do_window_update, do_ae_quit_application, XTread_socket):
8615 Don't use them.
49ed33c7
YM
8616 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
8617 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
8618 (init_service_handler): Move to macselect.c. Remove declarations.
8619 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
8620 (Qapplication, Qabout): New variables.
8621 (syms_of_mac): Initialize them.
8622 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
8623 (Qperform): New variables.
8624 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 8625 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
8626 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
8627 (mac_store_application_menu_event, init_menu_bar): New functions.
8628 [USE_CARBON_EVENTS] (mac_handle_command_event)
8629 (init_command_handler): New functions.
8630 (mac_handle_window_event): Return noErr on window update event.
8631 (do_ae_quit_application): Call mac_store_application_menu_event.
8632 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
8633 and init_menu_bar.
8634
8635 * macterm.h (x_clear_frame_selections): Add extern.
8636
8637 * macselect.c: New file for selection processing on Mac OS.
8638
469bc679
RS
86392005-04-23 Richard M. Stallman <rms@gnu.org>
8640
8641 * fileio.c (Fcopy_file): New arg MUSTBENEW.
8642 (Frename_file): Pass new arg to Fcopy_file.
8643
8644 * window.c (window_size_fixed): Variable deleted.
8645 (syms_of_window): Initialize window-size-fixed to nil.
8646 But don't DEFVAR window_size_fixed.
8647
d379c558
AS
86482005-04-23 Andreas Schwab <schwab@suse.de>
8649
8650 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
8651 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
8652 use lib64 instead of lib.
8653 (_LP64) [_ARCH_PPC64]: Define if not defined.
8654
007d105b
TTN
86552005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
8656
8657 * s/ms-w32.h (HAVE_PWD_H): Define.
8658
b9c15916
KH
86592005-04-22 Kenichi Handa <handa@m17n.org>
8660
8661 * fns.c (copy_sub_char_table): Explicitly copy the default value
8662 of the sub-chartable.
8663
8664 * fontset.c (fontset_set): When a sub-chartable is created,
8665 explicitly sets the defalt value.
8666
1ba52906
KS
86672005-04-22 Kim F. Storm <storm@cua.dk>
8668
8669 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
8670 (Fsafe_plist_get): Rename to Fplist_get.
8671 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
8672 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
8673
8674 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
8675
8676 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
8677 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8678 Use Fplist_get instead of Fsafe_plist_get.
8679
8680 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
8681
e235145c
MB
86822005-04-21 Miles Bader <miles@gnu.org>
8683
8684 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
8685
766c5349
TTN
86862005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
8687
c164a7e6
TTN
8688 * sysdep.c: Remove reference to defunct vms-pwd.h.
8689 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
8690 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
8691
766c5349
TTN
8692 * config.in: Regenerate.
8693
2b048bf5
KH
86942005-04-20 Kenichi Handa <handa@m17n.org>
8695
8696 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
8697 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
8698 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
8699
8700 * alloc.c (make_sub_char_table): Argument changed to initial
8701 value of the slots.
8702
8703 * data.c (Faref): Handle special slots used as default values of
8704 ascii, eight-bit-control, eight-bit-control. Don't ignore a
8705 default value set for a group of characters.
8706 (Faset): Signal an error if IDXVAL is not a valid character code.
8707 Make a sub-chartable with correct initial value.
8708
8709 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
8710 values for ascii, eight-bit-control, eight-bit-graphic.
8711 Don't call Faref with charset-id.
2b048bf5
KH
8712 (Fset_char_table_default): Document how to treat normal character
8713 argument. Handle special slots used as default values of ascii,
8714 eight-bit-control, eight-bit-control. Make a sub chartable if
8715 necessary.
8716
b0a35939
KH
87172005-04-20 Kenichi Handa <handa@m17n.org>
8718
8719 * search.c (boyer_moore): Fix previous change.
8720
98dde726
KS
87212005-04-19 Kim F. Storm <storm@cua.dk>
8722
8723 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
8724 face unless last visible char and first invisible char have the
8725 same face. Also use default face if saved_face_id is undefined.
8726
327a3376
YM
87272005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8728
8729 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
8730 `full_name'.
8731 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
8732 mac_scriptcode member.
8733
8734 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
8735 (syms_of_mac): Don't initialize them.
8736 (Vmac_charset_info_alist): New variable.
8737 (syms_of_mac): Defvar it.
8738 (create_text_encoding_info_alist): New function.
8739 (decode_mac_font_name, mac_to_x_fontname)
8740 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
8741 code the correspondence among XLFD charsets, Mac script codes, and
8742 Emacs coding systems. Use Vmac_charset_info_alist and result of
8743 create_text_encoding_info_alist instead.
8744 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
8745 routines also on Mac OS Classic.
7ec64183
SM
8746 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
8747 Use add_font_name_table_entry.
327a3376
YM
8748 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
8749 specified. Derive unspecified scalable fields from specified one.
8750 (x_list_fonts): Consider Valternate_fontname_alist.
8751 (kDefaultFontSize): Change value from 9 to 12.
8752 (XLoadQueryFont): Get decoded font family, font face, and charset
8753 from x_font_name_to_mac_font_name. Set full name of loaded font.
8754 (mac_unload_font): Free `full_name' member.
8755 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
8756 NULL. Copy full_name member of struct MacFontStruct to that of
8757 struct font_info.
8758
d0636839
KS
87592005-04-19 Kim F. Storm <storm@cua.dk>
8760
5827e9d4
KS
8761 * xdisp.c (handle_stop): Set saved_face_id to current face if
8762 selective_display_ellipsis_p so ellipsis will be shown in same
8763 face as preceding text.
8764 (setup_for_ellipsis): Don't set saved_face_id here.
8765 (next_element_from_display_vector): Default to saved_face_id.
8766
d0636839
KS
8767 * fns.c (Fsafe_get): New function.
8768 (syms_of_fns): Defsubr it.
8769
8770 * lisp.h (Fsafe_get): EXFUN it.
8771
8772 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
8773 loops in case of bad face property lists. Limit number of face
8774 alias lookups to 10 (in case of face alias loops).
8775
e5c78c9d
KS
87762005-04-18 Kim F. Storm <storm@cua.dk>
8777
8778 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
8779 It replaces the corresponding member from struct window, as a
8780 window may now show multiple overlay arrows.
8781 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
8782
8783 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
8784 Compare overlay_arrow_bitmap than overlay_arrow_p members.
8785
8786 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
8787 rather than from window.
8788 (update_window_fringes): Compare overlay_arrow_bitmap rather than
8789 overlay_arrow_p members.
8790 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
8791 if not default.
8792
8793 * window.h (struct window): Remove member overlay_arrow_bitmap.
8794
8795 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
8796
8797 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
8798 Calls changed. Don't check for overlay-arrow-bitmap property here.
8799 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
8800 fringe is present, return Lisp integer for bitmap (or -1 for default).
8801 Fix value of overlay-arrow-bitmap property to be a symbol, use
8802 lookup_fringe_bitmap to parse it.
8803 (display_line): Change call to overlay_arrow_at_row. Store integer
8804 return value as overlay bitmap in row rather than window.
8805 Only show overlay arrow if row displays text, or if no other overlay
8806 arrow is seen in window (if overlay marker is at point-max).
8807
7d603e3f
TTN
88082005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
8809
8810 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
8811
9942fa0c
LK
88122005-04-18 Lute Kamstra <lute@gnu.org>
8813
8814 * lread.c (Vloads_in_progress): Static.
8815 * fns.c (Vloads_in_progress): Remove extern.
8816 (load_in_progress): Add extern.
8817 (Frequire): Use load_in_progress instead of Vloads_in_progress.
8818
999cdb8f
TTN
88192005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
8820
8821 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
8822
3f4413f8
YM
88232005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8824
8825 * macterm.c (XTread_socket): Don't beep on keyboard input even if
8826 no frame is visible.
8827
60ec7b7e
DN
88282005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8829
8830 * term.c (struct keys): Add support for shifted keys.
8831
a8a1c0ee
RS
88322005-04-16 Richard M. Stallman <rms@gnu.org>
8833
8834 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
8835 (set_message): Call with_echo_area_buffer with WHICH = 0.
8836 (set_message_1): Erase the echo area buffer first thing.
8837 (echo_area_display): Don't clear echo_message_buffer.
8838
f3cf04d3
YM
88392005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8840
8841 * Makefile.in (mac.o): Depend on charset.h and coding.h.
8842
8843 * mac.c: Include charset.h and coding.h.
8844 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 8845 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
8846 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
8847
8848 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
8849
8850 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
8851
8852 * macterm.c (x_autoselect_window_p): Remove variable.
8853 (last_window): New variable.
7ec64183
SM
8854 (XTreassert_line_highlight, x_change_line_highlight):
8855 Remove declarations.
f3cf04d3
YM
8856 (mac_focus_changed, x_detect_focus_change): New functions and
8857 declarations.
8858 (XTextExtents16, front_emacs_window): Remove function.
8859 (mac_focus_frame): New function.
8860 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
8861 (mac_check_for_quit_char): Use it instead of front_emacs_window.
8862 (x_scroll_bar_report_motion): Obtain window from control owner.
8863 (x_make_frame_invisible): Set window manager size hint.
8864 (do_mouse_moved): Remove function.
8865 (XTread_socket): Move its contents here. Generate select-window
8866 event on mouse movement if needed. Use x_detect_focus_change on
8867 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
8868 window rectangle when dnd items are dropped.
8869 Don't activate/deactivate root control.
f3cf04d3
YM
8870 (frame_highlight, frame_unhighlight): Activate/deactivate root
8871 control here.
8872 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
8873
8874 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
8875 New extern.
8876
9e5b2858
LT
88772005-04-15 Luc Teirlinck <teirllm@auburn.edu>
8878
8879 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
8880 (lisp): Use it.
8881 (SOME_MACHINE_LISP): Add tooltip.
8882
42c6741e
YM
88832005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8884
7ec64183
SM
8885 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
8886 Don't include TextEncodingConverter.h.
42c6741e
YM
8887 (mac_system_script_code, Vmac_system_locale): New variables.
8888 (syms_of_mac): Defvar them.
8889 (mac_get_system_locale): New function.
8890
7ec64183
SM
8891 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
8892 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 8893 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
8894 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
8895 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
8896
8897 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
8898 TextEncodingConverter.h.
8899
0614c575
ST
89002005-04-13 Steven Tamm <steventamm@mac.com>
8901
7e26f91b
KS
8902 * macterm.c (syms_of_macterm): Remove redundant definition of
8903 mac-pass-control-to-system.
0614c575 8904
203eb0aa
SM
89052005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8906
8907 * window.c (Fset_window_configuration): Be careful when you choose
8908 among several possible points for the new_current_buffer.
8909
a56e6111
YM
89102005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8911
8912 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
8913 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
8914 (Qlanguage_change) [MAC_OS]: New variable.
8915 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 8916 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
8917
8918 * macterm.c (mac_keyboard_text_encoding)
8919 (current_mac_keyboard_text_encoding): Remove variables.
5e1a6e32 8920 (XTread_socket): Store language-change event if keyboard script change
7e26f91b 8921 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 8922 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 8923
7e26f91b 8924 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 8925
6695c528
RS
89262005-04-10 Richard M. Stallman <rms@gnu.org>
8927
8928 * emacs.c (standard_args): Rename --bare-bones to --quick.
8929 Add -D aka --basic-display.
8930
8931 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
8932
18e2d91f
RS
89332005-04-09 Richard M. Stallman <rms@gnu.org>
8934
8935 * keymap.c (where_is_internal): Convert a string used as event type
8936 into "(any string)".
8937
8938 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
8939 * fns.c (Vloads_in_progress): Add extern.
8940 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
8941
89422005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
8943
8944 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
8945
1cf21850
LK
89462005-04-09 Lute Kamstra <lute@gnu.org>
8947
8948 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
8949 within the accessible part of the buffer.
8950
bfd93240
KS
89512005-04-09 Kim F. Storm <storm@cua.dk>
8952
8953 * lread.c (readevalloop): Add args START and END as region in
8954 current buffer to read. Callers changed.
8955 When specified, narrow to this region only when reading,
8956 not during eval. Track next point to read from during eval.
8957 Also restore point to "real" buffer position before eval.
8958 (Feval_region): Don't save excursion and restriction here, and
8959 don't narrow to region. Just pass region to readevalloop.
8960 Note: Point is now preserved even when PRINTFLAG is nil.
8961
9ba27690
KS
89622005-04-08 Kim F. Storm <storm@cua.dk>
8963
8964 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
8965
73f0d996
KS
89662005-04-06 Kim F. Storm <storm@cua.dk>
8967
8968 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
8969
369f76bb
YM
89702005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8971
8972 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
8973 (Fmac_get_preference): Doc fix.
8974
203eb0aa
SM
8975 * macfns.c (Fx_create_frame, x_create_tip_frame):
8976 Add "fontset-mac" to fallback font/fontsets.
369f76bb 8977
2ba613a6
KS
89782005-04-04 Kim F. Storm <storm@cua.dk>
8979
4d5ddddc
KS
8980 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
8981
2ba613a6
KS
8982 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
8983 Call it again after autoload.
8984
1673df2e
JD
89852005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8986
8987 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
8988 mallopt.
8989
8990 * ralloc.c (r_alloc_init): Ditto.
8991
41639988
KH
89922005-04-01 Kenichi Handa <handa@m17n.org>
8993
1cf21850
LK
8994 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
8995 (Vascii_eqv_table): Extern them.
41639988
KH
8996
8997 * casetab.c (set_case_table): If standard is nonzero, setup
8998 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
8999
9000 * search.c (looking_at_1): Use current_buffer->case_canon_table,
9001 not DOWNCASE_TABLE.
9002 (string_match_1): Likewise.
9003 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
9004 Vascii_downcase_table.
9005 (fast_string_match_ignore_case): Likewise.
9006 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
9007 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
9008 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
9009 simple_translate.
9010
6ca53601
SM
90112005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9012
9013 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
9014 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
9015 Use XtNtopShadowPixel and XtNbottomShadowPixel.
9016 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
9017 really work and that breaks with some versions of Xaw3d.
9018
fafbb99d 90192005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
9020
9021 * coding.c (syms_of_coding): Fix previous change.
9022
6ca53601
SM
90232005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
9024
9025 * fileio.c (search_embedded_absfilename): Fix last change.
9026
bf762c98
KH
90272005-03-25 Kenichi Handa <handa@m17n.org>
9028
9029 * coding.c (syms_of_coding): Suggest to use set-coding-category in
9030 the docstring of coding-category-list.
9031
f793f885
KS
90322005-03-31 Kim F. Storm <storm@cua.dk>
9033
9034 * keyboard.c (Qmouse_fixup_help_message): New var.
9035 (syms_of_keyboard): Intern and staticpro it.
9036 (show_help_echo): Apply mouse-fixup-help-message to help string.
9037
c364fe19
KS
90382005-03-30 Kim F. Storm <storm@cua.dk>
9039
9040 * xdisp.c (display_line): Allow multiple overlay arrows in window.
9041
c70a4df6
SM
90422005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9043
9044 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
9045 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
9046 (Ffile_name_absolute_p): Use it.
9047 (search_embedded_absfilename): New fun, extracted from
9048 Fsubstitute_in_file_name. Use file_name_absolute_p.
9049 Free the pw data after use.
9050 (Fsubstitute_in_file_name): Use it.
9051 After cutting a prefix, re-check file-name-handler.
9052
6e7d0438
JR
90532005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
9054
6ca53601 9055 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
9056
9057 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
9058 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
9059
65671706
SM
90602005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9061
9062 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
9063 Use Fexit_minibuffer.
9064 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
9065
0de4dad4
SM
90662005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9067
781da985
SM
9068 * dired.c (Ffile_attributes): Add a missing gcpro.
9069
0de4dad4
SM
9070 * alloc.c (make_number): The arg can be bigger than `int'.
9071 * lisp.h (make_number): Make prototype more precise.
9072
9073 * process.c, dired.c (Vfile_name_coding_system)
9074 (Vdefault_file_name_coding_system):
9075 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
9076 (Vdefault_file_name_coding_system): Remove unused declarations.
9077
ff18668f
JD
90782005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9079
9080 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
9081 if it failed to pop up (Gnome "show pointer on ctrl" option makes
9082 menus fail to pop up).
9083
0de4dad4 90842005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
9085
9086 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 9087 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 9088
8df0ffbe
KS
90892005-03-22 Kim F. Storm <storm@cua.dk>
9090
9091 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
9092 * dispextern.h (lookup_derived_face): Fix prototype.
9093 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
9094
9095 * xdisp.c (handle_single_display_spec): Derive left-fringe and
9096 right-fringe face from fringe face.
9097
9098 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
9099 Derive face from fringe face.
9100
6ca30ba4
JD
91012005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9102
9103 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
9104
d615870a
DK
91052005-03-22 David Kastrup <dak@gnu.org>
9106
9107 * textprop.c (Fnext_char_property_change)
66347da7 9108 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
9109 (Fnext_single_char_property_change)
9110 (Fprevious_single_char_property_change): Check that limit is a
9111 number in strings.
9112 (Fnext_single_char_property_change): Coerce position to integer.
9113 (Fprevious_single_char_property_change): Same here.
9114
32b939ea
TTN
91152005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
9116
9117 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
9118
6027e473
SM
91192005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9120
9121 * frame.c (Fignore_event): Remove.
9122 (syms_of_frame): Don't defsubr it.
9123
9124 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
9125 redundant `ignore-event'.
9126
730f4d72
EZ
91272005-03-19 Eli Zaretskii <eliz@gnu.org>
9128
9129 * unexec.c (write_segment, unexec): Move these functions to avoid
9130 forward references (which cause errors with "gcc -gcoff").
9131
c7f6afd5
JD
91322005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9133
6027e473 9134 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 9135 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 9136
c7f6afd5
JD
9137 * xrdb.c (x_load_resources): Use different char *helv when I18N
9138 is present.
9139
db328182
KH
91402005-03-17 Kenichi Handa <handa@m17n.org>
9141
66347da7 9142 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 9143
211f2210
SM
91442005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9145
9146 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
9147 Use xic_create_fontsetname even for non-Motif menus.
9148 Don't forget to free the fontsetname.
9149
9150 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
9151
c7bd5d57
RS
91522005-03-17 Richard M. Stallman <rms@gnu.org>
9153
9154 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
9155
9156 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
9157 (Fmake_symbolic_link): Use G to read the new file name.
9158
9159 * callint.c (Finteractive): Document G option.
9160 (Fcall_interactively): Implement G option.
9161
9162 * buffer.c (buffer_lisp_local_variables): New function,
9163 broken out from Fbuffer_local_variables.
9164 (clone_per_buffer_values): Use buffer_lisp_local_variables.
9165
888953f1
SM
91662005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9167
3c916d65
SM
9168 * xfns.c (xic_create_fontsetname): Add `motif' argument.
9169 Always return a freshly allocated string.
9170 (xic_create_xfontset): Adjust call.
9171
9172 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
9173 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
9174 (dump_realized_face): Fix warning.
9175
9f9e5275
SM
9176 * emacs.c (Fkill_emacs): YAILOM.
9177
888953f1
SM
9178 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
9179
48502d68
YM
91802005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9181
9182 * mac.c (HASHKEY_TERMINAL): Remove.
9183 (HASHKEY_MAX_NID): New macro.
9184 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
9185 argument.
888953f1 9186 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
9187 (xrm_create_database, xrm_q_put_resource)
9188 (xrm_merge_string_database, xrm_q_get_resource_1)
9189 (xrm_q_get_resource): Change resource database representation so
9190 that it may not use multiple hash tables for a single database.
9191 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
9192
d5161e8c
SM
91932005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
9194
11a646cd
SM
9195 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
9196
9197 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
9198 locale-coding-system, as was already done for WINDOWSNT.
9199
d5161e8c
SM
9200 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
9201 translation for chars in the 0-255 range.
9202
568b6e41
LK
92032005-03-16 Lute Kamstra <lute@gnu.org>
9204
9205 * floatfns.c (Ffloor): Doc fix.
9206
469fb3cf
YM
92072005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9208
9209 * mac.c: Include macterm.h instead of directly including Carbon.h.
9210 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
9211 (Qarray, Qdictionary): New variables.
9212 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
9213 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
9214 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
9215 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
9216 in callback for CFDictionaryApplyFunction.
9217 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9218 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9219 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
9220 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
9221 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
9222 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
9223 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 9224 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
9225 (parse_binding, parse_component, parse_resource_name, parse_value)
9226 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
9227 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
9228 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
9229 New functions.
469fb3cf
YM
9230
9231 * macfns.c (mac_get_rdb_resource): Remove function.
9232 (x_get_string_resource): Use xrm_get_resource.
9233
9234 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
9235
9236 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
9237 name_list_element.
9238 (mac_make_rdb): Create resource database from preferences and
9239 argument string.
9240 (mac_term_init): Save resource database to cddr part of
9241 name_list_element.
9242
9243 * macterm.h (xrm_merge_string_database, xrm_get_resource)
9244 (xrm_get_preference_database): Add externs.
9245 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9246 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9247 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
9248
9249 * process.c (init_process): Change `#ifdef DARWIN' to `#if
9250 defined (DARWIN) || defined (MAC_OSX)'
9251
9252 * s/darwin.h (DARWIN): Don't define.
9253
6a3fac90
YM
92542005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9255
9256 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
9257 Remove unused variables.
9258 (syms_of_macfns): Don't initialize them. Likewise for
9259 Qface_set_after_frame_default. Defvar and initialize
9260 Vx_window_horizontal_drag_shape.
9261 (x_set_mouse_color): Change mouse pointer shape.
9262 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 9263 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
9264 (hourglass_started): New function (from xfns.c).
9265 (start_hourglass, cancel_hourglass): Put function body in #ifdef
9266 MAC_OSX.
9267 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
9268 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 9269 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
9270
9271 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
9272 Controls.h. Use ThemeCursor instead of CursHandle.
9273
d5161e8c
SM
9274 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
9275 Remove functions and declarations.
9276 (mac_set_colors): Take argument for saving background color.
9277 All callers changed.
6a3fac90
YM
9278 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
9279 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
9280 background color.
9281 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
9282 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
9283 Use SetThemeCursor.
6a3fac90
YM
9284 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
9285 indicator control to the upper-right corner of the window.
9286 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
9287 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
9288 (do_window_update): Update controls after updating content area.
9289 (mac_handle_window_event): Remove unused extern.
9290 (XTread_socket): Check both control handle and control part code
9291 to determine whether a scroll bar is clicked. Activate/deactivate
9292 root control instead of contained scroll bar controls.
9293 (make_mac_terminal_frame): Use ThemeCursor constants.
9294
d5161e8c
SM
9295 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
9296 New member hourglass_control.
6a3fac90 9297 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 9298 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 9299
a7321976
YM
93002005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9301
9302 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 9303 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
9304 laptops, and fn + `enter' on laptops.
9305
f7b758bd
SM
93062005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9307
9308 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
9309 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
9310 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
9311
9312 * xfns.c (xic_defaut_fontset): New constant.
9313 (xic_create_fontsetname): New function.
9314 Extracted from create_frame_xic. Try to generate a slightly
9315 better fontset.
9316 (xic_create_xfontset): Use it.
9317 (create_frame_xic): Simplify.
9318
dac24db4
SM
93192005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
9320
9321 * fileio.c (Fmake_symbolic_link): Fix last change.
9322
e0402468
RS
93232005-03-11 Richard M. Stallman <rms@gnu.org>
9324
9325 * fileio.c (Frename_file, Fadd_name_to_file)
9326 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
9327 expand the basename of FILE relative to it.
9328
fa815b14
KH
93292005-03-11 Kenichi Handa <handa@m17n.org>
9330
9331 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
9332 before calling setup_coding_system so that autoloading of a coding
9333 system work.
9334
817d354b
JD
93352005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9336
68a505ef
JD
9337 * xfns.c (hourglass_started): New function.
9338
9339 * dispextern.h: Declare hourglass_started.
9340
9341 * keyboard.c (Fexecute_extended_command): Restart hourglass
9342 after call to Fcompleting_read if already started.
9343
817d354b
JD
9344 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
9345 GTK main loop is entered in xterm.c, thus doing the redraw.
9346
b0a6f45c
KS
93472005-03-10 Kim F. Storm <storm@cua.dk>
9348
9349 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
9350
ee5d57b0
KH
93512005-03-08 Kenichi Handa <handa@m17n.org>
9352
9353 * frame.c (x_set_font): Call set_default_ascii_font if an
9354 available font is found.
9355
9356 * fontset.c (set_default_ascii_font): New function.
dac24db4 9357 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
9358
9359 * fontset.h (set_default_ascii_font): Extern it.
9360
f30c4a5c
KS
93612005-03-07 Kim F. Storm <storm@cua.dk>
9362
3fb26a86
KS
9363 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
9364 (clear_image_cache_count): New var.
9365 (redisplay_internal): Don't clear face and image caches in the
9366 middle of redisplay; do it afterwards.
9367
a54595d4
KS
9368 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
9369
f30c4a5c
KS
9370 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
9371 is valid. If not, clear phys_cursor_on_p and return.
9372
3d182f9d
AS
93732005-03-07 Andreas Schwab <schwab@suse.de>
9374
9375 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
9376
85d964de
RS
93772005-03-06 Richard M. Stallman <rms@gnu.org>
9378
9379 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
9380
9381 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
9382 (Feval, Ffuncall): Use CHECK_CONS_LIST.
9383
9384 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
9385
9386 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
9387 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
9388
3ff96c81
JL
93892005-03-05 Juri Linkov <juri@jurta.org>
9390
9391 * emacs.c (USAGE1): Replace Info node name "command arguments"
9392 with "emacs invocation".
9393 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
9394 allow arguments `--color' and `MODE' to be separated by space.
9395 Add --no-blinking-cursor, -nbc.
9396 (standard_args): Add -nbc, --no-blinking-cursor.
9397
64eb0083
TTN
93982005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
9399
9400 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
9401 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
9402 * fileio.c (Fexpand_file_name) [VMS]:
9403 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
9404 * doc.c (munge_doc_file_name) [VMS]: Likewise.
9405 (Fsnarf_documentation): Call munge_doc_file_name.
9406
ad708ae5
TTN
94072005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
9408
9409 * s/vms.h (FILE_SYSTEM_CASE): New macro.
9410 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
9411 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
9412
ba025f6d
YM
94132005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9414
9415 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
9416 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 9417
dac24db4 9418 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
9419
9420 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
9421 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 9422 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
9423 (mac_clear_font_name_table): Move extern to macterm.h.
9424
9425 * macfns.c (install_window_handler): Move extern to macterm.h.
9426 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
9427 valid. Don't check !NILP (dir) because it is already checked with
9428 CHECK_STRING.
9429 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 9430 specifying the default location and obtaining the selected filename.
ba025f6d
YM
9431
9432 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
9433
2313f861 9434 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
9435 are included via Carbon.h.
9436
dac24db4
SM
9437 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
9438 Define USE_CARBON_EVENTS to 1.
2313f861 9439 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
9440 (x_free_frame_resources): Call remove_window_handler for
9441 non-tooltip windows.
9442 [TARGET_API_MAC_CARBON]: Don't include headers that are included
9443 via Carbon.h.
9444 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
9445 (mac_do_receive_dragUPP): New variables.
9446 (mac_handle_service_event, init_service_handler): Put declarations
9447 and definitions in #ifdef MAC_OSX.
9448 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
9449 drag-and-drop handler functions and register them.
9450 (remove_window_handler): New function.
dac24db4
SM
9451 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
9452 Use fsspec_to_posix_pathname.
ba025f6d
YM
9453 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
9454 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
9455 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
9456 Set default cursors.
ba025f6d
YM
9457 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
9458 init_service_handler or init_quit_char_handler.
9459 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
9460
9461 * macterm.h (install_window_handler, remove_window_handler)
9462 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
9463 (mac_clear_font_name_table): New externs.
ad708ae5 9464
c1558952
TTN
94652005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
9466
9467 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
9468 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
9469 (Fexpand_file_name): Likewise.
9470
fa439170
TTN
94712005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
9472
9473 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
9474 no longer special-case VMS. Add bogus return value.
9475
db2dacf6
KS
94762005-03-02 Kim F. Storm <storm@cua.dk>
9477
9478 * dispextern.h (XASSERTS): Define to 0 if not already defined.
9479 (xassert) [!XASSERTS]: Define dummy version.
9480
0870514c
KS
94812005-03-02 Kim F. Storm <storm@cua.dk>
9482
9483 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
9484 Reported by David Kastrup.
9485
6b640092
KS
94862005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
9487
9488 * xdisp.c (get_next_display_element): Fix control and escape
9489 glyph from display vector.
9490
f4a5a485
SM
94912005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
9492
9493 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
9494
85d964de
RS
94952005-02-27 Richard M. Stallman <rms@gnu.org>
9496
9497 * xdisp.c (fast_find_position): Rename END to BEG.
9498 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
9499
6e8db3ea
JD
95002005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9501
f4a5a485 9502 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
9503 gtk_window_resize and x_wm_set_size_hint.
9504
0f465b55
KS
95052005-02-25 Kim F. Storm <storm@cua.dk>
9506
9507 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
9508
9509 * xdisp.c (init_from_display_pos): Don't read past end of
9510 it->overlay_strings array.
9511
d5fb8dab 95122005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
9513
9514 * buffer.c (syms_of_buffer): Fix typo.
9515
b02c3eed
LK
95162005-02-23 Lute Kamstra <lute@gnu.org>
9517
9518 * buffer.c (Foverlay_buffer): Doc fix.
9519
c8500765
KS
95202005-02-22 Kim F. Storm <storm@cua.dk>
9521
b686dd59
KS
9522 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
9523 and symbol keys in alists and hash tables.
9524
c8500765
KS
9525 * xdisp.c (fast_find_position): Fix search for start of overlay.
9526
81c85b53
KS
95272005-02-21 Kim F. Storm <storm@cua.dk>
9528
9529 * window.c (window_scroll_pixel_based): When scrolling backwards,
9530 handle partial visible line at end of window even when we hit PT.
9531
f4a5a485 95322005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
9533
9534 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
9535
0dd5a842
KS
95362005-02-21 Kim F. Storm <storm@cua.dk>
9537
9538 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
9539 I think those asserts are bogus if buffer contains invisible text
9540 or images.
9541
d5fb8dab 95422005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
9543
9544 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
9545
0fba9f25
KS
95462005-02-20 Kim F. Storm <storm@cua.dk>
9547
9548 * xdisp.c (pos_visible_p): Be sure to move to the specified
9549 position. Always get the full ascent / descent of the
9550 corresponding row, to return reliable rtop and rbot values.
9551 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
9552 Must look one character back, as back_to_previous_line_start
9553 returns position after the newline.
9554 (move_it_vertically_backward): Fix heuristic for when to move further
9555 back in case line_height * 2/3 is larger than window height.
9556 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
9557 as it does not do anything anymore. Add arg current_matrix_p to
9558 use current matrix rather than desired matrix when set.
9559 (try_cursor_movement): Don't scroll to make cursor row fully
9560 visible if cursor didn't move. This avoids unexpected recentering
9561 in case of blinking cursor or accepting process output.
9562 Use current matrix to check cursor row visibility.
9563 (redisplay_window): Fix whether to recenter or move to top in case
9564 cursor line is taller than window height.
9565 (find_first_unchanged_at_end_row): Stop search if we reach a row
9566 which not enabled (instead of abort).
9567
b1c2adc3
KS
95682005-02-18 Kim F. Storm <storm@cua.dk>
9569
c2ee48fb
KS
9570 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
9571 to be nil in a :box attribute value list; customize prints that
9572 as lisp value when no box color is specified.
9573
b1c2adc3
KS
9574 * .gdbinit (pitx, pit): Pretty print display iterator.
9575 (prowx, prow): Pretty print glyph row.
9576 (pcursorx, pcursor): Pretty print a window cursor.
9577 (pwinx, pwin): Pretty print struct window.
9578
f102186f
SM
95792005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9580
9581 * alloc.c (BLOCK_BYTES): Harmless typo.
9582
9b516537
AS
95832005-02-17 Andreas Schwab <schwab@suse.de>
9584
9585 * xfns.c (hack_wm_protocols): Use correct type for last parameter
9586 of XGetWindowProperty to avoid aliasing issues.
9587 (Fx_window_property): Likewise.
9588
9589 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 9590 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
9591
9592 * xterm.c (handle_one_xevent): Use union of struct input_event and
9593 struct selection_input_event to avoid aliasing issues.
9594 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
9595
886b1418
KS
95962005-02-17 Kim F. Storm <storm@cua.dk>
9597
9598 * dispextern.h (enum it_method): New enum.
9599 (GET_FROM_*): Its members.
9600 (struct it): Change member method from function pointer to enum.
9601
9602 * xdisp.c (check_it, init_from_display_pos, handle_stop)
9603 (setup_for_ellipsis, handle_single_display_spec)
9604 (handle_composition_prop, next_overlay_string)
9605 (get_overlay_strings, reseat_1, reseat_to_string)
9606 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
9607 (in_display_vector_p, display_line, get_next_display_element):
9608 Change it->method from function pointer to enum.
9609 (get_next_element): New array to map it->method to function.
9610 (get_next_display_element): Use it.
9611 (set_iterator_to_next): Use switch instead of if/else chain.
9612
99ee2c6a 96132005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
9614
9615 * w32select.c: Summary: Thorough rework to implement Unicode
9616 clipboard operations and delayed rendering.
9617
9618 Drop last_clipboard_text and related code, keep track of
f4a5a485 9619 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
9620
9621 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
9622 (clipboard_owner, modifying_clipboard, cfg_coding_system)
9623 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
9624 (current_coding_system, current_requires_encoding)
f4a5a485
SM
9625 (current_num_nls, current_clipboard_type, current_lcid):
9626 New static variables.
52c7f9ee
JR
9627
9628 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
9629 (render, render_all, run_protected, lisp_error_handler)
9630 (owner_callback, create_owner, setup_config)
f4a5a485
SM
9631 (enum_locale_callback, cp_from_locale, coding_from_cp):
9632 New local functions.
52c7f9ee
JR
9633
9634 (term_w32select, globals_of_w32select): New global functions.
9635
9636 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
9637 clipboard_owner instead. Use delayed rendering and provide
9638 all text formats. Provide CF_LOCALE if necessary.
9639
9640 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
9641 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
9642 available. Force DOS line-ends for decoding.
9643
9644 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
9645
9646 (syms_of_w32select): Init and register new variables.
9647
9648 * w32.h: Add prototypes for globals_of_w32select and
9649 term_w32select. Make the neighboring K&R declarations into
9650 prototypes, too.
9651
9652 * emacs.c: Include w32.h to get function prototypes.
9653 (main): Call globals_of_w32select.
9654
886b1418 9655 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
9656
9657 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
9658
86e61586
KS
96592005-02-16 Kim F. Storm <storm@cua.dk>
9660
9661 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
9662 at end of display vector.
9663
6407f07b
RS
96642005-02-15 Richard M. Stallman <rms@gnu.org>
9665
9666 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
9667 for mode and header lines.
9668
9669 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
9670
9671 * keymap.h (describe_map_tree): Change decl.
9672
9673 * keyboard.c (command_loop_1): Always use safe_run_hooks
9674 to run Qdeferred_action_function.
9675
9676 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
9677 (describe_map, describe_vector): Likewise. When it's 1,
9678 don't omit shadowed bindings, instead mark them as shadowed.
9679
9680 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
9681 for describe_map_tree. Pass 1 for MENTION_SHADOW.
9682
9683 * data.c (Fsetq_default): Allow no arg case.
9684
3bb917bf
KH
96852005-02-14 Kenichi Handa <handa@m17n.org>
9686
9687 * coding.c (encode_coding_string): Always return a unibyte string.
9688 If NOCOPY is nonzero and there's no need of encoding, make STR
9689 unibyte directly.
9690
9691 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
9692 multibyte string, signal an error instead of aborting.
9693
e31d908f
DN
96942005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
9695
9696 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
9697
48e029b6
KS
96982005-02-12 Kim F. Storm <storm@cua.dk>
9699
9700 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
9701
c10bb00a
KS
97022005-02-10 Kim F. Storm <storm@cua.dk>
9703
9704 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
9705 if it moves outside window or it doesn't display text.
9706
9ca0f64a
KS
97072005-02-09 Kim F. Storm <storm@cua.dk>
9708
9709 * undo.c (Fprimitive_undo): Check that undo function does not
9710 switch buffer.
9711
b8d6f4af
JD
97122005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9713
9714 * xselect.c (selection_data_to_lisp_data): For the special case
9715 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
9716 (x_property_data_to_lisp, selection_data_to_lisp_data):
9717 Comment update: data must be array of int for format == 32.
b8d6f4af 9718
3419757d
SM
97192005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9720
9721 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
9722
3a441526
JD
97232005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9724
fc34503b
JD
9725 * xfns.c (Fx_change_window_property): Use long array when format is 32.
9726 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
9727 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
9728 (x_set_tool_bar_lines): Check that width and height is greater than
9729 zero before clearing area.
fc34503b
JD
9730
9731 * xselect.c (x_reply_selection_request): Pass long array to
9732 XChangeProperty so that 64 bit longs are handeled correctly.
9733 (x_get_window_property): If format is 32 and long is bigger than 32
9734 bits convert data from XGetWindowProperty from long array to int array.
9735 (lisp_data_to_selection_data): When the input is a vector and the
9736 format is 32, allocate a long array even if long is bigger than 32 bits.
9737 (x_fill_property_data): Use char, short and long as the man page
9738 for XChangeProperty specifies. This way the data returned is OK for
9739 both 32 and 64 bit machines.
9740 (x_handle_dnd_message): Calculate size correctly even for 64 bit
9741 machines.
9742 (Fx_send_client_event): Undo change from 2005-02-05,
9743 x_fill_property_data now handles that case.
9744
3419757d 9745 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
9746 reason for the approach in the code.
9747
82ec225b
KS
97482005-02-07 Kim F. Storm <storm@cua.dk>
9749
9750 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
9751
ba2c991c
RS
97522005-02-06 Richard M. Stallman <rms@gnu.org>
9753
9754 * eval.c (Frun_hook_with_args)
9755 (Frun_hook_with_args_until_success)
9756 (Frun_hook_with_args_until_failure): Doc fixes.
9757
e120ea40
AS
97582005-02-05 Andreas Schwab <schwab@suse.de>
9759
3419757d 9760 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 9761
31f16913
JD
97622005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9763
9764 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
9765 the longs in a XClientMessageEvent correctly when long is 64 bits.
9766
6082a820
EZ
97672005-02-05 Eli Zaretskii <eliz@gnu.org>
9768
9769 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
9770 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
9771
0e95095b
JD
97722005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9773
9774 * xmenu.c (menubar_selection_callback): Force out GTK buffered
9775 events so the menu event comes after them. This is to prevent sit-for
9776 from exiting on buffered events directly after a menu selection,
9777 lisp code for Help => About Emacs uses sit-for.
9778
9779 * gtkutil.c (create_menus): Connect selection-done event instead of
9780 the deactivate event to deactivate_cb. This will make the last
9781 leave event come before the call to deactivate_cb, so the leave
9782 event does not make sit-for exit after a menu selection.
9783
5bb6a3c1
KS
97842005-02-03 Kim F. Storm <storm@cua.dk>
9785
9786 * dispnew.c (build_frame_matrix_from_leaf_window)
9787 [!GLYPH_DEBUG]: Fix xassert.
9788
9789 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
9790
9791 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9792
e9859e26
YM
97932005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9794
9795 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
9796 the compiling OS version.
9797
9798 * macfns.c (x_create_tip_frame): Likewise.
9799
3419757d 9800 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 9801
4e07258f
RS
98022005-02-03 Richard M. Stallman <rms@gnu.org>
9803
9804 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
9805
9806 * xdisp.c (echo_area_display): Clear echo_message_buffer.
9807
9808 * buffer.c (Fbury_buffer): Doc fix.
9809
4a34b529
ST
98102005-02-02 Steven Tamm <steventamm@mac.com>
9811
7e26f91b 9812 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 9813 xassert being uncondition, but predicate is.
7e26f91b 9814 * dispnew.c (update_window): Fix compile error due to
f6c62d96 9815 xassert being uncondition, but predicate is.
4a34b529 9816
d78f30b8
MB
98172005-02-02 Miles Bader <miles@gnu.org>
9818
9819 * dispextern.h (xassert): Enable unconditionally.
9820
b044278d
KS
98212005-02-02 Kim F. Storm <storm@cua.dk>
9822
9823 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
9824
56072160
KH
98252005-02-02 Kenichi Handa <handa@m17n.org>
9826
9827 * casefiddle.c (casify_object): Enable changing characters of
9828 different byte length.
9829 (casify_region): Fix loop condition, args to replace_range_2, and
9830 update opoint_byte.
9831
f4a5a485 9832 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 9833
5e1674c5
KS
98342005-02-01 Kim F. Storm <storm@cua.dk>
9835
9836 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
9837 stack before calling handle_display_prop.
9838
fb89c330
KS
98392005-01-31 Kim F. Storm <storm@cua.dk>
9840
9841 * undo.c (Qapply): New lisp var.
9842 (syms_of_undo): Intern and staticpro it.
9843 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
9844 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
9845
9846 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
9847
7bf72fa6
JH
98482005-01-30 Jesper Harder <harder@phys.au.dk>
9849
a050b1a9
KS
9850 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
9851 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 9852
03c64f2e
LT
98532005-01-29 Luc Teirlinck <teirllm@auburn.edu>
9854
9855 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 9856 Increase value to 3 Meg.
03c64f2e 9857
49b8b5dc
JD
98582005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9859
9860 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
9861 button events are not received otherwise.
9862
5a92a9eb
RS
98632005-01-29 Richard M. Stallman <rms@gnu.org>
9864
9865 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
9866
9867 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
9868
5c243ee4
SM
98692005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9870
9871 * keymap.c (access_keymap): YAILOM.
9872
caf533af
KS
98732005-01-27 Kim F. Storm <storm@cua.dk>
9874
9875 * xdisp.c (get_phys_cursor_geometry): New function to calculate
9876 phys cursor position and size for hollow cursor. Position is
9877 aligned with get_glyph_string_clip_rect and ensures that a hollow
9878 cursor is shown, even when the actual glyph is not visible.
9879
9880 * dispextern.h (get_phys_cursor_geometry): Add prototype.
9881
9882 * xterm.c (x_clip_to_row): Ensure y >= 0.
9883 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9884
9885 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9886
9887 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9888
043f7f73
SM
98892005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
9890
9891 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
9892
889f3641
KS
98932005-01-27 Kim F. Storm <storm@cua.dk>
9894
9895 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
9896 glyph, even when row is only partially visible and actual cursor
9897 position is not visible.
9898
29099c2f
RS
98992005-01-24 Richard M. Stallman <rms@gnu.org>
9900
9901 * xterm.c (x_error_quitter): No longer static, and moved after
9902 x_error_handler.
9903
6adb6f01
KS
99042005-01-24 Kim F. Storm <storm@cua.dk>
9905
9906 * xdisp.c (move_it_by_lines): If we move forward after going too
9907 far back, cancel move if end position is same as start position.
9908
4d904fa0
ST
99092005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9910
9911 * dispextern.h (struct glyph_string): New members clip_head and
9912 clip_tail.
6adb6f01 9913
4d904fa0
ST
9914 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
9915 region to the area between clip_head and clip_tail.
9916 (draw_glyphs): Record the area that need to be actually redrawn to
9917 the new variables clip_head and clip_tail when there are
9918 overhangs. Set values of these variables to the corresponding
9919 members in struct glyph_string. Refine x coordinates for
9920 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 9921
4d904fa0
ST
9922 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
9923
9924 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
9925 QDTextBounds.
9926 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 9927 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 9928 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 9929 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 9930
f2417699
KS
99312005-01-24 Kim F. Storm <storm@cua.dk>
9932
6f67f013
KS
9933 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
9934 direction if window height was smaller than next-screen-context-lines.
9935 Now always scroll at least one line in the requested direction.
9936 Ensure that we actually do scroll backwards when requested to do so.
9937
f2417699
KS
9938 * xdisp.c (redisplay_window): Only try to make cursor line fully
9939 visible once (to avoid redisplay loop).
9940
a354b72c
KS
99412005-01-23 Kim F. Storm <storm@cua.dk>
9942
6b3d88f7 9943 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 9944 partially visible rows.
6b3d88f7
KS
9945 (window_scroll_pixel_based): Adapt to that change.
9946
5c20cae2
KS
9947 * window.c (window_scroll_pixel_based): Force moving to next line
9948 if scrolling doesn't move start point, e.g. if looking at tall image.
9949
a354b72c 9950 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
9951 Clear last_height before calling line_bottom_y to get real height.
9952 Fix calculation of y.
a354b72c 9953
d9e7c622
ST
99542005-01-22 Steven Tamm <steventamm@mac.com>
9955
9956 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 9957 (DARWIN): Define.
7e26f91b 9958
d9e7c622
ST
9959 * process.c (init_process): Default process-connection-type to
9960 nil on darwin 6 or less, t if it is 7 or higher. This way the
9961 broken pty behavior is still allowed on darwin 6 for interactive
9962 processes for people that know what they are doing.
9963
d00e399a
KS
99642005-01-22 Kim F. Storm <storm@cua.dk>
9965
9966 * window.c (auto_window_vscroll_p): New boolean.
9967 (syms_of_window): DEFVAR_BOOL it.
9968 (Fpos_visible_in_window_p): Extend return value to include RTOP
9969 and RBOT values if FULLY is nil.
9970 (window_scroll_pixel_based): Adjust vscroll for partially visible
9971 rows if auto_window_vscroll_p is set.
9972 (Fset_window_vscroll): Do nothing if vscroll is not modified.
9973
9974 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
9975 to return number of partially invisible pixels at top and bottom
9976 of the dislay row at POS.
9977
9978 * lisp.h (pos_visible_p): Fix prototype.
9979
f95a20e7
RS
99802005-01-21 Richard M. Stallman <rms@gnu.org>
9981
9982 * fileio.c (Fcopy_file): Doc fix.
9983
eee141ce
JD
99842005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9985
9986 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
9987 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
9988 start of function for older compilers.
9989
6f771c32
RS
99902005-01-20 Richard M. Stallman <rms@gnu.org>
9991
9992 * editfns.c (Fmessage): If arg is "", return "" (as before).
9993
9994 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
9995
9996 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
9997 variable.
9998
a15252fd
ST
99992005-01-20 Steven Tamm <steventamm@mac.com>
10000
043f7f73 10001 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
10002 (init_editfns): Assign new variable operating-system-release
10003 based on call to uname if available.
043f7f73 10004 (get_operating_system_release): Add function to
d00e399a 10005 allow c-level access to operating system release.
a15252fd
ST
10006
10007 * config.h: Regenerated.
10008
043f7f73
SM
10009 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
10010 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
10011 using ptys as '7'.
10012
3d6a4b2d
KS
100132005-01-20 Kim F. Storm <storm@cua.dk>
10014
62fc9b0f
KS
10015 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
10016
c310aca4
KS
10017 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
10018 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
10019
10020 * macterm.c (x_draw_glyph_string_box): Likewise.
10021
10022 * w32term.c (x_draw_glyph_string_box): Likewise.
10023
3d6a4b2d
KS
10024 * indent.c (Fvertical_motion): Temporarily disable selective display.
10025
27c8be45
KS
100262005-01-19 Kim F. Storm <storm@cua.dk>
10027
77db5cf3
KS
10028 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
10029 image property.
10030
27c8be45
KS
10031 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
10032
81f498dc
KS
100332005-01-18 Kim F. Storm <storm@cua.dk>
10034
10035 * xdisp.c (fast_find_position): Backtrack to find first row if
10036 charpos is inside a display overlay that spans multiple lines.
10037
1cdb0707
KH
100382005-01-18 Kenichi Handa <handa@m17n.org>
10039
10040 * coding.c (decode_coding_iso2022): Translate invalid codes if
10041 translation-table is specified.
10042
677159ce
KS
100432005-01-18 Kim F. Storm <storm@cua.dk>
10044
10045 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
10046 change. If handle_display_prop indicates newline is replaced by
10047 image or text, move back to start of relevant overlay or interval
10048 and continue scan from there. Simplify.
10049
977284cc
KS
100502005-01-17 Kim F. Storm <storm@cua.dk>
10051
043f7f73
SM
10052 * dispnew.c (mode_line_string, marginal_area_string):
10053 Fix off-by-one error in search for glyph.
977284cc 10054
e24531b7
KS
100552005-01-16 Kim F. Storm <storm@cua.dk>
10056
10057 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
10058
5ddd7664
ST
100592005-01-16 Steven Tamm <steventamm@mac.com>
10060
043f7f73 10061 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 10062
fc2ff44b
AS
100632005-01-16 Andreas Schwab <schwab@suse.de>
10064
10065 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
10066
50af5100
JD
100672005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10068
10069 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
10070 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
10071
a2d5fca0
JD
100722005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10073
10074 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
10075 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
10076 New flags for readable_events.
043f7f73 10077 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
10078 (tracking_off): Call readable_events and get_input_pending with
10079 flag READABLE_EVENTS_DO_TIMERS_NOW.
10080 (readable_events): Move code from old readable_filtered_events here,
10081 but check new READABLE_EVENTS_* in argument flags instead of previous
10082 two boolean arguments do_timers_now and filter_events.
10083 If we are doing mouse tracking and the mouse moved, return only if
10084 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
10085 (swallow_events): Call get_input_pending with flag
10086 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 10087 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
10088 here. Replace boolean arguments do_timers_now, filter_events with
10089 flags, and pass flags to readable_events. Document new
10090 READABLE_EVENTS_* flags.
10091 (detect_input_pending_ignore_squeezables): New function.
10092 (detect_input_pending_run_timers): Call get_input_pending with flag
10093 READABLE_EVENTS_DO_TIMERS_NOW.
10094 (Finput_pending_p): Call get_input_pending with flags
10095 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
10096
10097 * dispnew.c (update_window, update_frame_1): Replace calls to
10098 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 10099 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
10100 mouse movements.
10101
10102 * lisp.h: Declare detect_input_pending_ignore_squeezables.
10103
42afbcda
ST
101042005-01-15 Steven Tamm <steventamm@mac.com>
10105
e24531b7
KS
10106 * macterm.c (Vmac_use_core_graphics): Declare variable for
10107 mac-allow-anti-aliasing.
10108 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 10109 (mac_draw_string_common): Use core graphics text rendering if
0530c679 10110 mac-allow-anti-aliasing is enabled.
743d0696 10111
42afbcda
ST
10112 * macfns.c (Fx_file_dialog): Save As dialog includes only the
10113 file name in the text box.
10114
9cdd4884
ST
101152005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10116
043f7f73
SM
10117 * macfns.c (x_set_foreground_color, x_set_background_color):
10118 Sync with xfns.c.
9cdd4884
ST
10119 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
10120 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
10121 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
10122
88948d55
KS
101232005-01-14 Kim F. Storm <storm@cua.dk>
10124
10125 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
10126
20d6de82
RS
101272005-01-13 Richard M. Stallman <rms@gnu.org>
10128
10129 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
10130 if Voverriding_terminal_local_map is non-nil.
10131
10132 * keyboard.c (syms_of_keyboard): Doc fix.
10133
f75a592e
KS
101342005-01-13 Kim F. Storm <storm@cua.dk>
10135
10136 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 10137 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 10138
28f94a34
RS
101392005-01-12 Richard M. Stallman <rms@gnu.org>
10140
10141 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
10142 face property for characters that don't specify one.
10143
10144 * fns.c (Frequire): Record in load-history unconditionally.
10145
57a230b1
KS
101462005-01-10 Kim F. Storm <storm@cua.dk>
10147
10148 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
10149
10150 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
10151 Callers changed.
10152 Add support to merge with lisp face id too (if face_name is t).
10153
10154 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10155 Don't lookup lface_id from display table glyphs here; instead use
10156 merge_faces to merge the lisp face id into current face.
10157
8ab2c119
KS
101582005-01-09 Kim F. Storm <storm@cua.dk>
10159
10160 * dispextern.h (struct it): New member dpvec_face_id.
10161 (merge_into_realized_face): Add prototype.
10162
10163 * xfaces.c (merge_into_realized_face): New function. Used to
5e1a6e32 10164 merge escape-glyph face or face from display table into current face.
8ab2c119
KS
10165
10166 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
10167 (syms_of_xdisp): DEFVAR_LISP it.
10168 (escape_glyph_face): Remove var.
10169 (redisplay_window): Don't initialize it.
10170 (setup_for_ellipsis, get_next_display_element):
10171 Set it->dpvec_face_id to -1.
10172 (get_next_display_element): Test Vshow_nonbreak_escape.
10173 Do not setup escape_glyph_face.
10174 Properly merge escape-glyph face or face from display table with
043f7f73
SM
10175 current face for escape and control characters.
10176 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
10177 element of display vector.
10178 (next_element_from_display_vector): If it->dpvec_face_id is set,
10179 use that instead of lface_id from glyph itself.
10180
e0910857
JD
101812005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10182
10183 * xterm.h (struct x_output): New member, toolbar_detached.
10184
10185 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
10186 38.
10187 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
10188 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
10189 (xg_create_tool_bar): Initialize toolbar_detached.
10190 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
10191 toolbar_detached is zero.
10192
ff59904a
JD
101932005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10194
9b85e63d
JD
10195 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
10196 gtk_menu_popup if not for_click, so callbacks for the menu are called.
10197
ff59904a
JD
10198 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
10199 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 10200 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
10201
10202 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 10203 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
10204 XFLOAT_DATA to get extract number from Lisp object.
10205
f9a23a6f
KS
102062005-01-07 Kim F. Storm <storm@cua.dk>
10207
10208 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
10209 Set stop_charpos to current charpos instead of 0.
10210
28f94a34
RS
102112005-01-06 Nick Roberts <nickrob@snap.net.nz>
10212
10213 * xdisp.c (Fformat_mode_line): First arg now required.
10214
a6fffcdc
ST
102152005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10216
10217 * macterm.c (XLoadQueryFont): Correctly handle 0 size
10218 font widths that are returned from some Japanese fonts.
10219
c35b0c6b
KS
102202005-01-06 Kim F. Storm <storm@cua.dk>
10221
10222 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
10223 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
10224 (destroy_fringe_bitmap): Set fringe_faces element to nil.
10225 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
10226 fringe_faces array and init elements to nil.
10227 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
10228 non-persistent face id.
10229 (mark_fringe_data): New function for GC.
10230
10231 * alloc.c (mark_fringe_data): Declare extern.
10232 (Fgarbage_collect): Call mark_fringe_data.
10233
10234 * alloc.c (overrun_check_free): Invalidate freed memory if
10235 XMALLOC_CLEAR_FREE_MEMORY is defined.
10236
e0e76ab9
ST
102372005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10238
10239 * macfns.c: Include sys/param.h.
10240 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
10241 and function.
10242 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
10243 of filename string. Set event callback function when creating
10244 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 10245 of apple event descriptor record if failed to create it.
e0e76ab9
ST
10246
10247 * macterm.c: Include sys/param.h.
10248 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
10249 kEventWindowUpdate.
10250 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
10251 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
10252 of FSSpec from apple event descriptor record.
10253 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
10254 size of filename string.
10255 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
10256 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
10257 file dialog is in action.
043f7f73
SM
10258 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
10259 Reject only when there are no filename items. Set background color
e0e76ab9 10260 before (un)highlighting the window below the dragged items.
2313f861 10261 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 10262
043bc640
KH
102632005-01-05 Romain Francoise <romain@orebokech.com>
10264
10265 * term.c (encode_terminal_code): Fix buffer size computation.
10266
dd496df6
RS
102672005-01-04 Richard M. Stallman <rms@gnu.org>
10268
10269 * xdisp.c (Fformat_mode_line): Doc fix.
10270
026cdede
SM
102712005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10272
10273 * alloc.c (refill_memory_reserve): Move.
10274 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
10275 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
10276
d57c7572
RS
102772005-01-03 Richard M. Stallman <rms@gnu.org>
10278
10279 * window.c (window_scroll_pixel_based): Don't correct preserve_y
10280 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
10281
b14f868c
JR
102822005-01-03 Jason Rumney <jasonr@gnu.org>
10283
10284 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
10285 fontp->space_width to FONT_WIDTH so they are valid.
10286
10287 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 10288 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
10289 their appropriate values.
10290
10291 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10292 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
10293 fontp->space_width.
10294
e169f939
ST
102952005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10296
10297 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
10298 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
10299 metrics for max and min bounds.
10300 (x_load_font): Correctly calculate average font width metrics.
10301
19996af4
RS
103022005-01-02 Richard M. Stallman <rms@gnu.org>
10303
10304 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
10305
42d02da0
JD
103062004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10307
10308 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
10309
1db7dd46
RS
103102004-12-31 Richard M. Stallman <rms@gnu.org>
10311
b437860a
RS
10312 * xdisp.c (setup_for_ellipsis, get_next_display_element):
10313 Set it->ellipsis_p to 1 or 0.
10314 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 10315 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
10316 (cursor_row_p): If PT's at the end of the ellipsis the row
10317 ends within, don't display cursor on this row.
10318
10319 * dispextern.h (struct it): New element ellipsis_p.
10320 (struct glyph_row): New element ends_in_ellipsis_p.
10321
10322 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
10323 position if we're reading from something other than the buffer.
10324
1db7dd46
RS
10325 * window.c (window_scroll_pixel_based): Only look at
10326 Vscroll_preserve_screen_position if the old PT can't be kept.
10327 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
10328
1225f637
KS
103292004-12-30 Kim F. Storm <storm@cua.dk>
10330
10331 * xdisp.c (get_line_height_property): New function extracted from
10332 original calc_line_height_property.
10333 (calc_line_height_property): Rework. Handle t and (nil . ratio).
10334 (x_produce_glyphs): Use them to handle line-height and
10335 line-spacing according to new height spec.
10336 (Qtotal): Remove.
33b2f4ea 10337 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 10338
c243063e
KH
103392004-12-30 Kenichi Handa <handa@m17n.org>
10340
10341 * fileio.c (Finsert_file_contents): Don't use
10342 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 10343 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
10344
10345 * fontset.h (struct font_info): New members space_width and
10346 average_width.
10347
10348 * frame.h (struct frame): New member space_width.
10349 (FRAME_SPACE_WIDTH): New macro.
10350
10351 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
10352
10353 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10354 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 10355 fontp->space_width.
043f7f73 10356 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
10357 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
10358
10359 * xdisp.c (x_produce_glyphs): Calculate tab width by
10360 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
10361
456e761b
ST
103622004-12-29 Sanghyuk Suh <han9kin@mac.com>
10363
10364 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 10365 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 10366
188577ce
LT
103672004-12-29 Luc Teirlinck <teirllm@auburn.edu>
10368
10369 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
10370
99ec74b9
RS
103712004-12-29 Richard M. Stallman <rms@gnu.org>
10372
10373 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
10374
30c92fab
ST
103752004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10376
10377 * macfns.c (install_window_handler): Modify extern to return OSErr
10378 value.
10379 (mac_window): Handle return value of install_window_handler.
10380
10381 * macterm.c (reflect_byte): Remove function.
10382 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
10383 Lookup table instead.
10384 (mac_do_font_lists): Simplify calculation of the longest
10385 nonspecial string.
5e1a6e32 10386 (init_mac_drag_n_drop): Remove function and declaration.
30c92fab
ST
10387 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
10388 init_mac_drag_n_drop.
10389 (mac_do_track_drag): New function and declaration.
10390 (install_window_handler): Return OSErr value.
043f7f73
SM
10391 (install_window_handler) [TARGET_API_MAC_CARBON]:
10392 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 10393 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
10394 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
10395 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 10396
4b982924
DN
103972004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
10398
10399 * coding.c (decode_coding): Fix previous change.
10400
93fdf45f
RS
104012004-12-28 Richard M. Stallman <rms@gnu.org>
10402
10403 * xdisp.c (back_to_previous_visible_line_start):
10404 Don't call handle_display_prop.
10405
5bdca8af
DN
104062004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
10407
10408 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
10409 (decode_coding_emacs_mule, encode_coding_emacs_mule)
10410 (decode_coding_iso2022, encode_designation_at_bol)
10411 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
10412 (decode_coding): Constify arguments and local vars.
10413
33385c6f
JD
104142004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10415
10416 * xmenu.c (popup_get_selection): Only pop down dialogs
10417 on C-g and Escape.
95bdef2e 10418 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
10419 (create_and_show_popup_menu, create_and_show_dialog):
10420 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 10421
b15325b2
ST
104222004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10423
10424 * dispextern.h: Change HAVE_CARBON to MAC_OS.
10425 (struct glyph_string): Likewise.
a2c7e69a 10426
b15325b2
ST
10427 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
10428 mac_initialize.
a2c7e69a 10429
b15325b2
ST
10430 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
10431 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 10432
b15325b2 10433 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 10434
b15325b2
ST
10435 * frame.c (x_set_frame_parameters, x_report_frame_params)
10436 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
10437 (x_set_border_width, Vdefault_frame_scroll_bars):
10438 Change HAVE_CARBON to MAC_OS.
a2c7e69a 10439
b15325b2
ST
10440 * image.c [MAC_OS]: Include sys/stat.h.
10441 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
10442 QuickTimeComponents.h.
a2c7e69a 10443
b15325b2
ST
10444 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
10445 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 10446 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
10447 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
10448 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
10449 (mac_clear_font_name_table): Add extern.
10450 (Fmac_clear_font_name_table): New defun.
10451 (syms_of_mac): Defsubr it.
10452 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
10453 [MAC_OSX] (select_and_poll_event): New function.
10454 [MAC_OSX] (sys_select): Use it.
10455 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
10456 [MAC_OSX && SELECT_USE_CFSOCKET]
10457 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
10458 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
10459 RunLoop for simultaneously monitoring two kinds of inputs, window
10460 events and process outputs, without periodically polling.
a2c7e69a 10461
b15325b2
ST
10462 * macfns.c (mac_initialized): Remove extern.
10463 (stricmp): Put in #if 0. All callers changed to use xstricmp in
10464 xfaces.c.
043f7f73
SM
10465 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
10466 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
10467 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
10468 (mac_get_rdb_resource): New function (from w32reg.c).
10469 (x_get_string_resource): Use it.
10470 (install_window_handler): Add extern.
10471 (mac_window): New function.
043f7f73
SM
10472 (Fx_create_frame): Use it instead of make_mac_frame.
10473 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
10474 (Fx_open_connection, Fx_close_connection): New defuns.
10475 (syms_of_macfns): Defsubr them.
043f7f73
SM
10476 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
10477 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
10478 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
10479 (x_create_tip_frame): Don't call ShowWindow.
10480 (Fx_show_tip): Call ShowWindow.
10481 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
10482 TARGET_API_MAC_CARBON'.
10483 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
10484 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 10485
043f7f73 10486 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
10487 (Window): Typedef to WindowPtr and move outside `#if
10488 TARGET_API_MAC_CARBON'.
10489 (XSizeHints): New struct.
a2c7e69a 10490
b15325b2
ST
10491 * macterm.c (x_update_begin, x_update_end)
10492 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
10493 frame.
10494 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
10495 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
10496 (construct_mouse_click): Put in #if 0.
10497 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
10498 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
10499 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
10500 (activate_scroll_bars, deactivate_scroll_bars)
10501 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
10502 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
10503 if the position is neither user-specified nor program-specified.
10504 (x_free_frame_resources): Free size_hints.
043f7f73 10505 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
10506 (mac_clear_font_name_table): New function.
10507 (mac_do_list_fonts): Initialize font_name_table if needed.
10508 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
10509 around mac_do_list_fonts.
10510 (mac_unload_font): New function.
10511 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
10512 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
10513 and definitions with #if TARGET_API_MAC_CARBON.
10514 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
10515 (install_window_handler): Add decl.
10516 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
10517 window. Use UpdateControls. Get the rectangle that should be
10518 updated and restrict the target of expose_frame to it.
043f7f73 10519 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
10520 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
10521 (do_zoom_window): Don't use x_set_window_size.
10522 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
10523 (install_window_handler): New function.
10524 [!USE_CARBON_EVENTS] (mouse_region): New variable.
10525 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
10526 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
10527 GetEventDispatcherTarget inside BLOCK_INPUT.
10528 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
10529 Update mouse_region when mouse is moved.
10530 (make_mac_frame): Remove.
043f7f73
SM
10531 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
10532 Initialize mouse pointer shapes. Change values of f->left_pos and
10533 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
10534 Don't call ShowWindow.
b15325b2
ST
10535 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
10536 Vinvocation_name and Vsystem_name.
10537 (mac_make_rdb): New function (from w32term.c).
10538 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
10539 already been opened. Don't pass argument to
10540 mac_initialize_display_info. Don't set dpyinfo->height/width.
10541 Add entries to x_display_list and x_display_name_list.
10542 (x_delete_display): New function.
10543 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
10544 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
10545
b15325b2
ST
10546 * macterm.h (check_mac): Add extern.
10547 (struct mac_output): New member size_hints.
10548 (FRAME_SIZE_HINTS): New macro.
10549 (mac_unload_font): Add extern.
a2c7e69a 10550
b15325b2 10551 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 10552
1d1c7e75 10553 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 10554
92d2947b
RS
105552004-12-27 Richard M. Stallman <rms@gnu.org>
10556
043f7f73 10557 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
10558 (syms_of_buffer): Don't defsubr it.
10559
10560 * process.c (list_processes_1): Set undo_list instead
10561 of calling Fbuffer_disable_undo.
10562
043f7f73 10563 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 10564 single_display_prop_string_p.
043f7f73 10565 (single_display_spec_intangible_p): Rename from
92d2947b 10566 single_display_prop_intangible_p.
043f7f73 10567 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
10568 Rewritten to be easier to understand.
10569
a2c7e69a 10570 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
10571 and variables get just NAME.
10572
10573 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
10574
10575 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
10576 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
10577 (Qdefvar): Var deleted.
10578 (syms_of_eval): Don't initialze it.
10579
10580 * lread.c (syms_of_lread) <load-history>: Doc fix.
10581
9f6fcdc5
JD
105822004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10583
10584 * xmenu.c (popup_get_selection): Pop down on C-g.
10585 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
10586 pops down menu on C-g.
10587 (xdialog_show): If dialog popped down and no button in the dialog was
10588 pushed, call Fsignal to quit.
10589 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
10590 Fsignal to quit.
10591
1d1c7e75 10592 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
10593
10594 * gtkutil.c (xg_initialize): Install bindings for C-g so that
10595 dialogs and menus pop down.
10596
d8ca23a0
KH
105972004-12-27 Kenichi Handa <handa@m17n.org>
10598
10599 * coding.c (code_convert_region): Fix calculation of `ratio'.
10600
857ae68b
JD
106012004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10602
133c0116
JD
10603 * gtkutil.c (update_frame_tool_bar): Make the value of
10604 tool-bar-button-margin control margins of images in tool bar.
10605
857ae68b
JD
10606 * alloc.c (check_depth): New variable.
10607 (overrun_check_malloc, overrun_check_realloc): Only add
10608 overhead and write check pattern if check_depth is 1 (to handle
10609 recursive calls). Increase/decrease check_depth in entry/exit.
10610 (overrun_check_free): Only check for overhead if check_depth is 1.
10611 Increase/decrease check_depth in entry/exit.
10612
bd55c35c
JD
106132004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10614
10615 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
10616 before touching input_available_clear_time, to avoid accessing it
10617 from multiple threads.
10618
66354420
JR
106192004-12-23 Jason Rumney <jasonr@gnu.org>
10620
10621 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
10622 of JPEG library.
10623
55f4edbc
RS
106242004-12-22 Richard M. Stallman <rms@gnu.org>
10625
10626 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
10627
10628 * lisp.h (Vundo_outer_limit): Fix decl.
10629
10630 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
10631 Uses changed.
10632 (syms_of_undo): Initialize appropriately.
10633 (truncate_undo_list): If it's nil, there's no limit.
10634
7a0ea9e3
KH
106352004-12-22 Kenichi Handa <handa@m17n.org>
10636
10637 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
10638
fda2922a
RS
106392004-12-21 Richard M. Stallman <rms@gnu.org>
10640
10641 * eval.c (unwind_to_catch): Clear immediate_quit.
10642
10643 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
10644 specially as `\ ' and `\-'.
10645
10646 * keyboard.c (kbd_buffer_store_event_hold):
10647 In the code for while-no-input, handle immediate_quit.
10648
10649 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
10650 Call that at the very start.
043f7f73 10651 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
10652 (syms_of_alloc): Don't define undo-limit,
10653 undo-strong-limit and undo-outer-limit here.
10654
10655 * undo.c (truncate_undo_list): Return void.
10656 Take just one argument, the buffer.
10657 Make it current, and inhibit recursive GC.
10658 Access and update the undo list directly; return void.
10659 Refer to the undo...limit variables directly.
10660 Test undo_outer_limit only after counting the whole current command.
10661 When it's exceeded, call the function in undo-outer-limit-function.
10662 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
10663 (Vundo_outer_limit_function): New variable.
10664 (syms_of_undo): Define undo-limit, undo-strong-limit
10665 and undo-outer-limit here, and undo-outer-limit-function.
10666 Doc fixes.
10667
10668 * lisp.h (truncate_undo_list): Update decl.
10669
106702004-12-21 Piet van Oostrum <piet@cs.uu.nl>
10671
10672 * fileio.c (Fread_file_name): Delete duplicates in
10673 file-name-history when history_delete_duplicates is true.
10674
68c69027
ST
106752004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10676
10677 * macterm.c (mac_do_list_fonts): Fix memory leak
10678
134579f2
RS
106792004-12-20 Richard M. Stallman <rms@gnu.org>
10680
10681 * regex.c (re_match_2_internal) <symend, wordend>:
10682 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
10683
fbe6152f
ST
106842004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10685
043f7f73
SM
10686 * macterm.c (endif, x_font_name_to_mac_font_name):
10687 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
10688 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
10689 quickly finding a specific font without needing regexps.
10690
fecad3f6
JD
106912004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10692
333f1b6f
JD
10693 * syssignal.h: Declare main_thread.
10694 (SIGNAL_THREAD_CHECK): New macro.
10695
10696 * keyboard.c (input_available_signal): Move thread checking code
10697 to macro SIGNAL_THREAD_CHECK and call that macro.
10698 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
10699
10700 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
10701
10702 * emacs.c: Define main_thread.
10703 (main): Initialize main_thread.
10704 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
10705 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
10706
10707 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
10708
10709 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
10710
10711 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
10712
043f7f73
SM
10713 * process.c (send_process_trap, sigchld_handler):
10714 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
10715
10716 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
10717
10718 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
10719
fecad3f6
JD
10720 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
10721 returning when xg_ignore_gtk_scrollbar is true.
10722
2a84c6da
KS
107232004-12-14 Kim F. Storm <storm@cua.dk>
10724
10725 * keyboard.c (read_char): Save and restore echo_string when
10726 handling input method.
10727
d9c1ce9d
RS
107282004-12-13 Richard M. Stallman <rms@gnu.org>
10729
10730 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
10731
10732 * keyboard.c (Vthrow_on_input): New variable.
10733 (syms_of_keyboard): Defvar and initialize it.
10734 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
10735
10736 * lisp.h (QUIT): Check for Vthrow_on_input.
10737 (Vthrow_on_input): Declare it.
10738
a6495ed5
KS
107392004-12-13 Kim F. Storm <storm@cua.dk>
10740
10741 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
10742 vector.
10743
24a0e22f
RS
107442004-12-12 Richard M. Stallman <rms@gnu.org>
10745
10746 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
10747
10748 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
10749 (Ftry_completion): Really use outer `zero'; eliminate inner one.
10750
d6d31e57
KH
107512004-12-12 Kenichi Handa <handa@m17n.org>
10752
10753 * term.c (encode_terminal_code): Fix previous change.
10754
6f8ffb88
SM
107552004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
10756
fb6f5cbf
SM
10757 * keyboard.c (handle_async_input): Remove pthread mutex handling.
10758 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
10759
6f8ffb88
SM
10760 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
10761 in macro arguments.
10762
10763 * minibuf.c (Ftry_completion, Fall_completions): Don't use
10764 XFASTINT blindly.
10765
10766 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
10767
c83c9f9d
JD
107682004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10769
2f25767f
JD
10770 * w32term.c (x_calc_absolute_position): Remove calculation of
10771 difference between inner and outer window. Don't subtract difference
10772 for left and top calculations.
10773
c83c9f9d
JD
10774 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
10775 for left and top calculations. Remove call to x_real_positions.
14a56a1b 10776 [Bug report by Drew Adams in November.]
c83c9f9d
JD
10777 (x_check_expected_move): Do not set change_gravity to 1 when calling
10778 x_set_offset.
10779
cc1caa4e
RS
107802004-12-08 Richard M. Stallman <rms@gnu.org>
10781
10782 * xdisp.c (get_next_display_element): Use `escape-glyph' for
10783 control chars and escaped octal codes.
10784 (Qescape_glyph): New variable.
10785 (syms_of_xdisp): Initialize it.
10786 (escape_glyph_face): New variable.
10787 (redisplay_window): Initialize it.
10788
e0e30823
RS
107892004-12-07 Paul Eggert <eggert@cs.ucla.edu>
10790
10791 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
10792 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
10793
f415cacd
JD
107942004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10795
cf435f39
JD
10796 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
10797 reset_malloc_hooks.
10798
6f8ffb88
SM
10799 * keyboard.c (handle_async_input, input_available_signal):
10800 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 10801
f415cacd
JD
10802 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
10803
043f7f73 108042004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
10805
10806 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
10807
10808 * config.in: Regenerate.
10809
ded997c1
JD
108102004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10811
453a4f1b
JD
10812 * xmenu.c (Fx_popup_menu): Correct documentation about position.
10813 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
10814 if not given by a mouse click to correspond with x-popup-menu
10815 documentation.
10816
9a38524c
JD
10817 * config.in: Regenerate.
10818
aa477689
JD
10819 * gtkutil.c: Include signal.h and syssignal.h.
10820 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
10821
10822 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
10823 new variables main_thread and alloc_mutex,
10824 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
10825 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
14a56a1b
JB
10826 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
10827 as (UN)BLOCK_INPUT.
aa477689
JD
10828 (emacs_blocked_free, emacs_blocked_malloc)
10829 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
10830 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
10831 (reset_malloc_hooks): New function.
10832
10833 * lisp.h: Declare reset_malloc_hooks.
10834
10835 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
10836
14a56a1b 10837 * keyboard.c: Conditionally include pthread.h.
6f8ffb88 10838 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
10839 thread, block signal, send signal to main thread and return.
10840
ded997c1 10841 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 10842 Set current folder in file chooser if default_filename is a directory.
ded997c1 10843
c72b0edd
SM
108442004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
10845
10846 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
10847 Remove redundant correctness checks.
10848 (regex_compile): Fix up error codes for \{..\} expressions.
10849
c721eee5
RS
108502004-12-05 Richard M. Stallman <rms@gnu.org>
10851
10852 * regex.c (regex_compile): Fix end-of-pattern case for space.
10853
d8f96db8
ST
108542004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10855
6108209e
KS
10856 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
10857 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 10858 crashes with invalid characters.
6108209e
KS
10859 * macmenu.c (add_menu_item): Use it.
10860 * image.c (image_load_quartz2d): Likewise.
10861 * macfns.c (x_set_name, x_set_title): Likewise.
10862 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
10863 creating them each time for labels.
d8f96db8 10864
ab67e8b6
RS
108652004-12-02 Richard M. Stallman <rms@gnu.org>
10866
10867 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
10868 don't use it here.
10869
10870 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
10871 (interactive_p): Skip Scalled_interactively_p frames
10872 like Sinteractive_p frames.
b8217ea6 10873 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
10874
10875 * data.c (Fmake_variable_buffer_local): Doc fix.
10876 (Fmake_local_variable): Doc fix.
10877
10878 * insdel.c (insert_from_string_before_markers)
10879 (insert_from_string): Don't modify buffer on empty insertion.
10880
10881 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
10882
f86bdc80
ST
108832004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10884
10885 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
10886 menu text as UTF8 fails.
10887
1cae6d39
KS
108882004-12-01 Kim F. Storm <storm@cua.dk>
10889
10890 * alloc.c: Add commentary for last change.
10891 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
10892 sizeof(size_t) != 4.
10893 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
10894 Use them. Also clear header and trailer of freed memory.
10895 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
10896 (string_overrun_cookie): Rename from string_overrun_pattern.
10897 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
10898
77ea0764
AS
108992004-12-01 Andreas Schwab <schwab@suse.de>
10900
10901 * lisp.h: Declare string_to_multibyte.
10902
2d5cd4e6
KH
109032004-12-01 Kenichi Handa <handa@m17n.org>
10904
10905 * w32console.c (w32con_write_glyphs): Decide coding here.
10906 Adjusted for the change of encode_terminal_code.
10907
10908 * term.c (encode_terminal_code): Don't make it "static".
10909
25a0994a
KH
109102004-11-30 Kenichi Handa <handa@m17n.org>
10911
19b1f29a 10912 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 10913 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
10914 characters at once, and return a pointer to the result of encoding.
10915 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
10916 (insert_glyphs): Likewise.
10917 (term_init): Initialize encode_terminal_bufsize to 0.
10918
10919 * coding.c (Vcode_conversion_workbuf_name): New variable.
10920 (syms_of_coding): Initialize and staticpro it.
10921 (set_conversion_work_buffer): New function.
10922 (run_pre_post_conversion_on_str): Use it.
10923 (run_pre_write_conversin_on_c_str): New function.
10924
10925 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
10926
fc7a70cc
ST
109272004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10928
10929 * keyboard.c: Don't undef SIGIO
10930 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
10931 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
10932 (macfns.o): Don't depend on ccl.h.
10933 * macfns.c (mac_frame_parm_handlers): Set handlers for
10934 Qleft_fringe and Qright_fringe.
10935 * macterm.c (mac_fill_rectangle_to_pixmap)
10936 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
10937 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
10938 Put in #if 0.
10939 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
10940 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
10941 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
10942 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
10943 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
10944 XDrawImageString. Always draw background and foreground separately.
10945 (x_draw_image_foreground): Use clipping instead of computing the
10946 intersection rectangle.
10947 (x_draw_image_glyph_string): Don't draw an image with mask to a
10948 pixmap.
10949 (x_redisplay_interface): Set flush_display_optional member to 0.
10950 (XTread_socket): Correctly reset the TEConverter
10951 object.
10952
fc368889
KS
109532004-11-30 Kim F. Storm <storm@cua.dk>
10954
10955 * lisp.h: New defines to enable buffer overrun checking.
10956 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
10957 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
10958
10959 * alloc.c: Add more checks for buffer overruns.
10960 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
10961 xmalloc_overrun_check_trailer, overrun_check_malloc)
10962 overrun_check_realloc, overrun_check_free): Add.
10963 (GC_STRING_EXTRA, string_overrun_pattern): Add.
10964 (check_sblock, allocate_string_data, compact_small_strings):
10965 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
10966 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
10967 (check_string_free_list): Add.
10968 (allocate_string, sweep_strings): Call check_string_free_list.
10969
10970 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
10971 XMALLOC_OVERRUN_CHECK to avoid crash during load.
10972
0af8cfe1
KS
109732004-11-29 Kim F. Storm <storm@cua.dk>
10974
10975 * fns.c (concat): Use SAFE_ALLOCA.
10976
77220eeb
SM
109772004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
10978
10979 * sysdep.c (emacs_write): Don't use QUIT.
10980
a778cf63
KH
109812004-11-29 Kenichi Handa <handa@m17n.org>
10982
10983 * buffer.c (init_buffer): Set current_buffer->directory to a
10984 multibyte string made by string_to_multibyte.
10985
77220eeb 10986 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 10987
e3177e43
AS
109882004-11-27 Andreas Schwab <schwab@suse.de>
10989
10990 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
10991
10992 * s/gnu-linux.h: Enable no-op gcpros on ia64.
10993 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
10994
77220eeb
SM
10995 * filelock.c (lock_file_1): Call get_boot_time early.
10996 Increase buffer size.
e3177e43 10997
ca5e6fef
EZ
109982004-11-27 Eli Zaretskii <eliz@gnu.org>
10999
11000 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
11001 is not defined.
11002
e2811828
KS
110032004-11-27 Kim F. Storm <storm@cua.dk>
11004
11005 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
11006 marker out of doc string.
11007
7a262394
SM
110082004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
11009
11010 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
11011 which was not mentioned in the log.
11012
f33cc5a9
KS
110132004-11-26 Kim F. Storm <storm@cua.dk>
11014
048bb03f
KS
11015 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
11016 angle bitmaps at top/bottom line.
11017
52eb0373 11018 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
11019 set it when it->method is set to next_element_from_display_vector.
11020 (setup_for_ellipsis): Add LEN argument. Callers changed.
11021 Set it->saved_face_id.
11022 (get_next_display_element): Use loop instead of recursion.
11023 Set it->saved_face_id. Combine duplicate code for ctr chars.
11024 (next_element_from_display_vector): Do not set it->saved_face_id.
11025 (next_element_from_ellipsis): Use setup_for_ellipsis.
11026
670e8906
EZ
110272004-11-26 Eli Zaretskii <eliz@gnu.org>
11028
11029 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
11030 prevent compiler warnings.
11031
275464e7
SM
110322004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
11033
1bf0e604
SM
11034 * keyboard.c (command_loop_1): Print a message describing the key
11035 the user just pressed when this key has no binding.
11036
275464e7
SM
11037 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
11038 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
11039
11040 * lread.c (readchar): Check QUIT when `getc' is interrupted.
11041
261b01c6
RS
110422004-11-24 Richard M. Stallman <rms@gnu.org>
11043
11044 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
11045
11046 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
11047
a5bd504e
KS
110482004-11-24 Kim F. Storm <storm@cua.dk>
11049
11050 * xdisp.c (move_it_in_display_line_to, display_line):
11051 Restore saved_face_id also when truncate-lines or hscrolled.
11052
255e4140
JD
110532004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11054
11055 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
11056 x-use-old-gtk-file-dialog.
11057
11058 * xfns.c: Define x_use_old_gtk_file_dialog.
11059 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
11060 outside ifdef USE_GTK.
11061
cab27d04
SM
110622004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
11063
11064 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
11065 Don't use XFASTINT blindly.
11066
11067 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
11068
11069 * indent.c (skip_invisible): Avoid non-idempotent side-effects
11070 in macro arguments.
11071
11072 * keymap.c (Flookup_key): Check INTEGERP before XINT.
11073
11074 * lread.c (oblookup): Don't use XFASTINT blindly.
11075
11076 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
11077 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
11078
11e0be49
KS
110792004-11-23 Kim F. Storm <storm@cua.dk>
11080
4d721114
KS
11081 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
11082 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
11083
11e0be49
KS
11084 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
11085 signal_p is zero and face name is unknown.
11086 (Fx_list_fonts): Don't signal error in lookup_named_face.
11087 (Fface_font): Signal error in lookup_named_face.
11088 (ascii_face_of_lisp_face): Likewise.
11089
11090 * dispextern.h (lookup_named_face): Fix prototype.
11091
11092 * xdisp.c (handle_single_display_prop): Don't signal error in
11093 lookup_named_face for unknown fringe face name.
11094 (highlight_trailing_whitespace): Don't signal error in
11095 lookup_named_face if trailing-whitespace face unknown.
11096 (calc_line_height_property): Don't signal error in
11097 lookup_named_face if specified face name is unknown.
11098
11099 * fringe.c (update_window_fringes): Show top row indicator if
11100 window has header-line. Don't show arrow at bob and eob
11101 if the boundary indicators are not used.
11102 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
11103
11104 * window.c (set_window_buffer): Clear display_error_modiff.
11105
0960a582
KS
111062004-11-22 Kim F. Storm <storm@cua.dk>
11107
11108 * fringe.c (update_window_fringes): Provide sensible fall-back
11109 value for non-nil indicate-buffer-boundaries setting.
11110
b0e9bb28
MR
111112004-11-22 Markus Rost <rost@ias.edu>
11112
11113 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
11114
d0bce91e
SM
111152004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
11116
11117 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
11118
e1814672
KS
111192004-11-21 Kim F. Storm <storm@cua.dk>
11120
b7fd3518
KS
11121 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
11122
11123 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
11124 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11125
11126 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
11127 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11128
11129 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
11130 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11131
d0bce91e
SM
11132 * xdisp.c (move_it_in_display_line_to, display_line):
11133 Restore saved_face_id if overflow-newline-into-fringe is enabled and
11134 line is continued before or in middle of element from display vector.
f01d4d05 11135
f1a61389
KS
11136 * indent.c (Fvertical_motion): Fix last change. Use another
11137 method to detect if iterator moved too far ahead after reseat.
11138
e1814672
KS
11139 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
11140 expand matrix width for overflow in zero-width area.
11141 (append_glyph, append_composite_glyph, produce_image_glyph)
11142 (append_stretch_glyph): Use it to avoid loop in redisplay.
11143 (note_mode_line_or_margin_highlight): Don't let help-echo from
11144 string override help-echo from image map.
11145
2dafe1c9
LT
111462004-11-20 Luc Teirlinck <teirllm@auburn.edu>
11147
d0bce91e 11148 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
11149 * callint.c (Fcall_interactively): Ditto.
11150
fd6866c8 111512004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
11152
11153 * minibuf.c (Fminibuffer_complete_and_exit):
11154 Fixup the case of the completed value, for case-indep completion.
11155
dedbac89
RS
111562004-11-20 Richard M. Stallman <rms@gnu.org>
11157
fd6866c8
RS
11158 * lisp.h (Fread_from_minibuffer): Add arg in decl.
11159
9d00469f 11160 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 11161 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 11162
dedbac89 11163 * search.c (Vsearch_spaces_regexp):
d0bce91e 11164 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 11165
2f672bb5
TTN
111662004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
11167
11168 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
11169
f31a9a68
RS
111702004-11-19 Richard M. Stallman <rms@gnu.org>
11171
11172 * search.c (Vsearch_whitespace_regexp): New variable.
11173 (syms_of_search): Defvar it.
11174 (compile_pattern_1): Call re_set_whitespace_regexp with it.
11175 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
11176 is non-nil.
6de891db
RS
11177 (struct regexp_cache): New element whitespace_regexp.
11178 (syms_of_search): Initialize whitespace_regexp elements.
11179 (compile_pattern): Compare whitespace_regexp elements.
11180 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
11181
11182 * regex.c (regex_compile): Substitute whitespace_regexp
11183 for spaces, if it is nonzero.
11184 (whitespace_regexp): New variable.
11185 (re_set_whitespace_regexp): New function.
11186
cbc34cb3
KS
111872004-11-19 Kim F. Storm <storm@cua.dk>
11188
11189 * indent.c (Fvertical_motion): Fix last change.
11190
b54a7539
KS
111912004-11-18 Kim F. Storm <storm@cua.dk>
11192
11193 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
11194 Instead, move back again if reseating moves too far ahead.
11195
111962004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
11197
11198 * xdisp.c (message3): Call clear_message.
11199
5ff504fe
KS
112002004-11-17 Kim F. Storm <storm@cua.dk>
11201
11202 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
11203
5ae53dcf
JD
112042004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11205
d0bce91e 11206 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 11207
6abf3a27 11208 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
11209 (x_menu_set_in_use): Also set popup_activated_flag.
11210
5ff504fe 11211 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
11212 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
11213
52eb0373 11214 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 11215
ee31cd78
RS
112162004-11-16 Richard M. Stallman <rms@gnu.org>
11217
6abf3a27
SM
11218 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
11219 Use map-keymap-internal to implement that.
ee31cd78
RS
11220
11221 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
11222
6abf3a27
SM
112232004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11224
11225 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
11226 a window before using XWINDOW.
11227
11228 * window.c (make_window, Fselect_window, make_dummy_parent)
11229 (save_window_save):
11230 * frame.c (make_frame):
11231 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
11232
11233 * lisp.h (NILP): Use EQ rather than XFASTINT.
11234
b4d61105
KS
112352004-11-16 Kim F. Storm <storm@cua.dk>
11236
6abf3a27 11237 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 11238
b4d61105
KS
11239 * indent.c (Fvertical_motion): Fix last change. Only reseat when
11240 moving backwards.
11241
112422004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
11243
11244 * dispextern.h: Extern reseat_at_previous_visible_line_start.
11245
ab5b02b0
KH
112462004-11-16 Kenichi Handa <handa@m17n.org>
11247
11248 * xdisp.c (display_mode_element): Fix previous change (calculate
11249 end position of substring to display correctly).
11250
c482cf97
KS
112512004-11-16 Kim F. Storm <storm@cua.dk>
11252
11253 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
11254 Reported by Andrew M. Scott.
11255
9f89426b
KS
112562004-11-15 Kim F. Storm <storm@cua.dk>
11257
11258 * fns.c (Fsafe_plist_get): New defun.
11259 (syms_of_fns): Defsubr it.
11260
11261 * lisp.h (Fsafe_plist_get): Add EXFUN.
11262
11263 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
11264 Use Fsafe_plist_get.
11265 (note_mode_line_or_margin_highlight, note_mouse_highlight):
11266 Fix image map element parsing. Use Fsafe_plist_get.
11267
27418463
RS
112682004-11-15 Richard M. Stallman <rms@gnu.org>
11269
11270 * xdisp.c (get_next_display_element): Fix previous change.
11271
a130b901
JD
112722004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11273
ef614e04
JD
11274 * window.c (shrink_windows): Handle special case of one window left
11275 when trying to shrink the final reminder. Grow windows if
11276 total_removed is less than total_shrink.
11277
a130b901
JD
11278 * xmenu.c (pop_down_menu): Remove global variable current_menu,
11279 extract pointer from arg with XSAVE_VALUE.
46303896
KS
11280 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
11281 Construct arg to record_unwind_protect with make_save_value.
a130b901 11282
d9a03ad2
RS
112832004-11-13 Richard M. Stallman <rms@gnu.org>
11284
11285 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
11286 (get_next_display_element): Fix previous change to apply only to \n.
11287
11288 * indent.c (Fvertical_motion): Scan to PT from start of line to
11289 make iterator consistent.
11290
11291 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
11292
b3935289
JD
112932004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11294
11295 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
11296
11297 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
11298 Record unwind with clean_up_file_dialog.
11299
78819ebb
KS
11300 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
11301 Declare.
b3935289
JD
11302
11303 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
11304
af89e871
JD
113052004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11306
457a8155 11307 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 11308 (xg_file_sel_destroy): Remove.
46303896
KS
11309 (xg_file_response_cb, pop_down_file_dialog)
11310 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 11311 New functions.
6abf3a27
SM
11312 (xg_get_file_with_chooser, xg_get_file_with_selection):
11313 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
11314 Move common code to xg_get_file_name. Return widget created.
11315 (xg_get_file_name): Set name, transient for, modal and destroy
11316 with parent here. Connect response signal to xg_file_response_cb,
11317 connect delete-event to gtk_true. Record pop_down_file_dialog
11318 for unwind. Do event loop and call x_menu_wait_for_event in loop.
11319 (xg_create_widget): Make dialogs modal.
11320
af89e871
JD
11321 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
11322 Lisp_Object.
11323 (popup_get_selection): Move unwind protect ...
11324 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11325 Move destroy of widget to pop_down_menu.
11326 (popup_widget_loop): Move unwind protect ...
11327 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11328 Move destroy of widget to pop_down_menu.
11329 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 11330 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
11331 x_mouse_leave and grabbed = 0 to pop_down_menu.
11332
5596fbf1
KS
113332004-11-13 Kim F. Storm <storm@cua.dk>
11334
11335 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
11336 (syms_of_xdisp): DEFVAR_BOOL it.
11337 (make_cursor_line_fully_visible, try_cursor_movement)
11338 (try_window_id): Use it.
11339
b9de078a
KS
113402004-11-12 Kim F. Storm <storm@cua.dk>
11341
381f7091
KS
11342 * dispextern.h (struct glyph_row): New member extra_line_spacing.
11343 (struct it): New member max_extra_line_spacing.
11344 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
11345 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
11346 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
11347 part of last line is only extra line spacing (so the text on the
52eb0373 11348 line is fully visible). Use helper macros.
381f7091
KS
11349 Add W arg (to use them). All callers changed.
11350 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
11351 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
11352
6abf3a27
SM
11353 * window.c (window_scroll_pixel_based, Frecenter):
11354 Use move_it_vertically_backward directly.
381f7091
KS
11355 (Frecenter): Fix calculation of new start pos for negative arg.
11356 Before, the new start pos was sometimes chosen too far back, so
11357 the last line became only partially visible, and thus would be
11358 either only semi-visible or automatically scrolled to the middle
11359 of the window by redisplay.
11360
11361 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
11362 (move_it_vertically_backward): Don't recure to move further back.
11363 (move_it_vertically): Remove superfluous condition.
11364 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 11365 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
11366 (display_tool_bar_line): Clear row->extra_line_spacing.
11367 (try_scrolling): Use move_it_vertically_backward directly.
11368 (redisplay_window): Likewise.
11369 (compute_line_metrics): Set row->extra_line_spacing.
11370 (display_line, display_string): Likewise.
11371 (x_produce_glyphs): Update it->max_extra_line_spacing.
11372
b9de078a
KS
11373 * xmenu.c (pop_down_menu): Return nil.
11374
c3438661
JD
113752004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11376
11377 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 11378 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 11379 to handle timers.
df00f436
JD
11380 (popup_widget_loop): Add argument do_timers.
11381 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
11382 do_timers to popup_widget_loop.
c3438661
JD
11383 (xmenu_show): Call XMenuActivateSetWaitFunction so that
11384 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 11385 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 11386 popup_get_selection.
f1d1cd24
JD
11387 (pop_down_menu): New function.
11388 (popup_get_selection, popup_widget_loop): Unwind protect to
11389 pop_down_menu.
11390 (popup_widget_loop): Add argument widget.
11391 (create_and_show_popup_menu, create_and_show_dialog): Pass new
11392 argument widget to popup_widget_loop.
c3438661 11393
32e2fb04
SM
113942004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11395
11396 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
11397
0faf6806
KS
113982004-11-09 Kim F. Storm <storm@cua.dk>
11399
11400 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
11401 Fix various comments referring to XEvents instead of input events.
11402 (x_queue_event): Fix format strings.
11403 (x_stop_queuing_selection_requests): Likewise.
11404
11405 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
11406 (pint2hrstr): Add extra braces to silence compiler.
11407
11408 * print.c (print_object): Fix format string.
11409
11410 * lread.c (read1): Fix next_char matching.
11411
11412 * lisp.h (Fdelete): Add EXFUN.
11413 (replace_range_2): Add prototype.
11414
11415 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
11416
11417 * intervals.h (NULL_INTERVAL_P): Add separate version when
11418 ENABLE_CHECKING is not defined to silence compiler.
11419 (compare_string_intervals): Add prototype.
11420
11421 * fringe.c (destroy_fringe_bitmap): Fix return type.
11422 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
11423
11424 * emacs.c (Fdump_emacs): Fix format string.
11425
11426 * doc.c: Include <ctype.h>.
11427 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
11428
11429 * data.c (store_symval_forwarding): Remove unused variables.
11430
11431 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
11432
16bf4e32
JD
114332004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11434
11435 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
11436 to ${OLDXMENU}.
11437
cdb805a9
KS
114382004-11-09 Kim F. Storm <storm@cua.dk>
11439
11440 * process.c (Fmake_network_process): Remove kludge for interrupted
11441 connects on BSD. If connect is interrupted, just close socket and
11442 start over rather than sleeping and retry with same socket.
11443
d87a9ab8 114442004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 11445
a8b16c80
JD
11446 * .cvsignore: Add buildobj.lst.
11447
d87a9ab8
JD
11448 * doc.c: New variable Vbuild_files.
11449 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 11450 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
11451 that are in Vbuild_files.
11452 (syms_of_doc): Defvar Vbuild_files.
11453
11454 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
11455 and w32*.o.
11456 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 11457 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
11458
11459 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
11460 is linked.
11461
b6709e77
KS
114622004-11-09 Kim F. Storm <storm@cua.dk>
11463
11464 * fringe.c (update_window_fringes): Update fringe bitmaps if
11465 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
11466 also update previous row to get rid of misc. artifacts.
11467
bae9677d
KS
114682004-11-08 Kim F. Storm <storm@cua.dk>
11469
11470 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 11471 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 11472
3f8ea68c
EZ
114732004-11-08 Eli Zaretskii <eliz@gnu.org>
11474
11475 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
11476 Don't include <sys/time.h> explicitly.
11477 Include <stdio.h> unconditionally, not just on MacOS.
11478
a653f812
KH
114792004-11-08 Kenichi Handa <handa@m17n.org>
11480
11481 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
11482 don't pay attention to '\' before '*'.
11483 (fontset_pattern_regexp): Change the meaning of the second arg.
11484 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
11485 (check_fontset_name): Try NAME as literal at first, and if it
11486 failes, try NAME as pattern.
11487
c37caf9d
JD
114882004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11489
11490 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
11491
b72915a7
AS
114922004-11-07 Andreas Schwab <schwab@suse.de>
11493
78819ebb
KS
11494 * lisp.h (Fmsdos_downcase_filename): Declare.
11495 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
11496 * fileio.c: Likewise.
11497
238a44a8
JD
114982004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11499
11500 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
11501 comparisons with integers instead of Lisp_Object address.
11502 (Fmsdos_set_keyboard): Declare argument allkeys.
11503
11504 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
11505
78819ebb 11506 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
11507 int/Lisp_Object mixup.
11508
11509 * fileio.c: Ditto.
11510
31141c13
ST
115112004-11-06 Steven Tamm <steventamm@mac.com>
11512
11513 * editfns.c: Need to include sys/time.h before resource.h on darwin.
11514
f28c1bd9
RS
115152004-11-06 Richard M. Stallman <rms@gnu.org>
11516
11517 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
11518
11519 * xfaces.c (merge_named_face): GCPRO the face_name in the
11520 named_merge_point struct that we make.
11521 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
11522
11523 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
11524 before deciding whether to inactivate mark.
11525
59dede22
EZ
115262004-11-06 Lars Brinkhoff <lars@nocrew.org>
11527
11528 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
11529 * editfns.c (Fget_internal_run_time): New function.
11530 (syms_of_data): Defsubr it.
11531 * fns.c (sxhash): As far as possible, merge calculation of
11532 hash code for symbols and strings.
59dede22 11533
27540e81
EZ
115342004-11-06 Eli Zaretskii <eliz@gnu.org>
11535
11536 * frame.c (syms_of_frame): Fix the example in the doc string.
11537
df470e3b
JD
115382004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11539
11540 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
11541
11542 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
11543 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 11544
4cc8522c
LT
115452004-11-05 Luc Teirlinck <teirllm@auburn.edu>
11546
11547 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
11548
d4a42098
KS
115492004-11-05 Kim F. Storm <storm@cua.dk>
11550
a8490886
KS
11551 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
11552
d4a42098
KS
11553 * fileio.c (Ffile_modes): Doc fix.
11554 (auto_save_1): Check for Ffile_modes nil value.
11555
36a2b04c
KS
115562004-11-05 Kim F. Storm <storm@cua.dk>
11557
11558 * xselect.c (struct selection_event_queue, selection_queue)
11559 (x_queue_selection_requests, x_queue_event)
11560 (x_start_queuing_selection_requests)
11561 (x_stop_queuing_selection_requests): Add new queue for selection
11562 input events to replace previous XEvent queue in xterm.c.
11563 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
11564 (x_reply_selection_request): Adapt to new queue.
11565 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
11566 (x_handle_selection_request, x_handle_selection_clear): Make static.
11567 (x_handle_selection_event): New function. May queue selection events.
11568 (wait_for_property_change_unwind): Use save_value instead of cons.
11569 Clear property_change_reply_object.
11570 (wait_for_property_change): Abort if already waiting.
11571 Use save_value instead of cons for unwind data.
11572 (x_handle_property_notify): Skip events already arrived, but don't
11573 free them, as "arrived" field is checked by wait_for_property_change,
11574 and it will be freed by unwind or explicit unexpect_property_change.
11575 (x_get_foreign_selection): Add to new queue.
11576 (receive_incremental_selection): Don't unexpect wait_object when done
11577 as it has already been freed by previous wait_for_property_change.
11578
11579 * xterm.h (x_start_queuing_selection_requests)
11580 (x_stop_queuing_selection_requests, x_handle_selection_request)
11581 (x_handle_selection_clear): Remove prototypes.
11582 (x_handle_selection_event): Add prototype.
11583
11584 * xterm.c (handle_one_xevent): Don't queue X selection events
11585 here, it may be too late if we start queuing after we have already
11586 stored some selection events into the kbd buffer.
11587 (struct selection_event_queue, queue, x_queue_selection_requests)
11588 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
11589 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
11590 (x_catch_errors_unwind): Block input around final XSync.
11591
11592 * keyboard.h (kbd_buffer_unget_event): Add prototype.
11593
11594 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
11595 (kbd_buffer_unget_event): New function.
11596 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
11597 and use x_handle_selection_event.
11598 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
11599
9c3ad9e1
JD
116002004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11601
11602 * xselect.c (TRACE3): New debug macro.
11603 (x_reply_selection_request): Use it.
11604 (receive_incremental_selection): In call to TRACE0, the name of
11605 a symbol is in xname.
11606
a33b89de
KS
116072004-11-05 Kim F. Storm <storm@cua.dk>
11608
11609 * fontset.c (fontset_pattern_regexp): Use unsigned char.
11610
a872928c
JD
116112004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11612
88208bb8
JD
11613 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
11614
78819ebb 11615 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
11616
11617 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 11618 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
11619 * xfns.c (syms_of_xfns): ... to here.
11620
a872928c
JD
11621 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
11622 it doesn't start with /.
11623
b912921c
KH
116242004-11-04 Kenichi Handa <handa@m17n.org>
11625
11626 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
11627 treat it as a literal character.
11628
c524d9a6
KS
116292004-11-03 Kim F. Storm <storm@cua.dk>
11630
11631 * .gdbinit (ppt): New function.
11632
8cfd0f36
JD
116332004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11634
a11e1dce
JD
11635 * xterm.c (x_window_to_scroll_bar): Only call
11636 xg_get_scroll_id_for_window if toolkit scroll bars are used.
11637
8cfd0f36
JD
11638 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
11639 of save.
11640
a93563fd
AS
116412004-11-02 Andreas Schwab <schwab@suse.de>
11642
11643 * window.c (Fscroll_right): Fix last change.
11644
2b2d59d8
KS
116452004-11-02 Kim F. Storm <storm@cua.dk>
11646
14a56a1b 11647 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
2b2d59d8
KS
11648
116492004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11650
11651 * callproc.c (Fcall_process): Block input around vfork.
11652
ca28104d
KS
116532004-11-02 Kim F. Storm <storm@cua.dk>
11654
11655 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
11656 (syms_of_eval): Defsubr it.
11657
29bb7127
RS
116582004-11-02 Richard M. Stallman <rms@gnu.org>
11659
11660 * insdel.c (replace_range_2): New function.
11661
11662 * casefiddle.c (casify_region): Handle changes in byte-length
11663 using replace_range_2.
11664
11665 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
11666
b6189c3b 11667 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
11668 Subtract 1 from pos when checking previous newline for invisibility.
11669
11670 * window.c (window_scroll_pixel_based): Update preserve_y
11671 for header line if any.
11672 (Fscroll_left, Fscroll_right): Don't call interactive_p;
11673 use a new second argument instead.
11674
11675 * eval.c (Fcall_interactive_p): New function.
11676 (interactive_p): Don't test INTERACTIVE here.
11677 (Finteractive_p): Doc fix.
11678
11679 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
11680
b6189c3b 116812004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
11682
11683 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 11684 comparing font names.
a3fe4aaf 11685
2a00cdb4
JD
116862004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11687
f9d64bb3
JD
11688 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
11689 Fx_file_dialog if only directories should be read.
11690
11691 * lisp.h: Fx_file_dialog takes 5 parameters.
11692
32e2fb04
SM
11693 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
11694 Add parameter only_dir_p.
f9d64bb3
JD
11695 In Motif version, don't put DEFAULT_FILENAME in filter part of the
11696 dialog, just text field part. Do not add DEFAULT_FILENAME
11697 to list of files if it isn't there.
11698 In GTK version, pass only_dir_p parameter to xg_get_file_name.
11699
32e2fb04
SM
11700 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
11701 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
11702 a save dialog, add option kNavDontConfirmReplacement, change title
11703 to "Enter name", change text for save button to "Ok".
11704
32e2fb04
SM
11705 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
11706 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3 11707
14a56a1b
JB
11708 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
11709 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
11710 and HAVE_GTK_FILE_SELECTION_NEW respectively.
f9d64bb3
JD
11711 (xg_get_file_name): Add parameter only_dir_p.
11712 Call xg_get_file_with_chooser or xg_get_file_with_selection
11713 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
11714 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
11715
11716 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
11717
2a00cdb4
JD
11718 * config.in: Rebuild (added HAVE_GTK_FILE_*).
11719
f6749d5d
KS
117202004-11-01 Kim F. Storm <storm@cua.dk>
11721
32e2fb04
SM
11722 * process.c (connect_wait_mask, num_pending_connects):
11723 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 11724 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
11725 (IF_NON_BLOCKING_CONNECT): New helper macro.
11726 (wait_reading_process_output): Only declare and use local vars
11727 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 11728
1a99fe1a
JR
117292004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
11730
11731 * w32term.c (x_scroll_run): Delete region objects after use.
11732
fcdb28b4
JD
117332004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11734
495ef86b
JD
11735 * xmenu.c: Add prototypes for forward function declarations.
11736 (popup_get_selection): Remove parameter do_timers, remove call to
11737 timer_check.
32e2fb04
SM
11738 (create_and_show_popup_menu, create_and_show_dialog):
11739 Remove parameter do_timers from call to popup_get_selection.
495ef86b 11740
12e6566a
JD
11741 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
11742 tool_bar_items and assign the result to f->tool_bar_items if
11743 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
11744 tool_bar_items to assignment of result.
11745
fcdb28b4 11746 * atimer.c (alarm_signal_handler): Do not call set_alarm if
14a56a1b 11747 pending_atimers is non-zero.
fcdb28b4 11748
1a1a0c4c
KS
117492004-10-31 Kim F. Storm <storm@cua.dk>
11750
11751 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
11752
a36f1680
JW
117532004-10-28 Will <will@glozer.net>
11754
1d1c7e75 11755 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
11756 key via a 'mac-option-modifier' variable.
11757
32e2fb04 117582004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
11759
11760 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
11761 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
11762 (x_handle_selection_request, x_handle_selection_clear)
11763 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
11764
4f71c13f
RS
117652004-10-28 Richard M. Stallman <rms@gnu.org>
11766
11767 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
11768
11769 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
11770
068f3848
SM
117712004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
11772
11773 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
11774 comment-starter over a 1-char one.
11775
4660a9e3
RS
117762004-10-27 Richard M. Stallman <rms@gnu.org>
11777
11778 * xdisp.c (get_next_display_element): In mode lines,
11779 treat newline and tab like other control characters.
11780
11781 * editfns.c (Fmessage): Doc fix.
11782
11783 * indent.c (vmotion): When moving up, check the newline before.
11784 Make prevline an int, not a Lisp_Object.
11785
233f3db6
KS
117862004-10-27 Kim F. Storm <storm@cua.dk>
11787
11788 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
11789 Only allocate info and discarded tables once.
11790
11791 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
11792 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
11793 (SAFE_FREE): Test it to determine if we need to unwind to free.
11794 Remove size arg. All users changed.
11795 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
11796
1442465d
JD
117972004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11798
11799 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
11800 (xg_destroy_widgets): Rename from remove_from_container.
11801 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
11802 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
11803 instead of remove_from_container.
11804 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
11805 (free_frame_tool_bar): Add comment.
11806
11807 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
11808 is not NULL before strcmp.
11809
c8636435
KS
118102004-10-26 Kim F. Storm <storm@cua.dk>
11811
11812 * callint.c (Fcall_interactively): Add 'U' code to get the
11813 up-event discarded by a previous 'k' or 'K' argument.
11814
5629f29b
DK
118152004-10-26 David Kastrup <dak@gnu.org>
11816
11817 * buffer.c (syms_of_buffer): Fix a few typos.
11818
4f2f546e
JD
118192004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11820
11821 * xsmfns.c: Put empty line between comment and function body.
11822 Use two spaces before comment end.
11823
fc1062f5
KH
118242004-10-25 Kenichi Handa <handa@m17n.org>
11825
11826 * fontset.c (fontset_pattern_regexp): Optimize for the case that
11827 PATTERN is full XLFD.
11828
be13f5e5
KH
118292004-10-24 Kenichi Handa <handa@m17n.org>
11830
11831 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
11832
11833 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
11834 (regex_compile): Return REG_ERANGEX if appropriate.
11835
d0ee2ed3
KH
118362004-10-22 Kenichi Handa <handa@m17n.org>
11837
11838 * editfns.c (Ftranslate_region_internal): New function.
11839 (syms_of_editfns): Defsubr it.
11840
63ea8ea5
JD
118412004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11842
11843 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
11844
d495ccfc 118452004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
c27ed90a 11846
068f3848
SM
11847 * xterm.h (x_output): New member `xic_base_fontname'.
11848 (FRAME_XIC_BASE_FONTNAME): New macro.
11849 (xic_free_xfontset): Declare.
c27ed90a 11850
068f3848
SM
11851 * xfns.c (xic_create_xfontset): Share fontsets between frames
11852 based on base_fontname.
11853 (xic_free_xfontset): New function.
11854 (free_frame_xic): Use it.
11855 (xic_set_xfontset): Ditto.
c27ed90a 11856
068f3848 11857 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a 11858
59508699
JR
118592004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
11860
11861 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
11862
dede2792
JD
118632004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11864
3aca2078
JD
11865 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
11866 XSync.
11867
dede2792
JD
11868 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
11869 New variables and constant.
11870 (main): Calculate heap_bss_diff. If we are dumping and the
11871 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
11872 and exec ourself again.
11873 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
11874 print a warning.
11875
11876 * lastfile.c: Make my_endbss and my_endbss_static available on all
11877 platforms.
11878
11879 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
11880 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
11881
1dc5ba01
LT
118822004-10-19 Luc Teirlinck <teirllm@auburn.edu>
11883
11884 * data.c (Flocal_variable_if_set_p): Doc fix.
11885
950090be
JR
118862004-10-19 Jason Rumney <jasonr@gnu.org>
11887
11888 * w32.c (init_environment): Set emacs_dir correctly when running
11889 emacs from the build directory.
11890
8550b998
RS
118912004-10-19 Richard M. Stallman <rms@gnu.org>
11892
11893 * editfns.c (Fdelete_and_extract_region):
11894 If region is empty, return null string.
11895
08dedea6
JD
118962004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11897
1dc5ba01 11898 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 11899 and canon_width.
068f3848 11900 (xg_frame_cleared): Remove.
08dedea6 11901
068f3848
SM
11902 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
11903 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
11904 (xg_create_scroll_bar): Put an event box widget between
11905 the scroll bar widget and the edit widget.
11906 (xg_show_scroll_bar): Show the parent widget (the event box).
11907 (xg_remove_scroll_bar): Destroy parent (the event box) also.
11908 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
11909 Move the parent (the event box) widget inside the fixed widget.
11910 Move window clear to xterm.c.
11911
068f3848 11912 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 11913
08dedea6 11914 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
11915 (x_scroll_bar_create, XTset_vertical_scroll_bar):
11916 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
11917 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
11918
8550b998 119192004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
11920
11921 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 11922
84338890
JD
119232004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11924
11925 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
11926 gdk_window_clear and move gdk_window_process_all_updates after
11927 clear so events are sent to the X server in correct order.
11928
6e1b0d8c
KH
119292004-10-18 Kenichi Handa <handa@m17n.org>
11930
11931 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
11932 comparing font names.
8550b998 11933 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
11934 (list_fontsets): Likewise.
11935
11936 * search.c (fast_string_match_ignore_case): New function.
11937
11938 * lisp.h (fast_string_match_ignore_case): Extern it.
11939
345e75a8
KS
119402004-10-17 Kim F. Storm <storm@cua.dk>
11941
11942 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
11943 than bitmap if there is not left fringe.
11944 (get_overlay_arrow_glyph_row): Also used on windows system.
11945 (display_line): Display overlay string if no left fringe.
11946
be13cbb7
JR
119472004-10-16 Jason Rumney <jasonr@gnu.org>
11948
11949 * w32fns.c (w32_font_match): Encode font name being matched.
11950
c2e2ede7
RS
119512004-10-16 Richard M. Stallman <rms@gnu.org>
11952
11953 * window.c (Fspecial_display_p): Doc fix.
11954
043f7f73 119552004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
11956
11957 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
11958 Don't ignore menus, because where-is-internal already does it for us.
11959
699a0392
KS
119602004-10-15 Kim F. Storm <storm@cua.dk>
11961
b3c7a89b
KS
11962 * xdisp.c (redisplay_window): Only update fringes and vertical
11963 border on window frames.
699a0392 11964
4e382b0f
AS
119652004-10-14 Andreas Schwab <schwab@suse.de>
11966
11967 * m/ia64.h (DATA_SEG_BITS): Don't define.
11968
329a7be2
KS
119692004-10-14 Kim F. Storm <storm@cua.dk>
11970
11971 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 11972 in some X versions.
329a7be2 11973
982241b1
SM
119742004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
11975
11976 * fns.c (map_char_table): Add missing gcpros.
11977
9238467d
SM
119782004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
11979
11980 * keymap.c (get_keymap): An autoload form is not a keymap.
11981
11982 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
11983
4440e3ca
KS
119842004-10-13 Kim F. Storm <storm@cua.dk>
11985
7cfdabde
KS
11986 * callproc.c (Fcall_process): Simplify handling of display arg.
11987 Resume `display_on_the_fly' once a coding system is determined.
11988
4440e3ca
KS
11989 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
11990
1c8dec6a
KS
119912004-10-12 Kim F. Storm <storm@cua.dk>
11992
11993 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
11994 caller, such as call-process, is not going to poll for input.
11995 (calc_line_height_property): Handle case where it->object is nil.
11996
11997 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
11998
170b174c
KH
119992004-10-12 Kenichi Handa <handa@m17n.org>
12000
9238467d
SM
12001 * xdisp.c (get_next_display_element):
12002 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
12003 chars in octal in unibyte buffer.
12004
b583964c
KS
120052004-10-12 Kim F. Storm <storm@cua.dk>
12006
12007 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
12008 are no ordinary bindings.
12009
29fabd8c
JD
120102004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12011
9238467d 12012 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 12013
c3f4c690
ST
120142004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12015
9238467d
SM
12016 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
12017 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 12018 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
12019 terminal frame.
12020 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
12021 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
12022 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
12023 Make a cancel file-open dialog be like C-g.
9238467d
SM
12024 * mac.c (mktime): Use emacs_mktime.
12025 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
12026 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 12027
9688f9eb
KS
120282004-10-10 Kim F. Storm <storm@cua.dk>
12029
12030 * keyboard.c (timer_resume_idle): New function to resume idle
12031 timer without resetting timers on the idle list.
52eb0373 12032 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
12033 (timer_start_idle, timer_stop_idle): Declare static.
12034 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
12035
12036 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
12037
f7f3a65f
ST
120382004-10-08 Steven Tamm <steventamm@mac.com>
12039
9238467d 12040 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 12041 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 12042 NULL where 0 should be used.
f7f3a65f
ST
12043 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
12044 objc/malloc.h
9238467d 12045 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 12046
3c7d999a
KS
120472004-10-07 Kim F. Storm <storm@cua.dk>
12048
12049 * xdisp.c (redisplay_window): Fix flicker on vertical line between
12050 windows. Update vertical line after drawing window fringes, but
12051 only if actually drawing any bitmaps--or there is no fringe.
12052
12053 * xterm.c (x_update_window_end): Likewise.
12054 * macterm.c (x_update_window_end): Likewise.
12055 * w32term.c (x_update_window_end): Likewise.
12056
12057 * fringe.c (draw_window_fringes): Return value now indicates if
12058 any fringe bitmaps were redrawn (or there are no fringes).
12059
12060 * dispextern.h (draw_window_fringes): Update prototype.
12061
bf06c82f
ST
120622004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12063
12064 * macfns.c (mac_get_window_bounds): Add extern.
12065 (x_real_positions): Use mac_get_window_bounds.
12066
12067 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
12068 xmenu.c (YAILOM).
3c7d999a 12069
bf06c82f
ST
12070 * macterm.c [!MAC_OSX]: Include Windows.h.
12071 (front_emacs_window): Rename from mac_front_window. All uses
12072 changed. Return the frontmost non-tooltip emacs window.
12073 (mac_get_window_bounds): New function.
12074 (x_calc_absolute_position): Use the difference of width and height
12075 between the inner and outer window.
12076 (x_set_offset): Specify window position by the coordinae of the
12077 outer window. Adjust the position if the title bar is completely
12078 outside the screen.
12079 (app_is_suspended, app_sleep_time): Remove unused variables.
12080 (do_app_resume, do_app_suspend): Remove their contents because
12081 window-activate/deactivate events will do the job.
12082 (do_zoom_window): Remove unused variables. Make compliant to the
12083 standard way of zooming. Set f->left_pos and f->top_pos.
12084 (XTread_socket): Don't use argument `expected'. Don't use
12085 FrontWindow to determine the clicked window. Exclude unprocessed
12086 mouseUp cases in the early stage. Add parentheses to fix operator
12087 precedence.
12088 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
12089
c6605d63 120902004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
d8b43276
JD
12091
12092 * config.in: Regenerate.
12093
12094 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
12095 HAVE_EXECSHIELD.
12096
b90ee8b5
JD
120972004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12098
12099 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
12100 a row if Alt or Meta has been found for that row. Also stop scanning
12101 for Keysyms for that row.
12102
904db1a2
KS
121032004-10-04 Kim F. Storm <storm@cua.dk>
12104
0207b8ad
KS
12105 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
12106 to list. Include overlay arrow bitmap in return value.
12107
25f7220c
KS
12108 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
12109 bars with fractional column width. If scroll bar separates two
12110 windows, move it towards the window it belongs to. Only update
12111 the padding area below the scroll bar widget when necessary,
12112 i.e. when scroll bar widget is created, moved, or resized.
12113
562020fe
KS
12114 * xdisp.c (define_frame_cursor1): Do not change frame cursor
12115 while tracking/dragging mouse.
12116 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
12117
37e34af7
KS
12118 * window.c (coordinates_in_window): Relax check for cursor
12119 on vertial border between mode lines.
12120 (Fset_window_fringes): Do not allow negative widths.
12121 (Fset_window_scroll_bars): Likewise.
12122
904db1a2
KS
12123 * .gdbinit (pp): Shorthand for p ARG + pr.
12124 (ff): New command: flush frame updates (X only).
12125
38fe4f64
MA
121262004-10-03 Michael Albinus <michael.albinus@gmx.de>
12127
12128 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
12129
9de36315
KH
121302004-09-30 Kenichi Handa <handa@m17n.org>
12131
07c381ad 12132 * process.c (send_process): Free composition data.
9de36315 12133
07c381ad 12134 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
12135
12136 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
12137 compositions to encode.
12138 (encode_coding_string): Likewise. Free composition data.
12139
d5fb8dab 121402004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
12141
12142 * coding.c (code_convert_region): Free composition data.
9de36315 12143
f2a54fbc
KS
121442004-09-29 Kim F. Storm <storm@cua.dk>
12145
dc5d6435
KS
12146 * fringe.c: Remove limit on number of bitmaps.
12147 (fringe_bitmaps, fringe_faces): Change to pointers.
12148 (max_fringe_bitmaps): New var.
12149 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
12150 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
12151
12152 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
12153 (struct glyph_row): Reorder fringe_bitmap related fields.
12154 (struct it): Likewise.
12155
12156 * w32term.c (fringe_bmp): Change to pointer.
12157 (max_fringe_bmp): New var.
12158 (w32_define_fringe_bitmap): Expand fringe_bmp.
12159 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
12160 (w32_destroy_fringe_bitmap): Likewise.
12161
121622004-09-29 Kim F. Storm <storm@cua.dk>
12163
12164 * fringe.c: Simplify last change.
f2a54fbc
KS
12165 (lookup_fringe_bitmap): New function.
12166 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
12167 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
12168 Keep standard bitmaps in Vfringe_bitmaps.
12169 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
12170 (Fset_fringe_bitmap_face): Likewise.
12171
12172 * dispextern.h (lookup_fringe_bitmap): Add prototype.
12173 (valid_fringe_bitmap_p): Remove prototype.
12174
12175 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
12176
841a8bca
KS
121772004-09-29 Kim F. Storm <storm@cua.dk>
12178
1f2da365
KS
12179 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
12180 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
12181
841a8bca
KS
12182 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
12183
12184 * fringe.c (Vfringe_bitmaps): New variable.
12185 (syms_of_fringe): DEFVAR_LISP it.
12186 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
12187 Change arg to Lisp_Object and fail if not an integer.
12188 (get_fringe_bitmap_name, resolve_fringe_bitmap)
12189 (destroy_fringe_bitmap): New functions.
9238467d
SM
12190 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
12191 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
12192 clear its fringe property.
12193 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
12194 Fdestroy_fringe_bitmap.
12195 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
12196 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
12197 and set fringe property. Signal error if no free slots.
12198 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
12199 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
12200
12201 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
12202 symbols with a fringe property.
12203
4d965590
KS
122042004-09-27 Kim F. Storm <storm@cua.dk>
12205
12206 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
12207 Doc fix. Format may now be a symbol or alist, not a cons.
12208
12209 * fringe.c (update_window_fringes): Handle new formats of
12210 indicate-buffer-boundaries (symbol or alist). No longer
12211 allow a simple cons.
12212 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
12213
e888c2b3
JD
122142004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12215
9238467d 12216 * config.in: Rebuild.
e888c2b3 12217
83f1cb94
JD
122182004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12219
12220 * config.in: Rebuild.
12221
9dd28cae 12222 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 12223
2c51754c
SM
122242004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
12225
12226 * xterm.c (x_term_init): Work around a bug in some X servers.
12227
3df5f8aa
RS
122282004-09-18 Richard M. Stallman <rms@gnu.org>
12229
557ca2c1
RS
12230 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
12231
3df5f8aa
RS
12232 * xdisp.c (try_window_reusing_current_matrix):
12233 Handle the case where we reach the old displayed text,
12234 out of sync with the old line boundary.
12235
9238467d 122362004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
12237
12238 * fileio.c (Finsert_file_contents): Fix case of replacement in a
12239 narrowed buffer.
12240
bfa02563
KS
122412004-09-14 Kim F. Storm <storm@cua.dk>
12242
a25fe164
KS
12243 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
12244
bfa02563
KS
12245 * xfaces.c (Qface_no_inherit): New var.
12246 (syms_of_xfaces): Intern and staticpro it.
12247 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
12248 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
12249 Don't increment face_change_count when face has non-nil
12250 face-no-inherit property.
12251
126f9c02
SM
122522004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
12253
892a8eb5
SM
12254 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
12255 (Fbyte_code): Remove dead code after `wrong_type_argument'.
12256
126f9c02 12257 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 12258 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 12259
c0ad3b38
KS
122602004-09-12 Kim F. Storm <storm@cua.dk>
12261
12262 * editfns.c (Fformat): Handle format strings with multiple text
12263 properties. Reverse text property list from the format string,
12264 so the positions are in increasing order.
12265
844fc085
JD
122662004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12267
12268 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
12269 x_uncatch_errors so that possible protocol errors are delivered.
12270
b106731c
EZ
122712004-09-10 Eli Zaretskii <eliz@gnu.org>
12272
21065c92
EZ
12273 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
12274 blockinput.h.
12275 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
12276 charset.h, and coding.h
9238467d 12277 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
12278 (term.o): Depend on window.h and keymap.h.
12279 (abbrev.o): Depend on syntax.h.
12280 (callint.o): Depend on keymap.h.
12281 (casefiddle.o): Depend on charset.h and keymap.h.
12282 (category.o): Depend on keymap.h.
12283 (coding.o): Depend on dispextern.h.
12284 (cmds.o): Depend on keyboard.h and keymap.h.
12285 (dispnew.o): Depend on indent.h and intervals.h.
12286 (doc.o): Depend on keymap.h.
12287 (editfns.o): Depend on frame.h.
12288 (emacs.o): Depend on dispextern.h.
12289 (fileio.o): Don't depend on ccl.h.
12290 (filelock.o): Depend on charset.h and coding.h.
12291 (frame.o): Depend on w32term.h and macterm.h.
12292 (insdel.o): Depend on region-cache.h.
12293 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
12294 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
12295 (search.o): Depend on $(INTERVALS_SRC).
12296 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
12297 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
12298 xterm.h, w32term.h, and macterm.h.
12299 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
12300 w32term.h, and macterm.h.
12301 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
12302 region-cache.h, xterm.h, w32term.h, and macterm.h.
12303 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
12304 (data.o): Depend on frame.h.
12305 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
12306 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
12307 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
12308 (intervals.o): Depend on keymap.h.
12309
9238467d
SM
12310 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
12311 Add debugging print-out to termscript.
b106731c 12312
64b7122d
RS
123132004-09-09 Richard M. Stallman <rms@gnu.org>
12314
12315 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
12316
5670531e
RS
123172004-09-08 Richard M. Stallman <rms@gnu.org>
12318
6cb4a892
RS
12319 * window.c (Fset_window_buffer): Doc fix.
12320
5670531e
RS
12321 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
12322
7e388eb7
JL
123232004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
12324
12325 * minibuf.c (history_delete_duplicates): New variable.
12326 (read_minibuf): Use it.
12327 (syms_of_minibuf): Create the corresponding lisp variable.
12328
370e3587
KS
123292004-09-08 Kim F. Storm <storm@cua.dk>
12330
12331 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
12332 overlay just before point.
12333
f844ba4e
LT
123342004-09-07 Luc Teirlinck <teirllm@auburn.edu>
12335
12336 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
12337 * buffer.c (reset_buffer, init_buffer_once):
12338 Handle auto_save_file_format field.
f844ba4e
LT
12339 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
12340 `buffer-auto-save-file-format'.
f844ba4e
LT
12341 * fileio.c: Delete declaration for removed Vauto_save_file_format.
12342 (build_annotations): Adapt to replacement of
12343 `auto-save-file-format' with the new buffer-local variable
12344 `buffer-auto-save-file-format'.
12345 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
12346
f0f90717
JR
123472004-09-07 Jason Rumney <jasonr@gnu.org>
12348
12349 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
12350
9238467d
SM
12351 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
12352 Handle Unicode menu titles.
f0f90717 12353
4e14f66c
KS
123542004-09-07 Kim F. Storm <storm@cua.dk>
12355
12356 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
12357 property from text property or overlay strings at point.
12358
9238467d 123592004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
12360
12361 * xmenu.c (update_submenu_strings): YAILOM.
12362 (set_frame_menubar): Make sure last_i is initialized.
12363
1f06d367
JR
123642004-09-03 Jason Rumney <jasonr@gnu.org>
12365
1806714a 12366 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
12367 (digest_single_submenu): Set lname and lkey in widget_value
12368 instead of name and key.
12369 (update_submenu_strings): New function.
12370 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12371 call update_submenu_strings.
12372
12373 * w32menu.c (globals_of_w32menu): Check for Unicode API.
12374 (digest_single_submenu, w32_menu_show): Encode menu strings as
12375 UTF-8 if Unicode API is available.
12376 (utf8to16): New function.
12377 (add_menu_item): Use it when calling Unicode API.
1806714a 12378
46540080
KS
123792004-09-03 Kim F. Storm <storm@cua.dk>
12380
12381 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
12382 in overlay or text-property strings; set cursor on corresponding
12383 glyph rather than at end of the string.
12384
9277ba61 123852004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 12386
9277ba61 12387 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
12388 set a new one before obtaining the global coordinate.
12389 Use FRAME_MAC_WINDOW.
12390 (x_set_name, x_set_title): Encode title to UTF8.
12391 Use SetWindowTitleWithCFString.
9277ba61
ST
12392 (Fx_server_version): Get correct OS version.
12393
1806714a
SM
12394 * macmenu.c (add_menu_item): Remove unused variable `i'.
12395 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
12396
12397 * macterm.c (x_update_end): Move SetPortWindowPort to inside
12398 BLOCK_INPUT.
12399 (x_set_offset): Use FRAME_MAC_WINDOW.
12400
12401 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
12402 nontext_cursor if it is on a scroll bar.
12403
12404 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
12405 Carbon support.
1806714a
SM
12406 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
12407 Use LIBS_CARBON.
9277ba61 12408
b10daec7
JD
124092004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12410
12411 * xfns.c (x_set_name_internal): New function. Check if we shall call
12412 xfree before ENCODE_UTF_8.
12413 (x_set_name, x_set_title): Call x_set_name_internal.
12414
f7e22385
JR
124152004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
12416
12417 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
12418 reload it.
12419
2bf436c3
JD
124202004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12421
1806714a 12422 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
12423 (single_submenu): Set lname and lkey in widget_value
12424 instead of name and key.
12425 (update_submenu_strings): New function.
12426 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12427 call update_submenu_strings.
12428
2bf436c3
JD
12429 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
12430 instead of name and key.
12431 (update_submenu_strings): New function.
12432 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 12433 call update_submenu_strings.
2bf436c3
JD
12434
12435 * gtkutil.h (_widget_value): Added lname and lkey.
12436
11715f92
ST
124372004-08-30 Steven Tamm <steventamm@mac.com>
12438
12439 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
12440 by using different names for inner loop variables.
12441
5500be54
JD
124422004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12443
059cd329
JD
12444 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
12445 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
12446
5500be54
JD
12447 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
12448 tool bar items is 0.
12449
383418e5
ST
124502004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12451
12452 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
12453 strings in menu items.
12454 (single_submenu): Use ENCODE_MENU_STRING
12455 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
12456 button release isn't passed to event loop
12457 (add_menu_item): Use SetMenuItemWithCFString
12458
6eb3ee72
ST
124592004-08-26 Steven Tamm <steventamm@mac.com>
12460
12461 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
12462 tool-bar/menu click.
12463 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 12464
10b43ac3
JD
124652004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12466
2728b5d0
JD
12467 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
12468
10b43ac3
JD
12469 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12470 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12471 (x_top_window_to_frame): Return 0 if wdesc is None.
12472
2ee3b79e
RS
124732004-08-22 Richard M. Stallman <rms@gnu.org>
12474
12475 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
12476 HAVE_TERMIOS]: If there's no char for this signal, drop through
12477 and use system calls.
12478
12479 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
12480
9a1ba2ea
KS
124812004-08-20 Kim F. Storm <storm@cua.dk>
12482
12483 * process.c (wait_reading_process_output): Rename from
12484 wait_reading_process_input. All uses changed.
12485 (wait_reading_process_output_1): Rename from
12486 wait_reading_process_input_1. All uses changed.
12487
12488 * dispnew.c (Fsleep_for): Remove obsolete code.
12489
295f3b30
KH
124902004-08-20 Kenichi Handa <handa@m17n.org>
12491
12492 * syntax.c (skip_chars): Fix for unibyte case.
12493
27615979
SM
124942004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12495
12496 * syntax.c (char_quoted): Mixup byte/char pos.
12497 (back_comment): Fixup globals in all cases.
12498
00267f94
JD
124992004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12500
12501 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
12502 passing it to gtk_window_set_title.
12503
2439909e
KS
125042004-08-19 Kim F. Storm <storm@cua.dk>
12505
6ba0f14c
KS
12506 * process.c (wait_reading_process_input): Clean up.
12507 Add wait_for_cell, wait_proc, and just_wait_proc args
12508 to avoid overloading `read_kbd' and `do_display' args.
12509 Change read_kbd arg to int. All callers changed.
12510
2439909e
KS
12511 * process.c (process_send_signal): Use CDISABLE.
12512
12513 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
12514
101c421e
KS
125152004-08-18 Kim F. Storm <storm@cua.dk>
12516
12517 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
12518 forward to wait_reading_process_input via DO_DISPLAY arg.
12519 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
12520 object, only process output from that process; also inhibit
12521 running timers if DO_DISPLAY==-2.
12522
c438dc33
KS
125232004-08-17 Kim F. Storm <storm@cua.dk>
12524
12525 * process.c (process_send_signal): Fix last change--use
12526 _POSIX_VDISABLE instead of CVDISABLE when available.
12527
8afc13c6
RS
125282004-08-16 Richard M. Stallman <rms@gnu.org>
12529
12530 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
12531 Set VQUIT and VINTR chars to the standard ones if they are unset.
12532 [AIX]: Don't do that here. And don't force VINTR to standard
12533 when SIGNALS_VIA_CHARACTERS.
12534
c438dc33 12535 * process.c (process_send_signal)
5e1a6e32 12536 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
8afc13c6
RS
12537 Do nothing if the character is CVDISABLE.
12538
12539 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
12540
c438dc33 12541 * intervals.c (move_if_not_intangible):
8afc13c6
RS
12542 Force POSITION to be between BEGV and ZV.
12543
6dad1714
JPW
125442004-08-14 John Paul Wallington <jpw@gnu.org>
12545
12546 * buffer.c (Frestore_buffer_modified_p): Doc fix.
12547
12548 * fileio.c (Fread_file_name): Doc fix.
12549
12550 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
12551
2bd77330
LT
125522004-08-09 Luc Teirlinck <teirllm@auburn.edu>
12553
12554 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
12555
c90e7e43
LT
125562004-08-08 Luc Teirlinck <teirllm@auburn.edu>
12557
12558 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 12559 Qdisabled_command_hook.
c90e7e43 12560 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 12561 Qdisabled_command_hook.
c90e7e43
LT
12562 (syms_of_keyboard): Ditto.
12563
81909a1a
LT
125642004-08-07 Luc Teirlinck <teirllm@auburn.edu>
12565
12566 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
12567 (syms_of_keymap) <key-translation-map>: Doc fixes.
12568
0cedd530
SM
125692004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
12570
1725a7c9
SM
12571 * window.c (window_list_1): YAILOM.
12572
0cedd530
SM
12573 * fileio.c (make_temp_name): Handle multibyte prefixes.
12574
2515a131
LT
125752004-08-06 Luc Teirlinck <teirllm@auburn.edu>
12576
12577 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
12578 Doc fix.
12579
c8b20fb7
KH
125802004-08-03 Kenichi Handa <handa@m17n.org>
12581
12582 * coding.c (decode_coding_string): Adjust coding->consumed, and
12583 etc. with shrinked_bytes.
12584
fb8b092b
KS
125852004-08-03 Kim F. Storm <storm@cua.dk>
12586
12587 * indent.c (compute_motion): Fix check for full width window
12588 in non-window case. Do not count left truncation glyph on
12589 window systems.
12590
df133612
LT
125912004-08-02 Luc Teirlinck <teirllm@auburn.edu>
12592
12593 * data.c (Finteractive_form): Doc fix.
12594
0f7a93c1
KS
125952004-08-02 Kim F. Storm <storm@cua.dk>
12596
12597 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
12598 properly accounting for continuation glyph on non-window systems.
12599 (Fcompute_motion): Use actual window width if WIDTH is nil, and
12600 actual window width/height if TOPOS is nil, properly accounting for
12601 continuation glyphs on non-window systems, and optional header lines.
12602 (vmotion): Let compute_motion calculate actual window width.
12603
12604 * window.c (window_scroll_line_based): Let compute_motion
12605 calculate actual window width.
12606
f491e1ed
KS
126072004-08-02 Kim F. Storm <storm@cua.dk>
12608
12609 * process.c (read_process_output): Use whole read buffer.
12610 Don't trigger adaptive read buffering on errors.
12611
83f64226
LT
126122004-07-31 Luc Teirlinck <teirllm@auburn.edu>
12613
12614 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
12615
1d1c7e75 12616 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
12617
12618 * callint.c (Fcall_interactively): Doc fix.
12619
8afc13c6
RS
126202004-07-30 Richard M. Stallman <rms@gnu.org>
12621
12622 * abbrev.c (Fexpand_abbrev): Undo previous change.
12623
7c111482
KS
126242004-07-30 Kim F. Storm <storm@cua.dk>
12625
12626 * editfns.c (Fformat): Allocate extra (dummy) element in info.
12627
ee945d08
LT
126282004-07-28 Luc Teirlinck <teirllm@auburn.edu>
12629
12630 * eval.c (Fdefvar, Fdefconst): Doc fixes.
12631
3f911c94
KS
126322004-07-27 Kim F. Storm <storm@cua.dk>
12633
12634 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
12635 we have ensured that the glyph fits on the current line (or returned
12636 MOVE_LINE_CONTINUED otherwise).
12637
f29ff8c7
KS
126382004-07-26 Kim F. Storm <storm@cua.dk>
12639
12640 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
12641 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
12642 if target position is at end of display line but char is not a newline.
12643
81159bb9
RS
126442004-07-25 Richard M. Stallman <rms@gnu.org>
12645
ab431b61
RS
12646 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
12647 instead of ON_VERTICAL_BORDER, when on scroll bar.
12648 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
12649
12650 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
12651
f29ff8c7 12652 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
12653 Take account of FRAME_INTERNAL_BORDER_WIDTH.
12654
12655 * alloc.c (check_cons_list): New function (contents commented out).
12656
fc820cc5
LT
126572004-07-24 Luc Teirlinck <teirllm@auburn.edu>
12658
12659 * xfaces.c (Fcolor_supported_p): Doc fix.
12660
12661 * frame.c (Fselect_frame, Fset_frame_selected_window)
12662 (Fframe_visible_p, Fraise_frame): Doc fixes.
12663
289978b5
LT
126642004-07-24 Richard M. Stallman <rms@gnu.org>
12665
78819ebb 12666 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
12667
12668 * fileio.c (Fwrite_region): Doc fix.
12669
12670 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
12671
12672 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
12673 only when a real abbrev is present.
12674
289978b5
LT
12675 * xfns.c (x_icon_verify): New function.
12676 (Fx_create_frame): Use it.
12677
d5fb8dab 126782004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
12679
12680 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
12681
36f826d4
KS
126822004-07-21 Kim F. Storm <storm@cua.dk>
12683
12684 * window.h (struct glyph_matrix): New members nrows_scale_factor
12685 and ncols_scale_factor.
12686
12687 * window.c (make_window): Initialize nrows_scale_factor and
12688 ncols_scale_factor members.
12689
12690 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
12691 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
12692 (required_matrix_height): Apply nrows_scale_factor.
12693 (required_matrix_width): Apply ncols_scale_factor.
12694
12695 * xdisp.c (display_line): Increment nrows_scale_factor and set
12696 fonts_changed_p if past last allocated row.
12697 (append_glyph, append_composite_glyph, produce_image_glyph)
12698 (append_stretch_glyph): Increment ncols_scale_factor and set
12699 fonts_changed_p if current area is full.
12700
5fc1c546
JD
127012004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12702
12703 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
12704
cb7516e5
LT
127052004-07-19 Luc Teirlinck <teirllm@auburn.edu>
12706
12707 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
12708 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
12709 (Fset_window_start, Fscroll_up, Fscroll_down)
12710 (Fother_window_for_scrolling, Fscroll_other_window)
12711 (Fsave_window_excursion, Fset_window_vscroll)
12712 (syms_of_window) <window-size-fixed>: Doc fixes.
12713
b6189c3b 127142004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
12715
12716 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
12717 ENCODE_SYSTEM for filenames.
12718
bfcf6608
ST
127192004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12720
12721 * mac.c (sys_select): Block input around call to
12722 ReceiveNextEvent to prevent breakage. Correctly handle
12723 blocking on event queue only by calling ReceiveNextEvent
12724 instead of select (since GUI events aren't on an fd).
12725 (sys_read): Remove function
12726 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
12727
e082ac9d
ST
127282004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12729
12730 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 12731 polling instead of 1 sec timeouts (like solaris).
e082ac9d 12732
cb7516e5 12733 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
12734 frame creation.
12735
12736 * keyboard.c: Undef SIGIO on Carbon
12737
12738 * atimer.c (alarm_signal_handler): Call alarm handlers after
12739 scheduling.
12740
12741 * eval.c (Feval): Remove quit_char test
12742
12743 * process.c (wait_reading_process_input): Remove clearing
12744 stdin for select call on process input.
12745
4b9da0fb
LT
127462004-07-18 Luc Teirlinck <teirllm@auburn.edu>
12747
1204e81c
LT
12748 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
12749 capitalization error in docstring.
4b9da0fb 12750
26503ad2
JB
127512004-07-17 Juanma Barranquero <lektu@terra.es>
12752
12753 * keyboard.c (not_single_kboard_state): Do nothing unless
12754 MULTI_KBOARD is defined.
12755
3751eb00
RS
127562004-07-17 Richard M. Stallman <rms@gnu.org>
12757
12758 * window.c (coordinates_in_window): Inside the window but outside
12759 its box to the L or R, return ON_VERTICAL_BORDER.
12760 (window_list_1): Rotate the list to start with WINDOW.
12761
12762 * print.c (print_preprocess): Test for print_depth at limit
12763 before entering in being_printed.
12764
12765 * keyboard.c (not_single_kboard_state): New function.
12766 (stuff_buffered_input): Now no-op only if no SIGTSTP.
12767
12768 * frame.c (Fdelete_frame): If we're in single_bboard_state on
12769 this kboard, and we delete its last frame, go to any_kboard_state.
12770
12771 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
12772
b6189c3b 127732004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
12774
12775 * w32fns.c (Fx_file_dialog): Encode strings in system coding
12776 system before passing them to OS functions for display.
12777
0f6af254
DK
127782004-07-15 David Kastrup <dak@gnu.org>
12779
f9253326
KS
12780 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
12781 Apparently fixes an abort condition.
0f6af254 12782
386c8f42
LT
127832004-07-14 Luc Teirlinck <teirllm@auburn.edu>
12784
12785 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
12786 instead of a cons.
12787
d495ccfc 127882004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
366511da
MB
12789
12790 * keyboard.c (echo_dash): Do nothing if there already is a dash
12791 at the end of the echo string.
12792
f85409d3
KS
127932004-07-12 Kim F. Storm <storm@cua.dk>
12794
12795 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
12796 if GC_MARK_STACK.
12797
0ba2e87b
LT
127982004-07-10 Luc Teirlinck <teirllm@auburn.edu>
12799
da38045d
LT
12800 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
12801
9dd28cae 12802 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
0ba2e87b
LT
12803 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
12804 (Freplace_buffer_in_windows, Fset_window_buffer)
12805 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
12806 (syms_of_window): Expand docstring of `display-buffer-function'.
12807
5668fbb8
LT
128082004-07-09 Luc Teirlinck <teirllm@auburn.edu>
12809
12810 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
12811 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
12812 that time values of the type (HIGH . LOW) are considered obsolete.
12813
a085bf9d
LT
128142004-07-06 Luc Teirlinck <teirllm@auburn.edu>
12815
669de2fb
LT
12816 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
12817 docstring.
12818
bac66325 12819 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 12820
8e975df9
JPW
128212004-07-06 John Paul Wallington <jpw@gnu.org>
12822
12823 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
12824
fa164e6a
JPW
12825 * fns.c (Fclear_string): Signal an error if STRING is not a string.
12826
2bac9bb1
JD
128272004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12828
12829 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
12830 instead of CGMainDisplayID (only in OSX 10.2 and later).
12831
316ef0dc
JPW
128322004-07-04 John Paul Wallington <jpw@gnu.org>
12833
12834 * fileio.c (read_file_name_completion_ignore_case): New variable.
12835 (syms_of_fileio): Declare and initialise it.
12836 (Fread_file_name): Bind `completion-ignore-case' to respect it.
12837
2a1a35c6
EZ
128382004-07-03 Eli Zaretskii <eliz@gnu.org>
12839
12840 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
12841 for event.x and event.y.
12842
33a72331
KH
128432004-07-01 Kenichi Handa <handa@m17n.org>
12844
12845 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
12846 after getting a new string by pre-write-conversion.
12847
9238467d 128482004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
12849
12850 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
12851 (x_calc_absolute_position): Remove unused var `child'.
12852
12853 * xfaces.c (x_supports_face_attributes_p)
12854 (Fdisplay_supports_face_attributes_p): YAILOM.
12855 (tty_supports_face_attributes_p): Remove unused var `i'.
12856
12857 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
12858 back_unibyte_ok.
12859
12860 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
12861
647b07d1
AS
12862 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
12863 `registry'.
07a6ab76
SM
12864
12865 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
12866
f96ec754
AS
128672004-06-30 Andreas Schwab <schwab@suse.de>
12868
12869 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
12870 (Finit_image_library): Pass LIBRARIES through to
12871 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
12872 (lookup_image_type): Pass Qnil as second argument to
12873 Finit_image_library.
12874
78819ebb 12875 * lisp.h (Finit_image_library): Declare.
f96ec754 12876
59feca74 128772004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 12878
31983645
AS
12879 * macterm.c (do_window_activate, do_window_deactivate): Remove.
12880 (XTread_socket): Send mouse button events to the toolbox
12881 dispatcher even when the mouse is grabbed. Don't process window
5e1a6e32 12882 activate events for non-Emacs windows. Replace function calls to
31983645
AS
12883 do_window_activate and do_window_deactivate with their contents.
12884 Reset mouse grabbing status when a window is deactivated.
59feca74 12885
c61278bb
ST
128862004-06-29 Steven Tamm <steventamm@mac.com>
12887
12888 * macterm.c (mac_get_emulated_btn)
12889 (mac_event_to_emacs_modifiers): Fix emulated mouse button
12890 support to correctly mask out modifiers.
12891
c3762cbd
DK
128922004-06-29 David Kastrup <dak@gnu.org>
12893
12894 * search.c (Fset_match_data): Allow buffer before end of list
12895 which can happen if set-match-data is using a pre-consed list.
12896
c61278bb 128972004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
12898
12899 * macterm.c (XTread_socket): Correctly set the frame position
12900 after the window is moved.
12901
74cdfe05
JD
129022004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12903
12904 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
12905 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
12906 (xg_get_image_for_pixmap): Add workaround for monochrome displays
12907 so insensitive and activated icons look ok.
74cdfe05 12908
ef544dc8
JR
129092004-06-27 Jason Rumney <jasonr@gnu.org>
12910
12911 * w32fns.c (file_dialog_callback): Disable edit control if set
12912 to directories only on CDN_INITDONE message.
12913 (Fx_file_dialog): Default to directories only when prompt starts
12914 with "Dired".
12915
7b7990cc
KS
129162004-06-25 Kim F. Storm <storm@cua.dk>
12917
12918 * alloc.c (allocate_misc): Update total_free_markers.
12919 (free_misc): New function.
12920 (safe_alloca_unwind, free_marker): Use it.
12921
12922 * lisp.h (free_misc): Add prototype.
12923
12924 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
12925
d8c379f8
RS
129262004-06-24 Richard M. Stallman <rms@gnu.org>
12927
12928 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
12929 (syms_of_emacs): Lisp variables deleted.
12930
559cdd07
DK
129312004-06-23 David Kastrup <dak@gnu.org>
12932
94939b84
DK
12933 * search.c (Freplace_match): Adjust the match-data more thoroughly
12934 when replacing strings in the buffer.
12935 (Fmatch_data): When INTEGERS is non-nil and the last match was in
12936 a buffer, add the buffer as last element to the match data.
12937 (Fset_match_data): If an additional element of the match-data is a
12938 buffer, restore it to last_thing_searched.
c8d09ad8 12939 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
12940 (restore_match_data): Restore it again.
12941
dce417e7
LT
129422004-06-23 Luc Teirlinck <teirllm@auburn.edu>
12943
12944 * keymap.c (Ftext_char_description): Doc fix.
12945 * doc.c (Fsnarf_documentation): Doc fix.
12946
ef54b2d0
KS
129472004-06-22 Kim F. Storm <storm@cua.dk>
12948
b5bc4d05
KS
12949 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
12950
ef54b2d0
KS
12951 * lisp.h (struct Lisp_Save_Value): New member dogc.
12952 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
12953 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
12954 (SAFE_FREE_LISP): New macro.
12955
12956 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
12957 (make_save_value): Init new dogc member.
12958 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
12959
12960 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
12961 SAFE_FREE_LISP macros.
12962
3d33d993
KS
129632004-06-22 Kim F. Storm <storm@cua.dk>
12964
12965 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
12966 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
12967 in that memory area are unknown to GC. Add comments.
12968
12969 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
12970
5c917f98
KS
129712004-06-21 Kim F. Storm <storm@cua.dk>
12972
12973 * lisp.h (MAX_ALLOCA): Define here.
12974 (safe_alloca_unwind): Add prototype.
12975 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
12976
12977 * alloc.c (safe_alloca_unwind): New function.
12978
12979 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
12980
12981 * charset.c (Fstring): Use SAFE_ALLOCA.
12982
12983 * coding.c (MAX_ALLOCA): Remove define.
12984
12985 * data.c (MAX_ALLOCA): Remove define.
12986 (Faset): Use SAFE_ALLOCA.
12987
12988 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
12989
12990 * fns.c (string_make_multibyte, string_to_multibyte)
12991 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
12992 (MAX_ALLOCA): Remove define.
12993 (Fbase64_encode_region, Fbase64_encode_string)
12994 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
12995 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
12996 memory leak if encoding fails.
12997
12998 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
12999
9a09408e
EZ
130002004-06-21 Eli Zaretskii <eliz@gnu.org>
13001
13002 * print.c (Fwith_output_to_temp_buffer): Doc fix.
13003
376de739
RS
130042004-06-20 Richard M. Stallman <rms@gnu.org>
13005
13006 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
13007
13008 * search.c (match_limit): Cleaner err msg when no match data available.
13009
13010 * window.c (syms_of_window): Doc fix.
13011
13012 * keyboard.c (command_loop_1): Handle values `only' and `identity'
13013 for Vtransient_mark_mode.
13014
13015 * buffer.c (syms_of_buffer): Doc fix.
13016
acd81db9
DK
130172004-06-21 David Kastrup <dak@gnu.org>
13018
13019 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
13020 and unbinding of `case-fold-search' according to
13021 `completion-ignore-case' around calls of string-match and
13022 predicates, respectively. Should give satisfactory performance
13023 in all relevant cases.
13024
f303762d
JD
130252004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13026
95911c74
JD
13027 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
13028 clip_x/y_origin.
13029
a6cb6b78
JD
13030 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
13031
f303762d
JD
13032 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
13033
13034 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
13035 on Mac OSX.
13036
bbdb2684
LT
130372004-06-16 Luc Teirlinck <teirllm@auburn.edu>
13038
13039 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
13040
5ea48b1c
KS
130412004-06-16 Kim F. Storm <storm@cua.dk>
13042
13043 * dispextern.h (Vimage_types): Remove extern.
13044
803aac3e
MB
130452004-06-16 Miles Bader <miles@gnu.org>
13046
13047 * image.c (lookup_image_type): Initialize image type if necessary.
13048
cdc97764
KS
130492004-06-15 Kim F. Storm <storm@cua.dk>
13050
c4a5739c
KS
13051 * xdisp.c (try_cursor_movement): Exclude header line from scroll
13052 margin at top of window.
13053 (try_window_reusing_current_matrix): Calculate proper cursor position
13054 after scrolling up with non-zero scroll margin, as the old cursor
13055 position corresponds to value of PT before executing this command.
13056 (try_window_id): Consider scroll margin at bottom of window too;
13057 otherwise we fail to scroll when hl-line-mode is enabled.
13058
cdc97764
KS
13059 * syntax.c (skip_chars): Only recognize [:class:] when it has the
13060 proper format and class is a lower-case word.
13061
5b166323
JD
130622004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13063
13064 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 13065 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
13066 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
13067 xg_get_gdk_pixmap_and_mask.
cdc97764 13068
5b166323
JD
13069 * xterm.h (struct x_display_info): Typo in comment fixed.
13070
1ebd4f78
JB
130712004-06-14 Juanma Barranquero <lektu@terra.es>
13072
13073 * dispextern.h (Vimage_types): Make it conditional on
13074 HAVE_WINDOW_SYSTEM.
13075
13076 * image.c (Vimage_types): Move from xdisp.c.
13077 (Vimage_type_cache): New variable.
13078 (define_image_type): New argument indicating whether an image
13079 library was loaded; cache loaded status and return t on success,
13080 nil otherwise.
13081 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
13082 (w32_delayed_load): New function to load an image library from a
13083 list of possible filenames.
13084 (init_xpm_functions, init_png_functions, init_jpeg_functions)
13085 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 13086 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
13087 (Finit_image_library): New function, extracted from `init_image'.
13088 Try to initialize an image library on demand and cache whether we
13089 were successful or not.
13090 (syms_of_image): Initialize `Vimage_types' and
13091 `Vimage_type_cache'. Add recognized image types to Vimage_types.
13092 Export `init-image-library'.
13093 (init_image): Remove initialization of all image types, except xbm
13094 and pbm.
13095
13096 * xdisp.c (Vimage_types): Delete (moved to image.c).
13097
904ee128
AS
130982004-06-14 Andreas Schwab <schwab@suse.de>
13099
13100 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
13101 Avoid calling specbind when completion-regexp-list is empty.
13102
092de21d
RS
131032004-06-13 Richard M. Stallman <rms@gnu.org>
13104
13105 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
13106 (re_wctype, re_iswctype, re_wctype_to_bit):
13107 Non-function definitions moved here from regex.c.
1ebd4f78 13108
092de21d
RS
13109 * regex.c (re_wctype, re_iswctype): Function defs longer static.
13110 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
13111 (re_wctype, re_iswctype, re_wctype_to_bit):
13112 Non-function definitions moved to regex.h.
13113
13114 * window.c (Fselect_window): Doc fix.
13115
13116 * syntax.c: Include regex.h.
13117 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
13118 If requested, make a list of classes, then check the scanned
13119 chars for membership in them.
13120 (in_classes): New function.
13121 Doc fix.
13122
13123 * keyboard.c (cmd_error): Don't call any_kboard_state
13124 if inside a recursive edit level.
13125
d495ccfc 131262004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
092de21d
RS
13127
13128 * keyboard.c (command_loop): Call any_kboard_state before
13129 command_loop_2 when at top level.
13130
3ebc0939
AS
131312004-06-13 Andreas Schwab <schwab@suse.de>
13132
cea5d0d4
AS
13133 * print.c (print_object): Always use %ld for printing EMACS_INT.
13134
13135 * keyboard.c (cancel_hourglass_unwind): Return a value.
13136 (modify_event_symbol): Always use %ld for printing EMACS_INT.
13137 (Fexecute_extended_command): Likewise.
13138
13139 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
13140 avoid clashes.
13141 (SYNTAX): Likewise.
13142 (SYNTAX_WITH_FLAGS): Likewise.
13143 (SYNTAX_MATCH): Likewise.
13144
13145 * syntax.c (char_quoted): Avoid warning about undefined operation.
13146 (find_defun_start): Likewise.
13147 (scan_lists): Likewise.
13148 (INC_FROM): Likewise.
13149 (scan_sexps_forward): Likewise.
13150
be8c4ce4
AS
13151 * image.c: Include <ctype.h>.
13152
3ebc0939
AS
13153 * xfaces.c (face_attr_equal_p): Declare parameters.
13154
6fb41b5b
KH
131552004-06-13 Kenichi Handa <handa@m17n.org>
13156
13157 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
13158
fc3095ce
EZ
131592004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
13160
13161 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
13162
66189a40
KH
131632004-06-12 Kenichi Handa <handa@m17n.org>
13164
13165 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
13166 ccl_prog_stack_struct and update it.
13167 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
13168 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
13169 ccl->eof_ic on EOF.
13170 (ccl_debug_hook): New function.
13171 (struct ccl_prog_stack): New member eof_ic.
13172 (ccl_driver): Handle EOF in subrountine call correctly.
13173
131742004-06-11 Kenichi Handa <handa@m17n.org>
13175
a9b43336 13176 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 13177
1da71023
KS
131782004-06-11 Kim F. Storm <storm@cua.dk>
13179
13180 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
13181
e9efcef4
JB
131822004-06-11 Juanma Barranquero <lektu@terra.es>
13183
13184 * keyboard.c (Fposn_at_point): Doc fix.
13185
9b9ceb61
DK
131862004-06-11 David Kastrup <dak@gnu.org>
13187
13188 * search.c (match_limit): Don't flag an error if match-data
13189 exceeding the allocated search_regs.num_regs gets requested, just
13190 return Qnil.
13191
6e87ac8f
MB
131922004-06-08 Miles Bader <miles@gnu.org>
13193
13194 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
13195
0b0dea7b
JB
131962004-06-07 Juanma Barranquero <lektu@terra.es>
13197
13198 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
13199 (Fcurrent_time_string, Fcurrent_time_zone)
13200 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
13201
a0a23346
MB
132022004-06-07 Miles Bader <miles@gnu.org>
13203
08384afd 13204 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
13205 (push_named_merge_point): New function.
13206 (merge_named_face): New function.
13207 (merge_face_ref, face_at_buffer_position, face_at_string_position):
13208 Use `merge_named_face'.
13209 (merge_face_inheritance): Function removed.
c8d09ad8 13210 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
13211 Add new `err_msgs' and `named_merge_points' args. Return error
13212 status. Only print error messages if ERR_MSGS is true. Don't try to
13213 do :inherit attribute validation.
13214 (merge_face_heights): Handle `unspecified' in both directions.
13215 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
13216 Call `merge_face_ref' instead of `merge_face_inheritance'.
13217 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
13218 (compute_char_face, face_at_buffer_position)
13219 (face_at_string_position): Call `merge_face_ref' instead of
13220 `merge_face_vector_with_property'.
13221
12d5b185
KH
132222004-06-07 Kenichi Handa <handa@m17n.org>
13223
13224 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
13225 the necessary places.
13226
2e2d7ee6
KS
132272004-06-07 Kim F. Storm <storm@cua.dk>
13228
13229 * process.c (Fdelete_process): Undo 2004-05-28 change.
13230 Instead, call status_notify also for network process.
13231 (status_message): Use process instead of status as arg.
13232 Give messages "deleted" or "connection broken by remote peer" for
13233 an exited network process.
13234 (status_notify): Change call to status_message.
13235 (read_process_output): Increase readmax to 4096. Do not increase
13236 buffer size for datagram channels (default is now large enough).
13237
fcf0d299
ST
132382004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
13239
13240 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
13241 problem due to newly defined variable.
13242
0722292b
MB
132432004-06-06 Miles Bader <miles@gnu.org>
13244
13245 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
13246 immediately if non-interactive or not initialized.
13247
ddfb8369
RS
132482004-06-05 Richard M. Stallman <rms@gnu.org>
13249
13250 * minibuf.c (Fcompleting_read): Doc fix.
13251
57015754
AS
132522004-06-05 Andreas Schwab <schwab@suse.de>
13253
13254 * macfns.c (x_create_tip_frame): Fix declaration after statement.
13255
23715ea6
JB
132562004-06-05 Juanma Barranquero <lektu@terra.es>
13257
13258 * keymap.c (Fdescribe_vector): Fix docstring.
13259 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
13260
8e330b22
MB
132612004-06-05 Miles Bader <miles@gnu.org>
13262
13263 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
13264 attributes have different values than the default face.
13265
9742a3a6
EZ
132662004-06-04 Eli Zaretskii <eliz@gnu.org>
13267
13268 * xfaces.c (x_supports_face_attributes_p): Make this function
13269 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
13270 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
13271 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 13272
9717e36c
MB
132732004-06-04 Miles Bader <miles@gnu.org>
13274
13275 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
13276 from Ftty_supports_face_attributes_p.
13277 (x_supports_face_attributes_p): New function.
13278 (Ftty_supports_face_attributes_p): Function deleted.
13279 (Fdisplay_supports_face_attributes_p): New function.
13280 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 13281 (face_attr_equal_p): New function.
9717e36c
MB
13282 (lface_equal_p): Use it.
13283
52deb19f
JB
132842004-06-03 Juanma Barranquero <lektu@terra.es>
13285
13286 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
13287 (Vw32_color_map): Fix typo in docstring.
13288 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
13289 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
13290 Make argument names match their use in docstring.
13291
86d373e6
JB
132922004-06-02 Juanma Barranquero <lektu@terra.es>
13293
13294 Work around bugs/problems with MinGW builds of graphics libraries
13295 called from MSVC builds of Emacs.
13296
13297 * image.c (lookup_image): Make pointer to img static.
13298 (png_read_from_memory): Disable "global" optimization.
13299
2fb0ce67
SM
133002004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
13301
c8d09ad8
SM
13302 * eval.c (Fcondition_case): Fix usage. Simplify.
13303
2fb0ce67
SM
13304 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
13305
50bf7673
ST
133062004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13307
13308 * macfns.c: Don't include ccl.h.
13309 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
13310 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
13311 TextUtils.h.
c8d09ad8 13312 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
13313 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
13314 display height/width.
13315 (compute_tip_xy, Vx_max_tooltip_size): Declare.
13316 (unwind_create_tip_frame, compute_tip_xy): New functions.
13317 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
13318 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
13319 and last_show_tip_args.
2fb0ce67 13320
50bf7673
ST
13321 * macgui.h [!MAC_OSX]: Include Gestalt.h.
13322 (Cursor, No_Cursor): New defines.
c8d09ad8 13323 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
13324 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
13325
13326 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
13327
13328 * macterm.c: Don't include Gestalt.h.
13329 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
13330 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
13331 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
13332 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
13333 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
13334 (construct_mouse_click, XTmouse_position)
13335 (x_scroll_bar_report_motion, x_calc_absolute_position)
13336 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
13337 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
13338 (note_mouse_movement): Clear the mouse face and reset the pointer
13339 shape when the pointer goes outside the frame without grabbing.
13340 (mac_front_window): New function.
13341 (mac_window_to_frame): New macro.
13342 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
13343 (do_window_activate, do_window_deactivate, do_app_resume)
13344 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
13345 (do_zoom_window, mac_do_receive_drag, XTread_socket)
13346 (mac_check_for_quit_char): Use mac_front_window and/or
13347 mac_window_to_frame.
13348 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
13349 scroll-bar click event.
13350 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
13351 (x_free_frame_resources): Reset tip_window to NULL when it is
13352 disposed of.
50bf7673 13353 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 13354 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
13355 (do_window_update): Don't do anything if the updated window is the
13356 tooltip window.
13357 (do_mouse_moved): Handle mouse movement events here (previously in
13358 XTread_socket). Clear the mouse face if
13359 dpyinfo->mouse_face_hidden is set.
13360 (do_os_event, do_events): Remove (now in XTread_socket).
13361 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
13362 Loop until all the events in the queue are processed.
13363 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
13364 contents of do_os_event and do_events. Remove mouse movement
13365 handling (now in do_mouse_moved). Add the case where
13366 Vmouse_highlight has an integer value.
13367 (NewMacWindow): Remove.
13368 (make_mac_frame): Do what NewMacWindow previously did. Don't do
13369 excess initializations.
13370 (make_mac_terminal_frame): Previous initializations in
13371 make_mac_frame are moved here.
c8d09ad8
SM
13372 (mac_initialize_display_info):
13373 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
13374
13375 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
13376 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
13377
08fd1251
RS
133782004-05-29 Richard M. Stallman <rms@gnu.org>
13379
13380 * lisp.h (truncate_undo_list): Update decl.
13381
13382 * alloc.c (undo_outer_limit): New variable.
13383 (syms_of_alloc): Defvar it.
13384 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
13385
13386 * undo.c (truncate_undo_list): New arg LIMITSIZE.
13387
13388 * alloc.c (lisp_align_malloc): Check for base == 0
13389 regardless of HAVE_POSIX_MEMALIGN.
13390 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
13391
227ef0ff
SM
133922004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13393
13394 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
13395 (marker_blocks_pending_free): Remove.
13396 (Fgarbage_collect): Sweep after cleaning up undo-lists.
13397 Mark the undo lists after claning them up.
13398 Don't free block in marker_blocks_pending_free.
13399 (mark_buffer): Don't mark undo_list.
13400 (gc_sweep): Sweep hash-tables and strings first.
13401 Do free marker blocks that are empty.
13402
034a6113
SM
134032004-05-28 Jim Blandy <jimb@redhat.com>
13404
13405 * regex.c (print_partial_compiled_pattern): Add missing 'break'
13406 after 'case wordend'. For symbeg and symend, print to stderr,
13407 like the other cases.
13408
33594a8d
NF
134092004-05-28 Noah Friedman <friedman@splode.com>
13410
13411 * process.c (Fdelete_process): Do not call remove_process.
13412
ce50a847
SM
134132004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13414
13415 * alloc.c (struct backtrace): Remove.
13416 (Fgarbage_collect): Use the new mark_backtrace.
13417
13418 * eval.c (mark_backtrace): New function.
13419
13420 * minibuf.c (run_exit_minibuf_hook): New function.
13421 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
13422 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
13423
1e8dae36
KS
134242004-05-27 Kim F. Storm <storm@cua.dk>
13425
13426 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
13427 over display properties, e.g. images, that replace buffer text.
13428
846faa3b
KS
134292004-05-25 Kim F. Storm <storm@cua.dk>
13430
13431 * alloc.c (marker_blocks_pending_free): New var.
13432 (gc_sweep): Store free marker blocks on that list.
13433 (Fgarbage_collect): Free them after undo-list cleanup.
13434
13435 * process.c (wait_reading_process_input): Check connect_wait_mask
13436 before actually accepting connection in case it has already been
13437 accepted due to recursion.
13438
d495ccfc 134392004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
6239a668 13440
ce50a847
SM
13441 * coding.c (Fset_safe_terminal_coding_system_internal):
13442 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 13443
71d5a208
RS
134442004-05-22 Richard M. Stallman <rms@gnu.org>
13445
13446 * alloc.c (Fmake_string): Doc fix.
13447
13448 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
13449 and the alist pairs too.
13450
13451 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
13452
51391fb9
RF
13453 * emacs.c (main): Update copyright year.
13454
71d5a208
RS
13455 * fileio.c (Fread_file_name): Expand DIR if not absolute.
13456
13457 * insdel.c (del_range_2, replace_range): Don't write an anchor
13458 if the gap is empty.
13459
13460 * xdisp.c (try_scrolling): If scroll-up-aggressively or
13461 scroll-down-aggressively is small but positive, put point
13462 near the screen edge.
13463
f63fd14e
JB
134642004-05-22 Juanma Barranquero <lektu@terra.es>
13465
13466 * keymap.c (Fdefine_key): Doc fix.
13467
4d12067c
KS
134682004-05-22 Kim F. Storm <storm@cua.dk>
13469
13470 * alloc.c (struct backtrace): Add debug_on_exit member.
13471 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
13472 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
13473 the removed cons cells.
13474 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
13475 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
13476 any cons cells pointing to unallocated stings.
13477 Do not lisp_free any marker blocks, as there may still be pointers
13478 to them from buffer undo lists at this stage of GC.
13479
13480 * keyboard.c (struct backtrace): Add debug_on_exit member.
13481 (Fcommand_execute): Clear it.
13482
931285e2
LT
134832004-05-20 Luc Teirlinck <teirllm@auburn.edu>
13484
13485 * intervals.c (lookup_char_property): Do not prematurely return nil.
13486
669fa600
SM
134872004-05-19 Jim Blandy <jimb@redhat.com>
13488
13489 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 13490 beginning and end of symbols.
4d12067c 13491
669fa600
SM
13492 * regex.c (enum syntaxcode): Add Ssymbol.
13493 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
13494 (re_opcode_t): New opcodes `symbeg' and `symend'.
13495 (print_partial_compiled_pattern): Print the new opcodes properly.
13496 (regex_compile): Parse the new operators.
ce50a847 13497 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
13498 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
13499 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
13500 (re_match_2_internal): Match symbeg and symend.
13501
13502 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
13503
0d8c2e5c
KS
135042004-05-19 Kim F. Storm <storm@cua.dk>
13505
13506 * .gdbinit (xsymbol): Fix last change.
13507
669fa600
SM
135082004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
13509
13510 * .gdbinit (xprintstr): New fun.
13511 (xstring, xprintsym): Use it.
13512
13513 * w32proc.c (create_child): Use INTMASK.
13514
13515 * alloc.c (Fgarbage_collect): Do all the marking before flushing
13516 unmarked elements of the undo list.
13517
9a6a4c40
DP
135182004-05-18 David Ponce <david@dponce.com>
13519
13520 * print.c (print): Reset print_depth before to call print_object.
13521
f3c4ec74
JR
135222004-05-18 Jason Rumney <jasonr@gnu.org>
13523
13524 * w32console.c: Prefix RIF functions with w32con_ to avoid
13525 namespace clash with functions in term.c and w32term.c.
13526
13527 * w32menu.c (add_menu_item, w32_menu_display_help)
13528 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
13529
0d8c2e5c 13530 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 13531
6be49c3a
EZ
135322004-05-18 Eli Zaretskii <eliz@gnu.org>
13533
4d0b9a0a
EZ
13534 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
13535
6be49c3a
EZ
13536 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
13537 with make_number.
13538 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
13539 with XINT.
13540
0bc90bba
KS
135412004-05-18 Kim F. Storm <storm@cua.dk>
13542
89d19988
KS
13543 * blockinput.h (INPUT_BLOCKED_P): New macros.
13544
13545 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
13546 (Ftop_level): Unblock input if blocked.
13547
0bc90bba
KS
13548 * buffer.h (GET_OVERLAYS_AT): New macro.
13549 * msdos.c (IT_note_mouse_highlight): Use it.
13550 * textprop.c (get_char_property_and_overlay): Use it.
13551 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
13552 * xfaces.c (face_at_buffer_position): Use it.
13553
13554 * print.c (print_object): Increase buf size.
13555
653bd0f6
JR
135562004-05-17 Jason Rumney <jasonr@gnu.org>
13557
13558 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
13559 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
13560 Lisp_Object using i member.
13561 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
13562 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
13563 consistently.
13564
13565 * w32proc.c (create_child): Use make_number instead of masking pid.
13566
13567 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
13568 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
13569 Use EQ to compare Lisp_Objects.
13570 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
13571
13572 * w32term.c (w32_num_mouse_buttons): Rename from
13573 Vw32_num_mouse_buttons and make it an int.
13574
13575 * w32.c (init_environment): Use it.
13576
13577 * w32fns.c (w32_wnd_proc): Likewise.
13578
13579 * w32proc.c (w32_pipe_read_delay): Rename from
13580 Vw32_pipe_read_delay and make it an int.
13581
13582 * w32.c (_sys_read_ahead): Use it.
13583
13584 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
13585
13586 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
13587
13588 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
13589 (key_event): Don't mix Lisp_Object and int.
13590
13591 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
13592
13593 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
13594 modifiers in language change event.
13595
54b53ba7
KS
135962004-05-17 Kim F. Storm <storm@cua.dk>
13597
13598 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
13599 Such objects may be freed markers which still exist on an undo list.
13600
6e86a75d
JB
136012004-05-16 Juanma Barranquero <lektu@terra.es>
13602
13603 * data.c (Fset_default): Make argument names match their use in
13604 docstring.
13605
fc80da24
AS
136062004-05-15 Andreas Schwab <schwab@suse.de>
13607
13608 * emacs.c (gdb_array_mark_flag): Define.
13609 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
13610
c1380aa6
EZ
136112004-05-15 Eli Zaretskii <eliz@gnu.org>
13612
13613 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
13614 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
13615 defined for the MS-DOS build.
13616
89458937
SM
136172004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
13618
13619 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
13620
08020f9a
KH
136212004-05-14 Kenichi Handa <handa@m17n.org>
13622
13623 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
13624
a433994a
ST
136252004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13626
13627 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
13628 section to frame.c section.
13629 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 13630 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 13631
a433994a 13632 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 13633
a433994a 13634 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 13635
a433994a
ST
13636 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
13637 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
13638 (XTread_socket): Fix int/Lisp_Object mixup.
13639 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 13640
a433994a
ST
13641 * macterm.h (struct frame, struct face, struct image)
13642 (display_x_get_resource, Fx_display_color_p)
89458937
SM
13643 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
13644 Add prototypes.
a433994a 13645
b51a51b9
KS
136462004-05-14 Kim F. Storm <storm@cua.dk>
13647
13648 * process.c (wait_reading_process_input): Make reentrant.
13649 Make Available and Connecting non-static. Save and restore value
13650 of waiting_for_user_input_p.
13651
2bde1dd8
KS
136522004-05-13 Kim F. Storm <storm@cua.dk>
13653
13654 * keyboard.c (mark_kboards): Don't mark x and y members
13655 that are overloaded in selection request events.
13656
a267ab4d
SM
136572004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13658
13659 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
13660
eb15ce9e
GM
136612004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
13662
13663 * window.c (Fdisplay_buffer, Fsplit_window)
13664 (split-height-threshold): Doc fix.
13665
7fc92635
JB
136662004-05-13 Juanma Barranquero <lektu@terra.es>
13667
13668 * xfaces.c (Ftty_supports_face_attributes_p)
13669 (Finternal_copy_lisp_face): Fix typo in docstring.
13670 (Finternal_get_lisp_face_attribute): Fix docstring.
13671
1ec2a572
JD
136722004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13673
13674 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
13675
ae9292e0
ST
136762004-05-11 Steven Tamm <steventamm@mac.com>
13677
13678 * macfns.c (Fx_create_frame): Default to using tool-bar by
13679 setting tool-bar-lines to 1 in default-frame-alist.
13680
136812004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
13682
13683 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
13684 (xpm_get_color_table_v, xpm_make_color_table_h)
13685 (xpm_put_color_table_h, xpm_get_color_table_h)
13686 (xpm_str_to_color_key, xpm_load_image, xpm_load)
13687 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 13688 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 13689
fe97e8df
ST
136902004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13691
a267ab4d 13692 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
13693 instead of FRAME_X_P
13694
b47e779e
KS
136952004-05-11 Kim F. Storm <storm@cua.dk>
13696
13697 * process.c (read_process_output): Grow decoding_buf when needed;
13698 this could cause a crash in allocate_string and compact_small_strings.
13699
cdc9b845
EZ
137002004-04-29 Jim Blandy <jimb@redhat.com>
13701
13702 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
13703 against proper opcode.
13704
aa7094ba
JB
137052004-05-10 Juanma Barranquero <lektu@terra.es>
13706
13707 * process.c (Fstart_process): Fix docstring.
13708
13709 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
13710 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
13711 (Fsplit_char, Fchar_charset): Make argument names match their use
13712 in docstring.
13713
e109331a
RS
137142004-05-10 Richard M. Stallman <rms@gnu.org>
13715
13716 * print.c (print_preprocess): Use being_printed, loop_count and
13717 halftail to detect overdeep nesting and cyclic cdr chains.
13718
9a28b921
AS
137192004-05-10 Andreas Schwab <schwab@suse.de>
13720
78819ebb 13721 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
13722
13723 * fileio.c (Frename_file): Remove extra argument in call to
13724 Fmake_symbolic_link.
13725
e2c02c1a
KS
137262004-05-10 Kim F. Storm <storm@cua.dk>
13727
13728 * xdisp.c (calc_line_height_property): Use string position when
13729 object is a string.
13730
cfe9d13e
KH
137312004-05-10 Kenichi Handa <handa@m17n.org>
13732
a57e8159
KH
13733 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
13734 inhibit-modification-hooks to t temporarily before calling
13735 Ferase_buffer.
13736
13737 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
13738 inhibit-modification-hooks to t temporarily before calling
13739 Ferase_buffer.
13740
13741 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
13742 inhibit-modification-hooks to t temporarily before calling
13743 Ferase_buffer.
13744
cfe9d13e
KH
13745 * fns.c (count_combining): Delete it.
13746 (concat): Don't check combining bytes.
13747
ceb96489
JR
137482004-05-09 Jason Rumney <jasonr@gnu.org>
13749
13750 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
13751 (globals_of_w32fns): Set it.
13752
b6189c3b 137532004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
13754
13755 * data.c (Fquo): Simplify.
13756
28712a21
JB
137572004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
13758
13759 * data.c (Fquo): If any argument is float, do the computation in
13760 floating point.
13761
0f0af7a8
JB
137622004-05-08 Juanma Barranquero <lektu@terra.es>
13763
88214ef6
JB
13764 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
13765 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
13766 Fix spelling of Emacs on docstring.
13767 (Fset_process_coding_system, Fprocess_coding_system)
13768 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
13769 Make argument names match their use in docstring.
13770 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
13771 Fix docstring.
13772
0f0af7a8
JB
13773 * editfns.c (Finsert_buffer_substring): Make argument names match their
13774 use in docstring.
13775
13776 * syntax.c (Fmodify_syntax_entry): Fix docstring.
13777
2a316a84
ST
137782004-05-07 Steven Tamm <steventamm@mac.com>
13779
13780 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
13781 around call to ReceiveEvent to avoid certain crashes.
13782
137832004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 13784
2a316a84
ST
13785 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
13786 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
13787 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
13788 Save/restore the current graphics port and device handle when
13789 drawing into an offscreen graphics world.
13790
13791 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
13792 (gif_load): Likewise.
13793
ab80314b
JB
137942004-05-07 Juanma Barranquero <lektu@terra.es>
13795
13796 * window.c (Fset_window_buffer): Fix docstring.
13797
70646bb5
TTN
137982004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
13799
13800 * emacs.c (main) [VMS]: Fix var ref.
13801
b6189c3b 138022004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
13803
13804 * data.c (Fsetq_default): Fix docstring.
13805
279d3293
JR
138062004-05-06 Jason Rumney <jasonr@gnu.org>
13807
13808 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
13809 to avoid name clash.
13810
f72b5416
JD
138112004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13812
13813 * fileio.c (barf_or_query_if_file_exists): Use lstat.
13814 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 13815 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 13816
6ab66799
KS
138172004-05-04 Kim F. Storm <storm@cua.dk>
13818
13819 * xdisp.c (Qtotal): New var.
13820 (syms_of_xdisp): Intern and staticpro it.
13821 (calc_line_height_property): New arg total. Set it if
13822 line-spacing property has format (total . VALUE).
13823 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
13824 Handle total line-spacing property.
13825
ab2d724b
JD
138262004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13827
13828 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
13829 "under" scroll bar when size/position changes.
13830
238add5e
JR
138312004-05-03 Jason Rumney <jasonr@gnu.org>
13832
13833 * makefile.nt: Remove.
13834
1644f4e4
EZ
138352004-05-02 Eli Zaretskii <eliz@gnu.org>
13836
a267ab4d
SM
13837 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
13838 Avoid compiler warnings.
05fdbeb8 13839
1644f4e4
EZ
13840 * Makefile.in (region-cache.o): Depend on config.h.
13841
b6189c3b 138422004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
13843
13844 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
13845 with continuation lines, too.
13846
2b98b088
TTN
138472004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
13848
13849 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
13850
d9bf7950
SM
138512004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
13852
13853 * xdisp.c (calc_line_height_property): YAILOM (yet another
13854 int/Lisp_Object mixup).
13855
affa509c
EZ
138562004-05-01 Eli Zaretskii <eliz@gnu.org>
13857
13858 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
13859 undo bad effect of pack(4) in some versions of system headers.
13860
07c07cfe
JR
138612004-05-01 Jason Rumney <jasonr@gnu.org>
13862
13863 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
13864
e71caa4e
KS
138652004-04-30 Kim F. Storm <storm@cua.dk>
13866
13867 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 13868 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
13869
13870 * dispextern.h (struct it): Remove member use_default_face.
13871 Add members override_ascent, override_descent, override_boff.
13872
13873 * xdisp.c (init_iterator): Handle line-spacing float value.
13874 Initialize override_ascent member.
13875 (append_space_for_newline): Reset override_ascent.
13876 Remove use_default_face.
13877 (calc_line_height_property): New function to calculate value of
13878 line-height and line-spacing properties. Look at overlays, too.
13879 Set override_ascent, override_descent, override_boff members when
13880 using another face than the current face. Float values are now
13881 relative to the frame default font, by default; accept a cons
13882 of ratio and face name to specify value relative to a specific face.
13883 (x_produce_glyphs): Use calc_line_height_property.
13884 Use override_ascent etc. when set to handle different face heights.
13885 A negative line-spacing property value is interpreted as a total
13886 line height, rather than inter-line spacing.
13887 (note_mouse_highlight): Allocate room for 40 overlays initially.
13888
0fddae66
SM
138892004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
13890
13891 * data.c (Fsubr_name): New fun.
13892 (syms_of_data): Defsubr it.
13893
712d23dc
KS
138942004-04-29 Kim F. Storm <storm@cua.dk>
13895
13896 * xdisp.c (null_glyph_slice): New var.
13897 (append_glyph, append_composite_glyph, append_stretch_glyph):
13898 Use it to initialize glyph slice.
13899
033ad8c6
SM
139002004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
13901
13902 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
13903 (on_hot_spot_p): Make sure we always return a value.
13904 (Flookup_image_map): Remove unused var ix and iy.
13905 (note_mode_line_or_margin_highlight): Remove unused var `image'.
13906
93397360
EZ
139072004-04-27 Eli Zaretskii <eliz@gnu.org>
13908
13909 * msdos.c (init_environment): If one of the TMP... environment
13910 variables is set to a drive letter without a trailing slash,
13911 append a slash.
13912
0c54865e
EZ
139132004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
13914
13915 * editfns.c (lisp_time_argument): Provide externally.
13916
13917 * fileio.c (Fset_file_times): New function.
13918 (syms_of_fileio): Intern and staticpro it.
13919
d3b111bd
KS
139202004-04-27 Kim F. Storm <storm@cua.dk>
13921
07dc1231
KS
13922 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
13923 header line strings.
13924
360fe9d2
KS
13925 * dispextern.h (struct it): New member use_default_face.
13926
d3b111bd
KS
13927 * xdisp.c (Qline_height): New variable.
13928 (syms_of_xdisp): Intern and staticpro it.
13929 (append_space_for_newline): Partially undo 2004-04-25 change;
13930 add default_face_p arg, and restore callers.
13931 Clear it->use_default_face after use.
13932 (x_produce_glyphs): Set default font for ascii char if
13933 it->use_default_font is set. Change line-spacing property to set
13934 just extra line spacing. Handle new line-height property.
13935
0448588b
AS
139362004-04-26 Andreas Schwab <schwab@suse.de>
13937
13938 * print.c (print_object): Print non-ascii characters in bool
13939 vector representation as octal escapes.
13940
13941 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
13942 * print.c (print_object): Use it instead of BITS_PER_CHAR for
13943 bool vectors.
13944 * lread.c (read1): Likewise.
13945 * alloc.c (Fmake_bool_vector): Likewise.
13946 * data.c (Faref, Faset): Likewise.
13947 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
13948 (mapcar1): Likewise.
d3b111bd 13949
536d6baa
ST
139502004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
13951
7e26f91b 13952 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 13953
ae11577a
MB
139542004-04-26 Miles Bader <miles@gnu.org>
13955
13956 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
13957
e198ba87
JB
139582004-04-26 Juanma Barranquero <lektu@terra.es>
13959
13960 * buffer.c (Fpop_to_buffer): Fix docstring.
13961
f3d5f92d 139622004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 13963
f3d5f92d
ST
13964 * lread.c (init_lread): Don't display missing lisp directory
13965 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 13966 may be built without correct installation path.
f3d5f92d 13967
03e35edc
KS
139682004-04-25 Kim F. Storm <storm@cua.dk>
13969
9ff3aa31
KS
13970 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
13971
13972 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
13973
03e35edc
KS
13974 * xdisp.c (append_space_for_newline): Rename from append_space.
13975 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
13976 (x_produce_glyphs): Handle line-spacing property on newline char.
13977 If value is t, adjust ascent and descent to fit current row height.
13978 If value is an integer or float, set extra_line_spacing to integer
13979 value, or to float value x current line height.
13980
f24814e0
KH
139812004-04-23 Kenichi Handa <handa@m17n.org>
13982
13983 * fontset.c (Finternal_char_font): If POSITION is nil, return
13984 font for displaying CH with the default face.
13985
d814862a
JB
139862004-04-23 Juanma Barranquero <lektu@terra.es>
13987
13988 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
13989
063a45c5
SM
139902004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13991
13992 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
13993 Don't make assumptions about the relative place of i and val.
13994 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
13995
ae7ab2d3
KS
139962004-04-21 Kim F. Storm <storm@cua.dk>
13997
13998 * dispextern.h (struct glyph_slice): New struct.
13999 (struct glyph): New member slice.
14000 (GLYPH_SLICE_EQUAL_P): New macro.
14001 (GLYPH_EQUAL_P): Use it.
14002 (struct glyph_string): New member slice.
14003 (struct it_slice): New struct.
14004 (struct it): New member slice, add member to stack too.
14005 New member constrain_row_ascent_descent_p.
14006 (image_ascent): Add prototype.
14007
14008 * dispnew.c (buffer_posn_from_coords): Return full image width
14009 and height even for image slices (posn is relative to full image).
14010 (marginal_area_string): Adjust x0,y0 for image slice.
14011
14012 * image.c (image_ascent): Add slice arg; calculate ascent for
14013 image slice (or full image).
14014
14015 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
14016 (syms_of_keyboard): Defsubr them.
14017
14018 * lisp.h (pos_visible_p): Fix prototype.
14019
c62aec78 14020 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
14021 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14022 (x_draw_image_foreground, x_draw_image_relief)
14023 (x_draw_image_foreground_1, x_draw_image_glyph_string):
14024 Draw sliced images.
14025
14026 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
14027 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14028 (x_draw_image_foreground, x_draw_image_relief)
14029 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
14030 Draw sliced images.
14031
14032 * w32term.h (image_ascent): Remove prototype.
14033
14034 * window.c (Fpos_visible_in_window_p): Return pixel position if
14035 PARTIALLY arg is non-nil. Simplify. Doc fix.
14036 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
14037 to return/set vscroll in pixels.
14038
14039 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
14040
14041 * xdisp.c (Qslice): New variable.
14042 (syms_of_xdisp): Intern and staticpro it.
14043 (pos_visible_p): Return pixel position in new x and y args.
14044 (init_iterator): Reset it->slice info.
14045 (handle_display_prop): Parse (slice ...) property.
14046 (push_it, pop_it): Save/restore slice info.
14047 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
14048 force repositioning of tall row if window is vscrolled, as that
14049 would reset vscroll.
14050 (append_space): Set it->constrain_row_ascent_descent_p to avoid
14051 increasing row height if row is non-empty.
14052 (fill_image_glyph_string): Copy slice info.
14053 (take_vertical_position_into_account): Simplify.
14054 (produce_image_glyph): Handle iterator slice info, setup glyph
14055 slice info. Do not force minimum line height.
14056 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
14057 do not increase height (ascent/descent) of non-empty row when
14058 adding normal character glyph; instead reduce glyph ascent/descent
14059 appropriately; if row is higher than current glyph, adjust glyph
14060 descent/ascent to reposition glyph within the existing row.
14061 Likewise, when char is newline, only set ascent/descent if row is
14062 currently empty.
14063 (note_mouse_highlight): Handle hotspots with sliced image.
14064
14065 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
14066 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14067 (x_draw_image_foreground, x_draw_image_relief)
14068 (x_draw_image_foreground_1, x_draw_image_glyph_string):
14069 Draw sliced images.
14070
14071 * xterm.h (image_ascent): Remove prototype.
14072
d58f8753
SM
140732004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
14074
14075 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
14076
4ce2719d
JPW
140772004-04-20 John Paul Wallington <jpw@gnu.org>
14078
14079 * fns.c (Fassoc, Feql): Fix indentation.
14080
d58f8753 14081 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 14082
95f8c3b9
JPW
140832004-04-19 John Paul Wallington <jpw@gnu.org>
14084
14085 * fns.c (Feql): New function.
d58f8753 14086 (syms_of_fns): Defsubr it.
95f8c3b9 14087
b7e85537
JR
140882004-04-18 Jason Rumney <jasonr@gnu.org>
14089
14090 * w32select.c (Fw32_set_clipboard_data): Get sequence number
14091 after closing the clipboard.
14092
5a72efd4
LT
140932004-04-16 Luc Teirlinck <teirllm@auburn.edu>
14094
14095 * buffer.c (Fbuffer_base_buffer): Doc fix.
14096
20dc8583
KS
140972004-04-17 Kim F. Storm <storm@cua.dk>
14098
60962ec4
KS
14099 * keymap.c (Fkey_description): Add optional PREFIX arg.
14100 Combine prefix with KEYS to make up the full key sequence to describe.
14101 Correlate meta_prefix_char and following (simple) key to describe
14102 as meta modifier. All callers changed.
14103 (describe_map): Rename arg `keys' to `prefix'. Remove local
14104 `elt_prefix' var. Use Fkey_description with prefix instead of
14105 elt_prefix combined with Fsingle_key_description.
14106 (describe_vector): Declare static. Replace arg `elt_prefix' with
14107 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 14108 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
14109 Fsingle_key_description.
14110
14111 * keymap.h (Fkey_description): Fix prototype.
14112 (describe_vector): Remove prototype.
14113
409368b9
KS
14114 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
14115
20dc8583
KS
14116 * image.c (PNG_BG_COLOR_SHIFT): Remove.
14117 (png_load): Fix calculation of transparent background color on X
14118 and W32 platforms.
14119
75c5501b
JB
141202004-04-16 Juanma Barranquero <lektu@terra.es>
14121
14122 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
14123 not too large before computing how much to scroll.
14124
da879ae8
SM
141252004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
14126
14127 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
14128
d01ca4a8
LT
141292004-04-14 Luc Teirlinck <teirllm@auburn.edu>
14130
14131 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
14132 Add hyperlink to Elisp manual to the docstring.
14133
572943b3
SM
141342004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
14135
14136 * callint.c (fix_command): Use XDCR.
14137
5e30a0fb
NR
141382004-04-14 Nick Roberts <nick@nick.uklinux.net>
14139
14140 * window.c (Fget_lru_window): Doc fix.
14141
a27ddfaf
KS
141422004-04-14 Kim F. Storm <storm@cua.dk>
14143
14144 * editfns.c (Fformat): Fix allocation size of precision array.
14145
14146 * dispnew.c (update_window): Only set changed_p if
14147 scrolling_window actually did scroll.
14148 (scrolling_window): Only return 1 if we actually did scroll.
14149
14150 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
14151 height to glyph height when cursor row is not fully visible.
14152 (make_cursor_line_fully_visible): Add FORCE_P arg to return
14153 failure in case row is higher than window. Callers changed.
14154 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
14155 Try to scroll partially visible, higher-than-window cursor row.
14156 (redisplay_window): Always try to scroll partially visible,
14157 higher-than-window cursor row - both initially and again with
14158 centering_position = 0.
14159 Clear desired matrix before retrying with centering_position = 0.
14160
da879ae8
SM
141612004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14162
14163 * syntax.c (scan_lists): Simplify backward string scan.
14164 Fix off-by-one boundary check for string and comment fences.
14165
5fc16e8e
SM
141662004-04-13 Joe Buehler <jbuehler@hekimian.com>
14167
14168 * sheap.c, unexcw.c: New files.
14169
c9aac8e6
LT
141702004-04-12 Luc Teirlinck <teirllm@auburn.edu>
14171
14172 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
14173 base buffer has been killed. Correct the error message if the
14174 base buffer does not exist.
14175
1e88a355
SM
141762004-04-12 Joe Buehler <jbuehler@hekimian.com>
14177
14178 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
14179 Cygwin itself. Add support for Xaw3d scrollbars.
14180
14181 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
14182
14183 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
14184
14185 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
14186 before Cygwin unexec.
14187
14188 * Makefile.in: Link changes for Cygwin unexec() support.
14189
8dbff9a0
AS
141902004-04-12 Andreas Schwab <schwab@suse.de>
14191
14192 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
14193
54dffe35
LT
141942004-04-11 Luc Teirlinck <teirllm@auburn.edu>
14195
14196 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
14197 IGNORE argument equals NAME. Doc fix.
14198
99a72bdf
MY
141992004-04-11 Masatake YAMATO <jet@gyve.org>
14200
1e88a355 14201 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
14202 empty if they are backwards.
14203
40899d7b
SM
142042004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14205
14206 * xfaces.c (face_color_supported_p): Fix compilation without X11.
14207
f8f853de
SM
142082004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
14209
14210 * doc.c (Fsnarf_documentation): Ignore new file name entries.
14211
c953fe1b
KS
142122004-04-06 Kim F. Storm <storm@cua.dk>
14213
5e1a6e32 14214 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
661e85c1
KS
14215 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
14216
14217 * w32term.c (w32_read_socket): Set mouse_face_hidden after
14218 clearing highlight.
14219
14220 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
14221
14222 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
14223 clearing highlight.
14224
c953fe1b
KS
14225 * indent.c (vmotion): Do not reserve one column for continuation
14226 marks on window frames.
14227
c1994268
EZ
142282004-04-04 Eli Zaretskii <eliz@gnu.org>
14229
14230 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
14231 from GCC.
14232
9f691b0d
SM
142332004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14234
14235 * .gdbinit-union: Remove.
14236
14237 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
14238 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
14239 ($nonvalbits): Remove.
14240 ($valmask): Set it by calling xreload to avoid redundancy.
14241
14242 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
14243 (gdb_emacs_intbits): Remove.
14244
7a8560d7
JD
142452004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14246
9f691b0d 14247 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 14248
3c8111fc
KH
142492004-03-30 Kenichi Handa <handa@m17n.org>
14250
14251 * editfns.c (Fformat): Fix initialization of the array info.
14252
48a0bce4
KS
142532004-03-30 Kim F. Storm <storm@cua.dk>
14254
14255 * xterm.c (x_mouse_click_focus_ignore_position): New var.
14256 (syms_of_xterm): DEFVAR_BOOL it.
14257 (ignore_next_mouse_click_timeout): New var.
14258 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
14259 Use it to filter mouse clicks following focus event.
14260
1cd0066c
KS
142612004-03-29 David Ponce <david@dponce.com>
14262
14263 * callint.c (Fcall_interactively): Fix last change.
14264
adb3b353
SM
142652004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14266
14267 * eval.c (Fcommandp): Simplify.
14268
14269 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
14270 Extend to handle all kinds of functions.
14271
14272 * lisp.h (Finteractive_form): Declare.
14273
14274 * callint.c (Fcall_interactively): Use it.
14275
6fc4c9c9
KS
142762004-03-26 Kim F. Storm <storm@cua.dk>
14277
14278 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
14279 to catch errors in calc_pixel_width_or_height during redisplay.
14280
abdb9b83
MY
142812004-03-26 Masatake YAMATO <jet@gyve.org>
14282
b17856dd 14283 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 14284
b17856dd 14285 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 14286
b17856dd 14287 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 14288
b17856dd 14289 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 14290
e8a84b6c
JD
142912004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14292
b17856dd 14293 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 14294
36a3fd05
RS
142952004-03-19 Richard M. Stallman <rms@gnu.org>
14296
14297 * s/sol2-6.h: Delete previous change.
14298
ab24c127
KS
142992004-03-19 Kim F. Storm <storm@cua.dk>
14300
14301 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
14302 to_charpos corresponds to newline in right fringe. Use local
14303 BUFFER_POS_REACHED_P macro.
14304
992126de
JD
143052004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14306
14307 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
14308 to compile on non-window system.
14309
45dbfc84
KS
143102004-03-19 Kim F. Storm <storm@cua.dk>
14311
14312 * dispextern.h (calc_pixel_width_or_height): Add prototype.
14313
14314 * image.c (Qcenter): Move to xdisp.c.
14315
14316 * xdisp.c (Qcenter): Declare here.
adb3b353 14317 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
14318 (handle_single_display_prop): Allow space display property on all
14319 platforms.
14320 (display_mode_line): Set mode_line_p before displaying line.
14321 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
14322 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 14323 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
14324 width/height. Return width or height for image specs.
14325 (produce_stretch_glyph): Improve handling of :align-to. Is now
14326 relative to left of text area by default, but other base offsets
14327 can be specified -- also for text lines.
14328
14329 * term.c (produce_glyphs): Handle IT_STRETCH.
14330 (produce_stretch_glyph): New function to handle space width and
14331 align-to display properties on non-window systems.
14332
37264101
SM
143332004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14334
14335 * fileio.c (Fread_file_name): Set completion-ignore-case for
14336 case-insensitive systems.
14337
73bc43da
MY
143382004-03-14 Masatake YAMATO <jet@gyve.org>
14339
14340 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
14341 when keymap and cursor are setup.
14342
d5fb8dab 143432004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 14344
b17856dd 14345 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 14346
e4b1b5ab
KS
143472004-03-14 Kim F. Storm <storm@cua.dk>
14348
14349 * dispextern.h (x_find_image_file): Add prototype.
14350
14351 * image.c (x_find_image_file): Make extern.
14352
14353 * xfns.c (x_find_image_file): Remove prototype.
14354
a6eeaa81 143552004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 14356
37264101 14357 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 14358
37264101 14359 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 14360
e69cfac2
RS
143612004-03-12 Richard M. Stallman <rms@gnu.org>
14362
14363 * fns.c (internal_equal): New arg PROPS controls comparing
14364 text properties. All callers changed.
14365 (Fequal_including_properties): New function.
14366 (syms_of_fns): defsubr it.
14367
45034953
KS
143682004-03-12 Kim F. Storm <storm@cua.dk>
14369
14370 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 14371
45034953
KS
14372 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
14373 (image_background, image_background_transparent): Fix prototypes.
14374
37264101 14375 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
14376
14377 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
14378 (x_query_font, x_find_ccl_program, x_set_window_size)
14379 (x_make_frame_visible, mac_initialize, XCreatePixmap)
14380 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14381 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
14382
14383 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
14384 (x_query_font, x_find_ccl_program, x_set_window_size)
14385 (x_make_frame_visible, mac_initialize, XCreatePixmap)
14386 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14387 (mac_draw_line_to_pixmap): Add prototypes.
14388
143892004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14390
14391 * macterm.c (XTread_socket): Fix mouse click on tool bar.
14392
a12d3d87
KS
143932004-03-11 Kim F. Storm <storm@cua.dk>
14394
d3ab1cf1
KS
14395 * dispextern.h: Move image related prototypes from xfns.c section
14396 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
14397 HAVE_X_WINDOWS.
37264101 14398
37de9f51 14399 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 14400 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
14401 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
14402 (GTK_OBJ) [USE_GTK]: New declaration.
14403 (obj): Add $(GTK_OBJ) to list.
14404
d5fb8dab 144052004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 14406
7e26f91b 14407 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
14408
14409 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 14410 defined in image.c.
5243c06a 14411
c0f97789
KS
144122004-03-11 Kim F. Storm <storm@cua.dk>
14413
14414 The following changes consolidates the identical/similar image
14415 support code previously found in xfns.c, w32fns.c, and macfns.c
14416 into a new file image.c.
14417
14418 * makefile.w32-in (OBJ1): Add image.o.
14419 ($(BLD)/image.$(O)): Add dependencies.
14420
14421 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
14422 (image.o): Add dependencies.
37264101 14423
c0f97789
KS
14424 * image.c: New file with consolidated image support code.
14425 (COLOR_TABLE_SUPPORT): New define to control whether
14426 color table support is available (X only).
14427 (Bitmap_Record): Common name for x_bitmap_record,
14428 w32_bitmap_record, and mac_bitmap_record.
14429 (XImagePtr): Common name for pointer to XImage or equivalent.
14430 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
14431 to XImagePtr on X+MAC, and to HDC on W32.
14432 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
14433 (NO_PIXMAP): Common name for "None" or equivalent.
14434 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
14435 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
14436 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
14437 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
14438 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
14439 (XDrawLine): Define on MAC for code sharing.
14440 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
14441 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
14442 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14443 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14444 (x_reference_bitmap, x_create_bitmap_from_data)
14445 (x_create_bitmap_from_file, x_destroy_bitmap)
14446 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14447 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14448 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14449 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14450 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14451 (define_image_type, lookup_image_type, valid_image_p)
14452 (image_error, enum image_value_type, struct image_keyword)
14453 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14454 (make_image, free_image, prepare_image_for_display, image_ascent)
14455 (four_corners_best, image_background, image_background_transparent)
9dd28cae 14456 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
14457 (make_image_cache, free_image_cache, clear_image_cache)
14458 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14459 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14460 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14461 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
14462 (init_image_func_pointer, image_load_quartz2d)
14463 (struct ct_color, init_color_table, free_color_table)
14464 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14465 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14466 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14467 (x_disable_image, x_build_heuristic_mask)
14468 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14469 (TIFF support, GIF support, Ghostscript support): Consolidate image
14470 code from xfns.c, w32fns.c, and macfns.c.
14471 (syms_of_image): Consolidate image related symbol setup here.
14472 (init_image): Consolidate image related initializations here.
37264101 14473
c0f97789
KS
14474 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
14475 and init_image. Remove call to init_xfns.
14476
37264101
SM
14477 * macterm.h (struct mac_bitmap_record): Add file member.
14478 Not currently used, but simplifies code sharing.
c0f97789
KS
14479
14480 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14481 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14482 (x_reference_bitmap, x_create_bitmap_from_data)
14483 (x_create_bitmap_from_file, x_destroy_bitmap)
14484 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14485 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14486 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14487 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14488 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14489 (define_image_type, lookup_image_type, valid_image_p)
14490 (image_error, enum image_value_type, struct image_keyword)
14491 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14492 (make_image, free_image, prepare_image_for_display, image_ascent)
14493 (four_corners_best, image_background, image_background_transparent)
9dd28cae 14494 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
14495 (make_image_cache, free_image_cache, clear_image_cache)
14496 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14497 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14498 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14499 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
14500 (init_image_func_pointer, image_load_quartz2d)
14501 (struct ct_color, init_color_table, free_color_table)
14502 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14503 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14504 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14505 (x_disable_image, x_build_heuristic_mask)
14506 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14507 (TIFF support, GIF support, Ghostscript support): Merge with image
14508 code from xfns.c and macfns.c into image.c.
14509 (syms_of_xfns): Move image related symbols to image.c.
14510 (init_external_image_libraries, init_xfns): Remove; initialization
14511 moved to init_image in image.c.
14512
14513 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14514 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14515 (x_reference_bitmap, x_create_bitmap_from_data)
14516 (x_create_bitmap_from_file, x_destroy_bitmap)
14517 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14518 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14519 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14520 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14521 (define_image_type, lookup_image_type, valid_image_p)
14522 (image_error, enum image_value_type, struct image_keyword)
14523 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14524 (make_image, free_image, prepare_image_for_display, image_ascent)
14525 (four_corners_best, image_background, image_background_transparent)
9dd28cae 14526 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
14527 (make_image_cache, free_image_cache, clear_image_cache)
14528 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14529 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14530 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14531 (struct ct_color, init_color_table, free_color_table)
14532 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14533 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14534 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14535 (x_disable_image, x_build_heuristic_mask)
14536 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14537 (TIFF support, GIF support, Ghostscript support): Merge with image
14538 code from xfns.c and macfns.c into image.c.
14539 (syms_of_xfns): Move image related symbols to image.c.
14540 (init_external_image_libraries, init_xfns): Remove; initialization
14541 moved to init_image in image.c.
14542
14543 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14544 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14545 (x_reference_bitmap, x_create_bitmap_from_data)
14546 (x_create_bitmap_from_file, x_destroy_bitmap)
14547 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14548 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14549 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14550 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14551 (define_image_type, lookup_image_type, valid_image_p)
14552 (image_error, enum image_value_type, struct image_keyword)
14553 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14554 (make_image, free_image, prepare_image_for_display, image_ascent)
14555 (four_corners_best, image_background, image_background_transparent)
9dd28cae 14556 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
14557 (make_image_cache, free_image_cache, clear_image_cache)
14558 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14559 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14560 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14561 (struct ct_color, init_color_table, free_color_table)
14562 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14563 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14564 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14565 (x_disable_image, x_build_heuristic_mask)
14566 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14567 (TIFF support, GIF support, Ghostscript support): Merge with
14568 w32fns.c and macfns.c image code into image.c.
14569 (syms_of_xfns): Move image related symbols to image.c.
14570 (init_xfns): Remove; initialization moved to init_image in image.c.
14571
14572 * lisp.h (syms_of_image, init_image): Add protoypes.
14573 (init_xfns): Remove prototype.
14574
14575 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14576 (x_reference_bitmap, x_create_bitmap_from_data)
14577 (x_create_bitmap_from_file, x_destroy_bitmap)
14578 (x_create_bitmap_mask): Move prototypes from dispextern.h.
14579 (gamma_correct) [MAC_OS]: Add prototype.
14580
14581 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14582 (x_reference_bitmap, x_create_bitmap_from_data)
14583 (x_create_bitmap_from_file, x_destroy_bitmap)
14584 (x_create_bitmap_mask): Move prototypes to dispextern.h.
14585
6eced09c
KH
145862004-03-09 Kenichi Handa <handa@etlken2>
14587
14588 * coding.c (decode_coding_emacs_mule): Handle insufficent source
14589 correctly.
14590
9a7e95f3
RS
145912004-03-04 Richard M. Stallman <rms@gnu.org>
14592
04a6e76b
RS
14593 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
14594
9a7e95f3
RS
14595 * window.c (Fdisplay_buffer): Doc fix.
14596
14597 * buffer.c (Fpop_to_buffer): Doc fix.
14598
6c2488df
KS
145992004-03-03 Kim F. Storm <storm@cua.dk>
14600
14601 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
14602
d8d95bc7
SM
146032004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
14604
14605 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
14606
357589bf
RS
146072004-03-02 Richard M. Stallman <rms@gnu.org>
14608
14609 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
14610
409949b5
KH
146112004-03-02 Kenichi Handa <handa@m17n.org>
14612
14613 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
14614
d24bc50f
KS
146152004-03-02 Kim F. Storm <storm@cua.dk>
14616
14617 * window.h (struct window): New member overlay_arrow_bitmap.
14618
14619 * window.c (make_window): Initialize overlay_arrow_bitmap.
14620
14621 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
14622 implement and integrate multiple overlay arrows with redisplay.
14623 (syms_of_xdisp): DEFVAR_LISP and initialize it.
14624 (last_arrow_position, last_arrow_string): Replace by properties.
14625 (Qlast_arrow_position, Qlast_arrow_string)
14626 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
14627 (syms_of_xdisp): Intern and staticpro them.
14628 (overlay_arrow_string_or_property, update_overlay_arrows)
14629 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
14630 (overlay_arrow_at_row): New functions for multiple overlay arrows.
14631 (redisplay_internal): Use them instead of directly accessing
14632 Voverlay_arrow_position etc. for multiple overlay arrows.
14633 (mark_window_display_accurate): Use update_overlay_arrows.
14634 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
14635 (try_window_id): Use overlay_arrows_changed_p.
14636 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
14637 (display_line): Use overlay_arrow_at_row to check multiple
14638 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 14639 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
14640 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
14641 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
14642
14643 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
14644 (update_window_fringes): Remove unused code.
14645
c1464661
JR
146462004-03-01 Jason Rumney <jasonr@gnu.org>
14647
14648 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
14649
a64387ee
JB
146502004-03-01 Juanma Barranquero <lektu@terra.es>
14651
14652 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
14653
14654 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
14655
334faa08
JD
146562004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14657
14658 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
14659 how many colors can be displayed.
14660
bb62616f
KH
146612004-03-01 Kenichi Handa <handa@m17n.org>
14662
14663 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
14664 correctly.
14665
0fd16104
KS
146662004-02-28 Kim F. Storm <storm@cua.dk>
14667
14668 * dispnew.c (update_window): Update header line also if there are
14669 no other changes in window (move code after set_cursor label).
14670
14671 * lisp.h (mark_window_display_accurate): Remove prototype.
14672
14673 * window.c (window_loop, Fforce_window_update): Force mode line
14674 updates by setting prevent_redisplay_optimizations_p and
14675 update_mode_lines.
14676
b59dd9c8
JD
146772004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14678
d8d95bc7 14679 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
14680
14681 * xterm.c (x_calc_absolute_position): Call x_real_positions
14682 to get WM window sizes and use those to calculate position.
d8d95bc7 14683 (x_set_offset): Remove code commented out.
b59dd9c8 14684
a874691c
MB
146852004-02-28 Miles Bader <miles@gnu.org>
14686
14687 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
14688
3e0c6482
KS
146892004-02-28 Kim F. Storm <storm@cua.dk>
14690
14691 * keyboard.c (kbd_buffer_store_event_hold): New function to store
14692 an event into kbd fifo, but with special handling of quit event;
14693 a quit event is saved for later, and further events are discarded
14694 until the saved quit event has been processed.
14695 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
14696 (gen_help_event): Store help event in kbd fifo.
14697 (NREAD_INPUT_EVENTS): Remove.
14698 (read_avail_input): Adapt to new read_socket_hook interface.
14699 Remove allocation and initialization of local input_event buffer,
14700 as read_socket_hook stores events directly in fifo. Allocate and
14701 initialize local hold_quit event to handle postponed quit event
14702 (and store it if set by kbd_buffer_store_event_hold).
14703
14704 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
14705 (gen_help_event): Fix prototype.
14706
a64387ee 14707 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 14708 numcharsp args. Add hold_quit arg.
f63fd14e 14709 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
14710 directly in fifo using kbd_buffer_store_event_hold.
14711
14712 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
14713 (read_input_waiting): Adapt to new read_socket_hook interface.
14714 Remove allocation and initialization of local input_event buffer,
14715 as read_socket_hook stores events directly in fifo. Allocate and
14716 initialize local hold_quit event to handle postponed quit event
14717 (and store it if set by kbd_buffer_store_event_hold).
14718
a64387ee 14719 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
14720
14721 * termhooks.h (read_socket_hook): Fix prototype.
14722
14723 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
14724 numcharsp args. Add hold_quit arg.
f63fd14e 14725 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
14726 directly in fifo using kbd_buffer_store_event_hold.
14727
14728 * w32inevt.h (w32_console_mouse_position): Fix prototype.
14729
14730 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
14731 Add hold_quit arg. Rework to use just one, local, inev
14732 input_event. Store inev directly in fifo using
3e0c6482
KS
14733 kbd_buffer_store_event_hold. Update count in one place.
14734 Postpone call to gen_help_event until inev is stored; use new
14735 local do_help for this.
14736 Remove local emacs_event in handing of ButtonPress event; just use
14737 inev instead (so no reason to copy it later).
14738
14739 * xsmfns.c (x_session_check_input): Remove numchars arg.
14740
d8d95bc7
SM
14741 * xterm.c (x_focus_changed, x_detect_focus_change):
14742 Remove numchars arg. Always store event into bufp arg.
14743 Return nothing. Callers changed accordingly.
3e0c6482
KS
14744 (glyph_rect): Simplify.
14745 (STORE_KEYSYM_FOR_DEBUG): New macro.
14746 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
14747 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
14748 (current_hold_quit) [USE_GTK]: Add.
14749 (event_handler_gdk): Adapt to new handle_one_xevent.
14750 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
14751 Add hold_quit arg. Rework to use just one, local, inev
14752 input_event. Store inev directly in fifo using
3e0c6482
KS
14753 kbd_buffer_store_event_hold. Update count in one place.
14754 Postpone call to gen_help_event until inev is stored; use new
14755 local do_help for this.
14756 Simplify handling of keysyms (consolidate common code). Fix bug
14757 where count was updated with nchars instead of nbytes.
14758 Remove local emacs_event in handing of ButtonPress event; just use
14759 inev instead (so no reason to copy it later).
14760 Remove `out' label. Rename label `ret' to `done'; add various
14761 `goto done' to clarify code flow in deeply nested blocks.
14762 (x_dispatch_event): Simplify as handle_one_xevent now calls
14763 kbd_buffer_store_event itself.
f63fd14e 14764 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
14765 arg. Call handle_one_xevent with new arglist. Store event from
14766 x_session_check_input in fifo.
14767 [USE_GTK]: Setup current_hold_quit.
14768 Decrement handling_signal before unblocking input.
14769 (x_initialize) [USE_GTK]: Initialize current_count.
14770
14771 * xterm.h (x_session_check_input): Fix prototype.
14772
e3564461 147732004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 14774
d8d95bc7 14775 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 14776
e3564461
ST
14777 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
14778 macgui.h).
a64387ee 14779
e3564461 14780 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 14781
e3564461
ST
14782 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
14783 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
14784 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
14785 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
14786 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
14787 (Bitmap): Remove typedef.
14788 (Pixmap): Change int to GWorldPtr.
14789
d8d95bc7 14790 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 14791
d8d95bc7
SM
14792 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
14793 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
14794 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
14795 long representation.
14796 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
14797 colors used for masks.
14798 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 14799
e3564461
ST
14800 * macfns.c: Include sys/types.h and sys/stat.h.
14801 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
14802 Include QuickTime/QuickTime.h.
14803 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14804 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
14805 functions defined in macterm.c.
14806 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
14807 (ZPixmap): New #define for compatibility with xfns.c.
14808 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14809 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
14810 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
14811 New functions.
e3564461 14812 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
14813 (x_destroy_x_image, unwind_create_frame, x_disable_image)
14814 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
14815 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
14816 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
14817 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
14818 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
14819 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
14820 long mixup.
14821 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
14822 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
14823 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
14824 (x_set_cursor_type, Fxw_color_values, valid_image_p)
14825 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
14826 (x_alloc_image_color, clear_image_cache, lookup_image)
14827 (x_find_image_file, xbm_read_bitmap_file_data)
14828 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
14829 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
14830 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
14831 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
14832 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 14833 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
14834 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
14835 #if 0.
14836 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
14837 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
14838 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
14839 New functions (from xfns.c).
e3564461
ST
14840 (Fx_create_frame): Record unwind_create_frame.
14841 (Fxw_display_color_p): Use dpyinfo->color_p.
14842 (Fx_display_grayscale_p, Fx_display_planes): Don't use
14843 dpyinfo->n_cbits.
14844 (Fx_display_color_cells): Use dpyinfo->n_planes;
14845 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
14846 (Qheuristic, cross_disabled_images, emboss_matrix)
14847 (laplace_matrix): New variables (from xfns.c).
14848 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
14849 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
14850 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
14851 (image_background_transparent): New function (from xfns.c).
14852 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
14853 (image_load_quicktime): Add declaration.
14854 [MAC_OSX] (image_load_quartz2d): Likewise.
14855 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
14856 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 14857 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
14858 (xbm_load_image_from_file, x_laplace_read_row)
14859 (x_laplace_write_row, pbm_read_file): Remove functions.
14860 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
14861 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
14862 (colors_in_color_table): Sync with xfns.c (although not used).
14863 (lookup_rgb_color): Don't lookup color table. Just do gamma
14864 correction.
14865 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
14866 (x_disable_image): New function (from xfns.c).
14867 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
14868 (x_build_heuristic_mask): Sync with xfns.c.
14869 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
14870 (HAVE_PBM): Remove #ifdef.
14871 (pbm_load): Sync with xfns.c. Set img->width and img->height
14872 before IMAGE_BACKGROUND.
d8d95bc7 14873 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
14874 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
14875 Don't enclose with #if HAVE_PNG.
14876 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
14877 symbol _CGImageCreateWithPNGDataProvider is defined.
14878 Otherwise use image_load_quicktime.
e3564461 14879 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
14880 [HAVE_PNG] (png_load): Sync with xfns.c.
14881 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
14882 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
14883 HAVE_JPEG.
14884 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
14885 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
14886 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
14887 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
14888 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
14889 (tiff_image_p, tiff_load): Don't enclose declarations with #if
14890 HAVE_TIFF.
14891 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
14892 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
14893 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
14894 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
14895 New functions (from xfns.c).
e3564461 14896 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 14897 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
14898 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
14899 Don't enclose with #if HAVE_GIF.
14900 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
14901 animated gif. Otherwise use image_load_quicktime.
14902 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
14903 gif_DrawText to avoid conflict with QuickdrawText.h.
14904 [HAVE_GIF] (gif_load): Sync with xfns.c.
14905 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
14906 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
14907 Ghostscript is not supported yet).
14908 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
14909 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
14910 cross_disabled_images (from xfns.c). Remove #if 0 for supported
14911 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
14912 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
14913 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
14914 HAVE_PNG. Call EnterMovies to support animated gifs.
14915 Call init_image_func_pointer to bind a symbol
e3564461 14916 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 14917
d8d95bc7 14918 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
14919 (x_draw_bar_cursor): Sync declaration with xterm.c.
14920 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
14921 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
14922 graphics).
14923 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
14924 (mac_draw_line_to_pixmap, XCreatePixmap)
14925 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
14926 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
14927 New functions.
14928 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
14929 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
14930 Cast bits to char *.
e3564461
ST
14931 (reflect_byte): New function (from w32fns.c).
14932 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
14933 due to byte alignment.
d8d95bc7
SM
14934 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
14935 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
14936 (XSetForeground): Remove static (now used in macfns.c).
14937 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
14938 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
14939 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
14940 (x_draw_glyph_string_box, x_draw_image_foreground)
14941 (x_draw_image_foreground_1, x_draw_image_glyph_string)
14942 (x_draw_stretch_glyph_string, x_draw_glyph_string)
14943 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
14944 Sync with xterm.c.
14945 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
14946 than the xterm.c version when a strictly horizontal or vertical
14947 line is drawn.
14948 (XTset_terminal_window): Add static.
14949 (x_make_frame_visible): Add UNBLOCK_INPUT.
14950 (x_free_frame_resources): New funcion (from xterm.c).
14951 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
14952 occurs in tool bar area.
d8d95bc7
SM
14953 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
14954 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
14955 Initialize image cache.
14956 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
14957 Enclose unused functions with #if 0.
14958 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
14959 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 14960 from a mac font name to an XLFD font name according to its script code.
e3564461 14961 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 14962 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
14963 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
14964 whose name starts with `.'.
14965 (init_font_name_table): Use decode_mac_font_name. Add both
14966 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
14967 of a font is smJapanese.
14968 (mac_do_list_fonts): New function to list fonts that match a given
14969 pattern.
14970 (x_list_fonts, XLoadQueryFont): Use it.
14971 (XLoadQueryFont): Set rbearing field for each variable width
14972 character to avoid needless redraw.
14973 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
14974
446f5f3d
KS
149752004-02-26 Kim F. Storm <storm@cua.dk>
14976
af617d0f
KS
14977 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
14978 as read_socket_hook handler on X aborts if buffer is too small
14979 and W32 handler doesn't always check buffer limit.
14980
446f5f3d
KS
14981 * xdisp.c (handle_single_display_prop): Handle left-fringe and
14982 right-fringe similar to a display margin image. Specifically,
14983 the characters having the fringe prop are no longer shown, and
14984 we use IT_IMAGE/next_element_from_image with image_id = -1 to
14985 do this. Set fringe bitmap face_id in it->face_id.
14986 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
14987 still realize it->face (i.e. the fringe bitmap face).
14988
7d8a0b55
MB
149892004-02-25 Miles Bader <miles@gnu.org>
14990
14991 * xdisp.c (check_it): Check string/string_pos consistency.
14992 (init_iterator): Initialize string-related fields properly.
14993
149942004-02-11 Miles Bader <miles@gnu.org>
14995
14996 * xdisp.c (produce_image_glyph): Force negative descents to zero.
14997
149982004-02-10 Miles Bader <miles@gnu.org>
14999
15000 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
15001 BLOCK_INPUT can be nested, so it doesn't make much sense.
15002
a64387ee 150032004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
15004
15005 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
15006 (xbm_read_bitmap_data): Use unsigned char for image data.
15007
92f5fba2
LT
150082004-02-23 Luc Teirlinck <teirllm@auburn.edu>
15009
15010 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
15011
8565fb3d
JR
150122004-02-22 Jason Rumney <jasonr@gnu.org>
15013
15014 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
15015 correctly over other bitmaps.
15016
a6eeaa81 150172004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
15018
15019 * emacs.c (USAGE1): Split into two halves.
15020 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
15021 (USAGE3): Rename from USAGE2.
15022 (USAGE4): Rename from USAGE3.
f8125c39 15023
4effffca
EZ
150242004-02-21 Juri Linkov <juri@jurta.org>
15025
15026 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
15027 Fix --multibyte. Move --help, --version to USAGE2. Add alias
15028 --file. Fix -f, -l. Sort options. Untabify.
15029 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
15030
923c1e6f
LT
150312004-02-19 Luc Teirlinck <teirllm@auburn.edu>
15032
15033 * category.c (Fdefine_category, Fcategory_docstring)
15034 (Fget_unused_category, Fset_category_table)
15035 (Fcategory_set_mnemonics): Doc fixes.
15036
b0e225fd
KS
150372004-02-20 Kim F. Storm <storm@cua.dk>
15038
15039 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
15040 The following changes are relative to the 2004-01-21 revision.
15041 (NREAD_INPUT_EVENTS): Define as max number of input events to read
15042 in one call to read_socket_hook. Value is 8.
15043 (read_avail_input): Separate and rework handling of read_socket_hook
15044 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
15045 in read_socket_hook case, and repeat if full buffer is read.
15046 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
15047 In non-read_socket_hook case, just use a single input_event, and
15048 call kbd_buffer_store_event on the fly for each character.
15049
b15aa9f9
SM
150502004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15051
15052 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
15053 Remove unused `gu' alternative.
15054
83c9aa95
AS
150552004-02-19 Andreas Schwab <schwab@suse.de>
15056
15057 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
15058 warning.
15059
cc808173
KS
150602004-02-18 Kim F. Storm <storm@cua.dk>
15061
15062 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
15063 Fix last change.
15064
ab90a54d
KS
150652004-02-17 Kim F. Storm <storm@cua.dk>
15066
b26f249f
KS
15067 * xdisp.c (fast_find_position): Fix return value of new version;
15068 it was inverted compared to the 21.1 version.
15069 (get_window_cursor_type): Don't look at glyph if NULL.
15070 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 15071
ab90a54d
KS
15072 * keyboard.c: Rework previous change; it didn't consider that the
15073 buf array was allocated on the stack.
15074 (prev_read): Remove variable.
15075 (read_avail_input_buf): New static event buffer array.
b9568dfc 15076 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 15077 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
15078 Use in_read_avail_input to handle re-entrance; when re-entered,
15079 fully initialize and use tmp_buf array instead of read_avail_input_buf.
15080 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
15081 is always cleared on entry. To ensure that, we clear (just) the
15082 entries that were used before we return.
15083 (init_keyboard): Initialize read_avail_input_buf here.
15084
b6189c3b 150852004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
15086
15087 * cmds.c (Fend_of_line): Doc fix.
15088
7b5368c1
EZ
150892004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
15090
15091 * keyboard.c (prev_read): New static variable.
15092 (read_avail_input): Use it to zero out only those slots in buf[]
15093 that were used last time we were called.
15094
a6eeaa81 150952004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
15096
15097 * Makefile.in (obj): Move fringe.o from here...
15098 (XOBJ, MAC_OBJ): ...to here.
15099
159c348e
SE
151002004-02-16 Stephen Eglen <stephen@gnu.org>
15101
15102 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
15103
d2f14999
SM
151042004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
15105
b15aa9f9
SM
15106 * data.c (Fbyteorder):
15107 * fringe.c (Fdefine_fringe_bitmap):
15108 * xdisp.c (handle_single_display_prop):
d2f14999
SM
15109 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
15110
8d50508a
JR
151112004-02-16 Jason Rumney <jasonr@gnu.org>
15112
15113 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
15114
dd4497dc
ST
151152004-02-15 Steven Tamm <steventamm@mac.com>
15116
15117 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
15118 controlling emulation of a three button mouse with option and
15119 command keys.
7e26f91b 15120 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 15121 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 15122
c9159cb3
KS
151232004-02-15 Kim F. Storm <storm@cua.dk>
15124
2cc52658
KS
15125 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
15126
c9159cb3
KS
15127 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
15128 Perform byte-swapping.
15129
12fde2dc
KS
151302004-02-14 Kim F. Storm <storm@cua.dk>
15131
15132 * dispextern.h (struct draw_fringe_bitmap_params): Change member
15133 bits from char to short to facilitate wider bitmaps.
15134 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
15135 member.
15136
15137 * fringe.c (struct fringe_bitmap): Change member bits from char to
15138 short to facilitate 16 bits wide bitmaps. Modify all standard
15139 bitmaps accordingly.
15140 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
15141 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
15142 (draw_fringe_bitmap): Ditto.
15143 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
15144 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
15145 handle up to 16 bits wide bitmaps.
15146 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 15147 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
15148
15149 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
15150 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
15151 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
15152
15153 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
15154 so it is no longer necessary to expand them here.
15155
15156 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
15157
9d7271e8
KS
151582004-02-12 Kim F. Storm <storm@cua.dk>
15159
15160 * window.c (Fwindow_fringes): Doc fix.
15161
706c1e4f
JD
151622004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15163
15164 * xselect.c (x_get_foreign_selection): Add new optional parameter
15165 time_stamp.
15166 (Fx_get_selection_internal): Ditto, pass time_stamp to
15167 x_get_foreign_selection.
15168
15169 * data.c (Fbyteorder): New function.
15170
c2d12b5d
JD
151712004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15172
15173 * atimer.c: Move include stdio.h to same place as in other files.
15174
15175 * region-cache.c: Ditto.
15176
15177 * sysdep.c: Ditto.
15178
15179 * xfaces.c: Ditto.
15180
4c1947b9
SS
151812004-02-09 Sam Steingold <sds@gnu.org>
15182
89458937 15183 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 15184
82722af3
KS
151852004-02-09 Kim F. Storm <storm@cua.dk>
15186
15187 * fringe.c: New file. Move original fringe related declarations
15188 and code from dispextern.h and xdisp.c here.
15189 Rework code to support user defined fringe bitmaps, redefining
15190 standard bitmaps, ability to overlay user defined bitmap with
15191 overlay arrow bitmap, and add faces to bitmaps.
15192 (Voverflow_newline_into_fringe): Declare here.
15193 (enum fringe_bitmap_align): New enum.
15194 (..._bits): All bitmaps are now defined without bitswapping; that
15195 is now done in init_fringe_once (if necessary).
15196 (standard_bitmaps): New array with specifications for the
15197 standard fringe bitmaps.
15198 (fringe_faces): New array.
15199 (valid_fringe_bitmap_id_p): New function.
15200 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
15201 (draw_fringe_bitmap): New function which draws fringe bitmap,
15202 possibly overlaying bitmap with cursor in right fringe or the
15203 overlay arrow in the left fringe.
15204 (update_window_fringes): Do not handle overlay arrow here.
15205 Compare and copy fringe bitmap faces.
15206 (init_fringe_bitmap): New function.
15207 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
15208 define and destroy user defined fringe bitmaps.
15209 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
15210 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
15211 (syms_of_fringe): New function. Defsubr new DEFUNs.
15212 DEFVAR_LISP Voverflow_newline_into_fringe.
15213 (init_fringe_once, init_fringe): New functions.
15214 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 15215
82722af3
KS
15216 * Makefile.in (obj): Add fringe.o.
15217 (fringe.o): New dependencies.
15218
15219 * dispextern.h (FRINGE_ID_BITS): New definition for number of
15220 bits allocated to hold a fringe number. Increase number of bits
15221 from 4 to 8 to allow user defined fringe bitmaps.
15222 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
15223 left_user_fringe_face_id, right_user_fringe_bitmap,
15224 right_user_fringe_face_id.
15225 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
15226 Move to new file fringe.c.
15227 (MAX_FRINGE_BITMAPS): Define here.
15228 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
15229 and overlay_p. Change member which to int.
15230 (struct redisplay_interface): New members define_fringe_bitmap
15231 and destroy_fringe_bitmap.
15232 (valid_fringe_bitmap_id_p): Add prototype.
15233 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
15234
15235 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
15236 arrows.
15237 (update_frame): Do flush_display if force_flush_display_p to
15238 ensure display (specifically fringes) are updated in a timely
15239 manner when resizing the frame by dragging the mouse.
15240 (update_window_line): Update row if overlay arrow changed.
15241 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
15242 or overlay arrow changed.
15243
15244 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
15245 syms_of_fringe, and init_fringe.
15246
15247 * frame.h (struct frame): New member force_flush_display_p.
15248
15249 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
15250 Add prototypes.
15251
a3993cc8 15252 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 15253 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
15254 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
15255 Use cursor color for displaying cursor in fringe.
82722af3
KS
15256 (x_redisplay_interface): Add null handlers for
15257 define_fringe_bitmap and destroy_fringe_bitmap functions.
15258
15259 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
15260 xterm.c to handle overlayed fringe bitmaps and to use cursor color
15261 for displaying cursor in fringe.
15262 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
15263 specific functions to define and destroy fringe bitmaps in fringe_bmp.
15264 (w32_redisplay_interface): Add them to redisplay_interface.
15265 (w32_term_init): Call w32_init_fringe instead of explicitly
15266 defining fringe bitmaps in fringe_bmp array.
15267 (x_delete_display): Call w32_reset_fringes instead of explicitly
15268 destroying fringe bitmaps in fringe_bmp array.
15269
15270 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
15271 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
15272 (continued_bits, continuation_bits, ov_bits, first_line_bits)
15273 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
15274 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
15275 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
15276 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
15277 Move fringe handling vars and code to new file fringe.c.
15278 (handle_display_prop): Handle left-fringe and right-fringe
15279 display properties; store user fringe bitmaps in iterator.
15280 (move_it_in_display_line_to): Handle cursor in fringe at eob.
15281 (clear_garbaged_frames): Set force_flush_display_p if resized.
15282 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
15283 (display_line): Handle cursor in fringe at eob.
15284 (display_line): Set row user fringe bitmaps from iterator.
15285
15286 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
15287 Use cursor color for displaying cursor in fringe.
15288 (x_redisplay_interface): Add null handlers for
15289 define_fringe_bitmap and destroy_fringe_bitmap functions.
15290
030400eb
JD
152912004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15292
15293 * macfns.c (Fx_change_window_property): Make doc string and
15294 parameters same as for X version.
15295
15296 * w32fns.c (Fx_change_window_property): Ditto.
15297
3af55251
KS
152982004-02-07 Kim F. Storm <storm@cua.dk>
15299
ec110e9e
KS
15300 * xdisp.c (hscroll_window_tree): Position cursor near to right
15301 margin in hscrolled window when jumping to end of line (rather
15302 than centering cursor).
15303
3af55251
KS
15304 * process.c (wait_reading_process_input): Don't do adaptive read
15305 buffering if waiting for a specific process.
15306
b0c138ce
LT
153072004-02-05 Luc Teirlinck <teirllm@auburn.edu>
15308
15309 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
15310 (Fread_minibuffer, Feval_minibuffer)
15311 (Fread_string, Fread_no_blanks_input)
15312 (Fcompleting_read): Doc fixes.
15313 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
15314 completion-regexp-list. Define Qcase_fold_search and staticpro it.
15315 (read_minibuf): Fix initial comment.
15316 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 15317 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
15318 checking completion-regexp-list.
15319 (Fdisplay_completion_list): Make it handle arguments that are
15320 symbols. Doc fix.
15321
9676f5ad 153222004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 15323
9676f5ad 15324 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 15325
9676f5ad
JD
15326 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
15327 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 15328 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 15329 format. Remove unused variable cons.
5b698285 15330
9dd28cae 15331 * xselect.c: Include stdio.h.
5b698285 15332
fc1d15f6
KH
153332004-02-05 Kenichi Handa <handa@m17n.org>
15334
ebaff4af
KH
15335 * fns.c (Fset_char_table_range): Fix previous change.
15336
fc1d15f6
KH
15337 * buffer.c (Fset_buffer_multibyte): Fix docstring.
15338
9676f5ad
JD
153392004-02-04 Luc Teirlinck <teirllm@auburn.edu>
15340
15341 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
15342
da75761f
SM
153432004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
15344
15345 * keymap.c (Vmouse_events): Rename from Vmenu_events.
15346 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
15347
13c5d120
KH
153482004-02-04 Kenichi Handa <handa@m17n.org>
15349
15350 * fns.c (Fset_char_table_range): Handle charsets ascii,
15351 eight-bit-control, and eight-bit-graphic correctly.
15352
2883d842
JR
153532004-02-03 Jason Rumney <jasonr@gnu.org>
15354
15355 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
15356
15357 * w32fns.c (x_to_w32_font): Likewise.
15358
69eff41f
JD
153592004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15360
15361 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
15362 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
15363
15364 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
15365 ClientMessages.
15366
14a56a1b 15367 * xselect.c: Include termhooks.h and X11/Xproto.h.
69eff41f
JD
15368 (x_check_property_data, x_fill_property_data)
15369 (x_property_data_to_lisp, mouse_position_for_drop)
15370 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 15371 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
15372 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
15373
14a56a1b 15374 * xfns.c (x-send-client-message): Move to xselect.c.
69eff41f
JD
15375 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
15376 OUTER_P.
15377 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
15378 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
15379 if vector_ret_p is true.
15380 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 15381
a6eeaa81 153822004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
15383
15384 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
15385 basename of FILE relative to it, not FILE itself.
15386
09721b31
KH
153872004-02-02 Kenichi Handa <handa@m17n.org>
15388
15389 * coding.c (coding_restore_composition): Check invalid
15390 composition data more rigidly.
15391
eb996101
LT
153922004-01-30 Luc Teirlinck <teirllm@auburn.edu>
15393
15394 * fileio.c (Fread_file_name_internal): Correctly handle the case
15395 where insert-default-directory is nil.
15396 (Fread_file_name): Always return an empty string if the user exits
15397 with an empty minibuffer. Adapt the docstring accordingly.
15398 (syms_of_fileio): Adapt the docstring of insert-default-directory
15399 to the change in Fread_file_name.
15400
a6eeaa81 154012004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
15402
15403 * alloca.c [!alloca]: Fix the prototype for xfree.
15404
13f52ed8
KH
154052004-01-29 Kenichi Handa <handa@m17n.org>
15406
15407 * fns.c (string_char_to_byte): Optimize for ASCII only string.
15408 (string_byte_to_char): Likewise.
15409
d57625a0
JR
154102004-01-28 Peter Runestig <peter@runestig.com>
15411
15412 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
15413
a64387ee 154142004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
15415
15416 * unexmacosx.c (unexec_copy): Do not copy more than was
15417 requested to prevent overwriting during unexec.
15418
eb37b8fd
JD
154192004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15420
ce38070a
JD
15421 * process.c (sigchld_handler): Add comment about not calling malloc.
15422
eb37b8fd
JD
15423 * process.h: Add extern to synch_process_termsig.
15424
a64387ee 154252004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 15426
da75761f
SM
15427 * macterm.c (make_mac_frame, make_mac_terminal_frame):
15428 Move setting of scroll bars from make_mac_frame to
15429 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 15430
d62a265d
RS
154312004-01-26 Richard M. Stallman <rms@gnu.org>
15432
15433 * search.c (Freplace_match): Handle nonexistent
15434 back-references properly.
15435
154362004-01-03 Richard M. Stallman <rms@gnu.org>
15437
15438 * window.c (decode_any_window): New function.
15439 (Fwindow_height, Fwindow_width, Fwindow_edges)
15440 (Fwindow_pixel_edges, Fwindow_inside_edges)
15441 (Fwindow_inside_pixel_edges): Use decode_any_window.
15442
ff236419
JD
154432004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15444
15445 * process.h: synch_process_termsig new variable.
15446
15447 * callproc.c: Define synch_process_termsig.
15448 (Fcall_process): Initiate synch_process_termsig to zero and
15449 check if non-zero and get signal name after subprocess has ended.
15450
15451 * process.c (sigchld_handler): Set synch_process_termsig
15452 if terminated by a signal. synch_process_death setting removed.
15453
15454 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
15455
41b867ea
AS
154562004-01-26 Andreas Schwab <schwab@suse.de>
15457
15458 * print.c (print_preprocess): Declare size as EMACS_INT to not
15459 lose bits.
15460 (print_object): Likewise.
15461 * alloc.c (Fpurecopy): Likewise.
15462
a08084ff
LT
154632004-01-25 Luc Teirlinck <teirllm@auburn.edu>
15464
15465 * window.c (Fwindow_minibuffer_p): Doc fix.
15466
b19ac475
JY
154672004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
15468
15469 * editfns.c (Fformat): Make both passes accept the same set of flags.
15470
fe905025
KH
154712004-01-23 Kenichi Handa <handa@m17n.org>
15472
15473 * fns.c (Fmd5): If OBJECT is a buffer different from the current
15474 one, set buffer to OBJECT temporarily.
15475
438fc6c0
SM
154762004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
15477
455316e2
SM
15478 * keyboard.c (kbd_buffer_gcpro): Remove.
15479 (kbd_buffer_store_event, clear_event, Fdiscard_input)
15480 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
15481 Don't initialize and/or maintain the variable any more. It was made
15482 redundant by my commit of 2003-06-15.
15483
438fc6c0
SM
15484 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
15485
5335a4ee
JD
154862004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15487
15488 * lisp.h: Add undef DECL_ALIGN.
15489
dcdaeebc
SM
154902004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
15491
15492 * process.c (wait_reading_process_input) [SYNC_INPUT]:
15493 Check interrupt_input_pending explicitly.
15494
15495 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
15496
15497 * keyboard.c (handle_async_input): New fun,
15498 extracted from input_available_signal.
15499 (input_available_signal, reinvoke_input_signal): Use it.
15500
9076a823
SM
155012004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
15502
d7107586
SM
15503 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
15504
15505 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
15506 manipulation macros for when tags are in the lower bits.
15507 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
15508 (DECL_ALIGN): New macro.
15509 (DEFUN): Use it.
15510
15511 * lisp.h [ENABLE_CHECKING]: Don't force union type.
15512
15513 * s/darwin.h (__attribute__): Remove outdated workaround.
15514
15515 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
15516
15517 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
15518 Don't check range of malloc address.
15519 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
15520
9076a823
SM
15521 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
15522
15523 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
15524
ba029065
KH
155252004-01-19 Kenichi Handa <handa@m17n.org>
15526
15527 * fontset.c (fontset_font_pattern): Fix previous change.
15528
7af0e8d7
MB
155292004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
15530
15531 * xdisp.c (Voverflow_newline_into_fringe)
15532 (move_it_in_display_line_to, redisplay_internal)
15533 (update_window_fringes, redisplay_window, display_line, window):
15534 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
15535 that it compiles without a window-system.
15536 * dispnew.c (direct_output_for_insert, update_window): Likewise.
15537
77a9cf69
KS
155382004-01-16 Kim F. Storm <storm@cua.dk>
15539
15540 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
15541
a64387ee 15542 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
15543 buffer_local_flags for indicate_buffer_boundaries.
15544 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
15545 default- variable for it.
15546
15547 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
15548 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 15549 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
15550 overflowing newlines into right fringe.
15551 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
15552 and indicate_bottom_line_p for buffer boundaries and scrolling.
15553 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
15554 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
15555 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
15556 and HOLLOW_SQUARE_BITMAP.
15557 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
15558 Add prototypes.
15559
15560 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
15561 instead of related indicator fields.
15562 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
15563 (direct_output_for_insert): Handle exact width lines like
15564 contined lines. Call update_window_fringes.
15565 (update_window): Call update_window_fringes.
15566 (scrolling_window): Don't skip desired rows with changed bitmaps.
15567 Check if fringe bitmaps changes when assigning scrolled rows.
15568
15569 * xdisp.c (Voverflow_newline_into_fringe): New variable.
15570 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
15571 (move_it_in_display_line_to): Overflow newline into fringe for
15572 rows that are exactly as wide as the window.
15573 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
15574 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
15575 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
15576 (fringe_bitmaps): Add new bitmaps.
15577 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
15578 Select proper bitmap for cursor in fringe when appropriate.
15579 Handle alignment of bitmap to top or bottom of row.
15580 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
15581 done by update_window_fringes.
15582 (update_window_fringes, draw_window_fringes): New functions.
15583 (redisplay_internal): Call update_window_fringes in case only
15584 cursor row is updated.
15585 (redisplay_window): Call update_window_fringes.
15586 Explicitly call draw_window_fringes if redisplay was done using
15587 the current matrix or the overlay arrow is in the window.
15588 (try_window_reusing_current_matrix): Mark scrolled rows for
15589 fringe update (to update buffer-boundaries / scrolling icons).
15590 (find_last_unchanged_at_beg_row): Handle exact width lines line
15591 continued lines.
15592 (display_line): Overflow newline into fringe for rows that are
15593 exactly as wide as the window. Don't append space for newline
d7107586 15594 in this case.
77a9cf69
KS
15595 (notice_overwritten_cursor): Explicitly clear cursor bitmap
15596 in fringe as if it had been overwritten.
15597 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 15598 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
15599 void-text-area-pointer as user options.
15600 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 15601
77a9cf69
KS
15602 * xterm.c (x_update_window_end): Call draw_window_fringes.
15603 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15604 in row instead of actually drawing fringe bitmaps.
15605 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15606 (x_draw_window_cursor): Draw cursor in fringe.
15607
15608 * w32term.c (x_update_window_end): Call draw_window_fringes.
15609 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15610 in row instead of actually drawing fringe bitmaps.
15611 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15612 (w32_draw_window_cursor): Draw cursor in fringe.
15613
15614 * macterm.c (x_update_window_end): Call draw_window_fringes.
15615 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15616 in row instead of actually drawing fringe bitmaps.
15617 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15618 (mac_draw_window_cursor): Draw cursor in fringe.
15619
a633a954
JD
156202004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15621
15622 * xterm.c (handle_one_xevent): Don't handle characters that are part
15623 of an old style (XLookupString) compose sequence.
15624
80460525
KH
156252004-01-15 Kenichi Handa <handa@m17n.org>
15626
15627 * search.c (Freplace_match): Use make_multibyte_string or
15628 make_unibyte_string according to the buffer multibyteness.
15629
7fc34f85
SM
156302004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
15631
15632 * alloc.c (struct interval_block, struct string_block)
15633 (struct symbol_block, struct marker_block, live_string_p)
15634 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
15635 Better preserve alignment for objects in blocks.
15636 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
15637
15638 * lread.c (defvar_per_buffer): Remove dead declaration.
15639
15640 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
15641 space size.
15642
66070bd1
JD
156432004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15644
15645 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
15646 if a key press should pop down. Only pop down if a key is pressed
15647 outside the menu/dialog.
15648 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
15649 popup_get_selection.
15650 (create_and_show_dialog): Pass 1 for down_on_keypress to
15651 popup_get_selection.
15652
de7515d6
JD
156532004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15654
15655 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
15656 BLOCK/UNBLOCK_INPUT.
15657
160b1b50
JD
156582004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15659
15660 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
15661 specified.
15662
3a9f36e6
KH
156632004-01-08 Kenichi Handa <handa@m17n.org>
15664
15665 * editfns.c (Fformat): Fix '&' to '&&'.
15666
3803eb32
AS
156672004-01-08 Andreas Schwab <schwab@suse.de>
15668
15669 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
15670 size if PSEUDOVECTOR_FLAG is set.
15671
9da88f37
KH
156722004-01-07 Kenichi Handa <handa@m17n.org>
15673
74ac5074
KH
15674 * charset.c (Fdeclare_equiv_charset): Fix docstring.
15675
9da88f37
KH
15676 * fontset.c (fontset_ref_via_base): Fix previous change.
15677
05faee07
KS
156782004-01-07 Kim F. Storm <storm@cua.dk>
15679
15680 * process.c (read_process_output): Only activate adaptive
15681 buffering if we read less than 256 bytes at a time.
15682
634910c8
KS
156832004-01-06 Kim F. Storm <storm@cua.dk>
15684
15685 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
15686 object and image object. Return glyph width and height.
15687 (mode_line_string, marginal_area_string): Ditto.
15688
15689 * dispextern.h (buffer_posn_from_coords, mode_line_string)
15690 (marginal_area_string): Fix prototypes.
15691
15692 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 15693 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
15694 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
15695
15696 * keyboard.c (make_lispy_position): Use modified mode_line_string,
15697 buffer_posn_from_coords, and marginal_area_string functions to
15698 include both string object and image object in the lispy position.
15699 Also add actual glyph width and height to position.
15700 (read_key_sequence): Use real buffer position from mouse
15701 event to find keymap property even when click is in marginal area.
15702
15703 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
15704 mode_line_string and marginal_area_string functions to handle
15705 both string object and image object properties.
d7107586 15706
57951c2e
AS
157072004-01-06 Andreas Schwab <schwab@suse.de>
15708
15709 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
15710 character.
15711
181e6a61
AS
157122004-01-02 Andreas Schwab <schwab@suse.de>
15713
d7107586
SM
15714 * macterm.c (emacs_options, x_initialized, same_x_server):
15715 Remove unused (and duplicated) definitions.
181e6a61 15716
31e0fbdd
KS
157172004-01-02 Kim F. Storm <storm@cua.dk>
15718
15719 * process.h (struct Lisp_Process): New members for adaptive read
15720 buffering: adaptive_read_buffering, read_output_delay, and
15721 read_output_skip.
15722
15723 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
15724 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
15725 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
15726 (process_output_delay_count, process_output_skip): New vars.
15727 (Vprocess_adaptive_read_buffering): New variable.
15728 (make_process): Initialize adaptive read buffering members.
15729 (Fstart_process): Set adaptive_read_buffering member.
15730 (deactivate_process): Cleanup adaptive read buffering.
15731 (wait_reading_process_input): Temporarily omit delayed
15732 subprocesses from the set of file descriptors to read from;
15733 adjust the select timeout if we skipped any subprocesses.
15734 (read_process_output): Increase adaptive read buffering delay if
15735 we read less than a full buffer; reduce delay when we read a
15736 full buffer.
15737 (send_process): Simplify using local Lisp_Process var.
15738 Reset adaptive read buffering delay after write.
15739 (init_process): Initialize process_output_delay_count and
15740 process_output_skip.
15741 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
15742
68c6a789
JR
157432004-01-01 Jason Rumney <jasonr@gnu.org>
15744
d7107586 15745 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 15746
3f70fe82
LT
157472003-12-30 Luc Teirlinck <teirllm@auburn.edu>
15748
15749 * print.c (Ferror_message_string): Add hyperlink in the docstring
15750 to the definition of `signal' in the Elisp manual.
15751 * eval.c (Fsignal): Ditto.
15752
b6189c3b 157532003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
15754
15755 * fns.c (internal_equal): Return t for two NaN arguments.
15756
7abd90ea
RS
157572003-12-29 Richard M. Stallman <rms@gnu.org>
15758
15759 * data.c (store_symval_forwarding): Handle setting
15760 default-fill-column, etc., by changing the value in
15761 buffers that use the default.
15762
15763 * minibuf.c (Fset_minibuffer_window): Doc fix.
15764
15765 * fileio.c (choose_write_coding_system): Ignore auto_saving
15766 if using the visited file for auto saves.
15767 (Fwrite_region): Don't update SAVE_MODIFF
15768 if auto-saving in visited file.
15769
3e7cfcdc
KH
157702003-12-29 Kenichi Handa <handa@m17n.org>
15771
15772 * dispextern.h (face_font_available_p): Extern it.
15773
15774 * fontset.c (Voverriding_fontspec_alist): New variable.
15775 (lookup_overriding_fontspec): New function.
d7107586 15776 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
15777 (fontset_font_pattern): Likewise.
15778 (regulalize_fontname): New function.
15779 (Fset_fontset_font): Call regulalize_fontname.
15780 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
15781 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
15782 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
15783
15784 * xfaces.c (face_font_available_p): New function.
15785
7abd90ea
RS
157862003-12-28 Richard M. Stallman <rms@gnu.org>
15787
15788 * buffer.c (Fother_buffer): Don't crash if BUF is nil
15789 or if its name is nil.
15790
15791 * buffer.c (Fkill_buffer): Don't delete auto-save file
15792 if it's the same as the visited file.
15793
de1d1a40
LT
157942003-12-28 Luc Teirlinck <teirllm@auburn.edu>
15795
15796 * coding.c (Fcheck_coding_system): Doc fix.
15797
204fb75e
KS
157982003-12-28 Kim F. Storm <storm@cua.dk>
15799
15800 * Makefile.in (eval.o): Depend on dispextern.h.
15801
15802 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
15803 image glyph using image's ascent.
15804 (mode_line_string): Return image glyph as object clicked on.
15805 Adjust y0 for image glyph using image's ascent.
15806
15807 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
15808 (struct glyph): New members, ascent and descent. Used to save
15809 this glyph's ascent and descent, instead of having.
15810 (struct glyph): Declare member face_id using FACE_ID_BITS.
15811 (find_hot_spot): Add prototype.
15812
15813 * keyboard.c (Qimage): Remove extern (now in lisp.h).
15814 (QCmap): Declare extern.
15815 (make_lispy_position): When position is inside image hot-spot,
15816 use hot-spot element's id as posn element.
15817
15818 * lisp.h (IMAGEP): New macro to test for image object type.
15819 (Qimage): Declare extern.
15820
15821 * macfns.c (Qimage): Remove extern (now in lisp.h).
15822 (valid_image_p, parse_image_spec): Use IMAGEP macro.
15823
15824 * macterm.c (Qface, Qmouse_face): Remove unused externs.
15825
15826 * w32fns.c (Qimage): Remove extern (now in lisp.h).
15827 (valid_image_p, parse_image_spec): Use IMAGEP macro.
15828
15829 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
15830
15831 * w32term.c (Qface, Qmouse_face): Remove unused externs.
15832
15833 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
15834 pointer types.
15835 (Qrelative_width, Qalign_to): Remove unused variables.
15836 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
647b07d1
AS
15837 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
15838 maps.
15839 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
15840 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
15841 code accordingly.
204fb75e
KS
15842 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
15843 than row's ascent and height, to get sensible height on tall rows.
15844 (build_desired_tool_bar_string): Remove Qimage extern.
15845 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
15846 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
15847 image glyph is alone on the last line.
15848 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 15849 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 15850 (on_hot_spot_p): New function to check if position is inside an
d7107586 15851 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
15852 (find_hot_spot): New function to search for image hot-spot.
15853 (Flookup_image_map): New defun to search for image hot-spot.
647b07d1
AS
15854 (define_frame_cursor1): New aux function to determine frame
15855 pointer.
15856 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
15857 `pointer' text property and :pointer image property to control
15858 frame pointer shape. Detect image hot-spots for pointer and
15859 help_echo properties. Use define_frame_cursor1.
15860 (note_mouse_highlight): Use Vvoid_text_area_pointer.
15861 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
15862 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
15863 Vshow_text_cursor_in_void.
204fb75e
KS
15864
15865 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
15866
15867 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
15868 (Qimage): Remove extern (now in lisp.h).
15869 (valid_image_p, parse_image_spec): Use IMAGEP macro.
15870
15871 * xmenu.c (show_help_event): Remove unused code.
15872
15873 * xterm.c (Qface, Qmouse_face): Remove unused externs.
15874 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
15875 row's ascent and descent, to get a sensible height on tall rows.
15876
fc052137
LT
158772003-12-25 Luc Teirlinck <teirllm@auburn.edu>
15878
15879 * minibuf.c (Fcompleting_read): Undo previous change.
15880
a64387ee 158812003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
15882
15883 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
15884 Arguments GCPRO'ed in call to file name handler.
15885
56ffd194
TTN
158862003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
15887
15888 * termcap.c (tgetst1): Scan for "%pN"; if all
15889 N are continuous in [1,9], remove all "%pN".
15890
5202d23d
JD
158912003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15892
f26fab36
JD
15893 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
15894
5202d23d
JD
15895 * xfaces.c (lface_fully_specified_p): Take into account that
15896 MAC OS always have unspecified stipple.
15897
8babaa59
TTN
158982003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
15899
15900 * tparam.c (tparam1): Add handling for `%pN', which
15901 means use param N for the next substitution.
15902
2d176448
TTN
159032003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
15904
15905 * xfaces.c (Fcolor_gray_p): Fix omission bug:
15906 In case `frame' is nil, consult the selected frame.
15907 (Fcolor_supported_p): Likewise.
15908
adb0708c
LT
159092003-12-23 Luc Teirlinck <teirllm@auburn.edu>
15910
000eeb15
LT
15911 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
15912 Doc fixes.
0dc72b11
LT
15913
15914 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
15915 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
15916 (Fread_from_minibuffer): Delete code moved into read_minibuf.
15917 Doc fix.
15918 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
15919 read_minibuf.
15920 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 15921 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 15922
2e4d132b
KH
159232003-12-03 Kenichi Handa <handa@m17n.org>
15924
15925 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
15926 encoding sequence.
15927
3999c705
KH
159282003-12-01 Kenichi Handa <handa@m17n.org>
15929
15930 * composite.c (syms_of_composite): Don't make the compostion hash
15931 table week.
15932
d344ecbb
LT
159332003-11-30 Luc Teirlinck <teirllm@auburn.edu>
15934
15935 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
15936 * textprop.c (Fget_char_property_and_overlay): New function.
15937 (syms_of_textprop): Defsubr it.
15938
03d6484e
JD
159392003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15940
019b1f0e
JD
15941 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
15942 to compile on terminal configuration.
15943
03d6484e
JD
15944 * fileio.c (Fread_file_name): Check use_file_dialog also before
15945 calling Fx_file_dialog.
15946
1d1c7e75 15947 * fns.c (use_file_dialog): New variable.
03d6484e
JD
15948 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
15949
442d3fd0
KS
159502003-11-29 Kim F. Storm <storm@cua.dk>
15951
15952 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
15953 (syms_of_msdos): Don't intern and staticpro them.
15954
0f6a07a8
KS
159552003-11-27 Kim F. Storm <storm@cua.dk>
15956
15957 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
15958 coordinates relative to glyph at posn. If glyph is an image,
15959 return that as object at posn. Callers changed.
15960 (mode_line_string, marginal_area_string): Calculate and return
15961 pixel coordinates relative to glyph. Callers changed.
15962
15963 * dispextern.h (buffer_posn_from_coords, mode_line_string)
15964 (marginal_area_string): Fix prototypes.
15965 (window_box_left_offset, window_box_right_offset): Add prototypes.
15966
15967 * frame.h (get_specified_cursor_type, get_window_cursor_type):
15968 Remove prototypes.
15969
15970 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
15971
15972 * keyboard.c (make_lispy_position): Add x and y coordinates
15973 relative to the current glyph as 7th element of position.
15974 If glyph is an image, return it in the object element.
15975 (read_key_sequence): Skip checks for keymap property in cases
15976 where POSN_STRING is not a string (e.g. an image).
15977
15978 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
15979 (Vshow_text_cursor_in_void): New variable.
15980 (glyph_to_pixel_coords): Don't use negative hpos.
15981 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
15982 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 15983 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
15984 (calc_pixel_width_or_height): New aux function, implementing
15985 pixel based artihmetic for glyph widths and heights.
15986 (produce_stretch_glyph): Use calc_pixel_width_or_height for
15987 :width, :height, :align-to, and :ascent, thus allowing these to
15988 be specified in pixels as well as multiples of characters.
15989 Don't produce stretch glyphs with zero width or height.
15990 (get_specified_cursor_type): Declare static.
15991 (get_window_cursor_type): Declare static. Add glyph arg to be
15992 able to know when cursor is on an image; always substitute
15993 hollow-box cursor for filled-box cursor on images, to avoid
15994 negative images and flicker when blinking the cursor.
5e1a6e32 15995 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
0f6a07a8
KS
15996 (note_mode_line_or_margin_highlight): Use non-text cursor rather
15997 than vertical scroll-bar cursor in display margins.
15998 (note_mouse_highlight): Use non-text cursor rather than text
15999 cursor in fringes and over images in the text area.
16000 Use non-text cursor when mouse pointer is outside editable text,
16001 i.e. in the void after end-of-line or end-of-buffer; this was
16002 already done for W32, but is now standard for all systems --
16003 user can toggle show-text-cursor-in-void to get old behaviour.
16004 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
16005 Vdisplay_pixels_per_inch.
16006
00498bfc
AS
160072003-11-25 Andreas Schwab <schwab@suse.de>
16008
16009 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
16010 EMACS_INT to not lose bits.
16011 (Ffillarray): Don't set bits beyond the size of a bool vector.
16012
edaa824d
KS
160132003-11-25 Kim F. Storm <storm@cua.dk>
16014
16015 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
16016 define this defun on systems that cannot use stderr as lvalue.
16017
74d6f539
GM
160182003-11-24 Gerd Moellmann <gerd@gnu.org>
16019
16020 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
16021 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
16022 ld's default is incompatible with unexec.
16023
6a1ff3ba
KS
160242003-11-23 Kim F. Storm <storm@cua.dk>
16025
63dc7c6b
KS
16026 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
16027 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
16028 (Fforce_window_update): New defun.
16029 (syms_of_window): Defsubr it.
16030 (Fset_window_margins, Fset_window_fringes): Doc fix.
16031
6a1ff3ba
KS
16032 * print.c (Fredirect_debugging_output): New defun.
16033 (syms_of_print): Defsubr it.
16034
aef109b7
LT
160352003-11-22 Luc Teirlinck <teirllm@auburn.edu>
16036
16037 * fns.c (Fset_char_table_parent): Doc fix.
16038
6a1ff3ba 160392003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
16040
16041 * dispnew.c (buffer_posn_from_coords): Return actual row/column
16042 for glyph clicked on, rather than (unused) pixel positions.
16043 (mode_line_string, marginal_area_string): Change X and Y args to
16044 pointers for returning actual row/column for glyph clicked on.
16045 Simplify and optimize loops.
16046
aef109b7
LT
16047 * dispextern.h (mode_line_string, marginal_area_string):
16048 Update prototypes.
63ccbe21
KS
16049
16050 * keyboard.c (make_lispy_position): New function for generating
16051 mouse click positions from frame and pixel coordinates.
16052 Enhanced to return buffer position and actual row/column for
16053 events outside the text area using updated mode_line_string and
16054 marginal_area_string functions.
16055 Return left-fringe and right-fringe clicks as such, rather than
16056 clicks in text area.
16057 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
16058 pixel_to_glyph_coords, as we never use the results.
16059 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
16060 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
16061 Eliminate unused code in WHEEL_EVENT handling.
16062 (make_lispy_movement): Use make_lispy_position.
16063
16064 * window.c (coordinates_in_window): Remove redundant tests.
16065 Fix returned X pixel value for left-margin.
16066
16067 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
16068 mode_line_string and marginal_area_string parameters.
16069
a64387ee 160702003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 16071
d7107586
SM
16072 * w32.c (struct the_group, getgrgid): Add.
16073 * mac.c (struct my_group, getgrgid): Add.
aef109b7 16074
3dbf3426
LT
160752003-11-21 Luc Teirlinck <teirllm@auburn.edu>
16076
16077 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
16078
cae8ddbb 160792003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 16080
d7107586
SM
16081 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
16082 include in call to file name handler. Optionally translate numeric
16083 UID and GID to strings. Update docstring.
16084 (directory_files_internal): Add parameter ID-FORMAT.
16085 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
16086 include in call to file name handler and call to
16087 directory_files_internal. Update Docstring.
16088 (Fdirectory_files): Add dummy parameter in call to
16089 directory_files_internal.
16090 * lisp.h (Qinteger): Add.
16091 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
16092 (Ffile_attributes): Add parameter.
16093 * data.c (Qinteger): Export.
cae8ddbb 16094
2550b848
LT
160952003-11-21 Luc Teirlinck <teirllm@auburn.edu>
16096
3dbf3426 16097 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 16098
88380018
KS
160992003-11-19 Kim F. Storm <storm@cua.dk>
16100
16101 * xdisp.c (init_iterator): Initialize it->start to position
16102 before reseating (in case start position is invisible).
16103 (init_to_row_start): Set it->start to row-start.
16104 (redisplay_window): Accept optional_new_start if start position
16105 is invisible (in which case IT_CHARPOS overshoots PT).
16106 (display_line): Setup row->start from it->start (rather than
16107 it->current which is wrong if first char on line is invisible).
16108 When done, reseat it->start to it->current (= start of next row).
16109 (expose_area): Fix exposure of text area when first char (e.g. TAB)
16110 is only partially visible.
16111
16112 * dispextern.h (struct it): New member start.
16113
854c1a59
SM
161142003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
16115
455316e2
SM
16116 * alloc.c (make_float, Fcons): Clear the markbit at init time.
16117 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
16118 of block_index outside of the macro call.
16119 (Fgarbage_collect): Remove null code.
16120
16121 * m/amdx86-64.h: Don't redefine XPNTR.
16122
854c1a59
SM
16123 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
16124 of VALMASK.
16125
16126 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
16127 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
16128 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
16129
16130 * lisp.h (VALMASK): Only define for non-union type.
16131 (MARKBIT): Remove.
16132 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
16133 (XTYPE): Define unconditionally.
16134 (XSETTYPE): Remove one more remnant.
16135 (EQ): Define differently for the union and non-union cases.
16136 (INTMASK): New bit mask.
16137 (struct Lisp_Marker): Move down to prepare for upcoming patch.
16138 (GC_EQ): Delegate to EQ.
16139
16140 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
16141
a0c6ef2d
JD
161422003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16143
16144 * xterm.c (x_window_to_scroll_bar): Move check of display to
16145 where window_id is compared.
16146
859492c4
KS
161472003-11-17 Kim F. Storm <storm@cua.dk>
16148
16149 * dispextern.h (struct it): New member first_vpos.
16150
16151 * xdisp.c (start_display): Set it->first_vpos.
16152 (try_window_id): Use first_vpos to start display in first _text_
16153 line if no reusable lines at start of window with header line.
16154
810f2256
JD
161552003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16156
7c402969 16157 * w32fns.c (XPutPixel):
854c1a59
SM
16158 * w32bdf.c (w32_init_bdf_font):
16159 * sunfns.c (sel_read):
16160 * process.c (Fmake_network_process):
16161 * frame.c (store_frame_param):
16162 * fontset.c (Fset_fontset_font):
16163 * emacs.c (shut_down_emacs):
a64387ee 16164 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 16165
a32e9bfd
JD
16166 * config.in: Regenerate.
16167
810f2256
JD
16168 * xfns.c (x_window_to_frame, x_any_window_to_frame)
16169 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
16170 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
16171 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
16172 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
16173
16174 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
16175
16176 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
16177 (XTmouse_position, handle_one_xevent): Pass Display* to
16178 x_window_to_scroll_bar.
16179 (x_window_to_scroll_bar): Take a Display* argument.
16180 Check that display for frame is equal to Display* argument.
854c1a59 16181 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
16182 x_display_info_for_display instead. Use Display in xev instead
16183 of GDK_DISPLAY.
16184 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 16185 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
16186 (x_connection_closed): Call xg_display_close for GTK.
16187 (x_term_init): Call xg_display_open for additional displays.
16188 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
16189 for GTK.
16190
16191 * xmenu.c (single_menu_item, mouse_position_for_popup)
16192 (x_activate_menubar): Formatting adjustments.
16193
16194 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
16195 adjustments.
16196
16197 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
16198 (xg_display_close, xg_create_default_cursor)
16199 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
16200 handling.
854c1a59
SM
16201 (xg_left_ptr_cursor): Remove.
16202 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
16203 cursor here.
16204 (xg_win_to_widget): Take Display* argument, call
16205 gdk_xid_table_lookup_for_display.
16206 (xg_create_frame_widgets, xg_get_file_name, create_menus)
16207 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
16208 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
16209 in FRAME_X_DISPLAY_INFO.
16210 (xg_get_scroll_id_for_window): Take Display* argument.
16211 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 16212 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 16213
78819ebb
KS
16214 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
16215 Display* argument.
16216 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 16217
0b03cc78
JD
162182003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16219
16220 * xterm.c (x_detect_focus_change): Do not change focus frame for
16221 Enter/LeaveNotify if the current focus frame has explicit focus.
16222
77e688fa
KS
162232003-11-14 Kim F. Storm <storm@cua.dk>
16224
16225 * dispnew.c (update_text_area): Fix redisplay error when hscroll
16226 is active and first glyph is only partially visible.
854c1a59 16227
dd429b03
KH
162282003-11-13 Kenichi Handa <handa@m17n.org>
16229
16230 * xdisp.c (select_frame_for_redisplay): New function.
16231 (redisplay_internal): Record also selected_frame for
16232 unwind_redisplay. Call select_frame_for_redisplay before
16233 redrawing each frame.
16234 (unwind_redisplay): Argument changed to a cons.
16235
6d9266f4
LT
162362003-11-12 Luc Teirlinck <teirllm@auburn.edu>
16237
16238 * fns.c (Fstring_to_multibyte): Doc fix.
16239
80060eb3
KH
162402003-11-11 Kenichi Handa <handa@m17n.org>
16241
16242 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16243
74305183
JD
162442003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16245
16246 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
16247 program specified positions.
16248
cfda993e
JD
162492003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16250
16251 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
16252
df211069
KH
162532003-11-08 Kenichi Handa <handa@m17n.org>
16254
16255 * Makefile.in (lisp): Add kannada.el.
16256 (shortlisp): Likewise.
16257
4307d534
KH
162582003-11-07 Kenichi Handa <handa@m17n.org>
16259
854c1a59
SM
16260 * coding.c (coding_allocate_composition_data):
16261 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
16262 (coding_restore_composition): Detect invalid composition data.
16263 Give Fstring and Fvector a Lispy integer, not C int.
16264
854c1a59
SM
162652003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
16266
16267 * floatfns.c (Flogb): Don't use VALMASK.
16268
16269 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
16270 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
16271
16272 * lisp.h (XINT): Move the cast to clarify what is going on.
16273 (GCTYPEMASK, XSETTYPE): Remove.
16274 (XGCTYPE): Make it an alias of XTYPE.
16275
d04103a1
JD
162762003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16277
16278 * xterm.c (x_term_init): Fix formatting.
16279
da18b5ac
JD
162802003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16281
78819ebb
KS
16282 * gtkutil.h (xg_have_tear_offs): Declare.
16283 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
16284
16285 * gtkutil.c: Remove variable xg_did_tearoff.
16286 (xg_have_tear_offs): New function.
16287 (tearoff_remove): Just decrease xg_detached_menus.
16288 (tearoff_activate): Increase xg_detached_menus and call
16289 tearoff_remove when tearoff is removed.
854c1a59 16290 (xg_keep_popup): Remove function.
da18b5ac
JD
16291 (create_menus): Give add_tearoff_p as argument to recursive
16292 call to create_menus.
16293 (xg_create_widget): Use variables instead of multiple
16294 strcmp. Tell create_menus to create tear off only for
16295 menu bar menus.
16296 (xg_update_menubar): Change title for a detached menu also.
16297 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
16298 of deep_p.
16299 (xg_initialize): Initialize xg_detached_menus, remove
16300 initialization of xg_did_tearoff.
16301
16302 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
16303 xg_have_tear_offs returns non-zero.
16304 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
16305 call to xg_keep_popup.
16306
64d4923e
AC
163072003-11-01 Andrew Choi <akochoi@shaw.ca>
16308
16309 * macterm.c (XTread_socket): Handle menubar selection and grow
16310 window only for mouseDown events.
854c1a59 16311
6cc8bc07
JD
163122003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16313
16314 * xterm.c (x_term_init): For GTK part, increase x_initialized
16315 to check for more than one display. Use error instead of return 0.
16316
043131c4
AC
163172003-10-31 Andrew Choi <akochoi@shaw.ca>
16318
854c1a59 16319 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
16320 (copy_dysymtab): Call it.
16321
bdda99a1
LT
163222003-10-31 Luc Teirlinck <teirllm@auburn.edu>
16323
16324 * eval.c (Fdefvaralias): Doc fix.
16325
800f42ff 163262003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
16327
16328 * data.c (Fsetplist): Doc fix.
16329
ef35b389
LK
163302003-10-14 Lute Kamstra <lute@gnu.org>
16331
16332 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 16333
ef35b389 163342003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 16335
07107abc
KS
16336 * window.c (Fset_window_margins): Simplify arg checking.
16337
f7005886
RS
163382003-10-13 Richard M. Stallman <rms@gnu.org>
16339
16340 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
16341 (print_partial_compiled_pattern): Replace assert with a printout.
16342 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
16343
16344 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
16345
16346 * window.c (Fset_window_margins): Allow only integers as args.
647b07d1
AS
16347 (syms_of_window) <special-display-buffer-names,
16348 special-display-regexps>: Doc fixes.
f7005886 16349
9c0c2af5
LK
163502003-10-13 Lute Kamstra <lute@gnu.org>
16351
16352 * window.c (Fset_window_fringes): Elaborate docstring.
16353
3f080e4e
AC
163542003-10-12 Andrew Choi <akochoi@shaw.ca>
16355
854c1a59 16356 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 16357
3f080e4e
AC
16358 * s/darwin.h (GC_MARK_STACK): Define.
16359
0aa513ed
JD
163602003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16361
16362 * window.c (shrink_windows): New function.
16363 (size_window): Call shrink_windows to calculate window sizes when
16364 shrinking frame with more than one window.
16365
6aa8858a
KS
163662003-10-12 Kim F. Storm <storm@cua.dk>
16367
16368 * xdisp.c (compute_fringe_widths): Doc fix.
16369
c2164d91
KH
163702003-10-08 Kenichi Handa <handa@m17n.org>
16371
854c1a59 16372 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 16373
f82ac129
KH
163742003-10-07 Kenichi Handa <handa@m17n.org>
16375
16376 * coding.c (Qcoding_system_define_form): New variable.
16377 (syms_of_coding): Intern and staticpro it.
16378 (Fcheck_coding_system): Try to autoload the definition of
16379 CODING-SYSTEM.
16380
9296c947
LT
163812003-10-05 Luc Teirlinck <teirllm@auburn.edu>
16382
16383 * fns.c (Frequire): Doc fix.
16384
c1f0671a
JD
163852003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16386
3d8c3826
JD
16387 * xfns.c (Fx_send_client_event): New function as a base for
16388 manipulating extended window manager hints.
6dc15d98 16389 (Fx_send_client_event): Remove unused variable s.
3d8c3826 16390
068ae0fd
JD
16391 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
16392 that function is removed.
16393
16394 * xterm.c (x_set_offset): Use move_offset_left/top instead of
16395 x/y_pixels_outer_diff.
16396 (x_check_expected_move): Calculate move_offset_left/top.
16397
16398 * xterm.h (struct x_output): New members: move_offset_top/left.
16399
854c1a59 16400 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
16401 call x_set_offset directly.
16402
16403 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
16404
96f09305
JD
16405 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
16406
16407 * xterm.c (x_delete_display): Free font names and font_encoder
16408 in dpyinfo->font_table.
16409
854c1a59
SM
16410 * xfns.c (Fx_close_connection): Only call XFreeFont here.
16411 Move xfree of font names to x_delete_display.
96f09305 16412
c1f0671a
JD
16413 * xterm.h (struct x_display_info): New member, wm_type.
16414 (struct x_output): New members, expected_top/left and
16415 check_expected_move.
16416
16417 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
16418 is received.
854c1a59
SM
16419 (handle_one_xevent): Rename x_check_expected_move from
16420 x_check_fullscreen_move.
5e1a6e32 16421 (x_set_offset): Only add WM decoration sizes to modified_top/left
c1f0671a 16422 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 16423 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
16424 Removed fullscreen specific code. Use check_expected_move,
16425 expected_left/top instead. Also, set wm_type.
16426 (x_term_init): Initialize wm_type to unknown.
16427
16428 * frame.c (x_fullscreen_move): Remove addition of WM decoration
16429 sizes to move_x/y.
16430
be2fdba9
KH
164312003-10-03 Kenichi Handa <handa@m17n.org>
16432
16433 * macterm.c (x_load_font): Clear all members of FONTP before start
16434 filling them.
16435
164362003-10-02 Kenichi Handa <handa@m17n.org>
16437
16438 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
16439 before calling find_ccl_program_func. Call find_ccl_program_func
16440 only when fontp->font_encoder is not NULL.
16441
16442 * xterm.c (x_load_font): Clear all members of FONTP before start
16443 filling them.
16444
26a6e439
JPW
164452003-10-03 John Paul Wallington <jpw@gnu.org>
16446
16447 * keymap.c (map_keymap): Don't abort when binding is a vector.
16448
0d4c2dc2
JR
164492003-10-02 Jason Rumney <jasonr@gnu.org>
16450
854c1a59
SM
16451 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
16452 Sync dependencies with Makefile.in.
a63cf46f
JR
16453 (alloca.o): Remove.
16454
0d4c2dc2
JR
16455 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
16456 filling them.
16457
16458 * w32bdf.c (w32_load_bdf_font): Likewise.
16459
ab8f7d5c
RS
164602003-09-30 Richard M. Stallman <rms@gnu.org>
16461
16462 * term.c (set_tty_color_mode): Calculate current_mode_spec
16463 regardless of value of VAL.
16464
854c1a59 16465 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
16466 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
16467 Handle over_used when splitting UNDER.
16468
c6605d63 164692003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
16470
16471 * regex.c (regex_compile): Free the stack when returning from function.
16472
3413f972
KH
164732003-09-28 Kenichi Handa <handa@m17n.org>
16474
16475 * fontset.c (Finternal_char_font): Change return value to
16476 cons (FONT-NAME . GLYPH-CODE).
16477
a6eeaa81 164782003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
16479
16480 * term.c (tty_setup_colors): Treat any negative argument as -1.
16481
f98ddc99
KH
164822003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
16483
16484 * process.c (send_process): Delete unused temp_buf.
16485
66c8f1a8
DL
164862003-09-26 Dave Love <fx@gnu.org>
16487
16488 * xterm.c (x_bitmap_mask): Declare.
16489
ca716c26
DL
164902003-09-25 Dave Love <fx@gnu.org>
16491
16492 * Makefile.in (fns.o): Depend on md5.h.
16493
fbe57420
KS
164942003-09-25 Kim F. Storm <storm@cua.dk>
16495
16496 * window.c (set_window_buffer): Fix redisplay problems when
16497 switching between buffers with different display margin widths.
16498
ef6ae4ff
KS
164992003-09-23 Kim F. Storm <storm@cua.dk>
16500
16501 * process.c (set_socket_option): Fix :bindtodevice option.
16502 (Fset_network_process_option): Update process contact list when
16503 setting option succeeds.
16504 (Fmake_network_process): Doc fix.
16505
68e03c1c
DL
165062003-09-23 Dave Love <fx@gnu.org>
16507
7146d1c1 16508 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 16509
a6eeaa81 165102003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
16511
16512 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
16513 color mode is an integer number (it could be -1).
16514
8fe7d8c8
RS
165152003-09-22 Richard M. Stallman <rms@gnu.org>
16516
16517 * intervals.c (graft_intervals_into_buffer): Correct the main loop
16518 in the case where OVER is longer than UNDER.
16519
2f71b5ea
MY
165202003-09-22 Masatake YAMATO <jet@gyve.org>
16521
7146d1c1 16522 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 16523 `vertical_type'.
7146d1c1 16524
0c4da023
KS
165252003-09-21 Kim F. Storm <storm@cua.dk>
16526
16527 * frame.c (Vdefault_frame_scroll_bars): New variable.
16528 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
16529 (syms_of_frame): DEFVAR_LISP it, and initialize according to
16530 window-system default scroll bar position.
16531
b648413b
KS
16532 * window.c (Fwindow_scroll_bars): Doc fix.
16533
8f5b9e34
JD
165342003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16535
854c1a59 16536 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 16537
b0f23edf
RS
165382003-09-19 Richard M. Stallman <rms@gnu.org>
16539
16540 * atimer.h: Don't include lisp.h.
16541 (P_): Define it here (as well as elsewhere).
16542
16543 * print.c (Fprin1_to_string): Move the PRINTPREPARE
16544 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
16545
16546 * data.c (Fvariable_binding_locus): New function.
16547 (syms_of_data): defsubr it.
16548 (Flocal_variable_p): Delete duplicate call to indirect_variable.
16549
e1283999
DL
165502003-09-18 Dave Love <fx@gnu.org>
16551
ad5f3636
DL
16552 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
16553
e1283999
DL
16554 * process.c (Fnetwork_interface_info): Fix type error.
16555 (Fnetwork_interface_list): Doc fix.
16556 (read_process_output, read_process_output): Delete unused var.
16557
b8c7fd71
KS
165582003-09-17 Kim F. Storm <storm@cua.dk>
16559
16560 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
16561 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
16562 (Fnetwork_interface_info): Check that ifreq struct has required
16563 fields before accessing them; this requires that those fields are
16564 defined as macros, which may be too restrictive on some platforms,
16565 but it is better than failing on other platforms.
16566 (syms_of_process): Only defsubr above fns when included.
16567
11e0a411
DL
165682003-09-17 Dave Love <fx@gnu.org>
16569
16570 * unexalpha.c: Don't include varargs.h.
16571
e9c50801
KS
165722003-09-17 Kim F. Storm <storm@cua.dk>
16573
16574 * process.c (Fset_process_sentinel): Add sentinel to childp plist
16575 for network process.
16576 (socket_options): Add `:' prefix to option names. Add optbit field.
16577 (set_socket_option): Remove no_error arg and special handling of s < 0.
16578 Return 1<<optbit for known option, 0 for unknown.
16579 Do not interpret 0 as false for boolean option (only nil).
16580 Pass failed option and value to report_file_error.
7146d1c1 16581 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
16582 (Fset_network_process_option): New function to set just one option.
16583 (Fmake_network_process): Allow :coding arg to be a cons.
16584 Allow :server arg to be an integer specifying backlog size.
16585 Remove :options arg, and allow options to be specified directly
16586 as :KEY, VALUE pairs. Parse these options before binding socket.
16587 As before, :reuseaddr t is default for a server process, but this
16588 can now be disabled by specifying :reuseaddr nil.
16589 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
16590 (init_process): Availability of network options is now checked with
16591 simpler syntax (featurep 'make-network-process :OPTION); use loop to
16592 setup features.
16593 (syms_of_process): Fix defsubr's for the replaced functions.
16594
a0fc3644
DL
165952003-09-16 Dave Love <fx@gnu.org>
16596
16597 * Makefile.in: Depend on coding.h.
16598
6df2a645
KS
165992003-09-14 Kim F. Storm <storm@cua.dk>
16600
16601 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
16602 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
16603 (syms_of_process): Defsubr them.
16604
16605 * config.in: Regenerate.
7146d1c1
SM
16606
166072003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16608
16609 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
16610 * m/news-r6.h (XUNMARK): Remove.
16611 * m/mips.h (XUNMARK): Remove.
16612 * m/mips-siemens.h (XUNMARK): Remove.
16613 * m/iris4d.h (XUNMARK): Remove.
16614 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
16615
0930c1a1
SM
166162003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16617
31003b9e
SM
16618 * lisp.h (VALBITS): Don't remove 1 for the markbit.
16619 (union Lisp_Object): Use unsigned int for types. Remove markbit.
16620 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
16621 (XTYPE): Use unsigned right-shift.
16622 (XMARKBIT, XMARK, XUNMARK): Remove.
16623
0930c1a1
SM
16624 * alloc.c (init_intervals, init_symbol, init_marker):
16625 Don't preallocate anything.
16626 (Fgarbage_collect, mark_object): Ignore the markbit.
16627
16628 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
16629
19bb0fcd 166302003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
16631
16632 * xdisp.c (pint2hrstr): New function.
16633 (decode_mode_spec): Add `%i' and `%I' specs.
16634 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
16635 for `mode-line-format'.
16636
03bb6a06
AS
166372003-09-07 Andreas Schwab <schwab@suse.de>
16638
16639 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
16640 avoid warning.
16641
a6eeaa81 166422003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 16643
0930c1a1 16644 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 16645
ed159bbf
KS
166462003-09-03 Kim F. Storm <storm@cua.dk>
16647
16648 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
16649 change (superseded by 2002-08-30 change); the default blink-off
16650 cursor is now again "no cursor".
16651
fe64a394
JR
166522003-09-01 Jason Rumney <jasonr@gnu.org>
16653
16654 * makefile.w32-in (alloca.o): Remove.
16655 (coding.o): Depend on intervals.h
16656 (emacs.o, bytecode.o): Depend on window.h
16657
c0175e24
DL
166582003-09-01 Dave Love <fx@gnu.org>
16659
16660 * Makefile.in (alloca.o): Remove commands.
16661 (coding.o): Depend on intervals.h composite.h window.h.
16662 (emacs.o): Depend on window.h keyboard.h keymap.h.
16663 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
16664 (bytecode.o): Depend on window.h.
16665
a24d4cb2
JR
166662003-08-31 Jason Rumney <jasonr@gnu.org>
16667
4bc2315e
JR
16668 * w32term.c (w32_per_char_metric): Allow cached metrics to be
16669 returned even when font_type is unknown.
16670
a24d4cb2
JR
16671 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
16672
9d35adc7
JD
166732003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16674
16675 * xterm.c (x_term_init): Initialize new fields in x_display_info.
16676
16677 * xterm.h (struct x_display_info): Add red/green/blue_bits and
16678 *_offset.
16679
16680 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
16681 calculate pixel value.
16682
6f68b035
GM
166832003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
16684
0930c1a1
SM
16685 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
16686 Don't tell redisplay display is accurate when it's actually been
16687 paused for pending input.
6f68b035 16688
4828b4d7
RS
166892003-08-29 Richard M. Stallman <rms@gnu.org>
16690
16691 * dispnew.c (adjust_glyph_matrix): Call window_box
16692 whenever W is nonzero.
16693
16694 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16695 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 16696 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
16697 Use indirect_variable to trace thru variable aliases.
16698
16699 * config.in: Updated.
16700
16701 * callint.c (Fcall_interactively): Save and restore
16702 Vthis_command, Vthis_original_command, real_this_command,
16703 and current_kboard->Vlast_command.
16704
16705 * abbrev.c (Fexpand_abbrev): Insert before deleting.
16706
e019878d
GM
167072003-08-29 Gerd Moellmann <gerd@gnu.org>
16708
16709 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
16710
85478bc6
KH
167112003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
16712
0930c1a1 16713 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
16714 (decode_coding_sjis_big5): Likewise.
16715
07ce82d3
JR
167162003-08-27 Jason Rumney <jasonr@gnu.org>
16717
d3703de3
JR
16718 * w32.c (sys_pipe): Protect against file descriptor overflow.
16719
ee4a01d1
JR
16720 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
16721
07ce82d3
JR
16722 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
16723
a64387ee 167242003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
16725
16726 * xfns.c (Vgtk_version_string): New variable.
16727 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
16728
a6eeaa81 167292003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 16730
0930c1a1 16731 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 16732
5459e42a
EZ
16733 * Makefile.in (msdos.o): Depend on intervals.h.
16734
0930c1a1 16735 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 16736
231d6cfb
JD
167372003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16738
16739 * xterm.h (struct x_display_info): New fields: client_leader_window
16740 and Xatom_wm_client_leader.
16741
16742 * xterm.c (x_initialize): Move call to x_session_initialize to ...
16743 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
16744
16745 * xsmfns.c (create_client_leader_window): New function.
16746 (x_session_initialize): Call create_client_leader_window, take
16747 dpyinfo as argument.
16748
16749 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
16750
16751 * Makefile.in (xsmfns.o): Add more depenedencies.
16752
afa88464
DL
167532003-08-21 Dave Love <fx@gnu.org>
16754
16755 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
16756
f730033e
KH
167572003-08-21 Kenichi Handa <handa@m17n.org>
16758
16759 * term.c (term_init): Fix previous change; don't rely on the
16760 length of `buffer' if TERMINFO is defined.
16761
6dca786c
DL
167622003-08-20 Dave Love <fx@gnu.org>
16763
16764 * atimer.h: Include lisp.h.
16765
16766 * lisp.h (EMACS_LISP_H): New.
16767 (popup_activated_flag): Don't declare.
16768
16769 * alloca.c: Some merging with gnulib. Change logic and doc
16770 concerning (x)malloc/(x)free -- no longer Emacs-specific.
16771 [DO_BLOCK_INPUT]: Don't include lisp.h.
16772 (xmalloc, xfree): Declare.
16773 (malloc): Don't declare.
16774
0930c1a1 16775 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
16776 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
16777 atimer.h, blockinput.h.
16778
16779 * alloc.c (lisp_align_malloc): Change type of `aligned'.
16780
78819ebb 16781 * alloca.s: Remove.
6dca786c 16782
3a06a6d9
RS
167832003-08-19 Gerd Moellmann <gerd@gnu.org>
16784
16785 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
16786 use -lncurses.
16787
16788 * term.c (term_init): Use a buffer of size 4096 for tgetent since
16789 FreeBSD returns something longer than 2044. Abort if the end of
16790 the buffer is overwritten.
16791
27eeee55
MB
167922003-08-19 Miles Bader <miles@gnu.org>
16793
16794 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
16795
2f297815
GM
167962003-08-19 Gerd Moellmann <gerd@gnu.org>
16797
f4446bbf
GM
16798 * alloc.c (lisp_align_malloc): Check for memory full when
16799 allocating ablocks, which also avoids freeing a pointer into an
16800 ablocks structure.
16801
16802 * puresize.h (BASE_PURESIZE): Increase to 1100000.
16803
0930c1a1 16804 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 16805
0e7d7aae
RS
168062003-08-16 Richard M. Stallman <rms@gnu.org>
16807
16808 * editfns.c (Fencode_time): Doc fix.
16809
168102003-08-16 David Ponce <david@dponce.com>
16811
16812 * fileio.c (Fwrite_region): Fix conditional expression to issue
16813 the right message.
16814
b6189c3b 168152003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
16816
16817 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 16818 Set default value to 1.
0e7d7aae 16819
5d551295
KH
168202003-08-15 Kenichi Handa <handa@m17n.org>
16821
16822 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
16823 what autoscaled.
16824 (best_matching_font): Once we find a better scalable font, set
16825 non_scalable_has_exact_height_p to 1.
16826 (try_font_list): Call try_alternative_families to try any family
16827 with the given registry.
16828
1661e56b
AS
168292003-08-09 Andreas Schwab <schwab@suse.de>
16830
f29181dc
AS
16831 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
16832
1661e56b
AS
16833 * print.c (print_string): Fix printing of multibyte string with
16834 nontrivial printcharfun.
16835
465aa50a
JD
168362003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16837
16838 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
16839
16840 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
16841
e430e5ba
KH
168422003-07-31 Kenichi Handa <handa@m17n.org>
16843
16844 * process.c (read_process_output): Return the actually read bytes
16845 instead of the result of decoding.
16846
97e7188e
KH
168472003-07-31 Kenichi Handa <handa@m17n.org>
16848
16849 * xterm.h (struct x_bitmap_record): New member have_mask.
16850
16851 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
16852 to 0.
16853 (x_create_bitmap_from_file): Likewise.
16854 (x_destroy_bitmap): Check have_mask member before freeing a mask.
16855 (x_destroy_all_bitmaps): Likewise.
16856 (x_create_bitmap_mask): Set have_mask member to 1.
16857
b53094d6
RS
168582003-07-30 Richard M. Stallman <rms@gnu.org>
16859
16860 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
16861
631f2082
JD
168622003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16863
16864 * gtkutil.c (xg_mark_data): Update calls to mark_object.
16865
c855f2ca
RS
168662003-07-29 Richard M. Stallman <rms@gnu.org>
16867
16868 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
16869 Conditionalize XIM code on HAVE_XIM.
16870
16871 * fns.c (Fclear_string): New function.
16872 (syms_of_fns): defsubr it.
16873
b6189c3b 168742003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 16875
0930c1a1 16876 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 16877
29ea8ae9
SM
168782003-07-22 Stefan Monnier <monnier@cs.yale.edu>
16879
16880 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
16881
16882 * buffer.c (delete_all_overlays): New function.
16883 * buffer.h (delete_all_overlays): Declare.
16884 * coding.c (run_pre_post_conversion_on_str):
16885 * print.c (temp_output_buffer_setup):
16886 * fileio.c (Finsert_file_contents):
16887 * minibuf.c (get_minibuffer): Use it.
16888
1dd7ccf2
AC
168892003-07-22 Andrew Choi <akochoi@shaw.ca>
16890
16891 * unexmacosx.c (unexec_regions_sort_compare):
16892 (unexec_regions_merge): New functions. Sort and merge unexec
16893 regions before dumping them.
16894
f57bd967
DL
168952003-07-22 Dave Love <fx@gnu.org>
16896
16897 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
16898
7cdee936
SM
168992003-07-21 Stefan Monnier <monnier@cs.yale.edu>
16900
16901 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
16902 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
16903 MARKBIT as the gcmarkbit for strings.
16904
e50886d3
RS
169052003-07-21 Richard M. Stallman <rms@gnu.org>
16906
16907 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
16908
29ea8ae9 16909 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
16910 (syms_of_fns): Corresponding change.
16911
16912 * alloc.c (syms_of_alloc): Doc fixes.
16913
169142003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
16915
16916 * s/netbsd.h: Use -Wl syntax.
16917
fdc39b59
RS
169182003-07-17 Richard M. Stallman <rms@gnu.org>
16919
16920 * xterm.c (xim_initialize): Redo 6/24 change.
16921
9c53385f
SM
169222003-07-15 Stefan Monnier <monnier@cs.yale.edu>
16923
16924 * buffer.c (copy_overlays): Use EMACS_INT for positions.
16925 (Fswitch_to_buffer): Don't signal an error when switching to the same
16926 buffer in a dedicated window.
16927
16928 * alloc.c: Use bitmaps for cons, as was done for floats.
16929 (init_float, init_cons): Let the normal code allocate the first block.
16930 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
16931 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
16932 New macros.
16933 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
16934 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
16935 (live_cons_p): Check the pointer is not past the `conses' array.
16936 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
16937 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
16938 (survives_gc_p): Use CONS_MARKED_P and simplify.
16939 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
16940
dde13196
PE
169412003-07-13 Paul Eggert <eggert@twinsun.com>
16942
16943 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
16944 puts it into BSS instead, at least on Solaris 8 and 9.
16945 This is a valid optimization, and it may occur on other platforms,
16946 so Emacs should not assume that initializing a static variable to
16947 zero puts it into data.
16948 * alloc.c (pure, staticvec):
16949 Initialize these arrays to nonzero, so that they're not
16950 put into BSS by that optimization.
16951
a801bc34
SM
169522003-07-13 Stefan Monnier <monnier@cs.yale.edu>
16953
16954 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
16955 (lisp_align_malloc): Use posix_memalign is available.
16956 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
16957 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
16958 for consistency. Update users.
16959
0c8b2afa
RS
169602003-07-13 Richard M. Stallman <rms@gnu.org>
16961
16962 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
16963
668c2ab0
JB
169642003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
16965
9dd28cae 16966 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
668c2ab0
JB
16967 and use the Gtk+ function gtk_window_icon_from_file if available.
16968
16969 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
16970 handle mask of bitmaps.
16971 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
16972 mask property.
16973 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
16974
16975 * xterm.h (xg_set_icon): New function.
16976
800bebe3
RS
169772003-07-12 Paul Eggert <eggert@twinsun.com>
16978
16979 * unexelf.c (unexec): Consider a section to precede the .bss
16980 section if its addresses overlap that of .bss.
16981
69e38995
RS
169822003-07-12 Richard M. Stallman <rms@gnu.org>
16983
16984 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
16985
16986 * config.in (HAVE_CRTIN): Add #undef.
16987 (INLINE): Really inline only if OPTIMIZE is defined.
16988
16989 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
16990 END_FILES_1.
16991 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 16992 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
16993
16994 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
16995 (TERMINFO): Define.
16996 (LIBS_TERMCAP): Define.
16997 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
16998
16999 * xfns.c: Include libpng/png.h instead of png.h.
17000
f1d0c238
AS
170012003-07-11 Andreas Schwab <schwab@suse.de>
17002
17003 * buffer.c (modify_overlay): Update prototype.
17004 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
17005 Likewise.
17006
5f6bf5fe
SM
170072003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17008
17009 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
17010 (struct interval): Move to intervals.h.
17011 (struct Lisp_Marker): Use EMACS_INT for position info.
17012 (forward_point): Remove prototype of defunct function.
17013 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
17014 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
17015 (syms_of_textprop, set_text_properties): Remove prototypes that are
17016 already in intervals.h.
17017
17018 * intervals.h (struct interval): Move from lisp.h.
17019 Use EMACS_INT for position and size info.
17020
17021 * coding.c: Include intervals.h for Fset_text_properties.
17022
17023 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
17024 position and length information.
17025
2765b457
SM
170262003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17027
17028 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
17029 position and length information.
17030
2410d73a
SM
170312003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17032
17033 Change overlays_after and overlays_before so the overlays themselves
17034 are linked into lists, rather than using cons cells. After all each
17035 Lisp_Misc already occupies 5 words, so we can add a `next' field to
17036 Lisp_Overlay for free and save up one cons cell per overlay (not
17037 to mention one indirection when traversing the list of overlay).
17038
17039 * lisp.h (struct Lisp_Overlay): New field `next'.
17040
17041 * buffer.h (struct buffer): Change overlays_before and overlays_after
17042 from Lisp lists of overlays to pointers to overlays.
17043
17044 * buffer.c (overlay_strings, recenter_overlay_lists):
17045 Fix typo in eassert in last commit.
17046 (unchain_overlay): New function.
17047 (add_overlay_mod_hooklist): Use AREF.
17048 (copy_overlays, reset_buffer, overlays_at, overlays_in)
17049 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
17050 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
17051 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
17052 (report_overlay_modification, evaporate_overlays, init_buffer_once):
17053 Adjust to new type of overlays_(before|after).
17054
17055 * alloc.c (mark_object): Mark the new `next' field of overlays.
17056 (mark_buffer): Manually mark the overlays_(after|before) fields.
17057
17058 * coding.c (run_pre_post_conversion_on_str):
17059 * editfns.c (overlays_around):
17060 * xdisp.c (load_overlay_strings):
17061 * fileio.c (Finsert_file_contents):
17062 * indent.c (current_column):
17063 * insdel.c (signal_before_change, signal_after_change):
17064 * intervals.c (set_point_both):
17065 * print.c (temp_output_buffer_setup): Use new type for
17066 overlays_(before|after).
17067
04812929
SM
170682003-07-08 Stefan Monnier <monnier@cs.yale.edu>
17069
17070 * buffer.c (report_overlay_modification): Don't run hooks while
17071 traversing the list of overlays.
17072
17073 * buffer.h (struct buffer): Use an int for overlay_center.
17074 (overlays_at, evaporate_overlays, recenter_overlay_lists)
17075 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
17076
17077 * buffer.c (reset_buffer, recenter_overlay_lists)
17078 (adjust_overlays_for_insert, adjust_overlays_for_delete)
17079 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
17080 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
17081 (overlays_at, evaporate_overlays, recenter_overlay_lists)
17082 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
17083
17084 * xdisp.c (fast_find_position): Remove unused var.
17085
17086 * cmds.c (Qexpand_abbrev): New sym.
17087 (syms_of_cmds): Initialize it.
17088 (internal_self_insert): Use it to call expand-abbrev.
17089
2e7ecf15
KS
170902003-07-09 Kim F. Storm <storm@cua.dk>
17091
f9711de4 17092 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 17093 was configured with --without-xim.
42f81f64 17094 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 17095
c6de56a0
RS
170962003-07-07 Richard M. Stallman <rms@gnu.org>
17097
17098 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
17099
17100 * alloc.c (Fgarbage_collect): Doc fix.
17101
b6189c3b 171022003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
17103
17104 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
17105
bfe1a3f7
SM
171062003-07-06 Stefan Monnier <monnier@cs.yale.edu>
17107
04812929
SM
17108 * minibuf.c (read_minibuf): UNGCPRO before returning.
17109 (Ftry_completion, Fall_completions): Doc fix.
17110
bfe1a3f7
SM
17111 * alloc.c (live_float_p): Check that p is not past the `floats' array,
17112 now that `floats' is not the last element of the struct any more.
17113
ee79d1aa
JR
171142003-07-06 Jason Rumney <jasonr@gnu.org>
17115
17116 * w32term.h (ClipboardSequence_Proc): New type.
17117
17118 * w32fns.c (clipboard_sequence_fn): New variable.
17119 (globals_of_w32fns): Initialize it.
17120
17121 * w32select.c (last_clipboard_sequence_number): New variable.
17122 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
17123 number if possible.
17124
49723c04
SM
171252003-07-06 Stefan Monnier <monnier@cs.yale.edu>
17126
4698665f
SM
17127 * m/amdx86-64.h (MARKBIT):
17128 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
17129 MARKBIT and ARRAY_MARK_FLAG any more.
17130
17131 * m/hp800.h (XSETMARKBIT):
17132 * m/sr2k.h (XSETMARKBIT):
17133 * lisp.h (XSETMARKBIT): Remove unused macro.
17134
49723c04
SM
17135 * lisp.h (mark_object): Change prototype.
17136
17137 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
17138 (last_marked): Change accordingly.
17139 (mark_interval, mark_maybe_object, mark_maybe_pointer)
17140 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
17141 (mark_buffer): Update calls to mark_object.
17142
17143 * bytecode.c (mark_byte_stack):
17144 * fns.c (sweep_weak_table):
17145 * keyboard.c (mark_kboards): Update calls to mark_object.
17146
1d660eca
JR
171472003-07-06 Jason Rumney <jasonr@gnu.org>
17148
17149 * alloc.c (struct ablock): Only include padding when there is some.
17150
618b5ae4
SM
171512003-07-04 Stefan Monnier <monnier@cs.yale.edu>
17152
17153 * alloc.c (ALIGN): Add casts to simplify usage.
17154 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
17155 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
17156 (struct ablock, struct ablocks): New types.
17157 (free_ablock): New global var.
17158 (lisp_align_malloc, lisp_align_free): New functions.
17159 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
17160 (struct float_block): Reorder and add gcmarkbits.
17161 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
17162 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
17163 (init_float, make_float): Use lisp_align_malloc.
17164 (free_float, live_float_p): Don't use `type' any more.
17165 (make_float): Use FLOAT_UNMARK to access to mark bit.
17166 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
17167 Use FLOAT_MARKED_P to access the mark bit.
17168 (pure_alloc): Simplify use of ALIGN.
17169 (mark_object): Use FLOAT_MARK to access the mark bit.
17170 (gc_sweep): Use new macros to access the float's mark bit.
17171 (init_alloc_once): Init free_ablock.
17172
17173 * lisp.h (struct Lisp_Float): Remove unused field `type'.
17174
3ef06d12
SM
171752003-06-27 Stefan Monnier <monnier@cs.yale.edu>
17176
17177 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
17178 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
17179 (allocate_buffer): Move.
17180 (string_bytes): Don't mask markbit of `size_byte'.
17181 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17182 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
17183 Use the `size' field of buffers (rather than the `name' field) for
17184 the mark bit, as is done for all other vectorlike objects.
17185 Use the new macros to access the mark bit of vectorlike objects.
17186
e81043aa
RS
171872003-06-26 Richard M. Stallman <rms@gnu.org>
17188
17189 * puresize.h (BASE_PURESIZE): Increment base size.
17190
17191 * xdisp.c (fast_find_position): Enable Gerd's new definition.
17192
17193 * xterm.c (xim_initialize): Undo previous change.
17194
2d0834cc
SM
171952003-06-26 Stefan Monnier <monnier@cs.yale.edu>
17196
17197 * alloc.c (survives_gc_p): Simplify.
17198
17199 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
17200
17201 * window.c (Fset_window_dedicated_p): Simplify.
17202 (display_buffer_1): Don't raise the win from which minibuf was entered.
17203 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
17204 (Fminibuffer_selected_window): Simplify.
17205
17206 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
17207
17208 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
17209 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
17210
17211 * insdel.c (check_markers, adjust_markers_for_delete)
17212 (adjust_markers_for_insert, adjust_markers_for_replace)
17213 (prepare_to_modify_buffer, RESTORE_VALUE):
17214 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
17215 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
17216 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
17217 * alloc.c (Fmake_marker, free_marker, gc_sweep):
17218 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
17219 * editfns.c (save_excursion_restore, transpose_markers):
17220 * window.c (delete_window):
17221 * xdisp.c (message_dolog): Update for new types.
17222
d54ae3d8
JD
172232003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17224
a5f696ac
JD
17225 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
17226 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 17227 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
17228
17229 * frame.c (make_frame): Initialize default_face_done_p.
17230
17231 * frame.h (struct frame): Add default_face_done_p.
17232
d54ae3d8
JD
17233 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
17234 will be defined.
17235
2336fe58
SM
172362003-06-25 Stefan Monnier <monnier@cs.yale.edu>
17237
17238 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
17239 Initialize the new field `gcmarkbit'.
17240 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
17241 (mark_interval_tree): Don't mark the tree separately from the nodes.
17242 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
17243 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17244 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
17245
17246 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
17247 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
17248 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
17249 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
17250 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
17251
bcea31c2
DL
172522003-06-24 Dave Love <fx@gnu.org>
17253
17254 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
17255
17256 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
17257 from gnulib.
17258
2601f59e
RS
172592003-06-21 Richard M. Stallman <rms@gnu.org>
17260
17261 * fileio.c (Fwrite_region): Alternate messages
17262 for append and partial write.
17263
17264 * keyboard.c (read_key_sequence): When converting upcase fn key to
17265 downcase, update fkey and keytran so `backspace' gets translated.
17266
17267 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
17268
17269 * process.c (wait_reading_process_input): Don't signal SIGIO
17270 in batch mode.
17271
b5d2c621
KH
172722003-06-17 Kenichi Handa <handa@m17n.org>
17273
17274 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
17275 composite.h.
17276
17277 * xselect.c: Don't include charset.h, coding.h, composite.h.
17278 (Qforeign_selection): New variable.
17279 (syms_of_xselect): Intern and static it.
17280 (selection_data_to_lisp_data): Return a unibyte string made from
17281 data with `foreign-selection' text property.
17282
6793bc63
SM
172832003-06-15 Stefan Monnier <monnier@cs.yale.edu>
17284
17285 * termhooks.h (EVENT_INIT): New macro.
17286
17287 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
17288
17289 * alloc.c (mark_kboards): Move to keyboard.c.
17290
17291 * keyboard.c (record_asynch_buffer_change, read_avail_input):
17292 * xterm.c (x_dispatch_event):
17293 * xmenu.c (find_and_call_menu_selection):
17294 * xdisp.c (handle_tool_bar_click):
17295 * w32menu.c (menubar_selection_callback):
17296 * sysdep.c (kbd_input_ast, read_input_waiting):
17297 * msdos.c (dos_rawgetc):
17298 * macterm.c (mac_check_for_quit_char):
17299 * macmenu.c (menubar_selection_callback):
17300 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
17301 data to kbd_buffer_store_event.
17302
b3ea810c
KS
173032003-06-15 Kim F. Storm <storm@cua.dk>
17304
17305 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 17306 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 17307
b8f75eda
KG
173082003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
17309
17310 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
17311
ba92ce48
KH
173122003-06-12 Kenichi Handa <handa@m17n.org>
17313
17314 * fileio.c (Fwrite_region): Save and restore restriction.
17315
b80263be
DL
173162003-06-12 Dave Love <fx@gnu.org>
17317
17318 * alloca.c (alloca): Declare arg as size_t.
17319
6793bc63
SM
17320 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
17321 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 17322
b23c0a83
DL
173232003-06-11 Dave Love <fx@gnu.org>
17324
17325 * search.c (shrink_regexp_cache): Use xrealloc.
17326 (syms_of_search): Use xmalloc.
17327
700e47c2
KS
173282003-06-10 Kim F. Storm <storm@cua.dk>
17329
17330 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
17331 Adjust phys_cursor.x to be relative to window box, rather than
17332 text area before checking -- to ensure cursor is redrawn when
17333 exposing window.
17334 Note: This also fixes a similar (older) bug if display margins
17335 are present.
17336
f11aa0b2
KH
173372003-06-06 Kenichi Handa <handa@m17n.org>
17338
17339 * coding.c (encoding_buffer_size): If coding->type is
17340 coding_type_ccl, double magnification on CRLF encoding.
17341
3d143690
JR
173422003-06-06 Jason Rumney <jasonr@gnu.org>
17343
17344 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
17345 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
17346
17347 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
17348 Mac too.
17349
f16205ca
DL
173502003-06-05 Dave Love <fx@gnu.org>
17351
b23c0a83
DL
17352 * strftime.c: Merge changes from gnulib.
17353
f16205ca
DL
17354 * mktime.c (__mktime_internal): Merge changes from gnulib
17355 involving year 69 and dst2.
17356
17357 Changes to merge with gnulib version and be consistent with the
17358 autoconf test:
17359
6793bc63
SM
17360 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
17361 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
17362 [HAVE_LOCALE_H]: Include locale.h.
17363 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
17364
9b87a0bc
KS
173652003-06-05 Kim F. Storm <storm@cua.dk>
17366
17367 * window.c (coordinates_in_window): Convert X and Y to window
17368 relative coordinates inside mode-line and header-line parts.
17369 Convert X and Y to margin area relative coordinates inside left
17370 and right display margin parts.
17371
5a8a15ec
JR
173722003-06-05 Jason Rumney <jasonr@gnu.org>
17373
17374 * w32fns.c (add_system_logical_colors_to_map): New function.
17375 (Fx_open_connection): Use it.
17376
01ed8ff1
SM
173772003-06-04 Stefan Monnier <monnier@cs.yale.edu>
17378
17379 * process.c (allocate_pty): Revert part of the previous patch.
17380 (Faccept_process_output): Simplify.
17381
b427b65d
JR
173822003-06-04 Jason Rumney <jasonr@gnu.org>
17383
17384 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
17385
17386 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
17387 (lispy_mouse_wheel_names): Remove.
17388 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
17389 Always define drag_and_drop_syms.
17390
17391 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
17392 WHEEL_EVENT events.
17393
914a8c47
SM
173942003-06-03 Stefan Monnier <monnier@cs.yale.edu>
17395
01ed8ff1
SM
17396 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
17397
914a8c47
SM
17398 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
17399
adcb132c
JD
174002003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17401
17402 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
17403 menu item label.
17404
be781fa7
RS
174052003-06-03 Richard M. Stallman <rms@gnu.org>
17406
17407 * window.c (Fwindow_edges): Doc fix.
17408 (Fwindow_pixel_edges, Fwindow_inside_edges)
17409 (Fwindow_inside_pixel_edges): New functions.
17410 (syms_of_window): defsubr them.
17411
17412 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
17413 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
17414
914a8c47
SM
174152003-06-02 Stefan Monnier <monnier@cs.yale.edu>
17416
17417 * dispnew.c (Fsit_for): Don't lie about the number of args.
17418
5b07197a
DL
174192003-06-02 Dave Love <fx@gnu.org>
17420
17421 * callproc.c: Use HAVE_FCNTL_H, not USG5.
17422 (syms_of_callproc) <process-environment>: Doc fix.
17423
17424 * doc.c: Use HAVE_FCNTL_H, not USG5.
17425
17426 * xfaces.c (font_rescale_ratio): Fix for K&R.
17427
17428 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
17429
17430 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
17431
17432 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
17433
17434 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
17435 (xg_create_frame_widgets): Use ENCODE_UTF_8.
17436
d7107586 17437 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
17438
17439 * xmenu.c (ENCODE_MENU_STRING): New.
17440 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
17441 Use it.
17442
17443 * coding.h (ENCODE_UTF_8): New.
17444 (Qutf_8): Declare.
17445
17446 * coding.c (Qutf_8): New.
17447 (syms_of_coding): Intern it.
17448
17449 * fns.c: Doc fixes.
17450
7335b336
KH
174512003-06-02 Kenichi Handa <handa@m17n.org>
17452
17453 * buffer.c (Fset_buffer_multibyte): Fix previous change.
17454
914a8c47
SM
174552003-06-01 Stefan Monnier <monnier@cs.yale.edu>
17456
17457 * lread.c (openp): Make sure STR is a string.
17458
9862c135
JR
174592003-06-01 David Ponce <david@dponce.com>
17460
cab27d04 17461 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
17462 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
17463
17464 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
17465 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
17466 (discard_mouse_events): Discard WHEEL_EVENT events too.
17467 (lispy_wheel_names, wheel_syms): New.
17468 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 17469 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 17470 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
17471
17472 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
17473 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
17474 WHEEL_EVENT events.
17475
f984e73e
JPW
174762003-05-31 John Paul Wallington <jpw@gnu.org>
17477
17478 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
17479 timer are in lisp/emacs-lisp.
17480
1efcd78f
KH
174812003-05-31 Kenichi Handa <handa@m17n.org>
17482
458c8af4
KH
17483 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
17484 region when a buffer is changed to unibyte.
17485
1efcd78f
KH
17486 * charset.h (VALID_LEADING_CODE_P): New macro.
17487 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
17488
778e2804
KH
17489 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
17490 is nonzero, accept multibyte form of eight-bit-control chars.
17491 (decode_composition_emacs_mule): Likewise.
17492 (decode_coding_emacs_mule): Likewise.
17493 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
17494 multibyte form of eight-bit-control chars.
17495
17496 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
17497 (Finsert_file_contents): If coding-system-for-read is bound to
17498 Qauto_save_coding, use the coding system emacs-mule with special
17499 setting for recovering a file.
17500 (choose_write_coding_system): On auto saving, use the coding
17501 system emacs-mule with special setting for auto saving.
17502 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
17503
034060e4
KH
175042003-05-30 Kenichi Handa <handa@m17n.org>
17505
17506 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
17507 properly before calling ccl_driver.
17508
778e2804 17509 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 17510
cab27d04 17511 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
17512 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
17513 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
17514
595f5aa5
GM
175152003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
17516
17517 * xfaces.c (realize_default_face): Do not abort if lface is
17518 non-existent - reverts change from 2003-05-19.
17519
103e0180
KH
175202003-05-29 Kenichi Handa <handa@m17n.org>
17521
17522 * coding.c (decode_coding_iso2022): Pay attention to the byte
17523 sequence of CTEXT extended segment, and retain those bytes as is.
17524
175252003-05-28 Kenichi Handa <handa@m17n.org>
17526
cab27d04 17527 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
17528 of CODING_REPLACEMENT_CHARACTER.
17529 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
17530 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
17531 check this flag on encoding.
cab27d04
SM
17532 (encode_coding_sjis_big5):
17533 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
17534 (Fset_terminal_coding_system_internal):
17535 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
17536 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
17537
17538 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
17539 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17540 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
17541
ff6a3bfb 175422003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 17543
ff6a3bfb
RS
17544 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
17545
17546 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 17547
1963c428
KS
175482003-05-28 Kim F. Storm <storm@cua.dk>
17549
17550 * xdisp.c (expose_window): Fix error in calculation of
17551 window relative coordinates of area to redisplay.
17552
2b5d4601
JR
175532003-05-27 Jason Rumney <jasonr@gnu.org>
17554
17555 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
17556
1c64a4a2
JB
175572003-05-27 David Ponce <david@dponce.com>
17558
17559 Handle W32 mouse wheel events as mouse click events, like in X.
17560
17561 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
17562 MOUSE_WHEEL_EVENT anymore.
17563
17564 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
17565 Scrolling down/up the mouse wheel is respectively mapped to mouse
17566 button 4 and 5.
17567 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
17568 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
17569 WM_MOUSEWHEEL events.
17570
2d031b89
AS
175712003-05-27 Andreas Schwab <schwab@suse.de>
17572
20464fdf
AS
17573 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
17574
2d031b89
AS
17575 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
17576 partially visible line.
17577
17578 * alloc.c (Fgarbage_collect): Fix last change.
17579
97bc76d4
JPW
175802003-05-26 John Paul Wallington <jpw@gnu.org>
17581
17582 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
17583
56613f06
SM
175842003-05-25 Stefan Monnier <monnier@cs.yale.edu>
17585
17586 * window.c (Fset_window_buffer): Add type of `keep_margins'.
17587 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
17588
17589 * window.h (window_box_text_cols): Declare.
17590
17591 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
17592 (x_draw_vertical_border): Remove unused var `f'.
17593
17594 * xfaces.c (build_scalable_font_name): Remove `unused var
17595 pixel_size' warning.
17596
17597 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
17598
17599 * unexelf.c (unexec): Remove `unused var n' warning.
17600
17601 * strftime.c (my_strftime_localtime_r): Remove `defined but
17602 unused' warning.
17603
17604 * process.c (allocate_pty): Remove `unused var stb' and
17605 `cp might be used uninitialized' warnings.
17606
17607 * dispnew.c (mode_line_string): Remove unused var `f'.
17608
17609 * coding.c (find_safe_codings): Remove unused var `i'.
17610
17611 * bytecode.c (Fbyte_code): Remove `unused val' warning.
17612
17613 * buffer.c (Fkill_buffer): Remove unused var `list'.
17614
17615 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
17616
93421a1f
JD
176172003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17618
17619 * frame.c (make_frame): Condition want_fullscreen with
17620 HAVE_WINDOW_SYSTEM.
17621
c4b8aebc
JB
176222003-05-25 Juanma Barranquero <lektu@terra.es>
17623
17624 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
17625 (Fwindow_scroll_bars): Fix typo in docstring.
17626
0416870b
KS
176272003-05-24 Kim F. Storm <storm@cua.dk>
17628
17629 The following changes serve several purposes:
17630
17631 1) Swap the position of fringes and display margins in windows, i.e.
17632 the fringes are now displayed between the margins and the text area
17633 (by default).
17634
17635 2) Allow fringe and scroll bar parameters to be set per-buffer and
17636 per-window (like display margins). Such settings are now stored
17637 in window configurations, preserved when frames are resized, and
9018a88e 17638 copied when windows are split vertically or horizontally.
0416870b
KS
17639 Several bugs related to display margins have been fixed.
17640
17641 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 17642
0416870b 17643 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5e1a6e32 17644 rather than FRAME_WIDTH (FRAME_FONT (f)).
0416870b
KS
17645
17646 5) Introduce a consistent naming of variables, members and macros
17647 depending on whether their value is measured in pixels or in
17648 canonical columns/lines. Pixel dimensions are named *_width and
17649 *_height, while canonical columns/lines are named *_cols and
17650 *_lines. Pixel positions are named *_x and *_y, while column/line
17651 positions are named *_col and *_line.
17652
17653 6) Consolidate more of the X, W32, and MAC gui code by moving
17654 common data into struct frame, and generalize it for the non-gui
17655 case by using suitable defaults.
17656
17657 7) Cleanup and consolidate the macros controlling frame and window
17658 layout into frame.h and window.h, and generalize the use of the
17659 various window_box_* functions (enhanced to handle the new fringe
17660 position and the per-window fringe and scroll bar settings).
17661
17662 * frame.h (struct frame): Rename members height to text_lines,
17663 width to text_cols, window_height to total_lines, window_width to
17664 total_cols, new_height to new_text_lines, new_width to
17665 new_text_cols. All uses changed.
17666 (struct frame): New members which consolidate common members of
17667 x_output, w32_output, and mac_output structures: left_pos,
17668 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
17669 win_gravity, size_hint_flags, border_width, internal_border_width,
17670 line_height, fringe_cols, left_fringe_width, right_fringe_width,
17671 want_fullscreen. All uses changed.
17672 (struct frame): New member column_width contaning the canonical
17673 column width, analogue to line_height. All uses changed.
17674 (struct frame): Rename members scroll_bar_pixel_width to
17675 config_scroll_bar_width, and scroll_bar_cols to
17676 config_scroll_bar_cols. All uses changed.
17677 (struct frame): New member scroll_bar_actual_width which
17678 consolidates and renames the vertical_scroll_bar_extra member of
17679 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 17680 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
17681 from x/w32/macterm.h files. All uses changed. Also change code
17682 which referred to f->output_data...->pixel_height.
cab27d04 17683 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 17684 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 17685 which referred to f->output_data...->pixel_width.
cab27d04 17686 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 17687 Also change code which referred to f->height.
cab27d04 17688 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
17689 Also change code which referred to f->width.
17690 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
17691 to update new_text_lines and new_text_cols members directly.
cab27d04 17692 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 17693 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 17694 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
17695 FRAME_SCROLL_BAR_COLS. All uses changed.
17696 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 17697 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
17698 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
17699 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
17700 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
17701 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
17702 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
17703 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
17704 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
17705 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
17706 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
17707 Unconditionally return line_height member (it now has proper value
17708 also for non-window frames).
17709 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
17710 return new column_width member (rather than the default font width).
17711 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 17712 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
17713 from x/w32/macterm.h files. Unconditionally return corresponding
17714 member of frame structure (they now have proper values also for
17715 non-window frames).
cab27d04 17716 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
17717 Calculate return value from left and right widths.
17718 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
17719 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
17720 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
17721 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
17722 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
17723 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
17724 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 17725 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 17726 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 17727 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 17728 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 17729 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 17730 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 17731 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 17732 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 17733 consolidated from x/mac/w32term.h.
cab27d04 17734 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 17735 consolidated from x/mac/w32term.h.
cab27d04 17736 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 17737 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 17738 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
17739 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
17740
17741 * window.h (struct window): Rename members left to left_col,
17742 top to top_line, height to total_lines, width to total_cols,
17743 left_margin_width to left_margin_cols, right_margin_width to
17744 right_margin_cols, orig_height to orig_total_lines, orig_top to
17745 orig_top_line. All uses changed.
17746 (struct window): New members left_fringe_width, right_fringe_width,
17747 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
17748 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
17749 New macros primarily used to simplify other macros.
17750 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
17751 referred to XINT (w->width).
17752 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
17753 referred to XINT (w->height).
17754 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
17755 referred to XINT (w->width) * canon_x_unit.
17756 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
17757 referred to XINT (w->height) * canon_y_unit.
17758 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
17759 referred to XINT (w->left).
cab27d04 17760 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
17761 all uses and code that referred to XINT (w->left) + XINT (w->width).
17762 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
17763 referred to XINT (w->top).
17764 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
17765 referred to XINT (w->top) + XINT (w->height).
17766 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
17767 referred to XINT (w->left) * canon_x_unit.
17768 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
17769 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
17770 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
17771 referred to XINT (w->top) * canon_y_unit.
17772 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
17773 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
17774 (WINDOW_LEFTMOST_P): New macro.
cab27d04 17775 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 17776 All uses changed.
cab27d04 17777 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 17778 All uses changed.
cab27d04 17779 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
17780 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
17781 Do not exclude left fringe width.
cab27d04 17782 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
17783 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
17784 Do not exclude fringe widths.
17785 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
17786 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
17787 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
17788 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
17789 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
17790 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
17791 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
17792 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
17793 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
17794 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
17795 New macros. Change code which referenced corresponding
17796 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
17797 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
17798 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
17799 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
17800 allow per-window scroll-bar settings.
17801 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
17802 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
17803 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
17804 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
17805 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
17806 FRAME_SCROLL_BAR_WIDTH.
17807 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 17808 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 17809 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 17810 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 17811 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 17812 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 17813 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
17814 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
17815 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
17816 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
17817 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
17818 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 17819 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 17820 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
17821 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
17822 (window_from_coordinates): Update prototype.
17823 (Fset_window_buffer): Update EXFUN.
17824 (set_window_buffer): Update prototype.
9018a88e 17825
0416870b 17826 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 17827 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
17828 changed.
17829 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
17830 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
17831 internal_border_width is now set to 0 for non-window frames.
17832 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
17833 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
17834 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
17835 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
17836 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
17837 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
17838 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
17839 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
17840 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 17841 Move to window.h and renamed [see window.h changes].
0416870b
KS
17842 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
17843 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
17844 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
17845 Use WINDOW_TOTAL_LINES.
0416870b
KS
17846 (frame_update_line_height): Remove prototype.
17847
17848 * buffer.h (struct buffer): Rename members measured in columns:
17849 left_margin_width to left_margin_cols, right_margin_width to
17850 right_margin_cols. All uses changed.
17851 New members left_fringe_width, right_fringe_width,
17852 fringes_outside_margins for per-buffer fringe settings.
17853 New members scroll_bar_width and vertical_scroll_bar_type for
17854 per-buffer scroll bar settings.
17855
17856 * buffer.c (init_buffer_once): Set buffer_defaults and
17857 buffer_local_flags for new buffer-local variables
17858 left_fringe_width, right_fringe_width, fringes_outside_margins,
17859 scroll_bar_width, and vertical_scroll_bar_type.
17860 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
17861 default-* variables for them.
17862
17863 * dispnew.c: Make (many) trivial substitutions for renamed and
17864 new macros in dispextern.h, frame.h and window.h.
17865 (mode_line_string): No need to adjust width for mode lines, as it
17866 is already adjusted by the caller.
17867 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 17868
0416870b
KS
17869 * frame.c: Make (many) trivial substitutions for renamed and
17870 new macros in dispextern.h, frame.h and window.h.
17871 (make_frame): Initialize left_fringe_width, right_fringe_width,
17872 fringe_cols, scroll_bar_actual_width, border_width,
17873 internal_border_width, column_width, line_height, x_pixels_diff,
17874 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
17875 members with values suitable for a non-window frames.
17876
17877 * gtkutil.c: Make (many) trivial substitutions for renamed and
17878 new macros in dispextern.h, frame.h and window.h.
9018a88e 17879
0416870b
KS
17880 * indent.c: Make (few) trivial substitutions for renamed and
17881 new macros in dispextern.h, frame.h and window.h.
17882
17883 * keyboard.c: Make (many) trivial substitutions for renamed and
17884 new macros in dispextern.h, frame.h and window.h.
17885 (make_lispy_event): Use window positions returned from
17886 window_from_coordinates when constructing the lisp event for
17887 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
17888 (incorrect) values locally.
17889 (make_lispy_movement): Use window positions returned from
17890 window_from_coordinates when constructing the lisp event, rather
17891 than calculating (incorrect) values locally.
17892
17893 * scroll.c: Make (some) trivial substitutions for renamed and
17894 new macros in dispextern.h, frame.h and window.h.
17895
17896 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
17897 scroll-bars.
17898
17899 * sysdep.c: Make (few) trivial substitutions for renamed and
17900 new macros in dispextern.h, frame.h and window.h.
17901
17902 * term.c: Make (some) trivial substitutions for renamed and
17903 new macros in dispextern.h, frame.h and window.h.
17904
17905 * widget.c: Make (few) trivial substitutions for renamed and
17906 new macros in dispextern.h, frame.h and window.h.
17907
17908 * window.c: Make (many) trivial substitutions for renamed and
17909 new macros in dispextern.h, frame.h and window.h.
17910 (make_window): Initialize new members
17911 left_margin_cols, right_margin_cols, left_fringe_width,
17912 right_fringe_width, fringes_outside_margins, scroll_bar_width,
17913 and vertical_scroll_bar_type.
cab27d04 17914 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 17915 and per-window fringes and scroll-bars.
0416870b 17916 Fix bug related to incorrectly adjusting coordinates by
9018a88e 17917 frame's internal_border_width (the effect normally negible since
0416870b
KS
17918 the internal_border_width is typically 0 or 1 pixel, but very
17919 noticeable for an internal_border_width of e.g. 25 pixels).
17920 Upon successful return (other than ON_NOTHING), the coordinates
17921 are now always properly converted to window relative for the
17922 given display element.
17923 (window_from_coordinates): Add new parameters wx and wy to
17924 return the window relative x and y position in the returned
17925 window and part. A null arg means, don't return the position.
17926 All callers changed.
17927 (adjust_window_margins): New function which may reduce the width
17928 of the display margins if a window's text area is too small after
17929 resizing or splitting windows.
17930 (size_window): Fix bug that did not account for display margin
17931 widths when checking the minimum width of a window; use
17932 adjust_window_margins.
17933 (set_window_buffer): Call Fset_window_fringes and
17934 Fset_window_scroll_bars to setup per-window elements.
17935 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
17936 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
17937 (e.g. after splitting a window or resizing the frame).
17938 All callers changed.
0416870b
KS
17939 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
17940 (Fsplit_window): Duplicate original window's display margin,
17941 fringe, and scroll-bar settings; then call Fset_window_buffer with
17942 KEEP_MARGINS non-nil. This fixes a bug which caused a split
17943 window to only preserve the display margins in one of the windows.
5e1a6e32 17944 When splitting horizontally, call adjust_window_margins on both
0416870b 17945 windows to ensure that the text area of the new windows is non too
f9711de4 17946 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
17947 width of the split window was less than the width of the display
17948 margins.
cab27d04 17949 (window_box_text_cols): Rename from window_internal_width.
9018a88e 17950 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
17951 Fix bug that caused vertical separator to be subtracted also on
17952 window frames. Fix another bug that did not reduce the returned
17953 value by the columns used for display margins.
17954 (window_scroll_line_based): Fix bug related to scrolling too much
17955 when display margins are present (implicitly fixed by the fix to
17956 window_box_text_cols).
17957 (scroll_left, scroll_right): Fix bug related to scrolling too far
17958 by default when display margins are present (implicitly fixed by
17959 the fix to window_box_text_cols).
17960 (struct saved_window): Rename members left to left_col, top to
17961 top_line, width to total_cols, height to total_lines, orig_top to
17962 orig_top_line, orig_height to orig_total_lines. All uses changed.
17963 New members left_margin_cols, right_margin_cols,
17964 left_fringe_width, right_fringe_width, fringes_outside_margins,
17965 scroll_bar_width, and vertical_scroll_bar_type for saving
17966 per-window display elements.
17967 (Fset_window_configuration): Restore display margins, fringes,
17968 and scroll bar settings. This fixes a bug which caused display
17969 margins to be discarded when saving and restoring a window
17970 configuration.
17971 (save_window_save): Save display margins, fringes, and scroll bar
17972 settings. This fixes a bug which caused display margins to be
17973 discarded when saving and restoring a window configuration.
17974 (Fset_window_margins): Do nothing if display margins are not
17975 really changed. Otherwise, call adjust_window_margins to ensure
17976 the text area doesn't get too narrow. This fixes a bug which
f9711de4 17977 could cause Emacs to trap if setting display margins wider than
0416870b
KS
17978 the width of the window.
17979 (Fset_window_fringes): New defun to allow user to specifically set
17980 this window's fringe widths and position vs. display margins.
cab27d04 17981 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
17982 (Fset_window_scroll_bars): New defun to allow user to specifically
17983 set this window's scroll bar width and position.
17984 (Fwindow_scroll_bars): New defun to return window's actual scroll
17985 bar settings.
17986 (compare_window_configurations): Also compare display margins,
17987 fringes, and scroll bar settings.
17988 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
17989
17990 * xdisp.c: Make (many) trivial substitutions for renamed and
17991 new macros in dispextern.h, frame.h and window.h.
17992 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 17993 and new fringe vs. display margin position. Note that returned
0416870b
KS
17994 value is no longer guaranteed to be a whole multiple of the frame
17995 column width, since per-window fringes may now be any width.
17996 (window_box_left_offset): New function like window_box_left, but
17997 value is relative to left border of window (rather than frame).
17998 (window_box_right_offset): New function like window_box_right,
17999 but value is relative to left border of window.
18000 (window_box_left): Adapt to per-window fringes and scroll bars,
18001 and new fringe vs. display margin position. Simplify by using
18002 WINDOW_LEFT_EDGE_X and window_box_left_offset.
18003 (window_box): Allow null args for unnecessary return values;
18004 change/simplify relevant callers.
18005 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
18006 and new fringe vs. display margin position.
18007 Use window_box_left_offset and window_box_right_offset
0416870b 18008 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
18009 scroll bars, and new fringe vs. display margin position.
18010 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
18011 (draw_fringe_bitmap): Rework to handle per-window fringes and new
18012 fringe vs. display margin position.
18013 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
18014 (redisplay_window): Adapt to per-window scroll bars.
18015 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
18016 bars, and new fringe vs. display margin position.
18017 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 18018 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
18019 bars, and new fringe vs. display margin position. Fix bug which
18020 increased total width of full_width rows by width of scroll bars
18021 although window's total width already includes that.
18022 (x_fix_overlapping_area): Simplify using window_box_left_offset.
18023 (expose_area): Simplify using window_box_left_offset.
18024 (x_draw_vertical_border): Handle per-window scroll bar settings,
18025 mixing windows with left, right and no scroll bars.
18026
18027 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
18028 where it's used in x_list_fonts (for clarity).
18029 (frame_update_line_height): Remove unused function; functionality
18030 is now done directly when setting the default font in x_set_font.
18031
18032 * xfns.c: Make (many) trivial substitutions for renamed and
18033 new macros in dispextern.h, frame.h and window.h.
18034
18035 * xmenu.c: Make (some) trivial substitutions for renamed and
18036 new macros in dispextern.h, frame.h and window.h.
18037
18038 * xterm.h (struct x_output): Move members left_pos, top_pos,
18039 border_width, pixel_height, pixel_width, line_height,
18040 internal_border_width, vertical_scroll_bar_extra,
18041 left_fringe_width, right_fringe_width, fringe_cols,
18042 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18043 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
18044 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18045 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18046 (PIXEL_WIDTH, PIXEL_HEIGHT)
18047 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 18048 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
18049 frame.h and renamed [see frame.h changes].
18050 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18051 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 18052 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 18053 and renamed [see frame.h changes].
9018a88e 18054
0416870b
KS
18055 * xterm.c: Make (several) trivial substitutions for renamed and
18056 new macros in dispextern.h, frame.h and window.h.
cab27d04 18057 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
18058 (scroll_run): Adapt to new fringe position.
18059 (glyph_rect): Use window coordinates returned from
18060 window_from_coordinates rather than frame_to_window_pixel_xy.
18061 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18062 scroll-bars.
18063 (handle_one_xevent): Simplify a USE_GTK conditional.
18064 (x_clip_to_row): Remove superfluous whole_line_p arg and code
18065 (fringes are now inside margins, i.e. always in the clipping area).
18066 All callers changed.
18067 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18068 directly, then call compute_fringe_widths. Don't call
18069 frame_update_line_height.
18070
18071 * w32term.h (struct w32_output): Move members left_pos, top_pos,
18072 border_width, pixel_height, pixel_width, line_height,
18073 internal_border_width, vertical_scroll_bar_extra,
18074 left_fringe_width, right_fringe_width, fringe_cols,
18075 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18076 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
18077 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18078 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18079 (PIXEL_WIDTH, PIXEL_HEIGHT)
18080 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 18081 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
18082 frame.h and renamed [see frame.h changes].
18083 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18084 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 18085 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 18086 and renamed [see frame.h changes].
9018a88e 18087
0416870b
KS
18088 * w32term.c: Make (several) trivial substitutions for renamed and
18089 new macros in dispextern.h, frame.h and window.h.
cab27d04 18090 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
18091 (glyph_rect): Use window coordinates returned from
18092 window_from_coordinates rather than frame_to_window_pixel_xy.
18093 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18094 scroll-bars.
18095 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
18096 (fringes are now inside margins, i.e. always in the clipping area).
18097 All callers changed.
18098 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18099 directly, then call compute_fringe_widths. Don't call
18100 frame_update_line_height.
18101
18102 * w32console.c: Make (few) trivial substitutions for renamed and
18103 new macros in dispextern.h, frame.h and window.h.
18104
18105 * w32fns.c: Make (many) trivial substitutions for renamed and
18106 new macros in dispextern.h, frame.h and window.h.
18107
18108 * w32menu.c: Make (few) trivial substitutions for renamed and
18109 new macros in dispextern.h, frame.h and window.h.
18110
18111 * macterm.h (struct mac_output): Move members left_pos, top_pos,
18112 border_width, pixel_height, pixel_width, line_height,
18113 internal_border_width, vertical_scroll_bar_extra,
18114 left_fringe_width, right_fringe_width, fringe_cols,
18115 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18116 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
18117 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18118 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18119 (PIXEL_WIDTH, PIXEL_HEIGHT)
18120 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 18121 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
18122 frame.h and renamed [see frame.h changes].
18123 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18124 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 18125 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 18126 and renamed [see frame.h changes].
9018a88e 18127
0416870b
KS
18128 * macterm.c: Make (several) trivial substitutions for renamed and
18129 new macros in dispextern.h, frame.h and window.h.
cab27d04 18130 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
18131 (glyph_rect): Use window coordinates returned from
18132 window_from_coordinates rather than frame_to_window_pixel_xy.
18133 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18134 scroll-bars.
18135 (x_clip_to_row): Remove superfluous whole_line_p arg and code
18136 (fringes are now inside margins, i.e. always in the clipping area).
18137 All callers changed.
18138 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18139 directly, then call compute_fringe_widths. Don't call
18140 frame_update_line_height.
18141
18142 * macfns.c: Make (several) trivial substitutions for renamed and
18143 new macros in dispextern.h, frame.h and window.h.
9018a88e 18144 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
18145
18146 * macmenu.c: Make (few) trivial substitutions for renamed and
18147 new macros in dispextern.h, frame.h and window.h.
18148
18149 * msdos.h (struct x_output): Remove members left_pos, top_pos,
18150 and line_height, and use corresponding new members in struct
18151 frame. All uses changed.
18152 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
18153 superseeded by corresponding macros in frame.h.
18154
18155 * msdos.c: Make (several) trivial substitutions for renamed and
18156 new macros in dispextern.h, frame.h and window.h.
18157 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 18158 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
18159 (internal_terminal_init): No need to initialize line_height here;
18160 it now defaults to 1.
18161
9018a88e
SM
181622003-05-24 Stefan Monnier <monnier@cs.yale.edu>
18163
18164 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
18165 dropping `down' events.
18166
016bd3c0
AS
181672003-05-24 Andreas Schwab <schwab@suse.de>
18168
18169 * coding.c (find_safe_codings): Fix last change.
18170
4dacadcc
TTN
181712003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
18172
18173 * xfns.c (x_window): Fix typo from 2003-05-21 change.
18174
319830ce
SM
181752003-05-23 Stefan Monnier <monnier@cs.yale.edu>
18176
9018a88e
SM
18177 * xdisp.c (display_mode_element): Increase max depth.
18178 Simplify the error handling code. Use a different error string
18179 for the case where we hit the depth limit.
18180
319830ce
SM
18181 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
18182
18183 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
18184
181852003-05-21 Stefan Monnier <monnier@cs.yale.edu>
18186
18187 * intervals.c (get_local_map): Don't get char-property of previous
18188 point any more: get_pos_property already does it and better.
18189
c67de8ba
DL
181902003-05-21 Dave Love <fx@gnu.org>
18191
18192 [Merged from unicode branch.]
18193
18194 * xfns.c (x_window, x_window): Use use_xim.
18195
18196 * xterm.c (use_xim): Initialize.
18197 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18198 (x_term_init): Maybe set use_xim.
18199
18200 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18201
edd3ff1d
JR
182022003-05-21 Jason Rumney <jasonr@gnu.org>
18203
18204 * unexw32.c (_start): Remove _fmode initialization.
18205
18206 * emacs.c (main) [WINDOWSNT]: Move it here.
18207
463f55ee
DL
182082003-05-20 Dave Love <fx@gnu.org>
18209
18210 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
18211
af253914
RS
182122003-05-19 Richard M. Stallman <rms@gnu.org>
18213
18214 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
18215 as value for QCfont attribute.
18216 (realize_default_face): lface should already exist; crash if not.
18217 Specify 0 for FORCE_P when calling set_lface_from_font_name.
18218
18219 * frame.c (Fignore_event): Doc fix.
18220
1d211019
KH
182212003-05-19 Kenichi Handa <handa@m17n.org>
18222
18223 * coding.c (decode_coding_string): Handle post-read-conversion
18224 even if the coding doesn't require decoding.
18225
4dd68254
RS
182262003-05-18 Richard M. Stallman <rms@gnu.org>
18227
18228 * callproc.c (Fcall_process_region): Doc fix.
18229
14d87dc9
SM
182302003-05-17 Stefan Monnier <monnier@cs.yale.edu>
18231
deca5d96
SM
18232 * lread.c (Fload): Print a message if package is obsolete.
18233
14d87dc9
SM
18234 * window.c (Fselect_window): Add optional `norecord' arg.
18235 (select_window_1): Fold into Fselect_window.
18236 (select_window_norecord): New function.
18237 (temp_output_buffer_show): Use it. Preserve current buffer.
18238
18239 * window.h (Fselect_window): Update declaration.
18240
18241 * window.c (delete_window, Fother_window, Fset_window_configuration):
18242 * minibuf.c (read_minibuf):
18243 * macterm.c (x_new_focus_frame):
18244 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
18245 * callint.c (Fcall_interactively):
18246 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
18247
18248 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
18249
78f52183
DK
182502003-05-17 David Kastrup <dak@gnu.org>
18251
18252 * process.c (read_process_output): Back out change from 2003-03-09.
18253
14d87dc9
SM
182542003-05-17 Stefan Monnier <monnier@cs.yale.edu>
18255
18256 * editfns.c (get_pos_property): Don't assume that `object' = nil.
18257
18258 * textprop.c (text_property_stickiness): New arg `buffer'.
18259
18260 * intervals.h (text_property_stickiness): New arg `buffer'.
18261 (get_pos_property): Declare.
18262
18263 * intervals.c (get_local_map): Use get_pos_property, to obey
18264 stickiness and empty overlays.
18265 (create_root_interval, graft_intervals_into_buffer): Use BEG.
18266 (merge_properties, intervals_equal, merge_properties_sticky):
18267 Use XCAR, XCDR.
18268 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
18269
1fd1cc2f
RS
182702003-05-17 Richard M. Stallman <rms@gnu.org>
18271
4f9f637a
RS
18272 * minibuf.c (read_minibuf): If buffer is empty, record the default
18273 in the history.
18274 (Fminibuffer_complete_word): When deleting the overlap, take account
18275 of its real position.
18276
18277 * fns.c (map_char_table): Fix previous change.
18278
1fd1cc2f
RS
18279 * syntax.c (find_defun_start):
18280 When open_paren_in_column_0_is_defun_start,
18281 return beginning of buffer.
18282
18283 * lisp.h (map_char_table): Declare added arg.
18284
18285 * fns.c (map_char_table): New arg TABLE gets the master table.
18286 All calls changed.
18287 Process default and inheritance, resorting to Faref if necessary.
18288
18289 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18290 (Faccessible_keymaps): Pass new arg to map_char_table.
18291
18292 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
18293
18294 * casetab.c (set_case_table): Pass new arg to map_char_table.
18295
18296 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
18297
18298 * lisp.h (specbinding_func): New typedef.
18299 (struct specbinding): Use specbinding_func, to put the `volatile'
18300 in the right place.
18301
18302 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
18303 to avoid GCC warning.
14d87dc9 18304
b6189c3b 183052003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 18306
14d87dc9 18307 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 18308
35fb885d
SM
183092003-05-15 Stefan Monnier <monnier@cs.yale.edu>
18310
18311 * keyboard.c (apply_modifiers): Don't fill the other cache.
18312
9a274fbd
SM
183132003-05-14 Stefan Monnier <monnier@cs.yale.edu>
18314
c55b5fad
SM
18315 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
18316
9a274fbd
SM
18317 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
18318 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
18319 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
18320 (Fset_window_configuration, Fcurrent_window_configuration)
18321 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
18322 (Fpos_visible_in_window_p, mark_window_cursors_off)
18323 (window_internal_height, window_internal_width, Frecenter)
18324 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
18325 (replace_buffer_in_all_windows, init_window_once, init_window)
18326 (syms_of_window, keys_of_window): Move from lisp.h.
18327 * lisp.h: Move window.c declarations to window.h.
18328
18329 * bytecode.c: Include window.h.
18330 * emacs.c: Include window.h.
18331
14d87dc9 18332 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
18333 (keyremap): Add `parent' field.
18334 (keyremap_step): Use it. Remove `parent' argument.
18335 (read_key_sequence): Setup and use the new `parent' field.
18336
fd93e331
SM
183372003-05-11 Stefan Monnier <monnier@cs.yale.edu>
18338
18339 * keyboard.c (adjust_point_for_property): Ensure termination.
18340
1c4001a1
SM
183412003-05-10 Stefan Monnier <monnier@cs.yale.edu>
18342
18343 * keyboard.c (follow_key): Remove dead variable `did_meta'.
18344 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
18345 duplicated handling of function-key-map and key-translation-map
18346 in read_key_sequence.
18347 (read_key_sequence): Use them.
18348
18349 * keyboard.c (adjust_point_for_property): Try harder to move point
18350 to the non-sticky end of an invisible property.
18351
18352 * xdisp.c (single_display_prop_intangible_p): Make `space' display
18353 property intangible as well.
18354
780379b1
AS
183552003-05-10 Andreas Schwab <schwab@suse.de>
18356
18357 * xmenu.c (single_menu_item): Change last parameter to void* to
18358 avoid warning.
18359
ca2de342
RS
183602003-05-09 Richard M. Stallman <rms@gnu.org>
18361
18362 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
18363 Bind Qinhibit_modification_hooks to t so there will be no GC.
18364 Rename local `tem' to `save_deactivate_mark'.
18365
18366 * eval.c (specpdl_ptr): Declare volatile.
18367 (unbind_to): Copy the whole binding and decrement specpdl_ptr
18368 before doing the work of unbinding it.
18369
18370 * lisp.h (struct specbinding): Declare elements volatile.
18371 (specpdl_ptr): Declare volatile.
18372
18373 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
18374
18375 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
18376 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
18377
347003be
DL
183782003-05-08 Dave Love <fx@gnu.org>
18379
18380 * coding.c (Vlast_coding_system_used): Doc fix.
18381
5adcec23
JR
183822003-05-07 Jason Rumney <jasonr@gnu.org>
18383
18384 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
18385 when system does not support them.
18386
5fe3b8a4
SM
183872003-05-05 Stefan Monnier <monnier@cs.yale.edu>
18388
18389 * fileio.c (Qwrite_region_annotate_functions): New var.
18390 (build_annotations): Use it to process the global part of the hook.
18391 (syms_of_fileio): Init and staticpro it.
18392
18393 * keyboard.c (safe_run_hooks_error): Display a message instead of
18394 silently ignoring the error.
18395
183962003-05-03 Stefan Monnier <monnier@cs.yale.edu>
18397
18398 * keyboard.c (input_available_signal): Mark static.
18399 (menu_bar_items): Use map_keymap.
18400 (menu_bar_one_keymap): Remove.
18401 (menu_bar_item): Adjust arglist (for use in map_keymap).
18402 Properly hide a second binding when not both are keymaps.
18403
18404 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
18405 (single_keymap_panes): Use it and map_keymap.
18406 (single_menu_item): Use skp as well.
18407
18408 * keymap.h (map_keymap_function_t): New type.
18409 (map_keymap): Declare.
18410
18411 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
18412 (map_keymap_call, Fmap_keymap): New functions.
18413 (syms_of_keymap): Defsubr map-keymap.
18414
4b1b4443
JD
184152003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18416
18417 * gtkutil.c (create_dialog, make_widget_for_menu_item)
18418 (make_menu_item, create_menus, xg_update_menu_item): Don't call
18419 ..._with_mnemonic functions for menu items.
18420
1f816871
KH
184212003-05-01 Kenichi Handa <handa@m17n.org>
18422
18423 * coding.c (coding_system_accept_latin_extra_p): Delete this
18424 function.
18425 (find_safe_codings): Pay attention to
18426 the property tranlsation-table-for-encode of each codings.
18427 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
18428
5ed6ba5b
SM
184292003-05-01 Stefan Monnier <monnier@cs.yale.edu>
18430
18431 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
18432
32c06229
SM
184332003-04-30 Stefan Monnier <monnier@cs.yale.edu>
18434
18435 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
18436
18437 * lisp.h (CHECK): Wrap args in parenthesis.
18438 (specbind): Fix doc: symbol = Qnil is not supported any more.
18439
18440 * bytecode.c (Fbyte_code) <unwind-protect>:
18441 Use Fprogn rather than 0 and Qnil.
18442
18443 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
18444 `double', and `triple' modifiers as well.
18445
ed3c3314
RS
184462003-04-30 Richard M. Stallman <rms@gnu.org>
18447
18448 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
18449
18450 * alloc.c (abort_on_gc): New variable.
18451 (Fgarbage_collect): Abort if abort_on_gc is set.
18452
18453 * lisp.h (abort_on_gc): Add decl.
18454
18455 * eval.c (Fsignal): Clear abort_on_gc.
18456
18457 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 18458 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
18459
18460 * xdisp.c (move_it_vertically_backward): Do the final big else
18461 even if nlines is 0.
18462
18463 * xdisp.c (redisplay_internal): Finish the per-frame loop
18464 even if redisplay is suspended by input.
18465
0b325c12
AC
184662003-04-24 Andrew Choi <akochoi@shaw.ca>
18467
18468 * macterm.c (x_list_fonts): Return all fonts that match if
18469 maxnames = -1.
18470
4e837cd0
KH
184712003-04-25 Kenichi Handa <handa@m17n.org>
18472
18473 * syntax.c (skip_chars): Fix previous change.
18474
9af7511a
KH
184752003-04-24 Kenichi Handa <handa@m17n.org>
18476
18477 * syntax.c (skip_chars): Make the code faster by using the common
18478 technique of *p, *stop, and *endp.
18479
e3b2c21f
JD
184802003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18481
18482 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 18483 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
18484 being updated.
18485
32c06229
SM
184862003-04-19 Stefan Monnier <monnier@cs.yale.edu>
18487
18488 * eval.c (Fapply): Undo last change and add a comment about why.
18489
c6464167
MB
184902003-04-18 Miles Bader <miles@gnu.org>
18491
18492 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
18493 pickier PARSE_MULTIBYTE_SEQ.
18494
e509f168
SM
184952003-04-17 Stefan Monnier <monnier@cs.yale.edu>
18496
18497 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
18498 Use XCDR, XCAR, CONSP.
18499 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
18500 (Fapply): Remove unnecessary GCPRO.
18501
18502 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
18503
18504 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
18505
18506 * buffer.h: Don't hardcode BEG==1.
18507
18508 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
18509
5ceea398
RS
185102003-04-16 Richard M. Stallman <rms@gnu.org>
18511
18512 * xdisp.c (try_window, try_window_reusing_current_matrix):
18513 When at end of window, set window_end_pos to Z-ZV.
18514
18515 * buffer.c (Foverlay_recenter): Doc fix.
18516
e509f168
SM
185172003-04-14 Stefan Monnier <monnier@cs.yale.edu>
18518
18519 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
18520
d243e605
AC
185212003-04-14 Andrew Choi <akochoi@shaw.ca>
18522
18523 * macterm.c (mac_check_for_quit_char): Don't check more often than
18524 once a second.
18525
6901b111
SM
185262003-04-11 Stefan Monnier <monnier@cs.yale.edu>
18527
18528 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
18529 specially, so that they can't hide an implicit switch-frame event.
18530 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
18531 (head_table): Use switch-frame as event_kind for select-window.
18532 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
18533
18534 * editfns.c (Fformat): Lisp_Object/int mixup.
18535 (format2): Remove unused var numargs.
18536
e301806f 185372003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 18538
6901b111 18539 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
18540 (Qafter_insert_file_set_coding): New variable.
18541 (syms_of_fileio): Initialize and staticpro it. Delete declaration
18542 for after-insert-file-adjust-coding-function.
18543 (Finsert_file_contents): Call Qafter_insert_file_set_coding
18544 instead of Vafter_insert_file_adjust_coding_function.
18545
38914424
KH
185462003-04-11 Kenichi Handa <handa@m17n.org>
18547
18548 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
18549
18550 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
18551 string. Callers changed.
18552
185532003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 18554
6901b111 18555 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 18556 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
18557 (Finsert_file_contents):
18558 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
18559 decode-format.
18560
f979dc05
JD
185612003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18562
18563 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
18564 get GtkAdjustment as widget now is a GtkRange.
18565
18566 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
18567 GtkRange to avoid memory leak.
18568
f8c6b4c2 185692003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 18570
50ebc53d
KH
18571 * xfaces.c (Vface_font_rescale_alist): New variable.
18572 (struct font_name): New member rescale_ratio.
18573 (font_rescale_ratio): New function.
6901b111 18574 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
18575 (better_font_p): On comparing point sized, pay attention to
18576 recale_ratio member of fonts.
18577 (build_scalable_font_name): Reflect font->rescale_ratio in the
18578 font name.
6901b111 18579 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 18580
cb98871c
KH
18581 * lread.c (read1): Before calling index, check if the 2nd
18582 arguemnt is in ASCII range.
18583
4773b8ca
RS
185842003-04-08 Richard M. Stallman <rms@gnu.org>
18585
b0ada147
RS
18586 * fileio.c (Ffile_symlink_p): Doc fix.
18587
18588 * editfns.c (Fformat): Translate positions of text properties
18589 in the format string to apply them to the result.
18590
4773b8ca
RS
18591 * fileio.c (Finsert_file_contents): Doc fix.
18592 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18593
185942003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 18595
4773b8ca
RS
18596 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
18597
e8f25745 185982003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 18599
e8f25745
ST
18600 * mac.c (init_mac_osx_environment): Switch libexec and bin so
18601 that self-contained application finds libexec files.
18602
f8c6b4c2 186032003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 18604
6901b111
SM
18605 * coding.c (code_convert_region_unwind):
18606 Set Vlast_coding_system_used to the argument.
2310d84c
KH
18607 (code_convert_region): If post-read-conversion function changed
18608 the value of last-coding-sytem, keep the new value in
18609 coding->symbol so that it won't be overridden.
18610 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
18611 (coding_system_accept_latin_extra_p): New function.
18612 (find_safe_codings): Pay attention to characters registered in
18613 latin-extra-code-table.
2310d84c 18614
39c9a034
TTN
186152003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
18616
18617 * Makefile.in (md5.o): Add missing dependency info.
18618
eb67c5d6
RS
186192003-04-06 Richard M. Stallman <rms@gnu.org>
18620
18621 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
18622
18623 * marker.c (verify_bytepos): New function.
18624
18625 * intervals.c (set_intervals_multibyte_1): When becoming
18626 multibyte, adjust right and left child sizes to a whole set of
18627 characters. If an interval gets zero total-length, delete it.
18628 If an interval consists of just its children, delete one of them.
18629
18630 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
18631 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 18632
52eb0373 18633 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
18634 All calls deleted.
18635 (lisp_malloc): Do the work here directly.
18636
b1f81fc5
JB
186372003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
18638
18639 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
18640 char tables.
18641
186422003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
18643
18644 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
18645 destructively change "%S" to "%s".
18646
774666fb
MB
186472003-04-03 Miles Bader <miles@gnu.org>
18648
18649 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
18650 always set.
18651
19c37f01
DL
186522003-04-01 Dave Love <fx@gnu.org>
18653
18654 * xfns.c (xpm_lookup_color): Grok "opaque".
18655
2f4b24c3
AC
186562003-03-31 Andrew Choi <akochoi@shaw.ca>
18657
18658 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
18659 parent window ID.
18660
18661 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
18662
18663 * macterm.h (struct mac_output): Define x_pixels_diff and
18664 y_pixels_diff.
b1f81fc5 18665
9443fcf6
JB
186662003-03-31 Juanma Barranquero <lektu@terra.es>
18667
18668 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
18669 blockinput.h and files included from it.
18670
e072891b
KS
186712003-03-31 Kim F. Storm <storm@cua.dk>
18672
18673 The following changes consolidates the common code related to
18674 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
18675 files into frame.c.
9443fcf6 18676
e072891b
KS
18677 * frame.c: Include blockinput.h.
18678 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
18679 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
18680 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
18681 related vars here.
18682 (struct frame_parm_table, frame_parms): New table for describing
18683 frame parameters and their associated Q-variable.
18684 The order of the parameters corresponds to the sequence of the
18685 frame_parm_handlers table in redisplay_interface.
18686 (x_fullscreen_move, x_set_frame_parameters)
18687 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
18688 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
18689 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18690 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
18691 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
18692 Generic functions for processing of frame parameters.
18693 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
18694 (display_x_get_resource, x_get_resource_string): Functions for
18695 generic access to X resources.
18696 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
18697 (x_default_parameter, Fx_parse_geometry): Functions for generic
18698 access to frame parameters.
6901b111
SM
18699 (x_figure_window_size): Generic calculation of frame size.
18700 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
18701 (syms_of_frame): Intern and staticpro frame parameter variables.
18702 Defvar_lisp Vx_resource_class and Vx_resource_name here.
18703 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 18704
e072891b
KS
18705 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
18706 parameter related vars defined in frame.c.
18707 (EMACS_CLASS): Define here.
18708 (enum FULLSCREEN_*): Define here.
18709 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
18710 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
18711 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
18712 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
18713 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
18714 (x_set_visibility, x_set_autoraise, x_set_autolower)
18715 (x_set_unsplittable, x_set_vertical_scroll_bars)
18716 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
18717 (x_figure_window_size): Add prototypes.
18718
18719 * dispextern.h (frame_parm_handler): New typedef.
18720 (struct redisplay_interface): New member frame_parm_handlers.
18721 (enum resource_types): Move declaration here.
18722 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
18723 (x_default_parameter): Add prototypes.
18724
18725 * window.c: Remove extern decl for frame parameter vars.
18726 (change_window_heights): New generic function;
18727 replaces x_change_window_heights. All users changed.
18728
18729 * window.h (change_window_heights): Add prototype.
18730
18731 * xfaces.c: Remove extern decl for frame parameter vars.
18732
18733 * xterm.h (EMACS_CLASS): Remove. Use generic define.
18734 (struct w32_display_info): Fix type of xrdb member.
18735 (enum FULLSCREEN_*): Remove.
18736 Remove prototypes for generic functions (in frame.h).
18737
18738 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18739 parameters now defined in frame.h and frame.c.
f63fd14e 18740 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
18741 (enum x_frame_parms): Remove (bogus, unused enum).
18742 (check_x_display_info): Make non-static (for frame.c).
18743 (struct x_frame_parm_table, x_frame_parms): Remove.
18744 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18745 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18746 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18747 (x_change_window_heights, x_set_autoraise, x_set_autolower)
18748 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18749 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18750 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18751 Remove. Use generic functions instead.
18752 (enum resource_types): Remove.
18753 (x_set_scroll_bar_default_width): New global function (for frame.c).
18754 (Fx_create_frame): Depend on x_figure_window_size to add space for
18755 toolbar and setup size_hint_flags.
18756 (x_frame_parm_handlers): New table for redisplay_interface.
18757 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 18758
e072891b 18759 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 18760 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
18761 (x_redisplay_interface): Add x_frame_parm_handlers member.
18762
18763 * w32gui.h (XrmDatabase): New (dummy) typedef.
18764
18765 * w32term.h (EMACS_CLASS): Remove. Use generic define.
18766 (struct w32_display_info): Fix type of xrdb member.
18767 (enum FULLSCREEN_*): Remove.
18768 (x_fullscreen_adjust): Remove prototype.
18769
18770 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18771 parameters now defined in frame.h and frame.c.
f63fd14e 18772 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
18773 (enum x_frame_parms): Remove (bogus, unused enum).
18774 (check_x_display_info): Make non-static (for frame.c).
18775 (struct x_frame_parm_table, x_frame_parms): Remove.
18776 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18777 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18778 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18779 (x_change_window_heights, x_set_autoraise, x_set_autolower)
18780 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18781 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18782 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18783 Remove. Use generic functions instead.
18784 (enum resource_types): Remove.
18785 (x_set_scroll_bar_default_width): New global function (for frame.c).
18786 (Fx_create_frame): Depend on x_figure_window_size to add space for
18787 toolbar and setup size_hint_flags.
18788 (w32_frame_parm_handlers): New table for redisplay_interface.
18789 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 18790
e072891b 18791 * w32term.c: Remove unnecessary extern declarations.
52eb0373 18792 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
18793 (x_redisplay_interface): Add w32_frame_parm_handlers member.
18794
18795 * w32reg.c (x_get_string_resource): Use XrmDatabase.
18796
18797 * macgui.h (XrmDatabase): New (dummy) typedef.
18798
18799 * macterm.h (EMACS_CLASS): Remove.
18800 (struct mac_display_info): Add xrdb member.
18801 (struct mac_output): Add want_fullscreen member.
18802
18803 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18804 parameters now defined in frame.h and frame.c.
f63fd14e 18805 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
18806 (check_x_display_info): Make non-static (for frame.c).
18807 (struct x_frame_parm_table, x_frame_parms): Remove.
18808 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18809 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18810 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18811 (x_change_window_heights, x_set_autoraise, x_set_autolower)
18812 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18813 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18814 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18815 Remove. Use generic functions instead.
18816 (enum resource_types): Remove.
18817 (x_set_scroll_bar_default_width): New global function (for frame.c).
18818 (mac_frame_parm_handlers): New table for redisplay_interface.
18819 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 18820
e072891b
KS
18821 * macterm.c: Remove unnecessary extern declarations.
18822 (x_redisplay_interface): Add mac_frame_parm_handlers member.
18823
3e6a560b
KS
18824 * Makefile.in (frame.o): Add dependency on blockinput.h and files
18825 included from it (atimer.h and systime.h).
18826
7b7b454e
AS
188272003-03-30 Andreas Schwab <schwab@suse.de>
18828
18829 * xdisp.c (x_insert_glyphs): Fix swapped width and height
18830 parameters for shift_glyphs_for_insert.
18831
18832 * macterm.c (x_redisplay_interface): Add missing entry for
18833 draw_vertical_window_border.
18834
beb402de
KG
188352003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
18836
18837 * fileio.c (Fexpand_file_name): In the no-handler case, after
18838 expanding, look again for a handler and invoke it. This is needed
18839 for filenames like "/foo/../user@host:/bar/../baz" -- the first
18840 expansion produces "/user@host:/bar/../baz" which needs to be
18841 expanded again for the finame result "/user@host:/baz".
18842
b676f356
JD
188432003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18844
18845 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
18846 of area to be redrawn for better performance.
18847
3c671a56
SM
188482003-03-28 Stefan Monnier <monnier@cs.yale.edu>
18849
18850 * xterm.c (take_vertical_position_into_account): Remove.
18851 (xt_action_hook): Call set_vertical_scroll_bar if needed.
18852 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
18853 (xm_scroll_callback, x_create_toolkit_scroll_bar)
18854 (x_set_toolkit_scroll_bar_thumb): Simplify.
18855 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
18856 (XTread_socket): Remove unused var.
18857 (x_make_frame_invisible): Replace goto with else.
18858
18859 * xdisp.c (set_vertical_scroll_bar): New fun.
18860 (redisplay_window): Use it.
18861
84f2e615
RS
188622003-03-26 Richard M. Stallman <rms@gnu.org>
18863
18864 * xdisp.c (update_tool_bar): Recompute tool bar if
18865 update_mode_lines is set. Set w->update_mode_line
18866 only if the tool bar contents actually change.
18867 (update_menu_bar): Undo previous change.
18868
70b6104c
JD
188692003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18870
5fd6f727
JD
18871 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
18872 (xg_frame_set_char_size): Calculate scroll bar width before frame
18873 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
18874 (xg_separator_p): Check for all documented separator types.
18875 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
18876 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
18877
70b6104c
JD
18878 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
18879 so tool bar gets updated.
18880
d9b36d19
SM
188812003-03-26 Stefan Monnier <monnier@cs.yale.edu>
18882
18883 * data.c (store_symval_forwarding): Re-instate part of the code
18884 that was deleted with too much enthusiasm.
18885
188862003-03-25 Stefan Monnier <monnier@cs.yale.edu>
18887
18888 * data.c (store_symval_forwarding): Delete special read-only
18889 hack for type == -1, since we now use ->constant instead.
18890 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
18891
18892 * buffer.c (overlays_in): Declare static.
18893 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
18894 `constant' field rather than the variable's `type' field.
18895
365fa1b3
AC
188962003-03-24 Andrew Choi <akochoi@shaw.ca>
18897
18898 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
18899
18900 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
18901
18902 * fns.c [MAC_OSX]: Do not redefine vector.
18903
18904 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
18905
18906 * macgui.h: Remove definition of No_Cursor.
18907
d9b36d19 18908 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
18909
18910 * xdisp.c: Define No_Cursor.
18911 (x_write_glyphs, notice_overwritten_cursor)
18912 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
18913 (note_mouse_highlight): Remove Mac-specific code.
18914 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 18915
c0bcce6f
JPW
189162003-03-24 John Paul Wallington <jpw@gnu.org>
18917
18918 * xdisp.c (redisplay_window): If mini window's buffer is not
18919 empty, then redisplay it like other windows.
18920
a526b96c
KS
189212003-03-23 Kim F. Storm <storm@cua.dk>
18922
18923 * w32term.c (w32_draw_window_cursor): Fix last change.
18924
37ab321e
KH
189252003-03-23 Kenichi Handa <handa@m17n.org>
18926
a526b96c
KS
18927 * alloc.c (make_string_from_bytes, make_specified_string):
18928 Add `const' for the arg CONTENTS.
37ab321e
KH
18929
18930 * lisp.h (make_string_from_bytes, make_specified_string):
18931 Prototypes adjusted.
18932
7863d625
JD
189332003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18934
14a56a1b 18935 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
fd4c9408 18936
7863d625
JD
18937 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
18938 (XG_SB_RANGE): New define.
18939
18940 * gtkutil.c (xg_fixed_handle_expose): New function.
18941 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
18942 expose events.
18943 (xg_update_scrollbar_pos): Take two more arguments, left and width
18944 of scroll bar including borders.
18945 Clear left and right part outside scroll bar separately as some
18946 themes have bars that are not an even number of pixels.
d9b36d19 18947 Don't set reallocate_redraws, don't call
7863d625
JD
18948 gdk_window_process_all_updates.
18949 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
18950 so no need to change it. Calculate size and value with XG_SB_RANGE.
18951
d9b36d19
SM
18952 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
18953 Pass left and width of scroll bar including borders to
7863d625
JD
18954 xg_update_scrollbar_pos.
18955
af0ad939
TTN
189562003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
18957
18958 * Makefile.in: Make sure space precedes end-of-line backslashes.
18959
b22139fd
KS
189602003-03-22 Kim F. Storm <storm@cua.dk>
18961
18962 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
18963 Add generic versions here. Remove system specific versions
18964 defined elsewhere.
18965
18966 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
18967 Add prototypes.
18968
6e6410cf
KS
18969 * xterm.h (STORE_NATIVE_RECT): New macro.
18970
5c9cc435
KS
189712003-03-21 Kim F. Storm <storm@cua.dk>
18972
00c64fab
SM
18973 * xdisp.c (get_glyph_string_clip_rect):
18974 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
18975
18976 * dispextern.h (struct redisplay_interface): Add active_p
18977 argument to draw_window_cursor member. All uses changed.
18978
acd37560
KS
189792003-03-21 Kim F. Storm <storm@cua.dk>
18980
18981 The following changes consolidate code related to writing and
18982 inserting glyphs, exposing frame, the tool bar, the mouse face,
18983 the output cursor, and help echo from xterm.c, w32term.c and
18984 macterm.c into xdisp.c. It also generalizes the use of the
18985 window_part enum instead of using numeric values throughout.
af0ad939 18986
acd37560
KS
18987 * xdisp.c: Consolidate gui-independent code here.
18988 Include keymap.h.
18989 (Qhelp_echo): Import.
18990 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
18991 (help_echo_string, help_echo_window, help_echo_object)
18992 (previous_help_echo_string, help_echo_pos): Declare here.
18993 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
18994 (estimate_mode_line_height): Define here. Handle windowing
18995 systems directly (without using estimate_mode_line_height_hook).
18996 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
18997 (update_window_cursor, update_cursor_in_window_tree)
18998 (fast_find_position, fast_find_string_pos)
18999 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
19000 (expose_area, expose_line, expose_overlaps, expose_window)
19001 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
19002 declared static as they are only used locally in xdisp.c.
19003 (draw_glyphs): Rename from x_draw_glyphs and make static.
19004 (tool_bar_item_info, notice_overwritten_cursor): Make static.
19005 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
19006 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 19007 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
19008 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
19009 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
19010 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
19011 (note_mouse_highlight, x_clear_window_mouse_face)
19012 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
19013 (x_intersect_rectangles): New generic functions for use by xdisp.c
19014 and GUI front-ends.
19015 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
19016 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
19017
19018 * dispextern.h (Display_Info): Generic typedef for *_display_info.
19019 (NativeRectangle): Generic typedef for rectangle type.
19020 (enum window_part): Move here from window.c.
19021 (struct redisplay_interface): New members flush_display_optional,
19022 define_frame_cursor, clear_frame_area, draw_window_cursor,
19023 draw_vertical_window_border, shift_glyphs_for_insert.
19024 Rename member clear_mouse_face to clear_window_mouse_face.
19025 (estimate_mode_line_height_hook): Remove hook.
19026 (auto_raise_tool_bar_buttons_p): Don't declare extern.
19027 (tool_bar_item_info): Remove prototype.
19028 (help_echo_string, help_echo_window, help_echo_object)
19029 (previous_help_echo_string, help_echo_pos)
19030 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
19031 (x_stretch_cursor_p, output_cursor): Declare extern.
19032 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
19033 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
19034 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
19035 (display_and_set_cursor, set_output_cursor, x_cursor_to)
19036 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
19037 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
19038 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
19039 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
19040 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
19041 Add prototypes.
19042 (mode_line_string, marginal_area_string): Fix prototypes.
19043
19044 * window.c (enum window_part): Move to dispextern.h.
19045 (coordinates_in_window): Use enum window_part member names
19046 instead of numbers to describe return value.
19047 (struct check_window_data): Change part member to window_part.
19048 (check_window_containing): Return window_part unaltered.
19049 (window_from_coordinates): Change part arg from int to enum
19050 window_part. Allow part arg to be null. All users changed.
19051
19052 * window.h (window_from_coordinates): Fix prototype.
19053
19054 * term.c (estimate_mode_line_height): Move to xdisp.c.
19055
19056 * keyboard.c (make_lispy_event): Use enum window_part.
19057
19058 * dispnew.c (mode_line_string, marginal_area_string): Use enum
19059 window_part instead of int in arg list. Users changed.
19060
19061 * xterm.h (No_Cursor): Declare as None for X.
19062 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 19063
acd37560
KS
19064 * xterm.c: Remove consolidated defines and code.
19065 (BETWEEN): Remove unused macro.
19066 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
19067 (x_define_frame_cursor, x_clear_frame_area)
19068 (x_draw_window_cursor): New X-specific functions for RIF.
19069 (x_redisplay_interface): Add new members.
19070
19071 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
19072
19073 * w32term.h (struct w32_output): Remove cross_cursor member.
19074
19075 * w32term.c: Remove consolidated defines and code.
19076 (BETWEEN): Remove unused macro.
19077 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
19078 (w32_define_frame_cursor, w32_clear_frame_area)
19079 (w32_draw_window_cursor): New W32-specific functions for RIF.
19080 (w32_redisplay_interface): Add new members.
19081
a64387ee 19082 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
19083 (XRectangle): Add X compatible rectangle type.
19084 (NativeRectangle): Declare as RECT for W32.
19085 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
19086
19087 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
19088
19089 * w32console.c: Remove consolidated defines and code.
af0ad939 19090
acd37560
KS
19091 * msdos.h (Display_Info): Add generic typedef.
19092
19093 * msdos.c: Remove consolidated defines and code.
19094 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
19095
19096 * macterm.h (struct mac_output): Replace member cross_cursor by
19097 hand_cursor.
19098 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
19099
19100 * macterm.c: Remove consolidated defines and code.
19101 (BETWEEN): Remove unused macro.
19102 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
19103 (mac_define_frame_cursor, mac_clear_frame_area)
19104 (mac_draw_window_cursor): New Mac-specific functions for RIF.
19105 (x_redisplay_interface): Add new members.
19106
19107 * macgui.h (No_Cursor): Define as 0 for Mac.
19108 (XRectangle): Add X compatible rectangle type.
19109 (NativeRectangle): Declare as Rect for Mac.
19110 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
19111
204ccab1
KS
19112 * macfns.c (x_set_mouse_color): Setup hand_cursor.
19113 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 19114
9443fcf6 19115 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
19116 included from it. Add dependency on keymap.h.
19117
19118 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
19119
8ba01a70 191202003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
19121
19122 * fileio.c (Fexpand_file_name): Fix previous change.
19123
8ba01a70 191242003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
19125
19126 * fileio.c (Ffile_name_directory): Reconstruct file name by
19127 make_specified_string.
19128 (Ffile_name_nondirectory, Ffile_name_as_directory)
19129 (Fdirectory_file_name, Fexpand_file_name)
19130 (Fsubstitute_in_file_name): Likewise.
19131 (Fread_file_name): Compare decoded homedir with DIR and
19132 DEFAULT_FILENAME.
19133
19134 * alloc.c (make_specified_string): If NCHARS is negative, count
19135 the number of characters.
19136
19536747
JD
191372003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19138
de38ae5a
JD
19139 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
19140 all widgets.
19141
19536747
JD
19142 * gtkutil.h: Removed xg_ignore_next_thumb.
19143
37ab321e 191442003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
19145
19146 * coding.c (Vchar_coding_system_table): Remove this variable.
19147 (Vcoding_system_safe_chars): New variable.
19148 (intersection): Remove this function.
19149 (find_safe_codings): Don't use Vchar_coding_system_table, but try
19150 all codings in SAFE_CODINGS.
00c64fab 19151 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
19152 find_safe_codings. Get generic coding systems from
19153 Vcoding_system_safe_chars.
19154 (Fdefine_coding_system_internal): New function.
19155 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
19156 Initialize and staticpro Vcoding_system_safe_chars.
19157
17097258
JD
191582003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19159
2a2071c3
JD
19160 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
19161 equal old values before updating.
19162
17097258
JD
19163 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
19164
19165 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
19166
191672003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19168
19169 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
19170 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
19171 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
14a56a1b 19172 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
17097258
JD
19173 (xg_create_scroll_bar): Pass bar to button event callback.
19174 (xg_find_top_left_in_fixed): New function.
19175 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
19176 whole scroll bar area. Get old position with
19177 xg_find_top_left_in_fixed, calculate and only clear needed areas.
19178 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
19179 dragging is in progress. Calculate whole as for Motif.
19180 Remove code that saved last values. Call gtk_range functions to
19181 set scroll bar sizes.
19182
19183 * gtkutil.h: Removed xg_ignore_next_thumb.
19184
8cb9dfbf
JB
191852003-03-17 Juanma Barranquero <lektu@terra.es>
19186
19187 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
19188 and files included from it.
19189
00c64fab
SM
191902003-03-18 Stefan Monnier <monnier@cs.yale.edu>
19191
19192 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
19193 multiple occurrences of the same keymap under different prefixes.
19194 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
19195
c45bb3b2
JR
191962003-03-16 Jason Rumney <jasonr@gnu.org>
19197
19198 * w32gui.h: Use HDC for Display.
19199
19200 * w32term.c (w32_encode_char): Prevent double-byte chars from
19201 crashing Emacs.
19202
19203 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
19204 as binary.
19205
2a6d0874
JB
192062003-03-16 Juanma Barranquero <lektu@terra.es>
19207
19208 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
19209
03eb5fab
KS
192102003-03-16 Kim F. Storm <storm@cua.dk>
19211
19212 The following changes consolidate some of the gui-independent
19213 parts of the processing and drawing of "glyph strings" from
19214 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 19215
03eb5fab
KS
19216 * dispextern.h (struct glyph): Reduce face_id member from 22 to
19217 21 bits (this reduces number of faces from 4M to 2M).
19218 Replace W32 specific w32_font_type member (2 bits) by generic
19219 font_type member (3 bits) for portability.
19220 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
19221 (enum draw_glyphs_face): Define here.
19222 (struct glyph_string): Define here. Merge W32 and X versions.
19223 (struct redisplay_interface): New members per_char_metric,
19224 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
19225 (VCENTER_BASELINE_OFFSET): Define here.
19226 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
19227 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
19228
19229 * xdisp.c: Consolidate gui-independent "glyph string" code here.
19230 (dump_glyph_string): Moved here.
19231 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
19232 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
19233 (fill_composite_glyph_string, fill_glyph_string)
19234 (fill_image_glyph_string, fill_stretch_glyph_string)
19235 (left_overwritten, left_overwriting, right_overwritten)
19236 (right_overwriting, get_char_face_and_encoding)
19237 (set_glyph_string_background_width, compute_overhangs_and_x)
19238 (append_glyph, append_composite_glyph, produce_image_glyph)
19239 (take_vertical_position_into_account, append_stretch_glyph)
19240 (produce_stretch_glyph): New generic functions (based on X version).
19241 Call platform specific functions through rif.
19242 (INIT_GLYPH_STRING): New macro, hides W32 details.
19243 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
19244 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
19245 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
19246 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
19247 (notice_overwritten_cursor):
19248 Generic functions exported to platform modules. Users changed.
19249
19250 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
19251 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
19252 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 19253 New macros for consolidated code.
2a6d0874 19254
03eb5fab
KS
19255 * xterm.c: Remove consolidated defines and code.
19256 (x_per_char_metric, x_encode_char)
19257 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
19258 (x_redisplay_interface): Add new members.
19259
19260 * w32gui.h (Display): Add dummy typedef for consolidation.
19261 (XChar2b): Define alias for wchar_t for consolidation.
19262 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19263
19264 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 19265 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
19266 New macros for consolidation.
19267
fad49844 19268 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
19269 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
19270 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
19271 (w32_per_char_metric): Change font_type arg to int for RIF.
19272 (w32_encode_char): Return int according to RIF requirements.
19273 (w32_compute_glyph_string_overhangs): Adapt to RIF.
19274 (w32_get_glyph_overhangs): New function for RIF. Uses generic
19275 x_get_glyph_overhangs.
19276 (w32_redisplay_interface): Add new members.
19277
19278 * macgui.h (XChar2b): Move typedef here for consolidation.
19279 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19280
19281 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
19282 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
19283 consolidation.
19284
19285 * macterm.c: Remove consolidated defines and code.
19286 (mac_per_char_metric): New function for RIF.
00c64fab 19287 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
19288 (mac_compute_glyph_string_overhangs): Adapt for RIF.
19289 (x_redisplay_interface): Add new members.
19290
00c64fab
SM
192912003-03-15 Stefan Monnier <monnier@cs.yale.edu>
19292
19293 * keymap.c (Vmenu_events): New var.
19294 (syms_of_keymap): Initialize it.
19295 (where_is_internal): Check more carefully what is a menu event.
19296
225c7a07
RS
192972003-03-14 Richard M. Stallman <rms@gnu.org>
19298
19299 * lread.c (read1): After #!, exit loop on eof.
19300
cea9be54
JD
193012003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19302
9ea0e54d
JD
19303 * gtkutil.h: Add declaration for xg_frame_cleared.
19304
0cb35f4e
JD
19305 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
19306
cea9be54
JD
19307 * gtkutil.c (struct xg_last_sb_pos): New structure.
19308 (handle_fixed_child): New function.
19309 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
19310 and force a redraw on them.
19311 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
19312 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
19313 so we can avoid unneeded redraws.
19314 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
19315 and force a redraw on the scroll bar.
19316 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
19317 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 19318 (xg_frame_cleared): New function.
cea9be54 19319
20b853f3
KH
193202003-03-13 Kenichi Handa <handa@m17n.org>
19321
19322 * coding.c (Fdetect_coding_region): Fix docstring.
19323 (Fdetect_coding_string): Fix docstring.
19324
7a555aff
AS
193252003-03-13 Andreas Schwab <schwab@suse.de>
19326
25cc0080
AS
19327 * gtkutil.c: Add prototype for create_menus.
19328
30225431
AS
19329 * data.c (long_to_cons): Fix type of top.
19330
19331 * xselect.c (selection_data_to_lisp_data): Use int instead of
19332 long for an integer of size 4.
19333
7a555aff 19334 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 19335 (xg_tool_bar_help_callback): Likewise.
7a555aff 19336
a3e4741f
AS
193372003-03-12 Andreas Schwab <schwab@suse.de>
19338
19339 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
19340
9668be7c
KS
193412003-03-12 Kim F. Storm <storm@cua.dk>
19342
03eb5fab 19343 The following changes consolidate the fringe handling from
9668be7c 19344 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 19345
9668be7c
KS
19346 * xdisp.c: Consolidate fringe handling code here.
19347 (left_bits, right_bits, continued_bits, continuation_bits)
19348 (ov_bits, zv_bits): Define fringe bitmaps.
19349 (fringe_bitmaps): New array holding fringe bitmaps.
19350 (draw_fringe_bitmap): Draw a specific bitmap; call display
19351 specific drawing routine via rif->draw_fringe_bitmap.
19352 (draw_row_fringe_bitmaps): Generic replacement for
19353 x_draw_row_fringe_bitmaps; all callers changed.
19354 (compute_fringe_widths): Generic replacement for
19355 x_compute_fringe_widths; all callers changed.
19356
19357 * dispextern.h (enum fringe_bitmap_type): Define here.
19358 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
19359 (fringe_bitmaps): Declare extern.
19360 (struct redisplay_interface): New member draw_fringe_bitmap.
19361 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
19362
19363 * xterm.c: Remove generic fringe code.
19364 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19365 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19366
19367 * w32term.c: Remove generic fringe code.
19368 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
19369 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 19370
9668be7c
KS
19371 * macterm.c: Remove generic fringe code.
19372 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19373 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19374
00a88f32
SM
193752003-03-11 Stefan Monnier <monnier@cs.yale.edu>
19376
19377 * print.c (Fprin1_to_string): Return unibyte string if possible.
19378
1d1de695
DK
193792003-03-09 David Kastrup <dak@gnu.org>
19380
19381 * process.c (read_process_output): We have allocated enough space
19382 for readmax and carryover, so actually use the alloted space.
19383
257f40f2
JD
193842003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19385
19386 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
19387 toolkit scrollbar click.
19388
19389 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
19390 for USE_GTK.
19391 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
19392 also.
1d1c7e75 19393 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 19394 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 19395
78819ebb 19396 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
19397
19398 * gtkutil.c (xg_get_scroll_id_for_window): New function.
19399 (xg_tool_bar_item_expose_callback): New function.
19400 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
19401 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
19402 on the tool bar widget.
19403 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
19404 to expose on the tool bar item widgets.
19405
15213141
JD
194062003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19407
26b74a0b 19408 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 19409 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
19410 deleted from the image cache).
19411
15213141
JD
19412 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
19413 the event isn't for a frame (i.e. for dialogs).
19414
20b853f3 194152003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
19416
19417 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
19418 composition components reaches the limit, terminate composing.
19419 (COMPOSITION_OK): New macro.
00a88f32 19420 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
19421 composition is found.
19422 (coding_restore_composition): Adjust the number of composition
19423 components if it is not sane.
19424
c9029fe5
JB
194252003-03-06 Juanma Barranquero <lektu@terra.es>
19426
19427 * w32term.h (struct w32_display_info): Add xrdb member to support
19428 passing resources via -xrm on Windows.
19429
19430 * w32term.c (w32_make_rdb): New function.
19431 (w32_term_init): Use it to initialize xrdb member of w32_display_info
19432 struct. Delete leftover code.
19433
19434 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
19435 for resources passed on the command line.
19436
19437 * w32reg.c (w32_get_rdb_resource): New function.
19438 (x_get_string_resource): Use it, so resources passed with -xrm
19439 supercede the ones in the registry.
19440
9d00001f
JD
194412003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19442
19443 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
19444 instead of x_top_window_to_frame.
19445
ca2417b9
JD
194462003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19447
19448 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
19449 when restarting Emacs.
19450
5b20caf0
RS
194512003-03-03 Richard M. Stallman <rms@gnu.org>
19452
19453 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
19454 to run kill-buffer-query-functions.
19455 (Qkill_buffer_query_functions): New var.
19456 (syms_of_buffer): Init and staticpro it.
19457
58e91b77
JD
194582003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19459
19460 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
19461
932357b4
KS
194622003-02-25 Kim F. Storm <storm@cua.dk>
19463
19464 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
19465 If centering point failed to make whole line visible and vscroll
19466 is non-zero, disable vscroll and try centering point again.
19467
19468 * lread.c (read1): Accept `single space' syntax like (? x).
19469
bb8db7e1
JD
194702003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19471
19472 * keyboard.c (cancel_hourglass_unwind): Surround with
14a56a1b 19473 #ifdef HAVE_X_WINDOWS.
bb8db7e1 19474
47d77aab
KH
194752003-02-25 Kenichi Handa <handa@m17n.org>
19476
19477 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
19478 process only when "subprocesses" is defined.
19479
6a097c0c
SM
194802003-02-24 Stefan Monnier <monnier@cs.yale.edu>
19481
19482 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
19483
0b063c27
JB
194842003-02-24 Juanma Barranquero <lektu@terra.es>
19485
d1135afc
JB
19486 * callint.c (fix_command): Declare as static void and move before
19487 Fcall_interactively.
19488
0b063c27
JB
19489 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
19490 (syms_of_xdisp): Don't initialize Qwhen.
19491
0af912f0
JD
194922003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19493
19494 * keyboard.c (cancel_hourglass_unwind): New function.
19495 (command_loop_1): Cancel hourglass with unwind-protect.
19496
120d0a23
RS
194972003-02-23 Richard M. Stallman <rms@gnu.org>
19498
19499 * callint.c (fix_command): New subroutine, from Fcall_interactively.
19500 Detect (when ... (region-beginning)) etc.
19501 (Fcall_interactively): Call fix_command.
19502 (Qif, Qwhen): New variables.
19503 (syms_of_callint): Init and staticpro them.
0b063c27 19504
120d0a23
RS
19505 * regex.c (print_partial_compiled_pattern): Output to stderr.
19506
4ece81a6
KG
195072003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
19508
19509 * dired.c (directory_files_internal): Don't expand directory.
19510 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
19511 instead. From Lars Hansen <larsh@math.ku.dk>.
19512
e52bd6b7
SM
195132003-02-22 Stefan Monnier <monnier@cs.yale.edu>
19514
19515 * fns.c (string_to_multibyte): Remove unused var i.
19516 (Flanginfo): Fix int/Lisp_Object mixup.
19517 (void_call2): New fun.
19518 (Fmap_char_table): Use it in place of call2.
19519
19520 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
19521
19522 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
19523
19524 * keymap.c (copy_keymap_1): Make it static.
19525
19526 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
19527
c33ef7c4
JB
195282003-02-22 David Ponce <david@dponce.com>
19529
19530 * lread.c (Fload): Don't check STRING_MULTIBYTE.
19531
16782258
JD
195322003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19533
19534 * process.h: Removed subtty field from struct Lisp_Process.
19535
19536 * process.c (create_process): Remove setting of subtty.
19537 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
19538 (Fprocess_running_child_p, process_send_signal):
19539 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
19540 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
19541
3abeca61
KG
195422003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
19543
19544 * keymap.c (Fdefine_key): Doc fix.
19545
92a8ce63
JB
195462003-02-21 Juanma Barranquero <lektu@terra.es>
19547
19548 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
19549
19550 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
19551 POLLING_PROBLEM_IN_SELECT.
19552
19553 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
19554 Delete #undef of POLLING_PROBLEM_IN_SELECT.
19555
19556 * s/hpux10-20.h: New file.
19557
e52bd6b7
SM
19558 * process.c (wait_reading_process_input):
19559 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 19560
20f1ef2e
KH
195612003-02-20 Kenichi Handa <handa@m17n.org>
19562
32d0a9dc
KH
19563 * fontset.c (check_fontset_name): If NAME is nil, return the
19564 default fontset.
19565 (override_font_info): New function.
e52bd6b7 19566 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
19567 (Ffontset_info): If FONTSET is not the default fontset, merge
19568 FONTSET onto the copy of the default fontset, and work on that
19569 copy. Document that NAME nil means the default fontset.
19570 (Ffontset_font): Document that NAME nil means the default fontset.
19571
20f1ef2e
KH
19572 * process.c (setup_process_coding_systems): If the process's
19573 in/out descriptor is -1, do nothing.
19574
77d1daf2
AS
195752003-02-19 Andreas Schwab <schwab@suse.de>
19576
e52bd6b7
SM
19577 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
19578 Add prototypes.
77d1daf2 19579
f9a45bb3
KH
195802003-02-19 Kenichi Handa <handa@m17n.org>
19581
19582 * xfaces.c (try_alternative_families): Try all scalable fonts if
19583 Vscalable_fonts_allowed is not Qt.
19584
72ecb43c
JD
195852003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19586
19587 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
19588
ee5be7c3
JD
195892003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19590
19591 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
19592 names.
19593
19594 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 19595 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
19596 x_face_list_fonts.
19597 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
19598 (Fx_list_fonts): Set maxnames to -1 to get all font names.
19599
4cd519a7
KS
196002003-02-18 Kim F. Storm <storm@cua.dk>
19601
068f9882
KS
19602 * lread.c (read1): Fix last change.
19603 "`" is not always special. Allow "?" after a character constant.
4cd519a7 19604
7290a344
AC
196052003-02-18 Andrew Choi <akochoi@shaw.ca>
19606
19607 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
19608
1f7fa69b
AS
196092003-02-18 Andreas Schwab <schwab@suse.de>
19610
19611 * window.c (window_scroll_pixel_based): Move outside a
19612 multi-glyph character before setting new window start.
19613
19614 * xdisp.c (in_display_vector_p): New function.
19615 * dispextern.h (in_display_vector_p): Declare.
19616
23e21195
KS
196172003-02-18 Kim F. Storm <storm@cua.dk>
19618
19619 * lread.c (read1): Fix and relax read syntax.
19620 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
19621 Only recognize "," after dotted-pair dot if inside backquote.
19622 Never include "`" or "," (inside backquote) in a symbol.
19623 Allow dotted-pair dot after a character constant.
19624 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 19625
f098b121
JD
196262003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19627
19628 * gtkutil.c (xg_tool_bar_expose_callback): New function.
19629 (xg_create_tool_bar): Force style of tool bar to be horizontal with
5e1a6e32 19630 icons. Set name of tool bar to emacs-toolbar.
f098b121
JD
19631 (update_frame_tool_bar): Connect expose event to
19632 xg_tool_bar_expose_callback.
19633
63020c46
RS
196342003-02-17 Richard M. Stallman <rms@gnu.org>
19635
19636 * keyboard.c (this_command_key_count_reset): New variable.
19637 Initiatize to 0 where this_command_key_count is set.
19638 (read_char): Save and restore this_command_key_count_reset
19639 around input method code.
19640 (read_char): If this_command_key_count_reset, echo reread commands.
19641 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
19642
fb4452cc
KH
196432003-02-17 Kenichi Handa <handa@m17n.org>
19644
19645 * fns.c (string_to_multibyte): Always return a multibyte string.
19646
bd11cc09
JR
196472003-02-16 Jason Rumney <jasonr@gnu.org>
19648
e52bd6b7
SM
19649 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
19650 Negative max_fonts parameter means list all.
bd11cc09 19651
4cdf4bde
DL
196522003-02-14 Dave Love <fx@gnu.org>
19653
19654 * fns.c (Flanginfo): Doc fix.
19655
023b93f6
KS
196562003-02-13 Kim F. Storm <storm@cua.dk>
19657
37cd4238
KS
19658 * lread.c (read_escape): Interpret \s as a SPACE character, except
19659 for \s-X in a character constant which still is the super modifier.
19660 (read1): Signal an `invalid read syntax' error if a character
19661 constant is immediately followed by a digit or symbol character.
19662
140a6b7e
KS
19663 * search.c (Fmatch_data): Doc fix. Explicitly state that
19664 match-data is undefined if last search failed.
19665
3419757d 19666 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
19667 All uses changed.
19668
7d5c86e5
JB
196692003-02-12 Juanma Barranquero <lektu@terra.es>
19670
19671 * eval.c (Fdefmacro): Fix typo.
19672
295fff2c
KS
196732003-02-12 Kim F. Storm <storm@cua.dk>
19674
19675 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
19676 macro is a string, convert meta modifiers in string when copying
19677 the string into a vector.
19678
60f3202d
KS
196792003-02-11 Kim F. Storm <storm@cua.dk>
19680
19681 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
19682
61cb0b53
KH
196832003-02-11 Kenichi Handa <handa@m17n.org>
19684
19685 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
19686
7392e23c
KS
196872003-02-10 Kim F. Storm <storm@cua.dk>
19688
19689 * process.c: Doc fixes.
19690 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
19691
ce4254bd
KH
196922003-02-10 Kenichi Handa <handa@m17n.org>
19693
9c7a329a
KH
19694 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
19695
ce4254bd
KH
19696 * process.c (QCfilter_multibyte): New variable.
19697 (setup_process_coding_systems): New function.
e52bd6b7
SM
19698 (Fset_process_buffer, Fset_process_filter):
19699 Call setup_process_coding_systems.
ce4254bd
KH
19700 (Fstart_process): Initialize the member `filter_multibyte' of
19701 struct Lisp_Process.
19702 (create_process): Call setup_process_coding_systems.
19703 (Fmake_network_process): New keyward `:filter-multibyte'.
19704 Initialize the member `filter_multibyte' of struct Lisp_Process.
19705 Call setup_process_coding_systems.
19706 (server_accept_connection): Call setup_process_coding_systems.
19707 (read_process_output): If the process has a filter, decide the
19708 multibyteness of a string to given to the filter by
19709 `filter_multibyte' member of the process. If the process doesn't
19710 have a filter and the result of conversion is unibyte, use
19711 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
19712 multibyte form.
19713 (Fset_process_coding_system): Call setup_process_coding_systems.
19714 (Fset_process_filter_multibyte): New function.
19715 (Fprocess_filter_multibyte_p): New function.
19716 (syms_of_process): Intern and staticpro QCfilter_multibyte.
19717 Defsubr Sset_process_filter_multibyte and
19718 Sprocess_filter_multibyte_p.
19719
19720 * process.h (struct Lisp_Process): New member filter_multibyte.
19721
19722 * lisp.h (setup_process_coding_systems): Add prototype.
19723
19724 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
19725 process, update coding systems for the process.
19726
b08d5f59
KH
197272003-02-09 Kenichi Handa <handa@m17n.org>
19728
19729 * fns.c (string_to_multibyte): New function.
19730 (Fstring_to_multibyte): New function.
19731 (syms_of_fns): Defsubr it.
19732
0dfd93c0
AS
197332003-02-08 Andreas Schwab <schwab@suse.de>
19734
19735 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
19736 instead of the substitution.
19737
7b76ca1c
JD
197382003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19739
19740 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
19741
19742 * xmenu.c (menu_position_func): Adjust menu popup position so that
19743 the menu is fully visible.
7b76ca1c 19744
2436a4e4
JD
197452003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19746
19747 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
19748 (x_make_frame_invisible, x_wm_set_icon_position):
19749 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
19750
19751 * xfns.c (x_set_name, x_set_title): Ditto.
19752
37d1e680
RS
197532003-02-04 Richard M. Stallman <rms@gnu.org>
19754
19755 * keyboard.c (echo_now): Update before_command_echo_length.
19756 (Freset_this_command_lengths): Reset this_command_key_count etc.
19757 immediately rather than arranging to do it later.
19758 (before_command_key_count_1, before_command_echo_length_1)
19759 (before_command_restore_flag): Vars deleted.
19760 (add_command_key): Don't handle before_command_restore_flag.
19761 (read_char, record_menu_key): Don't update before_command_key_count or
19762 before_command_echo_length.
19763 (read_char): Don't handle before_command_restore_flag.
19764
19765 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
19766 in direct-output clauses if it wouldn't be called in the ordinary case.
19767
578846a3
KS
197682003-02-04 Kim F. Storm <storm@cua.dk>
19769
19770 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
19771
49853a4d
JD
197722003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19773
19774 * gtkutil.c (remove_from_container): Copying list is not needed.
19775 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
19776 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
19777 on list returned from gtk_container_get_children to avoid memory leak.
19778
8b53dc06
JR
197792003-02-01 Jason Rumney <jasonr@gnu.org>
19780
5d54d177
JR
19781 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
19782 local malloc.
19783 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
19784 definitions in xpm.h.
19785 (init_xpm_functions): New function.
f63fd14e 19786 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
19787 (init_external_image_libraries): Try to load libXpm.dll.
19788
8b53dc06
JR
19789 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
19790 timestamp.
19791
b222e415
DL
197922003-01-31 Dave Love <fx@gnu.org>
19793
19794 * syntax.c (Fskip_chars_forward)
19795 (open-paren-in-column-0-is-defun-start): Doc fix.
19796
c60ee5e7
JB
197972003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
19798
19799 * fileio.c: Support // at start of name for Cygwin (just added proper
19800 preprocessor tests).
19801
19802 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
19803
19804 * Makefile.in: Use @EXEEXT@ for Cygwin.
19805
19806 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
19807
19808 * s/cygwin.h: Added for Cygwin port.
19809
53b37591
JB
198102003-01-31 Juanma Barranquero <lektu@terra.es>
19811
19812 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
19813 when including gif_lib.h.
fe929957 19814 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
19815 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
19816 Windows. Disable color table lookups. Call library functions
53b37591 19817 through pointers determined at runtime.
fe929957
JB
19818 (init_external_image_libraries): Try to load libungif.dll and
19819 libtiff.dll.
53b37591 19820
45415a8f
KH
198212003-01-31 Kenichi Handa <handa@m17n.org>
19822
19823 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 19824 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 19825
a97e4138
JD
198262003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19827
e52bd6b7 19828 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 19829
6eed9bed
DL
198302003-01-30 Dave Love <fx@gnu.org>
19831
19832 * alloc.c (Vgc_elapsed, gcs_done): New variables.
19833 (Fgarbage_collect): Use them.
19834 (init_alloc, syms_of_alloc): Set them up.
19835
100dcd40
JB
198362003-01-30 Juanma Barranquero <lektu@terra.es>
19837
19838 * w32fns.c (init_external_image_libraries): Add missing operator.
19839
fbd852af
JR
198402003-01-29 Jason Rumney <jasonr@gnu.org>
19841
19842 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
19843 an alternative name for jpeg.dll.
19844
8a2d8020
KH
198452003-01-29 Kenichi Handa <handa@m17n.org>
19846
19847 * xdisp.c (set_cursor_from_row): Pay attention to string display
19848 properties.
19849
058c18c7
AC
198502003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
19851
19852 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
19853 <escape>.
19854 (keycode_to_xkeysym_table): Reformat and add more comments.
19855 (XTread_socket): Drop special case for backspace.
19856
385f11cf
AC
198572003-01-28 Andrew Choi <akochoi@shaw.ca>
19858
19859 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
19860 values in old-style RGB specs.
19861
c922a224
JB
198622003-01-27 Juanma Barranquero <lektu@terra.es>
19863
19864 * w32fns.c (init_external_image_libraries): Try alternate names for the
19865 jpeg dll.
19866
0a1d6de0
JD
198672003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19868
19869 * gtkutil.c (create_dialog, xg_separator_p)
19870 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
19871 before calling strcmp or strlen.
19872
a97e4138 198732003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
19874
19875 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
19876 and handle image load failure.
19877
28908312
JR
198782003-01-26 Jason Rumney <jasonr@gnu.org>
19879
19880 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
19881 New functions.
f63fd14e
JB
19882 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
19883 Disable color table lookups. Call jpeg library functions
28908312
JR
19884 through pointers determined at runtime.
19885 (init_external_image_libraries): Try to load jpeg.dll.
19886
84e47416
RS
198872003-01-25 Richard M. Stallman <rms@gnu.org>
19888
19889 * lisp.h: Declare format2 instead of format1.
19890
19891 * fileio.c (barf_or_query_if_file_exists):
19892 Call format2 instead of format1.
19893
19894 * editfns.c (format2): New function, replaces format1
19895 but takes exactly two Lisp Objects as format args.
19896
19897 * buffer.c (Fkill_buffer): Call format2 instead of format1.
19898
a97e4138 198992003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
19900
19901 * xterm.h: Change to return value of x_dispatch_event to int.
19902
19903 * xterm.c (x_filter_event): New function.
19904 (event_handler_gdk, XTread_socket): Call x_filter_event.
19905 (x_dispatch_event): Change to return value of finish.
19906 (event_handler_gdk): Use return value from x_dispatch_event.
19907
19908 * xfns.c (x_window): Call create_frame_xic for GTK version to
19909 initialize input methods.
19910
19911 * gtkutil.h: Add (void) prototypes.
19912
19913 * gtkutil.c (create_menus): Remove code that puts the help menu to
19914 the right.
19915
54eefef1
JR
199162003-01-25 Jason Rumney <jasonr@gnu.org>
19917
19918 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
19919 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
19920 (png_load): Adjust colors for Windows. Use Windows
19921 bitmaps. Disable color table lookups.
c262430d
JR
19922 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
19923 (init_png_functions): New function.
19924 (png_read_from_memory, png_load): Call png library functions
19925 through pointers determined at runtime.
19926 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
19927 (init_external_image_libraries): New function.
19928 (init_xfns): Call it.
54eefef1 19929
1a9e275b
AS
199302003-01-24 Andreas Schwab <schwab@suse.de>
19931
19932 * minibuf.c (Fminibuffer_message): Verify type of parameter.
19933
a97e4138 199342003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
19935
19936 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
19937 of static initializer.
19938
422eec7e
DL
199392003-01-24 Dave Love <fx@gnu.org>
19940
19941 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
19942 architectures.
19943
19944 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
19945 Use __alignof__.
19946
2a026b04
KH
199472003-01-24 Kenichi Handa <handa@m17n.org>
19948
19949 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 19950 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
19951 (command_loop_1): Call adjust_point_for_property with proper
19952 second arg.
19953
a18bb28d
JR
199542003-01-22 Jason Rumney <jasonr@gnu.org>
19955
19956 Sync changes with xterm.c and xfns.c.
19957
19958 * w32term.c (x_draw_glyph_string_foreground)
19959 (x_draw_composite_glyph_string_foreground): Implement overstriking.
19960
19961 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
19962 phys_cursor's hpos is overwritten. This is still not completely
19963 correct, as it doesn't really make sense to use hpos at all to
19964 get the cursor glyph (as that is relative to the width of the
19965 characters on the line, which may have changed during the update).
19966
19967 * w32term.c (notice_overwritten_cursor): Handle the special case
19968 of the cursor being in the first blank non-text line at the
19969 end of a window.
19970
19971 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
19972 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
19973 Compute from the x position returned by x_draw_glyphs.
19974
19975 (x_display_and_set_cursor): Don't set phys_cursor_width here,
19976 except for NO_CURSOR and system caret, to make phys_cursor_width
19977 contain what its name suggests.
19978 (notice_overwritten_cursor): Consider the cursor image erased if
19979 the output area intersects the cursor image in y-direction.
19980
6a097c0c
SM
19981 * w32term.c (note_mode_line_or_margin_highlight): Rename from
19982 note_mode_line_highlight and extend.
a18bb28d
JR
19983
19984 * w32term.c (last_window): New variable.
19985 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
19986 (note_mouse_movement): Remove reimplemented code in #if 0.
19987
19988 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
19989 not update_mode_lines, and always set it to 1.
19990
ac6e47ef
JR
199912003-01-21 Jason Rumney <jasonr@gnu.org>
19992
19993 * w32fns.c (IDC_HAND): Define it if system headers don't.
19994
199952003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
19996
19997 * w32term.h (struct w32_output): New member hand_cursor.
19998 (WM_EMACS_SETCURSOR): New message definition.
19999
20000 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
20001 function w32_define_cursor.
20002 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
20003 position, change member name output_data.x to output_data.w32 and
20004 add function w32_define_cursor.
20005 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
20006 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
20007 (w32_initialize_display_info):
20008 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
20009
20010 * w32fns.c (Vx_hand_shape): New variable.
20011 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
20012 WM_EMACS_SETCURSOR.
20013 (x-create-frame): Setup Cursor types.
20014
ceb39a17
JB
200152003-01-21 David Ponce <david@dponce.com>
20016
ac6e47ef 20017 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
20018 ccl->reg[2] to -1 before calling ccl_driver.
20019 (Sync. with xterm.c x_encode_char change by Kenichi Handa
20020 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
20021 (w32_draw_relief_rect): Declare all args.
20022 (w32_define_cursor): New.
20023
20024 * w32fns.c (w32_load_cursor): New function.
20025 (w32_init_class): Use it.
20026 (x_put_x_image): Declare all args.
20027
b6189c3b 200282003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
20029
20030 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
20031
a97e4138 200322003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476 20033
14a56a1b 20034 * gtkutil.c: Must include stdio.h before termhooks.h.
e8794476 20035
83fc9c63
DL
200362003-01-21 Dave Love <fx@gnu.org>
20037
20038 * alloc.c (Fgc_status): Print zombie list.
20039 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
20040 Fix assignment of zombies.
20041 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
20042 Don't take car of non-cons.
20043
20044 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20045
20046 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20047
fe04b8c8
JR
200482003-01-20 David Ponce <david@dponce.com>
20049
20050 * w32menu.c (digest_single_submenu): Declare all args.
20051
20052 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
20053 changes in xmenu.c:
20054
20055 (parse_single_submenu): Use individual keymap's prompt
20056 string as pane name, if there is one.
20057 (set_frame_menubar): Save menu_items_n_panes from each call to
20058 parse_single_submenu and use it when calling digest_single_submenu.
20059
539e69a9
ST
200602003-01-20 Steven Tamm <steventamm@mac.com>
20061
7e26f91b 20062 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
20063 before sending a scroll-wheel event.
20064
675d000f
RS
200652003-01-20 Richard M. Stallman <rms@gnu.org>
20066
20067 * xdisp.c (redisplay_window): If mini window's buffer is not
20068 a minibuffer, then redisplay it like other windows.
20069
a97e4138 200702003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
20071
20072 * gtkutil.c (xg_create_frame_widgets): Check if there is an
20073 external tool bar before setting tool bar height.
20074
048addec
JD
200752003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20076
20077 * xterm.c (handle_one_xevent): Surround popup_activated
20078 with #ifdef:s for non-toolkit version.
20079
14a56a1b 20080 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
048addec
JD
20081 (gtkutil.o): New file.
20082 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
20083 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
20084
20085 * gtkutil.c: New file for GTK version.
20086
20087 * gtkutil.h: New file for GTK version.
20088
20089 * xterm.h: Add xt_or_gtk_widget.
20090 Include gtk files for USE_GTK.
20091 (struct x_output): Add toolbar_height.
20092 (struct x_output): Add GTK widgets and Gdk size_hints.
20093 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
20094 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
20095 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
20096
20097 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 20098 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
20099 (note_mouse_highlight): Check popup_activated for USE_GTK.
20100 (xt_action_hook): Don't compile if USE_GTK.
20101 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
20102 (xg_scroll_callback): New function.
20103 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
20104 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
20105 for USE_GTK.
20106 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
20107 xg_show_scroll_bar for USE_GTK.
20108 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
20109 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
20110 (event_handler_gdk): New function for USE_GTK.
20111 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
20112 (handle_one_xevent): Make sure widget is mapped before
20113 calling x_real_positions for USE_GTK.
20114 (XTread_socket): Add GTK event loop for USE_GTK.
20115 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
20116 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
20117 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
20118 (x_iconify_frame): Add code for USE_GTK.
20119 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
20120 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
20121 is in gtkutil.c.
20122 (x_term_init): Add initialization for GTK.
20123 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
20124
20125 * xmenu.c: Include gtkutil.h for USE_GTK.
14a56a1b 20126 (Fx_popup_menu): Use current position if x and y are nil.
6bdb309a
SM
20127 (single_menu_item, single_menu_item, Fx_popup_dialog):
20128 Check for USE_GTK.
048addec
JD
20129 (popup_widget_loop): New function for USE_GTK.
20130 (x_activate_menubar): Add code for USE_GTK.
20131 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
20132 (menu_highlight_callback, menubar_selection_callback):
20133 Add USE_GTK versions.
048addec
JD
20134 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
20135 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
20136 (free_frame_menubar): Only compile if not USE_GTK. GTK version
20137 is in gtkutil.c.
20138 (popup_selection_callback): New version for USE_GTK.
20139 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 20140 one USE_X_TOOLKIT version.
048addec
JD
20141 (xmenu_show): Call create_and_show_popup_menu.
20142 (dialog_selection_callback): New version for USE_GTK.
20143 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 20144 one USE_X_TOOLKIT version.
048addec
JD
20145 (xdialog_show): Call create_and_show_dialog.
20146
20147 * xfns.c: Include gtkutil for USE_GTK.
20148 (x_window_to_frame, x_any_window_to_frame)
20149 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
20150 (x_top_window_to_frame): Add code for USE_GTK.
20151 (x_set_background_color): Call xg_set_background_color for GTK.
20152 (x_set_menu_bar_lines): Check for USE_GTK.
20153 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
20154 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
20155 (x_window): Call xg_create_frame_widgets for USE_GTK.
14a56a1b 20156 (Fx_create_frame): Check for USE_GTK.
048addec
JD
20157 (Fx_file_dialog): New implementation for USE_GTK.
20158
20159 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
20160 (update_menu_bar): Add check for USE_GTK.
20161 (update_tool_bar): Add check for USE_GTK and external tool bar.
20162 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
20163 (redisplay_internal): Add check for USE_GTK and popup_activated.
20164 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
20165 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
20166 (display_menu_bar): Add check for USE_GTK
20167
78819ebb 20168 * lisp.h (Vx_resource_name): Declare extern.
048addec 20169
a64387ee 20170 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
20171 for USE_GTK.
20172 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
20173
20174 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
20175 (FRAME_EXTERNAL_TOOL_BAR): New macro.
20176 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
20177
20178 * fileio.c (Fread_file_name): Add check for USE_GTK.
20179
6bdb309a
SM
20180 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
20181 Add check for USE_GTK.
048addec 20182
14a56a1b 20183 * config.in: Added HAVE_GTK.
048addec
JD
20184
20185 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
20186
201872003-01-18 Stefan Monnier <monnier@cs.yale.edu>
20188
20189 * charset.h (Funibyte_char_to_multibyte): Export.
20190
201912003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20192
20193 * xmenu.c (mouse_position_for_popup): New function.
20194 (Fx_popup_menu): Call mouse_position_for_popup for X and
20195 mouse_position_hook for others.
20196
201972003-01-17 Kim F. Storm <storm@cua.dk>
20198
20199 * editfns.c (Finsert): Mention `string-make-multibyte' and
20200 `string-as-multibyte' in doc string.
20201
202022003-01-17 Kenichi Handa <handa@m17n.org>
20203
20204 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 20205
048addec
JD
20206 * editfns.c (Fformat): Convert an unibyte char argument that is
20207 formatted by "%c" to multibyte if the total result must be a
20208 multibyte string.
cd7df9c0 20209
048addec 202102003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 20211
048addec
JD
20212 * process.c (set-process-filter): Document unibyte/multibyte-ness
20213 of string argument.
56210ecd 20214
048addec 202152003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 20216
048addec 20217 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 20218
048addec
JD
20219 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
20220 (re_search_2): Likewise.
6df8b9fe 20221
048addec 202222003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 20223
048addec
JD
20224 * xdisp.c (message_dolog): Fix bug of the case that *Message*
20225 buffer is unibyte.
292ddc31 20226
048addec 202272003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 20228
048addec 20229 * fns.c (Fsubstring): Clarify doc string.
292ddc31 20230
048addec
JD
20231 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
20232 (Fprevious_char_property_change)
20233 (Fnext_single_char_property_change)
20234 (Fprevious_single_char_property_change, Fnext_property_change)
20235 (Fnext_single_property_change, Fprevious_property_change)
20236 (Fprevious_single_property_change, Fadd_text_properties)
20237 (Fput_text_property, Fset_text_properties)
20238 (Fremove_text_properties, Fremove_list_of_text_properties)
20239 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 20240
048addec 202412003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 20242
048addec
JD
20243 * process.h (struct Lisp_Process): New member plist replaces old
20244 member private_vars. All uses changed.
63e4e4c6 20245
048addec 20246 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 20247 (QCplist): Rename from QCvars. Change all uses.
048addec 20248 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 20249 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 20250 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 20251 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 20252
048addec 202532003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 20254
6bdb309a 20255 * m/delta.h: Remove (obsolete).
e833850f 20256
048addec 202572003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 20258
048addec
JD
20259 * fileio.c (Fdelete_directory, Fdelete_file): Document the
20260 behaviour in front of symlinks.
20261 (Fdelete_file): Raise an error on directories.
817cb127 20262
048addec 202632003-01-13 Dave Love <fx@gnu.org>
817cb127 20264
048addec 20265 * fns.c (Freverse): Use QUIT.
3e8cf2ea 20266
048addec 202672003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 20268
048addec
JD
20269 * minibuf.c (minibuffer_completion_contents):
20270 Error if point is inside prompt.
3e8cf2ea 20271
048addec
JD
20272 * keyboard.c (command_loop_1): Don't redisplay directly
20273 if there's a post-command-hook.
3e8cf2ea 20274
048addec
JD
20275 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
20276 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 20277
048addec 202782003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 20279
048addec 20280 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 20281
048addec
JD
20282 * process.c (QCvars): New variable.
20283 (syms_of_process): Intern and staticpro it.
20284 (Fset_process_contact): Removed function.
20285 (Fprocess_variable, Fset_process_variable): New functions.
20286 (syms_of_process): Defsubr them.
20287 (Fstart_process): Initialize private_vars plist to nil.
20288 (Fmake_network_process): New arg :vars to setup the private
20289 variables for new network process.
20290 (server_accept_connection): Copy server's private variables to
20291 client process.
2c10f029 20292
048addec
JD
20293 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
20294 crashes). Code rewritten and simplified. Now directly aligns the
20295 pointer and recalculates pure_bytes_used, rather than aligning the
20296 size and adjusting the pointer.
b8a76c6c 20297
048addec 202982003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 20299
048addec
JD
20300 * process.c (Fset_process_contact): New function.
20301 (syms_of_process): defsubr it.
20302 (make-network-process): Update doc.
3a8d0899 20303
048addec 203042003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 20305
048addec
JD
20306 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
20307 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 20308
048addec 203092003-01-10 Dave Love <fx@gnu.org>
4abc7470 20310
048addec 20311 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 20312
048addec 203132003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 20314
048addec
JD
20315 * process.c (Fmake_network_process): Convert new port number
20316 to host byte order for `:service t' case. From Mario Lang.
bf338245 20317
048addec 203182003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 20319
048addec
JD
20320 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
20321 instead of XtAppProcessEvent.
bf338245 20322
048addec
JD
20323 * xterm.c (handle_one_xevent): New function.
20324 (x_dispatch_event): New function.
20325 (XTread_socket): Call handle_one_xevent.
bf338245 20326
048addec 20327 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 20328
048addec
JD
20329 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
20330 call XQueryPointer to get coordinates.
20331 (popup_get_selection): Do not set popup_activated_flag to zero,
20332 let popup_deactivate_callback do that. Needed for Motif.
20333 Call x_dispatch_event instead of XtDispatchEvent.
20334 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 20335
048addec 203362003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 20337
6bdb309a 20338 * process.c (server_accept_connection): Fix recording of new
048addec
JD
20339 connection's local address in :local property of contact info.
20340 (Fmake_network_process): Record local network address for new
20341 client processes in :local property of contact info.
6bdb309a 20342 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 20343
048addec 203442003-01-07 Dave Love <fx@gnu.org>
00e3ab56 20345
048addec 20346 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 20347
ddec2286
RS
203482003-01-06 Dave Love <fx@gnu.org>
20349
20350 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
20351 (Vlocale_coding_system): Declare.
20352 (Qcodeset, Qdays, Qmonths, Qpaper): New.
20353 (Flanginfo): New.
20354 (syms_of_fns): Initialize new stuff.
20355
048addec 203562003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 20357
048addec 20358 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 20359
048addec
JD
20360 * eval.c (Fuser_variable_p): Doc change. For custom variables,
20361 use the same test as for custom-variable-p.
8c6d74c6 20362
048addec 203632003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 20364
048addec
JD
20365 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
20366 Count LAST_LINE_MISFIT in scroll margin for end of window.
20367 Move label too_near_end before setting SCROLL_MARGIN_POS.
20368 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 20369
048addec
JD
20370 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
20371 scroll_conservatively case. If scrolling that much doesn't change
20372 STARTP, move it down one line.
e833850f 20373
048addec
JD
20374 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
20375 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 20376
048addec
JD
20377 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
20378 selected frame.
8c6d74c6 20379
048addec 20380 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 20381 (syms_of_keymap): Staticpro them.
048addec
JD
20382 (Fapropos_internal): Initialize them and clear them out.
20383 Don't GCPRO them.
8c6d74c6 20384
f5ecbcee 20385 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
8c6d74c6 20386
048addec
JD
20387 * lisp.h: New misc type Lisp_Save_Value.
20388 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
20389 (XSAVE_VALUE): New macro.
20390 (struct Lisp_Save_Value): New data type.
20391 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 20392 (make_save_value): Declare.
8c6d74c6 20393
048addec 20394 * alloc.c (make_save_value): New function.
8c6d74c6 20395
048addec
JD
20396 * xterm.c (x_catch_errors): Save dpy using make_save_value.
20397 (x_catch_errors_unwind): Call XSync.
8c6d74c6 20398
048addec 203992003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 20400
048addec 20401 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 20402
048addec
JD
20403 * keyboard.c (command_loop_1): Call adjust_point_for_property
20404 in direct action cases for Qforward_char and Qbackward_char.
20405 Set already_adjusted so it won't be done twice.
8c6d74c6 20406
b6189c3b 204072002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 20408
048addec
JD
20409 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
20410 type definition of size_t.
8c609cff 20411
048addec 204122003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 20413
048addec
JD
20414 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
20415 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 20416
048addec 204172002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 20418
048addec
JD
20419 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
20420 to default to t.
fa634a5e 20421
048addec 204222002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 20423
048addec 20424 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 20425
048addec 204262002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 20427
7e26f91b 20428 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
20429 allow building in a different directory than source. Uses some
20430 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 20431
048addec 204322002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 20433
048addec
JD
20434 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
20435 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
20436 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
20437 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 20438
048addec 204392002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 20440
048addec
JD
20441 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
20442 <scroll-down-aggressively>: Doc fix.
2155ecf3 20443
048addec
JD
20444 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
20445 string as pane name, if there is one.
20446 (set_frame_menubar): Save menu_items_n_panes from each call to
20447 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 20448
048addec
JD
20449 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
20450 Don't try to make last line fully visible if it is past end of window.
61f1d295 20451
048addec 204522002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 20453
048addec
JD
20454 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
20455 (mac_menu_show): Add support for hierarchical popup menus.
20456 (add_menu_item): Remove indentation support.
20457 (fill_submenu, fill_menu): Create hierarchical menus
20458 instead of using indentation.
0b17a217 20459
048addec 204602002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 20461
048addec
JD
20462 * xdisp.c (try_cursor_movement): Don't call try_window here.
20463 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 20464
048addec 20465 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 20466
048addec 204672002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 20468
048addec
JD
20469 * macterm.c (XTread_socket): Call KeyTranslate for control and
20470 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 20471 being treated like C-%. Do not look for shift key to deal
048addec 20472 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 20473
048addec 204742002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 20475
048addec
JD
20476 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
20477 If it is non-nil, run timers. Use an unwind-protect to requeue
20478 the events that were read ahead.
20479 (popup_get_selection_unwind): New subroutine.
20480 (popup_get_selection_queue): File-scope variable now holds that queue.
20481 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
20482 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
20483 Use an unwind-protect to pop down the dialog box.
20484 (xdialog_show_unwind): New subroutine implements that.
f02cac82 20485
048addec
JD
20486 * xdisp.c (row_containing_pos): Change exit test using last_y.
20487 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 20488
048addec
JD
20489 * lread.c (load_error_handler): New function.
20490 (Fload): Handle errors in Fsubstitute_in_file_name.
20491 Don't expect Fsignal to return.
f02cac82 20492
048addec
JD
20493 * eval.c: Errors and throws work right with interrupt blocking.
20494 (struct catchtag): New elt interrupt_input_blocked.
20495 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
20496 (internal_catch, Fcondition_case, internal_condition_case)
20497 (internal_condition_case_1, internal_condition_case_2): Save it.
20498 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 20499
048addec 20500 * editfns.c (Fformat): Add parens.
f02cac82 20501
048addec
JD
20502 * dired.c (file_name_completion): Fix that change.
20503 Delete special quit-handling code; just use QUIT.
f02cac82 20504
b6189c3b 205052002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 20506
048addec
JD
20507 * dired.c (file_name_completion): Close directory on error
20508 just as in directory_files_internal.
1a590729 20509
048addec 205102002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 20511
048addec
JD
20512 * window.c (Fset_window_configuration): Set old_point to correct
20513 value when new_current_buffer == current_buffer.
f02cac82 20514
048addec 205152002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 20516
048addec
JD
20517 Revisited my earlier fix for the following entry in etc/PROBLEMS:
20518 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
20519 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 20520
048addec
JD
20521 These changes were in part based upon suggestions made by Peter
20522 'Luna' Runestig [peter@runestig.com].
9785d95b 20523
f4a5a485
SM
20524 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
20525 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
20526 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 20527 global variables.
9785d95b 20528
048addec
JD
20529 * w32.c (globals_of_w32): New function. Used to initialize those
20530 global variables that must always be initialized on startup even
20531 when the global variable initialized is non zero. Its primary
20532 purpose at this time is to set the global variables
20533 g_b_init_is_windows_9x, g_b_init_open_process_token,
20534 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
20535 g_b_init_get_sid_identifier_authority to 0 on startup.
20536 Called from main.
9785d95b 20537
048addec
JD
20538 * w32.c (is_windows_9x): Perform initialization only if
20539 g_b_init_is_windows_9x is equal to 0. On initialization set
20540 g_b_init_is_windows_9x equal to 1.
2308af15 20541
048addec
JD
20542 * w32.c (open_process_token): Perform initialization only if
20543 g_b_init_open_process_token is equal to 0. On initialization set
20544 g_b_init_open_process_token equal to 1.
2308af15 20545
048addec
JD
20546 * w32.c (get_token_information): Perform initialization only if
20547 g_b_init_get_token_information is equal to 0. On initialization
20548 set g_b_init_get_token_information equal to 1.
9785d95b 20549
048addec
JD
20550 * w32.c (lookup_account_sid): Perform initialization only if
20551 g_b_init_lookup_account_sid is equal to 0. On initialization
20552 set g_b_init_lookup_account_sid equal to 1.
9785d95b 20553
048addec
JD
20554 * w32.c (get_sid_identifier_authority): Perform initialization
20555 only if g_b_init_get_sid_identifier_authority is equal to 0.
20556 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 20557
f63fd14e 20558 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
20559 those global variables that must always be initialized on startup
20560 even when the global variable initialized is non zero.
20561 Its primary purpose at this time is to initialize the global variable
20562 track_mouse_event_fn.
9785d95b 20563
a64387ee 20564 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 20565 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 20566
048addec 20567 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 20568
f63fd14e 20569 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
20570 initialize those global variables that must always be initialized
20571 on startup even when the global variable initialized is non zero.
20572 Its primary purpose at this time is to initialize the global
20573 variables get_menu_item_info and set_menu_item_info.
9785d95b 20574
048addec
JD
20575 * w32menu.c (initialize_frame_menubar): Remove initialization of
20576 get_menu_item_info and set_menu_item_info.
9785d95b 20577
048addec 20578 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 20579
048addec
JD
20580 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
20581 Declare them.
9785d95b 20582
048addec
JD
20583 * emacs.c (main): Call globals_of_w32 prior to calling
20584 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
20585 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
20586 is defined.
9785d95b 20587
048addec
JD
20588 * w32term.c (x_update_window_begin): Fix Windows API error
20589 detected by BoundsChecker. Test to determine if
20590 w32_system_caret_hwnd is NULL prior to attempting to use
20591 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 20592
048addec
JD
20593 * w32term.c (x_update_window_end): Fix Windows API error
20594 detected by BoundsChecker. Test to determine if
20595 w32_system_caret_hwnd is NULL prior to attempting to use
20596 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 20597
048addec 205982002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 20599
048addec
JD
20600 * coding.c (coding_system_require_warning): New variable.
20601 (syms_of_coding): DEFVAR it.
b6da19ef 20602
048addec 20603 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 20604
048addec
JD
20605 * fileio.c (choose_write_coding_system): Even if
20606 Vcoding_system_for_write is non-nil, if
20607 coding_system_require_warning is nonzero, call
20608 Vselect_safe_coding_system_function.
bfcf6dbe 20609
048addec 206102002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 20611
048addec
JD
20612 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
20613 (lisp): Add font-core.
2c568af5 20614
048addec 206152002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 20616
048addec
JD
20617 * textprop.c (text_read_only): New arg `propval'.
20618 (get_char_property_and_overlay): Remove unused var `next_overlay'.
20619 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 20620
048addec 206212002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 20622
048addec 20623 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 20624
048addec 206252002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 20626
048addec
JD
20627 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
20628 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
20629 Be more careful about when help_events are generated.
96720f09 20630
048addec 206312002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 20632
048addec
JD
20633 * macterm.c (mac_check_for_quit_char): Correctly set the
20634 modifiers of the event to 0.
20635 * mac.c (sys_select): Duplicate rfds before calling select to
20636 ensure that rfds survive the while loop.
e5ae1c49 20637
048addec 206382002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 20639
048addec
JD
20640 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
20641 row_containing_pos returned NULL.
2eb46b2d 20642
048addec 206432002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 20644
6bdb309a 20645 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 20646 non-blocking.
6bdb309a 20647 (sys_select): Fix sys_select to not use a timeout larger than
048addec 20648 the one given.
b11f1d8a 20649
048addec 206502002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 20651
048addec 20652 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 20653
048addec 206542002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 20655
048addec
JD
20656 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
20657 as the last thing.
a4ac5b17 20658
048addec 206592002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 20660
048addec 20661 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 20662
048addec 206632002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 20664
048addec
JD
20665 * editfns.c (Fformat): Handle precision in string conversion
20666 specifiers like libc functions do (ie, print at most that many
20667 characters).
85cce843 20668
048addec 206692002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 20670
048addec
JD
20671 * xdisp.c (row_containing_pos): Check more carefully
20672 whether charpos is really in the row before returning it.
0d4d26a7 20673
048addec 206742002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 20675
048addec 20676 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 20677
048addec
JD
20678 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
20679 each stack frame. This may change as it could be time consuming.
0d4d26a7 20680
048addec
JD
20681 * macterm.c (mac_check_for_quit_char, quit_char_comp)
20682 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 20683 (mac_initialize): Add code to check for pressing of quit_char
048addec 20684 in the OS event queue.
b11f1d8a 20685
048addec
JD
20686 * mac.c (sys_select): Call mac_check_for_quit_char every second
20687 while blocking on select.
0d4d26a7 20688
048addec
JD
20689 * mac.c (sys_read): Use sys_select to test for input first
20690 before calling read, to allow C-g to break.
9252f7bc 20691
048addec 206922002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 20693
048addec 20694 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 20695
048addec 20696 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 20697
048addec 20698 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 20699
048addec
JD
20700 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
20701 autoload.
9252f7bc 20702
048addec 20703 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 20704
048addec 20705 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 20706
c6605d63 207072002-12-06 Francesco Potort\e,Al\e(B <pot@gnu.org>
bfa261c0 20708
048addec 20709 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 20710
048addec 207112002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 20712
048addec 20713 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 20714
048addec 20715 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 20716
048addec 20717 * alloca.c: Don't use #error.
02d588e2 20718
048addec 207192002-12-03 Dave Love <fx@gnu.org>
02d588e2 20720
048addec
JD
20721 * buffer.c (Qucs_set_table_for_input): New.
20722 (Fget_buffer_create): Use it.
20723 (Qset_buffer_major_mode_hook): Deleted.
20724 (Fset_buffer_major_mode): Revert previous change.
20725 (init_buffer_once): Intern ucs-set-table-for-input.
20726 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
20727 Add &Qucs_set_table_for_input.
451e2697 20728
048addec 207292002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 20730
048addec
JD
20731 * callint.c (Fcall_interactively): Use next_event only if less
20732 than key_count.
72742a99 20733
048addec 207342002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 20735
048addec
JD
20736 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
20737 names to 255 characters.
72742a99 20738
048addec
JD
20739 * macterm.c (XTread_socket): If all frames have been collapsed,
20740 expand the first one before handling drag-and-drop events.
72742a99 20741
048addec
JD
20742 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
20743 which is detected by autoconf.
40e6ff95 20744
048addec 207452002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 20746
048addec
JD
20747 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
20748 offset in two hints table to allow prebinding to be redone and
20749 allow the executable to be stripped.
c02138c6 20750
048addec 207512002-11-29 Dave Love <fx@gnu.org>
c02138c6 20752
048addec
JD
20753 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
20754 already provided.
0e47bbf7 20755
048addec 207562002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 20757
048addec
JD
20758 * xdisp.c (start_display): Check more intelligently for
20759 whether the line is continued.
20760 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 20761
048addec 207622002-11-28 Dave Love <fx@gnu.org>
44129dcb 20763
048addec
JD
20764 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
20765 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 20766
048addec 207672002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 20768
048addec
JD
20769 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
20770 more descriptive error output from lread.c:Fload upon most require
20771 cycles during boostrapping.
1637fd2c 20772
048addec 207732002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 20774
048addec
JD
20775 * fileio.c (Finsert_file_contents): Give a more appropriate error
20776 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 20777
048addec
JD
20778 * dired.c (Ffile_attributes): Don't return negative file sizes for
20779 files bigger than 2Gb when off_t is 32 bit.
540c2788 20780
048addec 207812002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 20782
048addec 20783 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 20784
048addec
JD
20785 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
20786 Test GETPGRP_VOID instead.
20787 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 20788
048addec
JD
20789 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
20790 Don't define.
20791 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 20792
048addec 20793 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 20794
048addec 207952002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 20796
048addec
JD
20797 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
20798 supported.
4042a81a 20799
048addec 208002002-11-25 Dave Love <fx@gnu.org>
4042a81a 20801
048addec 20802 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 20803
048addec 20804 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 20805
048addec 208062002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 20807
048addec 20808 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 20809
048addec 208102002-11-24 Steven Tamm <steventamm@mac.com>
82122254 20811
048addec
JD
20812 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
20813 determine the size of pointers alloced in unexed space instead
20814 of using possibly invalid emacs_zone pointers. This fixes the
20815 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 20816
048addec 208172002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 20818
048addec 20819 * search.c (Fstring_match): Doc fix.
c1ee53bc 20820
048addec
JD
20821 * callint.c (Fcall_interactively): If a command fails because
20822 `*' detects a read-only buffer, but RECORD_FLAG is set,
20823 record it anyway if the args don't actually do tty input.
5598c32e 20824
048addec 208252002-11-22 Dave Love <fx@gnu.org>
5598c32e 20826
048addec 20827 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 20828
048addec
JD
20829 * keyboard.c (interrupt_signal): Provide forward declaration.
20830 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 20831
048addec 20832 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 20833
048addec 208342002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 20835
048addec
JD
20836 * eval.c (interactive_p): Skip any number of bytecode
20837 and special form frames, in any order.
516eea8e 20838
048addec 208392002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 20840
048addec
JD
20841 * w32fns.c (convert_mono_to_color_image): New function.
20842 (xbm_load, xbm_load_image): Use it when foreground or background
20843 is explicitly set.
04dbfa08 20844
048addec 208452002-11-19 Dave Love <fx@gnu.org>
04dbfa08 20846
048addec 20847 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 20848
048addec 208492002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 20850
048addec
JD
20851 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
20852 (XPutPixel): Swap blue and red.
20853 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
20854 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
20855 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
20856 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 20857
048addec 208582002-11-18 Dave Love <fx@gnu.org>
d824beee 20859
048addec 20860 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 20861
048addec 20862 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 20863
048addec 20864 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 20865
048addec
JD
20866 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
20867 malloc, realloc, calloc.
d824beee 20868
048addec
JD
20869 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
20870 (bcmp): Don't define.
d824beee 20871
048addec 20872 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 20873
048addec 20874 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 20875
048addec 20876 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 20877
048addec 20878 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 20879
048addec
JD
20880 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
20881 Don't include alloca.h.
d824beee 20882
048addec 20883 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 20884
048addec 20885 * regex.c (_GNU_SOURCE): Don't define.
1998560a 20886
048addec 20887 * process.c (_GNU_SOURCE): Don't define.
1998560a 20888
048addec 20889 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 20890
048addec 208912002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 20892
048addec 20893 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 20894
048addec 208952002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 20896
048addec
JD
20897 * dispextern.h (struct face): Add `overstrike' field.
20898 * xterm.c (x_draw_glyph_string_foreground)
20899 (x_draw_composite_glyph_string_foreground): Implement overstriking.
20900 * xfaces.c (load_face_font): Set `face->overstrike' based on
20901 result from choose_face_font.
20902 (best_matching_font, choose_face_font): Add `needs_overstrike'
20903 argument, and use it to return whether overstriking is desirable
20904 for this face/font combo.
20905 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 20906
048addec 209072002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 20908
048addec
JD
20909 This change is my fix for the following entry in etc/PROBLEMS:
20910 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
20911 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 20912
048addec
JD
20913 * w32.c: Added wrapper functions around the win32 API functions
20914 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
20915 GetSidIdentifierAuthority. These wrapper functions serve two
20916 purposes:
20917 1. They ensure that the wrapped function can never be called
20918 when Emacs is running on an operating system on which they are
20919 not supported (Microsoft Windows 95 / 98 / ME).
20920 2. They call the wrapped functions via function pointers rather
20921 than calling them directly. This avoids taking advantage of the
20922 undocumented fact that although these functions are not supported
20923 in the 9x branch of Microsoft Windows, the functions do exist in
20924 the version of advapi32.dll that is found in the 9x branch of
20925 Microsoft Windows.
f60ae425 20926
6bdb309a 20927 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
20928 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
20929 and GetSidIdentifierAuthority with calls to the newly added
20930 wrapper functions.
f60ae425 20931
048addec
JD
20932 * w32.h: Added extern declarations for the following functions:
20933 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
20934 syms_of_w32menu, and void syms_of_fontset.
f60ae425 20935
6bdb309a 20936 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
20937 function pointer track_mouse_event_fn in the handler for the
20938 WM_SETFOCUS message.
3582b6a3 20939
6bdb309a 20940 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
20941 reinitialize the function pointers set_menu_item_info and
20942 get_menu_item_info.
f60ae425 20943
048addec 209442002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 20945
048addec
JD
20946 * sound.c: Added a partial implementation of play-sound-internal
20947 for Microsoft Windows. Added various #ifdef / #else / #endif
20948 code blocks to separate the code that will compile under
9fed2905 20949 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 20950 Moved several blocks of code around to make this separation of code
9fed2905 20951 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 20952
048addec 20953 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 20954
048addec
JD
20955 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
20956 added support for play-sound-internal under Windows would be
20957 included in the build of Emacs.
517f42a0 20958
048addec 209592002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 20960
048addec 20961 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 20962
048addec 20963 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 20964
048addec 209652002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 20966
048addec
JD
20967 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
20968 (adjust_point_for_property): Move out of display and invisible even if
20969 we were already inside before (in case a property was added while
20970 we weren't looking). Be more careful when handling invisible props.
20971 Skip invisible text as if it really wasn't there at all.
aab83f91 20972
048addec 209732002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 20974
048addec
JD
20975 * w32term.c (x_draw_image_foreground)
20976 (w32_draw_image_foreground_1): Use standard copy and invert
20977 operations to draw images.
aab83f91 20978
048addec
JD
20979 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
20980 depth of 1.
20981 (xbm_read_bitmap_data): Invert bits as xbm is read in.
20982 (XPutPixel): Don't invert bits here.
a4478a76 20983
048addec 209842002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 20985
048addec
JD
20986 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
20987 (w32_draw_image_foreground_1): Handle image masks.
20988 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 20989
048addec
JD
20990 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
20991 (x_from_xcolors): Adjust RGB values for W32.
20992 (image_background, image_background_transparent)
20993 (postprocess_image, x_to_xcolors, x_disable_image)
20994 (x_build_heuristic_mask): Adapt for W32 and enable.
20995 (x_create_x_image_and_pixmap): Mark images with palettes as such.
20996 (xbm_load): Remove unused variable.
03670a65 20997
048addec 209982002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 20999
048addec 21000 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 21001
048addec 210022002-11-14 Dave Love <fx@gnu.org>
59daa29a 21003
048addec 21004 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 21005
048addec
JD
21006 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
21007 * xmenu.c (unuse_menu_items, digest_single_submenu):
21008 * xfns.c (x_put_x_image):
21009 * xdisp.c (message2_nolog, set_message):
21010 * undo.c (record_point):
21011 * terminfo.c (tparam):
21012 * syntax.c (scan_sexps_forward):
21013 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21014 * composite.c (update_compositions):
21015 * cm.c (calccost, cmgoto):
21016 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 21017
048addec 21018 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 21019
048addec
JD
21020 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
21021 Don't declare.
59daa29a 21022
048addec 21023 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 21024
048addec
JD
21025 * fns.c (Fcopy_sequence): Doc fix.
21026 (Fmap_char_table): Cast `call2'.
3947677c 21027
c6605d63 210282002-11-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
048addec
JD
21029
21030 * s/sol2-8.h: New file.
21031
210322002-11-14 Kim F. Storm <storm@cua.dk>
21033
21034 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
21035 dependency on `risky-local-variable' and the :propertize form.
21036
210372002-11-12 Stefan Monnier <monnier@cs.yale.edu>
21038
21039 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
21040
21041 * syntax.c (scan_sexps_forward): Undo last patch.
21042 Use a more obvious fix: check eob before updating the syntax table.
21043
210442002-11-09 Stefan Monnier <monnier@cs.yale.edu>
21045
21046 * syntax.c (scan_sexps_forward): Update syntax table before reading
21047 a char rather than after so we don't update the table past eob.
21048
210492002-11-09 Dave Love <fx@gnu.org>
21050
21051 * buffer.c (Fset_buffer_major_mode): Fix last change.
21052
21053 * regex.c (regexec): Fix pmatch declaration.
21054
21055 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
21056
21057 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
21058 to self-inserting characters.
21059 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
21060
21061 * coding.c (Vtranslation_table_for_input): New.
21062 (syms_of_coding): DEFVAR it.
21063
210642002-11-08 Juanma Barranquero <lektu@terra.es>
21065
21066 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
21067 window.
21068
210692002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21070
6bdb309a 21071 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
21072 cp, and i.
21073
210742002-11-06 Dave Love <fx@gnu.org>
21075
21076 * buffer.c (Qset_buffer_major_mode_hook): New.
21077 (Fset_buffer_major_mode): Use it.
21078
210792002-11-06 Richard M. Stallman <rms@gnu.org>
21080
21081 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
21082 and stop_polling.
21083
21084 * process.c (wait_reading_process_input):
21085 Test POLLING_PROBLEM_IN_SELECT, not hpux.
21086 Avoid initialization for auto Lisp_Object var.
21087
21088 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
21089
21090 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
21091
210922002-11-05 Richard M. Stallman <rms@gnu.org>
21093
21094 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
21095
21096 * callint.c (Fcall_interactively): New local filter_specs.
21097 (Fcall_interactively): Check for progn as well as let.
21098 Add a gcpro.
21099 (Qprogn): New variable.
21100 (syms_of_callint): Staticpro and init Qprogn.
21101
211022002-11-04 John Paul Wallington <jpw@shootybangbang.com>
21103
21104 * lread.c (Feval_buffer): Doc fix.
21105
211062002-11-04 Dave Love <fx@gnu.org>
21107
21108 * keyboard.c (read_char): Always translate iff
21109 Vkeyboard_translate_table is a char table and c is valid.
21110
21111 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21112 and fix C types.
21113
211142002-11-03 Stefan Monnier <monnier@cs.yale.edu>
21115
21116 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
21117
21118 * editfns.c (get_pos_property): Don't hardcode Qfield.
21119
21120 * keyboard.c (adjust_point_for_property): Handle `display' prop on
21121 overlays. Also handle `invisible' prop.
21122
211232002-11-02 Stefan Monnier <monnier@cs.yale.edu>
21124
21125 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
21126 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
21127
211282002-11-01 Andreas Schwab <schwab@suse.de>
21129
21130 * editfns.c (Fmessage): Revert last change to properly handle %%.
21131
211322002-11-01 Stefan Monnier <monnier@cs.yale.edu>
21133
21134 * xmenu.c (unuse_menu_items): New fun.
21135 (menu_items_inuse): New var.
21136 (syms_of_xmenu): Initialize it.
21137 (init_menu_items): Use it to detect re-entrance.
21138 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
21139 (Fx_popup_menu): Remove spurious XSETFRAME.
21140
21141 * editfns.c (find_field): Make an exception for nil fields.
21142
211432002-11-01 Dave Love <fx@gnu.org>
21144
21145 * m/gec63.h: Deleted.
21146
211472002-10-31 Dave Love <fx@gnu.org>
21148
21149 * xterm.c (XTread_socket): Fix last change.
21150 (xaw_scroll_callback): Cast call_data to long to avoid warning.
21151
211522002-10-31 Stefan Monnier <monnier@cs.yale.edu>
21153
21154 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
21155
211562002-10-30 Stefan Monnier <monnier@cs.yale.edu>
21157
21158 * editfns.c (overlays_around, get_pos_property): New funs.
21159 (find_field): Use them.
21160 Also be careful not to modify POS before its last use.
21161 (Fmessage): Don't Fformat if there's nothing to format.
21162
211632002-10-30 Dave Love <fx@gnu.org>
21164
21165 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
21166 [HAVE_PTY_H]; Include pty.h.
21167
21168 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
21169
21170 * xterm.c (Qeql): Declare.
21171 (Vx_keysym_table): New.
21172 (syms_of_xterm): Initialize it.
21173 (XTread_socket): Use it. Deal with ASCII keysyms.
21174 (XSetIMValues) [HAVE_X11R6]: Prototype.
21175
21176 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
21177 (lispy_kana_keys): Comment out.
21178 (make_lispy_event) [XK_kana_A]: Comment out.
21179 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
21180 Fix sprintf call.
21181
21182 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
21183 regexp.h change).
21184 (TERMINFO, LIBS_TERMCAP): Define.
21185
21186 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
21187 (bcmp): Define conditional on HAVE_BCMP.
21188 (NO_SIOCTL_H): Don't define.
21189 (TIOCSIGSEND): Don't make conditional on IRIX6.
21190
21191 * s/sol2-5.h: Don't include strings.h.
21192 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
21193
21194 * s/irix6-0.h (IRIX6): Don't define.
21195 (bcopy, bcmp, bzero): Don't undef.
21196
21197 * s/irix6-5.h: Don't include strings.h.
21198 (IRIX6): Don't define.
21199 (bcopy, bcmp, bzero): Don't undef.
21200
21201 * syntax.c (Fforward_comment): Doc fix.
21202
212032002-10-29 Kim F. Storm <storm@cua.dk>
21204
21205 * process.c (Fsignal_process): Allow PROCESS to be specified by
21206 name in addition to pid (as integer or string).
21207
212082002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
21209
21210 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
21211 environments.
21212
212132002-10-27 Kim F. Storm <storm@cua.dk>
21214
21215 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21216
21217 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
21218
21219 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
21220
21221 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21222
212232002-10-26 Richard M. Stallman <rms@gnu.org>
21224
21225 * editfns.c (Fformat): Detect invalid format letters for floats.
21226
212272002-10-25 Kenichi Handa <handa@m17n.org>
21228
21229 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
21230 (x_set_title): Likewise.
21231
212322002-10-25 Juanma Barranquero <lektu@terra.es>
21233
21234 * macgui.h:
21235 * w32gui.h: Remove definition of XColor.
21236
21237 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
21238
212392002-10-24 Kim F. Storm <storm@cua.dk>
21240
21241 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
21242 Callers changed (supply dummy arg).
21243
21244 * lisp.h (get_window_cursor_type): Update prototype.
21245
21246 * w32term.c (x_display_and_set_cursor): Get active_cursor from
21247 get_window_cursor_type to track system caret.
21248
212492002-10-24 Kim F. Storm <storm@cua.dk>
21250
21251 * process.c (Fformat_network_address): New function.
21252 (syms_of_process): Defsubr it.
21253 (list_processes_1): Use it to format :local/:remote address if
f9711de4 21254 service/host is not set; before Emacs would crash in that case.
048addec
JD
21255 (Fmake_network_process): Don't use Ffind_operation_coding_system
21256 to setup coding system if host or service is not set.
21257
212582002-10-23 Juanma Barranquero <lektu@terra.es>
21259
21260 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
21261
21262 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
21263 COLORREF.
21264
21265 * macgui.h:
21266 * w32gui.h: Add definition of XColor.
21267
21268 * macfns.c:
21269 * w32fns.c:
21270 * xfaces.c: Remove definition of XColor.
21271
212722002-10-22 Stefan Monnier <monnier@cs.yale.edu>
21273
21274 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
21275
21276 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
21277 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
21278 window if it is dedicated.
21279 (Fshrink_window): Add preserve_before as was done for enlarge_window.
21280 (Vspecial_display_function): Update docstring.
21281
21282 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
21283 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
21284 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
21285
212862002-10-21 Stefan Monnier <monnier@cs.yale.edu>
21287
21288 * casefiddle.c (casify_region): Don't treat a prefix char as part
21289 of a word when at the beginning.
21290
212912002-10-17 Juanma Barranquero <lektu@terra.es>
21292
21293 * lread.c (syms_of_lread): Fix typos.
21294
212952002-10-17 Dave Love <fx@gnu.org>
21296
21297 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
21298
212992002-10-16 Richard M. Stallman <rms@gnu.org>
21300
21301 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
21302
213032002-10-14 Juanma Barranquero <lektu@terra.es>
21304
21305 * w16select.c (syms_of_win16select): Fix docstring for
21306 `selection-coding-system'.
21307
21308 * w32select.c (syms_of_w32select): Likewise.
21309
213102002-10-14 Stefan Monnier <monnier@cs.yale.edu>
21311
21312 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
21313 a backslash-quoted char.
21314 (scan_lists, scan_sexps_forward): Pacify the compiler.
21315
213162002-10-13 Richard M. Stallman <rms@gnu.org>
21317
21318 * window.c (window_scroll): Set immediate_quit.
21319
21320 * print.c (print): When backquote form is the car of a list,
21321 output in old style. Use old_backquote_output to output all
21322 comma forms inside it in old style too.
21323
21324 * buffer.h (struct buffer): Move `undo_list' down below `name'.
21325
213262002-10-11 Markus Rost <rost@math.ohio-state.edu>
21327
21328 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
21329 batch mode).
21330
21331 * lread.c (Fload): Doc fix (load-suffixes).
21332
213332002-10-10 Steven Tamm <steventamm@mac.com>
21334
21335 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
21336 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
21337 Also switch the default to Qnil from Qt.
21338
213392002-10-08 Kenichi Handa <handa@m17n.org>
21340
21341 * coding.c (code_convert_region): When we need more GAP for
21342 conversion, pay attention to the case that coding->produced is not
21343 greater than coding->consumed.
21344
213452002-10-07 Richard M. Stallman <rms@gnu.org>
21346
21347 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
21348
213492002-10-06 Andrew Choi <akochoi@shaw.ca>
21350
21351 * macmenu.c (mac_menu_show): Add j to count menu items; match
21352 menu_item_selection to it to find selected item.
21353
213542002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21355
21356 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
21357 cases. The correct fix is to pass ReparentNotify to Xt.
21358 The shell widget interprets ConfigureNotify differently depending
21359 on if it has been reparented or not.
21360
213612002-10-05 Markus Rost <rost@math.ohio-state.edu>
21362
21363 * editfns.c (Fformat_time_string): Doc fix.
21364
213652002-10-05 John Paul Wallington <jpw@shootybangbang.com>
21366
21367 * fns.c (Flength): Doc fix.
21368
213692002-10-04 Stefan Monnier <monnier@cs.yale.edu>
21370
21371 * keyboard.c (keyremap): New struct.
21372 (read_key_sequence): Use it: globally replace keytran_foo with
21373 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
21374 keytran_next and fkey_next to just `next'.
21375
213762002-10-04 Steven Tamm <steventamm@mac.com>
21377
21378 * macterm.c (keycode_to_xkeysym_table): Change return to be
21379 treated like an X keysym.
21380
213812002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21382
21383 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
21384 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
21385 This is to also handle x/y changes that occur because of a resize.
21386
213872002-10-02 John Paul Wallington <jpw@shootybangbang.com>
21388
21389 * frame.c (Vdelete_frame_functions): New variable.
21390 (syms_of_frame): Initialize and defvar it.
21391 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
21392 it when frame's `tooltip' parameter is non-nil.
21393
21394 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
21395
21396 * w32fns.c (x_create_tip_frame): Likewise.
21397
21398 * macfns.c (x_create_tip_frame): Likewise.
21399
214002002-09-30 Kenichi Handa <handa@m17n.org>
21401
21402 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
21403 -1 before calling ccl_driver.
21404
21405 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
21406 Only when it is non-nil, handle composition sequence.
21407 (setup_coding_system) <0>: Don't force composition handling.
21408
14a56a1b 21409 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
048addec
JD
21410
214112002-09-29 Richard M. Stallman <rms@gnu.org>
21412
21413 * search.c (Freplace_match): Adjust match data for the substitution
21414 just made in the buffer.
21415
21416 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
21417 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
21418
214192002-09-27 Richard M. Stallman <rms@gnu.org>
21420
21421 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
21422 (read_char): Use them. Do all exits thru the end of the function.
21423
214242002-09-27 Kenichi Handa <handa@etl.go.jp>
21425
21426 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
21427 is nil.
21428
214292002-09-26 Richard M. Stallman <rms@gnu.org>
21430
21431 * regex.h (__restrict_arr): Don't define if already defined.
21432
21433 * coding.c (run_pre_post_conversion_on_str):
21434 Save and restore Vdeactivate_mark.
21435
214362002-09-26 John Paul Wallington <jpw@shootybangbang.com>
21437
21438 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
21439
214402002-09-26 Kenichi Handa <handa@etl.go.jp>
21441
21442 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
21443 nonzero, try face's family at first. Otherwise try FAMILY at first.
21444 (choose_face_font): If C is a single byte char or latin-1, call
21445 try_font_list with PREFER_FACE_FAMILY 1.
21446
214472002-09-21 Richard M. Stallman <rms@gnu.org>
21448
21449 * window.c (select_window_1): Don't select frame.
21450 Set frame's selected window only when frame itself is selected.
21451 (Fselect_window): Doc fix.
21452
214532002-09-18 Kim F. Storm <storm@cua.dk>
21454
21455 * process.c (make-network-process): Doc fix (there is no
21456 network-server-log-function hook).
21457
214582002-09-18 Richard M. Stallman <rms@gnu.org>
21459
21460 * print.c (print): Clear out the unused parts of Vprint_number_table.
21461 (syms_of_print): Doc fix for `print-number-table'.
21462
21463 * unexelf.c (unexec): Undo previous change.
21464
214652002-09-17 Andreas Schwab <schwab@suse.de>
21466
21467 * m/alpha.h [LINUX]: Don't define DATA_START.
21468
214692002-09-16 Dave Love <fx@gnu.org>
21470
21471 * unexelf.c (unexec): Deal with .got, reinstating change from
21472 25-08-1999.
21473
214742002-09-13 Richard M. Stallman <rms@gnu.org>
21475
21476 * s/sol2-6.h (UNEXEC): Comment out definition.
21477
21478 * unexsol.c (unexec): Don't downcase first letter of error msg.
21479
21480 * xfaces.c (Fcolor_supported_p): Just one arg is required.
21481
214822002-09-12 Markus Rost <rost@math.ohio-state.edu>
21483
21484 * unexsol.c: Include buffer.h, charset.h, coding.h.
21485
214862002-09-11 Richard M. Stallman <rms@gnu.org>
21487
21488 * unexsol.c: Don't use report_file_error; do it by hand
21489 using dlerror.
21490
21491 * process.c (wait_reading_process_input, both versions):
21492 Before calling turn_on_atimers, call stop_polling.
21493
21494 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
21495
21496 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
21497 we go to too_near_end, call clear_glyph_matrix.
21498 (redisplay_window): After make_cursor_line_fully_visible,
21499 call clear_glyph_matrix and bypass `goto done'.
21500
21501 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
21502 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
21503
215042002-09-10 Richard M. Stallman <rms@gnu.org>
21505
21506 * fileio.c (Fdo_auto_save): Catch error making directory.
21507 Only call push_message if we need to.
21508 At the same time, make an unwind-protect to pop it.
21509 Rename local message_p to old_message_p.
21510 (do_auto_save_make_dir, do_auto_save_eh): New functions.
21511 (do_auto_save_unwind): Don't call pop_message.
21512
21513 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
21514
21515 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
21516
21517 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
21518
21519 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
21520
215212002-09-10 Stefan Monnier <monnier@cs.yale.edu>
21522
21523 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
21524 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
21525 (re_match_2_internal): Be more careful with infinite loops.
21526
215272002-09-10 Kim F. Storm <storm@cua.dk>
21528
21529 * macros.c (end_kbd_macro): New function.
21530 (Fend_kbd_macro): Use it.
21531
21532 * macros.h (end_kbd_macro): Declare extern.
21533
21534 * keyboard.c (Fdiscard_input): If defining keyboard macro,
21535 end and save it instead of discarding it.
21536
215372002-09-09 Markus Rost <rost@math.ohio-state.edu>
21538
21539 * s/sol2-6.h: Fix typo. Add comment.
21540
215412002-09-09 Richard M. Stallman <rms@gnu.org>
21542
21543 * regex.c (regnum_t): Use signed int, not unsigned int.
21544
21545 * s/sol2-6.h: New file.
21546
21547 * s/sol2-5.h (UNEXEC): Definition deleted.
21548
215492002-09-08 Kim F. Storm <storm@cua.dk>
21550
21551 * macros.c (executing_macro_index): Change type to EMACS_INT.
9dd28cae 21552 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
048addec
JD
21553
21554 * macros.h (executing_macro_index): Change type to EMACS_INT.
21555
215562002-09-06 Richard M. Stallman <rms@gnu.org>
21557
21558 * casetab.c (set_case_table): Make canon table point to eqv table.
21559
215602002-09-06 Juanma Barranquero <lektu@terra.es>
21561
21562 * coding.c (syms_of_coding): Fix spacing.
21563
21564 * composite.c (Fcompose_region_internal)
21565 (Fcompose_string_internal): Likewise.
21566
21567 * data.c (Flsh): Likewise.
21568
21569 * fontset.c (Fset_fontset_font): Likewise.
21570
21571 * macfns.c (Fx_server_max_request_size): Likewise.
21572
21573 * w16select.c (syms_of_win16select): Likewise.
21574
21575 * w32select.c (syms_of_w32select): Likewise.
21576
21577 * xselect.c (syms_of_xselect): Likewise.
21578
215792002-09-05 Richard M. Stallman <rms@gnu.org>
21580
21581 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
21582 call EXTEND_RANGE_TABLE and return a proper value.
21583 (set_image_of_range): Don't call set_image_of_range_1
21584 if no TRANSLATE or if range includes all of Latin-1.
21585 Only call it for the Latin-1 part of the range.
21586 For other cases, make two separate ranges,
21587 one for the original specified characters and one for
21588 their case-conversions.
21589
215902002-09-04 Richard M. Stallman <rms@gnu.org>
21591
21592 * s/sol2-5.h (UNEXEC): Use unexsol.o.
21593
21594 * window.c (displayed_window_lines): Correct for one-off bug
21595 in HEIGHT on non-window displays.
21596
21597 * regex.c (set_image_of_range_1): New function.
21598 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
21599 Return a value to indicate running out of memory.
21600 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
21601 (extend_range_table_work_area): New subroutine.
21602 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
21603 Different calling conventions, and used from set_image_of_range{,_1}.
21604 (IMMEDIATE_QUIT_CHECK): Definitions moved.
21605
216062002-09-04 Juanma Barranquero <lektu@terra.es>
21607
21608 * makefile.w32-in: All dependencies updated.
21609
216102002-09-01 Richard M. Stallman <rms@gnu.org>
21611
21612 * unexsol.c: New file.
21613
21614 * xfns.c (Qbox): Declare external, don't define.
21615
21616 * xdisp.c (redisplay_window) <force-start case>:
21617 If point is on semi-visible last line, reposition
21618 it at previous line.
21619
21620 * alloc.c (display_malloc_warning): Use display-warning.
21621 (malloc_warning_1): Function deleted.
21622
21623 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
21624
21625 * lread.c (read1): Handle #! by skipping the line.
21626
216272002-08-31 Richard M. Stallman <rms@gnu.org>
21628
21629 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
21630 Don't include LDFLAGS.
21631 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
21632
216332002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
21634
21635 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
21636 member of x_display_info unless we compile for some window system.
21637
216382002-08-31 Kim F. Storm <storm@cua.dk>
21639
21640 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
21641 (get_window_cursor_type): Don't use them.
21642 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
21643
216442002-08-30 Kenichi Handa <handa@etl.go.jp>
21645
21646 * xdisp.c (get_next_display_element): Fix previous change.
21647
216482002-08-30 Andrew Choi <akochoi@shaw.ca>
21649
21650 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
21651 (expose_window): Use it to fix the display of overlapping
21652 rows (merge code from xterm.c).
21653
21654 * macfns.c (Qbox): Add extern declaration.
21655
216562002-08-30 Juanma Barranquero <lektu@terra.es>
21657
21658 * w32fns.c (Qbox): Make extern.
21659 (syms_of_w32fns): Remove initialization of Qbox.
21660
216612002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
21662
21663 * xfns.c (Fx_open_connection): Fix error message.
21664
216652002-08-30 Kim F. Storm <storm@cua.dk>
21666
21667 The following changes consolidates the handling of the cursor
21668 type in xdisp.c, moving duplicate code and functionality from
21669 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
21670
21671 * frame.h (enum text_cursor_kinds): Consolidated here.
21672 Added DEFAULT_CURSOR value.
21673 (struct frame) <desired_cursor, cursor_width>
21674 <blink_off_cursor, blink_off_cursor_width>: New fields.
21675 Consolidated from output_x, output_w32 and output_mac structs.
21676 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21677 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
21678
21679 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
21680 Variables consolidated here.
21681 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
21682 (Vcursor_in_non_selected_windows): Renamed from
21683 cursor_in_non_selected_windows and changed to Lisp_Object.
21684 (syms_of_xdisp): Define and staticpro new and moved variables.
21685 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
21686 consolidated here. Recognize Qhollow setting.
21687 (set_frame_cursor_types): New function to set frame cursor types
21688 based on the frame parameters.
21689 (get_window_cursor_type): New function to calculate new cursor
21690 type and width for the specified window. Based on duplicated
21691 code consolidated here.
21692 Enhancements: cursor-in-non-selected-windows may be a cursor type,
21693 check buffer-local alternate-cursor-type and blink-cursor-alist
21694 before using built-in blink off methods.
21695
21696 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
21697
21698 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
21699 (get_specified_cursor_type, get_window_cursor_type)
21700 (set_frame_cursor_types): Added prototypes.
21701
21702 * macfns.c (x_specified_cursor_type): Removed.
21703 (x_set_cursor_type): Use set_frame_cursor_types.
21704 (Qbar, Qbox): Removed.
21705 (syms_of_macfns): Don't intern or staticpro them.
21706
21707 * macterm.c (x_specified_cursor_type): Remove prototype.
21708 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21709 (x_display_and_set_cursor): Use get_window_cursor_type.
21710 Remove unused local variables cursor_non_selected, active_cursor.
21711 Redraw cursor if hbar cursor width changes.
21712 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
21713
21714 * macterm.h (enum text_cursor_kinds): Removed.
21715 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
21716 <blink_off_cursor, blink_off_cursor_width>: Members removed.
21717 (FRAME_DESIRED_CURSOR): Macro removed.
21718
21719 * w32fns.c (Vblink_cursor_alist): Removed.
21720 (Qbar, Qhbar, Qbox, Qhollow): Removed.
21721 (syms_of_w32fns): Don't intern, staticpro, or define them.
21722 (x_specified_cursor_type): Removed.
21723 (x_set_cursor_type): Use set_frame_cursor_types.
21724
21725 * w32term.c (x_specified_cursor_type): Remove prototype.
21726 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21727 (x_display_and_set_cursor): Use get_window_cursor_type.
21728 Remove unused local variables cursor_off_state.
21729 Redraw cursor if hbar cursor width changes.
21730 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
21731
21732 * w32term.h (enum text_cursor_kinds): Removed.
21733 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
21734 <blink_off_cursor, blink_off_cursor_width>: Members removed.
21735 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21736 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
21737 (struct w32_display_info) <x_highlight_frame>: Renamed member from
21738 w32_highlight_frame.
21739
21740 * xfns.c (Vblink_cursor_alist): Removed.
21741 (Qbar, Qhbar, Qbox, Qhollow): Removed.
21742 (syms_of_xfns): Don't intern, staticpro, or define them.
21743 (x_specified_cursor_type): Removed.
21744 (x_set_cursor_type): Use set_frame_cursor_types.
21745
21746 * xterm.c (x_specified_cursor_type): Remove prototype.
21747 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21748 (x_display_and_set_cursor): Use get_window_cursor_type.
21749 Remove unused local variables cursor_off_state.
21750 Redraw cursor if hbar cursor width changes.
21751
21752 * xterm.h (enum text_cursor_kinds): Removed.
21753 (struct output_x) <current_cursor, desired_cursor, cursor_width>
21754 <blink_off_cursor, blink_off_cursor_width>: Members removed.
21755 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21756 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
21757 (x_specified_cursor_type): Remove prototype.
21758
217592002-08-28 Richard M. Stallman <rms@gnu.org>
21760
21761 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
21762 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
21763 (Vblink_cursor_alist): New variable.
21764 (syms_of_w32fns): Initialize and defvar it.
21765 (x_specified_cursor_type): Recognize Qbox for filled box.
21766 Exceptions are hollow boxes.
21767 (Qbox, Qhollow): New variables.
21768 (syms_of_w32fns): Initialize and staticpro them.
21769
21770 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
21771 New macros.
21772 (struct w32_output): New fields blink_off_cursor,
21773 blink_off_cursor_width.
21774 (FRAME_CURSOR_WIDTH): New macro.
21775
21776 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
21777 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
21778
21779 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
21780 for bar cursor.
21781
21782 * w32term.c (expose_overlaps): New function.
21783 (expose_window): Use it to fix the display of overlapping rows.
21784
217852002-08-28 Simon Josefsson <jas@extundo.com>
21786
21787 * xfns.c (Fx_open_connection): Improve help when X connection
21788 fails, xhost is insecure and xauth is better.
21789
217902002-08-28 Juanma Barranquero <lektu@terra.es>
21791
21792 * makefile.w32-in: Add missing dependencies on w32term.h and
21793 composite.h.
21794
21795 * emacs.c (USAGE1): Add missing newline.
21796
217972002-08-27 Andrew Choi <akochoi@shaw.ca>
21798
21799 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
21800
218012002-08-27 Richard M. Stallman <rms@gnu.org>
21802
21803 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
21804 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
21805 (Vblink_cursor_alist): New variable.
21806 (syms_of_xfns): Initialize and defvar it.
21807 (x_specified_cursor_type): Recognize Qbox for filled box.
21808 Exceptions are hollow boxes.
21809 (Qbox, Qhollow): New variables.
21810 (syms_of_xfns): Initialize and staticpro them.
21811
21812 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
21813 New macros.
21814 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
21815
21816 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
21817 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
21818
21819 * emacs.c (main): Handle --script.
21820 (USAGE1): Mention --script.
21821 (standard_args): Define sort order for --script.
21822
218232002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
21824
21825 * xdisp.c (redisplay_updating_p): Variable removed.
21826 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
21827 New variables.
21828 (init_iterator): Don't free realized faces if
21829 inhibit_free_realized_faces is set.
21830 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
21831 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
21832 initialize Qinhibit_free_realized_faces.
21833
21834 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
21835 when iterator is adding glyphs to a glyph matrix.
21836
218372002-08-27 Kenichi Handa <handa@etl.go.jp>
21838
21839 * xdisp.c (get_next_display_element): In unibyte case, don't use
21840 octal form for such eight-bit characters that can be converted to
21841 multibyte char.
21842
218432002-08-26 Kim F. Storm <storm@cua.dk>
21844
b6189c3b
KS
21845 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
21846 foreground and background colors. From Joe Buehler.
048addec
JD
21847
218482002-08-26 Miles Bader <miles@gnu.org>
21849
21850 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
21851
218522002-08-25 Andrew Choi <akochoi@shaw.ca>
21853
21854 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
21855 defined instead of MAC_OSX.
21856
21857 * s/darwin.h (select): Define select to sys_select only if
21858 HAVE_CARBON is defined.
21859 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
21860 (DONT_REOPEN_PTY): #def it.
21861
21862 * macterm.c (XTread_socket): Remove code to call
21863 SendEventToEventTarget for keys with command modifiers when
21864 mac_command_key_is_meta is nil.
21865
218662002-08-24 Andreas Schwab <schwab@suse.de>
21867
21868 * eval.c (Fdefvar): Fix last change.
21869
218702002-08-23 Richard M. Stallman <rms@gnu.org>
21871
21872 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
21873 Record variables in load history as (defvar . VAR).
21874 (Fdefvar): Don't record in load history if no initial value.
21875 (Qdefvar): New variable.
21876 (syms_of_eval): Init and staticpro it.
21877
21878 * lread.c (syms_of_lread): Doc fix.
21879 (build_load_history): Use Fmember to see if a definition
21880 is already in the Vload_history element.
21881
21882 * process.c (Fstart_process): Remove /: from program name.
21883
21884 * emacs.c (decode_env_path): Don't add /: if file name handler
21885 has a `safe-magic' property.
21886
21887 * callproc.c (Fcall_process): Remove /: from program name.
21888
218892002-08-23 Stefan Monnier <monnier@cs.yale.edu>
21890
21891 * regex.c (PATFETCH): Remove the translating fetch.
21892 (PATFETCH_RAW): Rename to PATFETCH.
21893 (set_image_of_range): New fun.
21894 (SET_RANGE_TABLE_WORK_AREA): Use it.
21895 (regex_compile): Don't translate the pattern chars so eagerly.
21896 Only do it when inserting an `exactn' bytecode or when handling
21897 a char-range.
21898 (mutually_exclusive_p): Avoid empty statement.
21899
219002002-08-22 Kim F. Storm <storm@cua.dk>
21901
21902 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
21903 end up on a partially visible line; this reverts a specific part
21904 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
21905 display error which has been reported several times now.
21906 However it introduces the problem that changes was supposed to fix.
21907 See my comments in the source if you want to debug this further.
21908
219092002-08-20 Kenichi Handa <handa@etl.go.jp>
21910
21911 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21912
219132002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
21914
21915 * msdos.c (croak): Add `void' to definition.
21916
c1380aa6 21917 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
21918 Don't define them, they are defined in msdos.c.
21919
21920 * mem-limits.h [MSDOS]: Declare etext.
21921
21922 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
21923 `const' since CORRECT_DIR_SEPS modifies its target.
21924
219252002-08-19 Kim F. Storm <storm@cua.dk>
21926
2fb0ce67 21927 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
21928 KEEP-RECORD to avoid clearing lossage when we just want to clear
21929 the current key sequence (kmacro needs this).
21930
219312002-08-19 Kenichi Handa <handa@localhost>
21932
21933 * composite.c (run_composition_function): Call FUNC if it is fboundp.
21934
21935 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
21936 cons, return Qnil.
21937
219382002-08-17 Richard M. Stallman <rms@gnu.org>
21939
21940 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
21941
21942 * sysdep.c [!VMS]: Include sys/files.h.
21943
21944 * editfns.c (save_restriction_restore): Defend from unchained marker.
21945
21946 * buffer.c (overlays_at): Handle extending vec uniformly.
21947 (overlays_in): Handle extending vec from length 0 as in overlays_at.
21948
219492002-08-15 Andrew Choi <akochoi@shaw.ca>
21950
21951 * mac.c (init_mac_osx_environment): New function.
21952
21953 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
21954
219552002-08-14 Kim F. Storm <storm@cua.dk>
21956
21957 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
21958 executing macro before appending to it (when used from Lisp).
21959 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
21960 which is called prior to each iteration of macro (for kmacro.el).
21961 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
21962
21963 * lisp.h (Fexecute_kbd_macro): Update prototype.
21964
21965 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
21966
219672002-08-14 Kenichi Handa <handa@etl.go.jp>
21968
21969 * xselect.c (QUTF8_STRING): New variable.
21970 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
21971 (x_atom_to_symbol): Likewise.
21972 (x_get_local_selection): New argument local_request. If it is
21973 nonzero, call handler_fn with the second arg nil.
21974 (x_handle_selection_request): Call x_get_local_selection with
21975 local_request 0.
21976 (lisp_data_to_selection_data): Don't encode the string here.
21977 (Fx_get_selection_internal): Call x_get_local_selection with
21978 local_request 1.
21979 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
21980
21981 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
21982
21983 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
21984
219852002-08-13 Richard M. Stallman <rms@gnu.org>
21986
21987 * minibuf.c (Fminibufferp): New function.
21988 (syms_of_minibuf): Defsubr it.
21989 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
21990
219912002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
21992
21993 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
21994
219952002-08-12 Richard M. Stallman <rms@gnu.org>
21996
21997 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
21998 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
21999 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
22000 already.
22001
22002 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
22003
220042002-08-11 Andrew Choi <akochoi@shaw.ca>
22005
22006 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
22007 (Vmac_pass_command_to_system): New variable.
22008 (Vmac_pass_control_to_system): New variable.
22009 (do_mouse_moved): Check wp with is_emacs_window.
22010 (XTread_socket): Check window_ptr with is_emacs_window.
22011 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
22012 events back to Mac Toolbox for processing, depending on values of
22013 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
22014 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
22015 Vmac_pass_control_to_system.
22016
220172002-08-10 Kenichi Handa <handa@etl.go.jp>
22018
22019 * coding.c (unencodable_char_position): New function.
22020 (Funencodable_char_position): New function.
22021 (syms_of_coding): Defsubr Funencodable_char_position.
22022
220232002-08-10 Andrew Choi <akochoi@shaw.ca>
22024
22025 * mac.c (sys_select) [MAC_OSX]: New function.
22026
22027 * macterm.c (MakeMeTheFrontProcess): New function.
22028 (mac_initialize): Call MakeMeTheFrontProcess.
22029
22030 * s/darwin.h: Define select to sys_select.
22031
220322002-08-09 Richard M. Stallman <rms@gnu.org>
22033
22034 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
22035
220362002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
22037
22038 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
22039 end of the buffer.
22040
88fde92a 220412002-08-08 Ken Raeburn <raeburn@gnu.org>
048addec
JD
22042
22043 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
22044
22045 * puresize.h (BASE_PURESIZE): Increase to 910000.
22046
220472002-08-08 Kenichi Handa <handa@etl.go.jp>
22048
22049 * coding.c (Ffind_operation_coding_system): For write-region, if
22050 VISIT is a filename, make it the target.
22051
220522002-08-07 Richard M. Stallman <rms@gnu.org>
22053
22054 * alloc.c (mark_object): Detect long lists for debugging.
22055 (mark_object_loop_halt): New variable.
22056
22057 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
22058
22059 * data.c (Fmake_variable_frame_local): Doc fix.
22060
220612002-08-01 David Ponce <david@dponce.com>
22062
22063 * w32menu.c (local_heap, local_alloc, local_free): New macros.
22064 (malloc_widget_value, free_widget_value)
22065 (w32_free_submenu_strings): Use them.
22066
22067 (push_submenu_start, push_submenu_end, push_left_right_boundary)
22068 (push_menu_pane, push_menu_item, single_keymap_panes)
22069 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
22070 (single_submenu, set_frame_menubar)
22071 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
22072
22073 (Fx_popup_menu): Don't show pop up menu until preceding one is
22074 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
22075
22076 * w32menu.c: Changes adapted from xmenu.c
22077 (set_frame_menubar): First parse all submenus,
22078 then make widget_value trees from them.
22079 Don't allocate any widget_value objects
22080 until we are done with the parsing.
22081 (parse_single_submenu): New function.
22082 (digest_single_submenu): New function.
22083 (single_submenu): Function deleted, replaced by those two.
22084
220852002-08-04 Andrew Choi <akochoi@shaw.ca>
22086
22087 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
22088 returns a valid window pointer before proceeding for keyDown and
22089 autoKey events.
22090
220912002-08-03 Andrew Choi <akochoi@shaw.ca>
22092
22093 * macterm.c (USE_CARBON_EVENTS): New macro.
22094 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
22095 (x_iconify_frame): Call CollapseWindow.
22096 (Vmac_reverse_ctrl_meta): New variable.
22097 (Vmac_wheel_button_is_mouse_2): New variable.
22098 (init_mac_drag_n_drop): New function.
22099 (mac_do_receive_drag): New function.
22100 (mac_handle_service_event): New function.
22101 (init_service_handler): New function.
22102 (mac_to_emacs_modifiers): New function.
22103 (mac_event_to_emacs_modifiers): New function.
22104 (mac_get_mouse_btn): New function.
22105 (mac_convert_event_ref): New function.
22106 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
22107 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
22108 mac_get_mouse_btn.
22109 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
22110
22111 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
22112 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
22113 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
22114 TOOL_BAR_EVENT for MAC_OS as well.
22115 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
22116 as for WINDOWS_NT.
22117 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
22118
22119 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
22120
221212002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
22122
22123 * xdisp.c (forward_to_next_line_start): Fix a condition that
22124 lead to a newline being skipped.
22125
221262002-08-02 Andrew Choi <akochoi@shaw.ca>
22127
22128 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
22129
221302002-08-01 Richard M. Stallman <rms@gnu.org>
22131
22132 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
22133
221342002-07-31 Andrew Choi <akochoi@shaw.ca>
22135
22136 * macfns.c: #undef init_process before #define-ing it.
22137
22138 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
22139 HAVE_CARBON is defined.
22140
221412002-07-31 Richard M. Stallman <rms@gnu.org>
22142
22143 * xmenu.c (set_frame_menubar): First parse all submenus,
22144 then make widget_value trees from them.
22145 Don't allocate any widget_value objects
22146 until we are done with the parsing.
22147 (parse_single_submenu): New function.
22148 (digest_single_submenu): New function.
22149 (single_submenu): Function deleted, replaced by those two.
22150
221512002-07-30 Juanma Barranquero <lektu@terra.es>
22152
22153 * w32proc.c (syms_of_ntproc): Fix docstring of
22154 `w32-get-true-file-attributes'.
22155
221562002-07-28 Richard M. Stallman <rms@gnu.org>
22157
22158 * s/hpux8.h (HPUX8): Define this before including hpux.h.
22159 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
22160
22161 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
22162
22163 * keyboard.c (make_lispy_event):
22164 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
22165 Explicitly clear up_modifier in event->modifiers.
22166
221672002-07-27 Richard M. Stallman <rms@gnu.org>
22168
22169 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
22170
22171 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
22172 for bar cursor.
22173
221742002-07-26 Kenichi Handa <handa@etl.go.jp>
22175
22176 * coding.c (detect_coding_iso2022): While checking a byte sequence
22177 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
22178 it in the normal loop.
22179
221802002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
22181
22182 * xterm.c (expose_overlaps): New function.
22183 (expose_window): Use it to fix the display of overlapping rows.
22184
22185 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
22186
221872002-07-23 Ken Raeburn <raeburn@gnu.org>
22188
22189 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
22190 since it only depends on XUINT.
22191
22192 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
22193 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
22194 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
22195 Macros deleted.
3947677c 22196
77d1daf2
AS
22197 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
22198 its value over other approaches.
22199 * sysdep.c (start_of_data): Don't define the function if a macro
22200 form has been defined.
8a8e19a3 22201
048addec
JD
222022002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
22203
22204 * xdisp.c (redisplay_updating_p): New variable.
22205 (init_iterator): Don't free realized faces when
22206 redisplay_updating_p is set.
22207 (redisplay_internal): Set redisplay_updating_p while updating
22208 the display.
22209
222102002-07-23 Richard M. Stallman <rms@gnu.org>
22211
22212 * editfns.c (Fmessage): Treat "" like nil.
22213
222142002-07-23 Kenichi Handa <handa@etl.go.jp>
22215
22216 * xdisp.c (face_before_or_after_it_pos):
22217 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22218
222192002-07-22 Juanma Barranquero <lektu@terra.es>
22220
22221 * callproc.c (init_callproc) [DOS_NT]:
22222 Initialize Vshared_game_score_directory to nil.
22223 (syms_of_callproc) [DOS_NT]: Likewise.
22224
222252002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
22226
22227 * xdisp.c (display_line): Replace an abort with xassert.
22228
222292002-07-21 Richard M. Stallman <rms@gnu.org>
22230
22231 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
22232 and END_UNCHANGED when setting buffer_unchanged_p.
22233 Use current_matrix_up_to_date_p to decide whether to use
22234 try_cursor_movement.
22235
22236 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
22237
22238 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
22239
22240 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
22241 Set to nil if dir does not exist.
22242 (syms_of_callproc): Init unconditionally and simply.
22243
22244 * buffer.c (Fbuffer_list): Doc fix.
22245
222462002-07-21 Ken Raeburn <raeburn@gnu.org>
22247
22248 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
22249
22250 * buffer.c (mmap_realloc): When shrinking, make sure number of
22251 pages to unmap is rounded towards zero.
22252
22253 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
22254 (XSETINT): Deleted.
22255
22256 * m/att3b.h (XINT): Don't define.
22257 (VALBITS, VALMASK, XTYPE): Deleted.
22258 (DATA_SEG_BITS): Define.
22259 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
22260 ARRAY_MARK_FLAG): Deleted.
22261 (DATA_SEG_BITS): Define.
22262 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
22263 (DATA_SEG_BITS): Define.
22264
222652002-07-20 Richard M. Stallman <rms@gnu.org>
22266
22267 * print.c (print_error_message): New args CONTEXT and CALLER.
22268 Calls changed.
22269
22270 * lisp.h (print_error_message): Declare new args.
22271
22272 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
22273 and CONTEXT to print_error_message, don't print them here.
22274 For a Quit, don't use Vsignaling_function.
22275 Call message_log_maybe_newline.
22276
22277 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
22278
222792002-07-20 Kim F. Storm <storm@cua.dk>
22280
22281 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
22282
222832002-07-19 Ken Raeburn <raeburn@gnu.org>
22284
22285 * bytecode.c (struct byte_stack): Pointers into byte string now
22286 point to const.
22287 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
22288 const.
22289 * charset.h (BCOPY_SHORT): Source pointer now points to const.
22290 * coding.c (encode_eol, detect_coding, detect_eol):
22291 (decode_coding, encode_coding, detect_coding_system):
22292 Source strings now treated as const.
22293 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
22294 modify Lisp string contents.
22295 * coding.h (decode_coding, encode_coding, detect_coding,
22296 detect_eol): Declarations updated.
22297 * composite.c (compose_chars_in_text): Treat Lisp string contents
22298 as const.
22299 * dispnew.c (safe_bcopy): Source pointer now points to const.
22300 * lisp.h (STRING_COPYIN): New macro.
22301 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
22302 (internal_with_output_to_temp_buffer): Declarations updated.
22303 * print.c (temp_output_buffer_setup):
22304 (internal_with_output_to_temp_buffer): Buffer name argument is now
22305 pointer to const.
22306 * sound.c (struct sound_device): Function pointer field "write"
22307 buffer argument now points to const.
22308 (vox_write): Buffer argument points to const.
22309 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
22310 contents as const.
22311 * sysdep.c (emacs_write): Buffer pointer now const.
22312 * term.c (encode_terminal_code): Buffer pointer now const.
22313 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
22314 (x_face_list_fonts, x_update_menu_appearance):
22315 (hash_string_case_insensitive): Treat Lisp string contents as const.
22316
223172002-07-19 Juanma Barranquero <lektu@terra.es>
22318
048addec
JD
22319 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
22320
22321 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
22322 (Ffile_name_as_directory): Fix argument name in docstring.
22323 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
22324
223252002-07-18 Richard M. Stallman <rms@gnu.org>
22326
22327 * data.c (Fdefalias): Doc fix.
22328
223292002-07-17 Dave Love <fx@gnu.org>
22330
22331 * intervals.h (text_property_stickiness): Use P_.
22332
22333 * ccl.c: Remove `emacs' conditionals.
22334 (ccl_backtrace_table): Fix size spec.
22335 (ccl_driver): Fix type errors.
22336
223372002-07-16 Ken Raeburn <raeburn@gnu.org>
22338
22339 * alloc.c (xstrdup, make_string, make_unibyte_string)
22340 (make_multibyte_string, build_string): String pointer args now
22341 point to const.
22342 * charset.c (find_charset_in_text, c_string_width):
22343 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
22344 * fileio.c (report_file_error):
22345 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
22346 (count_combining_before, count_combining_after, insert_1_both):
22347 (insert, insert_and_inherit, insert_string):
22348 (insert_before_markers, insert_before_markers_and_inherit):
22349 * lread.c (intern, oblookup, hash_string):
22350 * minibuf.c (temp_echo_area_glyphs):
22351 * search.c (fast_c_string_match_ignore_case):
22352 * sysdep.c (emacs_open, set_file_times):
22353 * xfaces.c (xstricmp):
22354 * xdisp.c (store_frame_title, string_char_and_length):
22355 (message_dolog, message2, message2_nolog, set_message): Likewise.
22356 (set_message_1): Cast message string argument to const pointer.
22357 * editfns.c (general_insert_function): Insertion function now
22358 takes pointer to const for input data.
22359 * charset.h (find_charset_in_text, c_string_width):
22360 (parse_str_as_multibyte): Declarations updated.
22361 * dispextern.h (xstricmp): Declaration updated.
22362 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
22363 (count_size_as_multibyte, count_combining_before):
22364 (count_combining_after, insert_1, insert_1_both, message_dolog):
22365 (insert, insert_and_inherit, insert_before_markers)
22366 (insert_before_markers_and_inherit, set_message, message2):
22367 (message2_dolog, build_string, make_string, make_unibyte_string):
22368 (make_multibyte_string, intern, oblookup, report_file_error):
22369 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
22370 (emacs_open, xstrdup): Declarations updated.
22371 * systime.h (set_file_times): Declaration updated.
22372
22373 * charset.c (find_charset_in_text, lisp_string_width): Use const
22374 for pointer to lisp string data.
22375 * charset.h (FETCH_STRING_CHAR_ADVANCE):
22376 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
22377 * coding.c (Ffind_coding_systems_region_interval):
22378 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
22379 (Fmake_directory_internal, Fdelete_directory):
22380 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
22381 * fontset.c (font_family_registry, fs_query_fontset):
22382 (list_fontsets):
22383 * frame.c (Fframe_parameter):
22384 * keyboard.c (cmd_error_internal):
22385 * keymap.c (Fdescribe_buffer_bindings):
22386 * lread.c (complete_filename_p, openp):
22387 * minibuf.c (Fminibuffer_complete_word):
22388 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
22389 (face_before_or_after_it_pos, next_element_from_string):
22390 (get_overlay_arrow_glyph_row, display_mode_element):
22391 (decode_mode_spec_coding):
22392 * xterm.c (same_x_server): Likewise.
22393
22394 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
22395 settings of non-existent fields.
22396
22397 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
22398 copy a lisp value.
22399
22400 * lread.c (Fintern_soft): Use string macros instead of
22401 Lisp_String fields.
22402 * keyboard.c (echo_char, parse_modifiers_uncached):
22403 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
22404 * textprop.c (validate_interval_range, interval_of): Likewise.
22405
22406 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
22407
22408 * charset.h (FETCH_STRING_CHAR_ADVANCE)
22409 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
22410 XSTRING()->size_byte.
22411
22412 * lisp.h (SDATA, SREF): Produce rvalue.
22413 (SSET): New macro.
22414 * alloc.c (make_event_array): Use SSET for storing into a string.
22415 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
22416 a string.
22417 * casefiddle.c (casify_object): Use SSET.
22418 * charset.h (FETCH_STRING_CHAR_ADVANCE)
22419 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
22420 address of string contents.
22421 * data.c (Faref): Use SDATA.
22422 (Faset): Use SDATA, SSET.
22423 * dired.c (directory_files_internal): Use SSET.
22424 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
22425 (Fread_file_name): Use SREF, SSET.
22426 * fns.c (concat): Use SSET.
22427 (concat, Fdelete): Use SDATA.
22428 * insdel.c (insert_from_string_1): Use SDATA.
22429 * keyboard.c (Fevent_convert_list): Use SREF.
22430 * lread.c (Fload): Use SDATA, SSET.
22431 * macfns.c (validate_x_resource_name): Use SSET.
22432 * process.c (status_message): Use SSET.
22433 * search.c (wordify): Use SDATA.
22434 (Freplace_match): Use SREF.
22435 * w32fns.c (validate_x_resource_name): Use SSET.
22436 * xfns.c (validate_x_resource_name): Use SSET.
22437 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
22438
224392002-07-16 Richard M. Stallman <rms@gnu.org>
22440
22441 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
22442
22443 * xdisp.c (reconsider_clip_changes):
22444 Don't test prevent_redisplay_optimizations_p.
22445 (redisplay_internal): Test prevent_redisplay_optimizations_p
22446 along with clip_changed in some cases.
22447 (try_window_id): Likewise.
22448 (redisplay_window): New local var buffer_unchanged_p.
22449
22450 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
22451
22452 * process.c (create_process): Test USG_SUBTTY_WORKS.
22453 (process_send_signal): Clean up handling of GID.
22454 Detect errors in ioctls meant to set GID.
22455
22456 * window.c (temp_output_buffer_show):
22457 Don't set prevent_redisplay_optimizations_p.
22458
224592002-07-15 Juanma Barranquero <lektu@terra.es>
22460
22461 * eval.c (Fdefvaralias): Add docstring argument.
22462
224632002-07-15 Ken Raeburn <raeburn@gnu.org>
22464
22465 * lisp.h (STRING_INTERVALS): Produce rvalue.
22466 (STRING_SET_INTERVALS): New macro.
22467 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
22468 * fns.c (Fstring_as_multibyte): Likewise.
22469 * intervals.c (balance_possible_root_interval, delete_interval)
22470 (create_root_interval, copy_intervals_to_string): Likewise.
22471 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
22472 instead of 0.
22473
224742002-07-14 Ken Raeburn <raeburn@gnu.org>
22475
22476 * lisp.h (STRING_SET_CHARS): New macro.
22477 (SCHARS, SBYTES): Produce rvalues.
22478 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
22479 * fns.c (concat): Likewise.
22480 * lread.c (read_vector): Likewise.
22481
3419757d 22482 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 22483 (STRING_SET_UNIBYTE): New macro.
3419757d 22484 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
22485 length of -1) changed to use STRING_SET_UNIBYTE.
22486 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
22487 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
22488 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
22489 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
22490 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
22491 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
22492 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
22493 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
22494 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
22495 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
22496 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
22497 STRING_BYTES or indirection changed to SCHARS, SBYTES,
22498 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
22499 unchanged for now.
22500
225012002-07-13 Kim F. Storm <storm@cua.dk>
22502
22503 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
22504
225052002-07-12 Richard M. Stallman <rms@gnu.org>
22506
22507 * fileio.c (Fwrite_region): Doc fix.
22508
22509 * print.c (print_error_message): Don't handle Vsignaling_function here.
22510
22511 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
22512 (command_loop_1): Avoid certain actions after memory-full error.
22513
22514 * eval.c (Fsignal): Don't call cancel_hourglass.
22515 For a memory-full error, don't call Vsignal_hook_function
22516 and don't set Vsignaling_function.
22517
22518 * process.c (process_send_signal): Add abort call.
22519
225202002-07-11 Markus Rost <rost@math.ohio-state.edu>
22521
22522 * keymap.c (Fkey_binding): Fix typo.
22523
225242002-07-11 Richard M. Stallman <rms@gnu.org>
22525
22526 * alloc.c (Vmemory_full): New variable.
3419757d 22527 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
22528 Uses changed.
22529 (syms_of_alloc): Defvar them.
22530 (memory_full, buffer_memory_full): Set Vmemory_full.
22531
22532 * lisp.h (Vmemory_full): Add declaration.
22533 (current_column, indented_beyond_p): Change declaration.
22534
22535 * indent.c (last_known_column): Declare as double, not float.
22536 (current_column, current_column_1, string_display_width)
22537 (position_indentation): Return `double'.
22538 (indented_beyond_p): Arg `column' is `double'. Callers changed.
22539
22540 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
22541 (back_to_previous_visible_line_start)
22542 (reseat_at_next_visible_line_start, next_element_from_buffer):
22543 Use `double', not `float', when calling indented_beyond_p.
22544
3419757d 22545 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
22546
22547 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
22548
225492002-07-11 Juanma Barranquero <lektu@terra.es>
22550
22551 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
22552 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
22553 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
22554 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
22555 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
22556 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
22557
225582002-07-10 Juanma Barranquero <lektu@terra.es>
22559
d814862a
JB
22560 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
22561 All callers changed.
048addec
JD
22562
225632002-07-09 Stefan Monnier <monnier@cs.yale.edu>
22564
22565 * data.c (Fdefalias): Add an optional `docstring' argument.
22566 (set_internal, Fsetq_default): Use XCAR/XCDR.
22567
22568 * composite.c (HASH_VALUE, HASH_KEY):
22569 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
22570
225712002-07-09 Kenichi Handa <handa@etl.go.jp>
22572
22573 * callproc.c (Fcall_process): Fix previous change.
22574
225752002-07-07 Stefan Monnier <monnier@cs.yale.edu>
22576
22577 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
22578 Add support for hash-tables.
22579 (Ftry_completion): Return t even if the string appears multiple times.
22580
22581 * fns.c (Fnconc): Use XCDR.
22582 (Fprovide): Use CONSP and XCDR.
22583 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
22584 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
22585 (Fmake_hash_table): Accept `:size nil'.
22586 (Fmakehash): Delete: moved to subr.el.
22587 (syms_of_fns): Don't defsubr makehash.
22588
22589 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
22590 (HASH_TABLE_SIZE): Move from fns.c.
22591
225922002-07-07 Richard M. Stallman <rms@gnu.org>
22593
22594 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
22595 Instead just return 0 when there is something to be done.
22596 (try_scrolling): If make_cursor_line_fully_visible returns 0,
22597 retry scrolling as if cursor were off the bottom.
22598 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
22599 return CURSOR_MOVEMENT_MUST_SCROLL.
22600 (redisplay_window): If make_cursor_line_fully_visible returns 0,
22601 go to try_to_scroll.
22602
22603 * buffer.c (Fbuffer_local_value): Store current value into its binding
22604 so we get the up-to-date value for the binding that is loaded.
22605
22606 * eval.c (Fdefmacro): Doc fix.
22607
226082002-07-05 Dave Love <fx@gnu.org>
22609
22610 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
22611 correctly.
22612
22613 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
22614 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
22615 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
22616 CCL_LookupCharConstTbl.
22617 (syms_of_ccl): Defvar translation-hash-table-vector.
22618
226192002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22620
22621 * xdisp.c: Remove unused variable `face'.
22622
226232002-07-04 Juanma Barranquero <lektu@terra.es>
22624
22625 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
22626 obsolescence information.
22627
226282002-07-03 Andrew Choi <akochoi@shaw.ca>
22629
22630 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
22631 pattern. Search cache first.
22632 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
22633 for Japanese font.
22634 (XLoadQueryFont): Use it.
22635
226362002-07-02 Richard M. Stallman <rms@gnu.org>
22637
22638 * keymap.c (Fdefine_key): Doc fix.
22639
22640 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
22641
226422002-07-02 Juanma Barranquero <lektu@terra.es>
22643
22644 * keymap.c (syms_of_keymap): Fix typo.
22645
226462002-07-01 Andrew Choi <akochoi@shaw.ca>
22647
22648 * s/darwin.h: Define POSIX_SIGNALS.
22649
22650 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
22651 and FSRefMakePath to convert FSSpec returned with Apple Event to
22652 Posix pathname.
22653 (mac_initialize) [TARGET_API_MAC_CARBON]:
22654 Call init_required_apple_events and disable the `Quit' menu item
22655 provided automatically by the Carbon Toolbox.
22656
226572002-07-01 Dave Love <fx@gnu.org>
22658
22659 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22660 for K&R.
22661
22662 * xterm.c: Fix prototype for K&R.
22663
22664 * term.c (costs_set): Declare static, non-initialized for pcc.
22665
226662002-07-01 Richard M. Stallman <rms@gnu.org>
22667
22668 * keyboard.c (timer_last_idleness_start_time): New variable.
22669 (timer_start_idle): Set that.
22670 (read_key_sequence): Use that to reset timer_idleness_start_time
22671 to previous value.
22672
22673 * window.c (Frecenter): With arg, set optional_new_start.
22674
22675 * xdisp.c (redisplay_internal): Make optional_new_start really work.
22676
22677 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
22678 buffer for completion.
22679
226802002-06-29 Ken Raeburn <raeburn@gnu.org>
22681
22682 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
22683
226842002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22685
22686 * keyboard.c (readable_filtered_events): New function that filters
22687 FOCUS_IN_EVENT depending on parameter.
22688 (readable_events): Calls readable_filtered_events, not filtering
22689 FOCUS_IN_EVENT.
22690 (get_filtered_input_pending): New function, filtering parameter passed
22691 to readable_filtered_events.
22692 (get_input_pending): Calls get_filtered_input_pending, not filtering
22693 FOCUS_IN_EVENT.
22694 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
22695 FOCUS_IN_EVENT.
22696
22697 * xterm.h (struct x_output): Add focus_state.
22698
22699 * xterm.c (x_focus_changed): New function.
22700 (x_detect_focus_change): New function.
22701 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
22702 EnterNotify and LeaveNotify to track X focus changes.
22703
227042002-06-28 Andreas Schwab <schwab@suse.de>
22705
22706 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
22707
227082002-06-27 Kim F. Storm <storm@cua.dk>
22709
52eb0373 22710 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
22711 (mode_line_string_face_prop): New variables.
22712 (store_mode_line_string): New function.
22713 (display_mode_element): Use store_mode_line_string to
22714 add mode-line string elements to mode_line_string_list
22715 when mode_line_string_list is non-nil.
22716 (Fformat_mode_line): Now returns propertized string by
22717 default. New arg NO-PROPS to ignore properties.
22718 (decode_mode_spec): Only add two dashes for %- in propertized
22719 mode-line string.
22720 (syms_of_xdisp): Init and staticpro mode_line_string_list.
22721
227222002-06-27 Stefan Monnier <monnier@cs.yale.edu>
22723
22724 * minibuf.c (minibuffer_completion_contents): Add return type.
22725
227262002-06-27 Juanma Barranquero <lektu@terra.es>
22727
22728 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
22729
227302002-06-26 Juanma Barranquero <lektu@terra.es>
22731
22732 * fileio.c (read_file_name_cleanup): Add missing return.
22733
227342002-06-26 Richard M. Stallman <rms@gnu.org>
22735
22736 * window.c (Frecenter): Don't set force_start flag.
22737
22738 * minibuf.c (do_completion, Fminibuffer_complete_word)
22739 (Fminibuffer_completion_help): Complete just the text before point.
22740 (minibuffer_completion_contents): New function.
22741
22742 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
22743
22744 * frame.c (frames_bury_buffer): Function deleted.
22745
227462002-06-25 Miles Bader <miles@gnu.org>
22747
22748 * callint.c (Fcall_interactively): When checking to see if doprnt hit
22749 the end of callint_message, allow for a terminating '\0'.
22750
227512002-06-24 Juanma Barranquero <lektu@terra.es>
22752
52eb0373 22753 * w32select.c: Include composite.h.
048addec
JD
22754
22755 * w16select.c: Likewise.
22756
227572002-06-24 Kenichi Handa <handa@etl.go.jp>
22758
22759 * callproc.c (Fcall_process): If code detection is necessary,
22760 call detect_coding directly here.
22761
22762 * coding.c (detect_eol): Preserve coding->cmp_data.
22763
22764 * w16select.c (Fw16_get_clipboard_data):
22765 * w32fns.c (w32_to_x_font):
22766 * w32select.c (Fw32_get_clipboard_data):
22767 * xselect.c (selection_data_to_lisp_data):
22768 * xterm.c (XTread_socket): Disable composition handling.
22769
227702002-06-24 Stefan Monnier <monnier@cs.yale.edu>
22771
22772 * print.c (temp_output_buffer_setup): Kill all local variables.
22773
227742002-06-22 Stefan Monnier <monnier@cs.yale.edu>
22775
22776 * lread.c (Fread): Remove redundant and imprecise declaration.
22777
22778 * xfns.c (check_x_display_info): Use check_x_frame.
22779
22780 * .gdbinit (xprintsym): Use the new `xname' field.
22781 (xsymbol): Use it.
22782
227832002-06-22 Jason Rumney <jasonr@gnu.org>
22784
22785 * w32fns.c (file_dialog_callback): New function.
22786 (Fx_file_dialog): Allow selecting directories as well as files.
22787
227882002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22789
22790 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 22791 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
22792
227932002-06-17 Andrew Choi <akochoi@shaw.ca>
22794
22795 * macterm.c (mac_scroll_area): Set foreground and backcolor to
22796 black and white before scrolling. Restore frame background and
22797 foreground color after scrolling.
22798 (do_window_update): Call XClearWindow before calling expose_frame.
22799 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
22800 FRAME_FOREGROUND_PIXEL of frame.
22801
22802 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
22803 test Mac command key as <ALT> key.
22804
228052002-06-17 Stefan Monnier <monnier@cs.yale.edu>
22806
22807 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
22808
22809 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
22810 Lookup keys in function-key-map immediately so that key-translation-map
22811 can be applied earlier.
22812 Remove function_key_possible and key_translation_possible, replaced
22813 by checking `keytran_start < t'.
22814
22815 * .gdbinit (xsymbol): Use the new `xname' field.
22816
228172002-06-17 Andrew Choi <akochoi@shaw.ca>
22818
22819 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
22820 test Mac command key as <ALT> key.
22821
22822 * mac.c (do_applescript): Call initialize_applescript if necessary
22823 when first called. Dispose of result_desc only when there is no error.
22824 (Fdo_applescript): Use %d format specifier instead of %ld.
22825
228262002-06-16 Andrew Choi <akochoi@shaw.ca>
22827
22828 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
22829 of FrontWindow for cases keyDown and autoKey.
22830
22831 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
22832 Vdefault_fontset to Monaco with mac-roman coding.
22833
22834 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
22835 init_process before and after inclusion of Carbon/Carbon.h, resp.
22836
22837 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
22838 cursor_gc.
22839 (add_font_name_table_entry): New function.
22840 (init_font_name_table): Use add_font_name_table_entry; add italic,
22841 bold, and bold-italic entries for truetype fonts.
22842
22843 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
22844 for Mac too.
22845 (try_font_list) [MAC_OS]: If no font matches given registry, try
22846 fonts with any registry matching face_family.
22847 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
22848
22849 * s/darwin.h: If autoconf detects the Ncurses library, define
22850 LIBS_TERMCAP to -lncurses to use it.
22851
228522002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
22853
22854 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
22855
228562002-06-15 Richard M. Stallman <rms@gnu.org>
22857
22858 * window.c (Fset_window_configuration): Explicitly preserve
22859 the point value that new_current_buffer had at the start.
22860
228612002-06-14 Juanma Barranquero <lektu@terra.es>
22862
22863 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
22864 Fix typos.
22865
228662002-06-14 Kim F. Storm <storm@cua.dk>
22867
22868 * insdel.c (insert_1_both, insert_from_string_1)
22869 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
22870 insert happened in the end_unchanged region. Otherwise, the
22871 redisplay may be confused and duplicate the last line in the
22872 buffer [seen after save-buffer when require-final-newline==t].
22873
228742002-06-13 Jason Rumney <jasonr@gnu.org>
22875
22876 * w32.c (init_environment): Remove EMACSLOCKDIR.
22877 (stat): Swap _S_IFDIR and _S_IFREG.
22878
228792002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22880
22881 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
22882 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
22883 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
22884 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
22885 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
22886 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
22887 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
22888 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
22889 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
22890 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
22891 SELECTION_REQUEST_EVENT, selection_clear_event to
22892 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
22893 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
22894 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
22895 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
22896 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
22897 no_event to NO_EVENT.
22898
228992002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22900
22901 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
22902
229032002-06-12 Stefan Monnier <monnier@cs.yale.edu>
22904
22905 * intervals.c (textget): Don't forget to `return'.
22906 (lookup_char_property): Use XCAR/XCDR.
22907
229082002-06-12 Juanma Barranquero <lektu@terra.es>
22909
22910 * xdisp.c (Fformat_mode_line): Fix typo.
22911
229122002-06-12 Kim F. Storm <storm@cua.dk>
22913
22914 * xdisp.c (Fformat_mode_line): New function.
22915 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
22916 (store_frame_title_char, store_frame_title): Use unconditionally.
22917 (init_xdisp): Defsubr Fformat_mode_line.
22918 Initialize frame_title_buf etc. unconditionally.
22919
229202002-06-11 Stefan Monnier <monnier@cs.yale.edu>
22921
22922 * keyboard.c (read_key_sequence):
22923 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
22924 things through those maps after downcasing events.
22925 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
22926 applies after function-key-map.
22927 Make sure that keytran can be done in the middle in the sequence.
22928 Be careful not to throw away events past the one we downcase.
22929
22930 * lread.c (read_integer): Remove unused var `tem'.
22931 (read1): Fix int/Lisp_Object mixup.
22932
22933 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
22934
229352002-06-11 Richard M. Stallman <rms@gnu.org>
22936
22937 * keyboard.c (readable_events): Ignore any number of
22938 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
22939
229402002-06-09 Miles Bader <miles@gnu.org>
22941
22942 * xfaces.c (Ftty_supports_face_attributes_p): New function.
22943 (parse_rgb_list, tty_lookup_color): New functions.
22944 (tty_defined_color): Use `tty_lookup_color' to do all the work.
22945 (color_distance, Fcolor_distance): New functions.
22946 (TTY_SAME_COLOR_THRESHOLD): New macro.
22947 (Qtty_color_standard_values): New variable.
22948 (syms_of_xfaces): Initialize new vars & functions.
22949
229502002-06-08 Colin Walters <walters@verbum.org>
22951
22952 * textprop.c (Vchar_property_alias_alist): New variable.
22953 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
22954
22955 * intervals.c (lookup_char_property): New function for looking up
22956 overlay and text properties, created from textget.
22957 (textget): Use it.
22958
22959 * intervals.h (lookup_char_property): Declare.
22960 (Vchar_property_alias_alist): Declare.
22961
22962 * buffer.c (Foverlay_get): Use lookup_char_property.
22963
229642002-06-07 Sam Steingold <sds@gnu.org>
22965
22966 * xselect.c (lisp_data_to_selection_data): Fix last change:
22967 *data_ret is not a Lisp string, while unibyte_string is.
22968
229692002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
22970
22971 * xselect.c (lisp_data_to_selection_data): Fix last change:
22972 set size_ret.
22973
229742002-06-07 Andreas Schwab <schwab@suse.de>
22975
22976 * m/amdx86-64.h: New file.
22977
229782002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
22979
22980 * fns.c (Fstring_make_unibyte): Doc fix.
22981
22982 * xselect.c (lisp_data_to_selection_data): If the requested type
22983 is STRING, call string_make_unibyte to encode the selected text
22984 as a string.
22985
22986 * window.c (Fset_window_hscroll): Doc fix.
22987
229882002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22989
22990 * fileio.c (choose_write_coding_system):
22991 Call select-safe-coding-system properly.
22992
229932002-06-03 Richard M. Stallman <rms@gnu.org>
22994
22995 * xdisp.c (message_with_string): Error if STRING is not a string.
22996
22997 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
22998
22999 * fileio.c (choose_write_coding_system): Pass FILE arg to
23000 Vselect_safe_coding_system_function.
23001
230022002-06-03 Ken Raeburn <raeburn@gnu.org>
23003
23004 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
23005
230062002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
23007
23008 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
23009 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
23010 * keymap.c (describe_command): Likewise.
23011 * minibuf.c (read_minibuf): Likewise.
23012
23013 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
23014 Cast `current_column' return value to int.
23015 (back_to_previous_visible_line_start)
23016 (reseat_at_next_visible_line_start, next_element_from_buffer):
23017 Cast `indented_beyond_p' 3rd arg to float.
23018
23019 * indent.c (last_known_column): Now a float.
23020 (current_column_1, position_indentation, current_column)
23021 (string_display_width): Return float.
23022 (Fcurrent_column): Cast `current_column' return value to int.
23023 (Fcurrent_indentation): Cast `position_indentation' retval to int.
23024 (indented_beyond_p): Third arg now a float.
23025 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
23026
23027 * lisp.h (current_column): Now returns float.
23028 (indented_beyond_p): 3rd arg now a float.
23029
230302002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
23031
23032 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
23033 is Qcompound_text_with_extensions.
23034
23035 * xselect.c (lisp_data_to_selection_data): Always set selection
23036 type as string if x_encode_text returns streingp non-NULL.
23037
23038 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
23039
230402002-05-30 Richard M. Stallman <rms@gnu.org>
23041
23042 * window.c (Fset_window_configuration): Correct the handling
23043 of point in current buffer, to work with multiple windows.
23044
230452002-05-29 Colin Walters <walters@verbum.org>
23046
23047 * lread.c (Fread_from_string): Don't depend on order of evaluation
23048 for C function parameters.
23049
230502002-05-28 Richard M. Stallman <rms@gnu.org>
23051
23052 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
23053 way for blinked-off state and for a nonselected window.
23054
23055 * window.c (window_scroll_pixel_based): Don't call Fbolp;
23056 instead, see if the new start pos is at beginning of line.
23057
23058 * fileio.c (Fwrite_region): If START is a string, don't
23059 make any annotations.
23060
23061 * eval.c (syms_of_eval): Doc fix.
23062
230632002-05-28 Colin Walters <walters@debian.org>
23064
23065 * emacs.c (USAGE1): Add --no-splash.
23066 (standard_args): Ditto.
23067
230682002-05-28 Colin Walters <walters@gnu.org>
23069
23070 * lread.c (readchar_count): New variable.
23071 (readchar): Increment it.
23072 (unreadchar): Decrement it.
23073 (read_multibyte): Decrement it.
23074 (Vread_with_symbol_positions): New variable.
23075 (Vread_symbol_positions_list): New variable.
23076 (read_internal_start): New function, created from Fread and
23077 Fread_from_string. Handle Vread_symbol_positions_list and
23078 Vread_with_symbol_positions.
23079 (readevalloop, Fread, Fread_from_string): Use it.
23080 (read1): Use readchar_count to add symbol positions to
23081 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
23082 (syms_of_lread): DEFVAR_LISP and initialize them.
23083
23084 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
23085 (substitute_object_recurse, substitute_object_in_subtree)
23086 (substitute_in_interval): Prototype.
23087 (read_multibyte): Return c if it's less than zero.
23088
230892002-05-28 Kim F. Storm <storm@cua.dk>
23090
23091 * fileio.c (Fread_file_name_internal): Added brute-force
23092 speed up for using predicate file-directory-p.
23093
230942002-05-28 Kim F. Storm <storm@cua.dk>
23095
23096 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
23097 New variables.
23098 (syms_of_fileio): DEFVAR_LISP them.
23099 (read_file_name_cleanup): New unwind function.
23100 (Fread_file_name_internal): Only return completions satifying
23101 Vread_file_name_predicate. Temporarily unwind protect and rebind
23102 default-directory while checking completions against the predicate.
23103 (Fread_file_name): Added PREDICATE argument. Specbind it to
23104 Vread_file_name_predicate during completion.
23105 Call Vread_file_name_function to read the file name if non-nil.
23106
23107 * lisp.h (Fread_file_name): Now has 6 args.
23108
23109 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
23110 predicate for Fread_file_name when reading directory name.
23111 Supply Qnil for predicate in other calls to Fread_file_name.
23112
231132002-05-26 Miles Bader <miles@gnu.org>
23114
23115 * term.c (tty_capable_p): New function.
23116 * dispextern.h (tty_capable_p): New function declaration.
23117 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
23118 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
23119
231202002-05-23 Stefan Monnier <monnier@cs.yale.edu>
23121
23122 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
23123 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
23124 (Vwrite_region_annotate_functions): Docstring fix.
23125
231262002-05-23 Kim F. Storm <storm@cua.dk>
23127
23128 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
23129 phys_cursor's hpos is overwritten. This is still not completely
23130 correct, as it doesn't really make sense to use hpos at all to
23131 get the cursor glyph (as that is relative to the width of the
23132 characters on the line, which may have changed during the update).
23133
231342002-05-22 Jason Rumney <jasonr@gnu.org>
23135
23136 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
23137 Lisp_Object.
23138 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
23139 Use modified enumfont_t struct.
23140
23141 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
23142
23143 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
23144 Handle the `hbar' cursor type.
23145 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
23146
23147 * w32fns.c (Qhbar): New variable.
23148 (x_specified_cursor_type): Use it.
23149
231502002-05-21 Ken Raeburn <raeburn@gnu.org>
23151
23152 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
23153 now, when the address is needed.
23154
231552002-05-21 Colin Walters <walters@gnu.org>
23156
23157 * Makefile.in (shortlisp): Add font-core.el.
23158
231592002-05-20 Richard M. Stallman <rms@gnu.org>
23160
23161 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
23162
23163 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
23164 equivalent key bindings here.
23165
231662002-05-20 Ken Raeburn <raeburn@gnu.org>
23167
23168 Change symbol structure to contain a lisp object for the symbol
23169 name:
23170 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
23171 object field named "xname".
23172 (SYMBOL_NAME): New macro.
23173 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
23174 name field.
23175 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
23176 (mark_object, gc_sweep): Use symbol xname field and XSTRING
23177 instead of name field.
23178 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
23179 SYMBOL_NAME instead of XSYMBOL and name field.
23180 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
23181 instead of XSYMBOL and name field.
23182 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
23183 and SYMBOL_NAME instead of XSYMBOL and name field.
23184 * coding.c (Fread_coding_system, code_convert_region1)
23185 (code_convert_string1, code_convert_string_norecord)
23186 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
23187 XSYMBOL and name field.
23188 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
23189 (Fmake_variable_buffer_local, Fmake_local_variable)
23190 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
23191 of XSYMBOL and name field.
23192 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
23193 XSYMBOL and name field.
23194 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
23195 instead of XSYMBOL and name field.
23196 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
23197 XSYMBOL and name field.
23198 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
23199 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23200 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
23201 instead of XSYMBOL and name field.
23202 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
23203 (parse_modifiers, apply_modifiers, Fevent_convert_list)
23204 (parse_solitary_modifier, Fexecute_extended_command):
23205 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23206 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
23207 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
23208 of XSYMBOL and name field.
23209 (describe_command, describe_translation): Use SYMBOL_NAME and
23210 assignment instead of XSYMBOL and name field and XSETSTRING.
23211 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
23212 instead of XSYMBOL and name field.
23213 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
23214 name field and XSETSTRING.
23215 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23216 of XSYMBOL and name field.
23217 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
23218 assignment instead of XSYMBOL and name field and XSETSTRING.
23219 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
23220 XSTRING instead of XSYMBOL and name field.
23221 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
23222 and XSTRING instead of XSYMBOL and name field.
23223 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
23224 and XSTRING instead of XSYMBOL and name field.
23225 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
23226 XSTRING instead of XSYMBOL and name field.
23227 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23228 of XSYMBOL and name field.
23229 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
23230 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23231
232322002-05-19 Ken Raeburn <raeburn@gnu.org>
23233
23234 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
23235 and XCDR real rvalues in most configurations.
23236
23237 * buffer.c (fix_overlays_in_range, fix_overlays_before):
23238 Don't take the address of the cdr part of a cons cell; instead, track
23239 the parent cell and call XSETCDR, or set the variable for the head
23240 of the list if we haven't started down the list yet.
23241
232422002-05-19 Richard M. Stallman <rms@gnu.org>
23243
23244 * doc.c (reread_doc_file): Don't ask for confirmation.
23245
232462002-05-18 Jason Rumney <jasonr@gnu.org>
23247
23248 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
23249 (xbm_load_image): Use it.
23250 (xbm_load): Ditto.
23251 (xbm_read_bitmap_data): Reverted to xfns.c version.
23252 From David Ponce <david@dponce.com>.
23253
232542002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
23255
23256 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
23257 2.02 and later.
23258
232592002-05-16 Juanma Barranquero <lektu@terra.es>
23260
23261 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
23262
232632002-05-15 Stefan Monnier <monnier@cs.yale.edu>
23264
23265 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
23266 meaningful test.
23267 (read_char_minibuf_menu_prompt): Fix typo.
23268
232692002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
23270
23271 * eval.c (Fcommandp): Doc fix.
23272
232732002-05-13 Stefan Monnier <monnier@cs.yale.edu>
23274
23275 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
23276 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
23277 (Fset_keymap_parent): Gcpro a bit more.
23278 (access_keymap): Gcpro around meta_map call and around the main loop.
23279 (get_keyelt): Gcpro when following indirect references.
23280 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
23281 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
23282 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
23283 Remove useless ad-hoc remap code.
23284
232852002-05-13 Richard M. Stallman <rms@gnu.org>
23286
23287 * search.c (search_buffer): Give up boyer moore search if inverse
23288 translation change charset_base.
23289
232902002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
23291
23292 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
23293 characters is carried over from the previous block of text, adjust
23294 coding->produced to account for the extra character.
23295
232962002-05-11 Andreas Schwab <schwab@suse.de>
23297
23298 * coding.c (intersection): Keep the elements of the returned list
23299 in the same order as in the first list.
23300
233012002-05-11 Kim F. Storm <storm@cua.dk>
23302
3419757d 23303 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
23304 only update cmm_size if realloc actually succeeds.
23305 Testing with initial size of 2 elements revealed that using
23306 realloc on GNU/Linux would cause a random trap in xmalloc
23307 later on, so I rewrote the code to use malloc/bcopy/free instead
23308 of realloc.
23309
233102002-05-10 Jason Rumney <jasonr@gnu.org>
23311
23312 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
23313
233142002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
23315
23316 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
23317 parens, to ensure correct evaluation order.
23318
233192002-05-10 Kim F. Storm <storm@cua.dk>
23320
23321 * keymap.c (Vemulation_mode_map_alists): New variable.
23322 (syms_of_keymap): DEFVAR_LISP it.
23323 (current_minor_maps): Process keymap alists in that list before
23324 minor-mode-overriding-map-alist and minor-mode-map-alist.
23325
233262002-05-09 Richard M. Stallman <rms@gnu.org>
23327
23328 * search.c (Freplace_match): Doc fix.
23329
233302002-05-09 Kim F. Storm <storm@cua.dk>
23331
23332 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23333 Enlarge cursor rectangle drawn around image with non-zero relief.
23334
23335 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
23336 Enlarge cursor rectangle drawn around image with non-zero relief.
23337
23338 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23339 Enlarge cursor rectangle drawn around image with non-zero relief.
23340
233412002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
23342
23343 * xselect.c (lisp_data_to_selection_data): Don't set selection
23344 type if comes from the Lisp object's car. If the selection
23345 contains a pure ASCII text, always return QSTRING as its type.
23346
233472002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23348
23349 * mac.c (mac-cut-function): Doc fix.
23350
233512002-05-05 Richard M. Stallman <rms@gnu.org>
23352
23353 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
23354
233552002-05-04 Jason Rumney <jasonr@gnu.org>
23356
23357 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
23358 for event-click-count.
23359
23360 * process.c (init_process): Only add server subfeature if we can
23361 use non-blocking I/O.
23362
233632002-05-04 Andrew Choi <akochoi@shaw.ca>
23364
23365 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
23366 repeatedly.
23367
233682002-05-03 Jason Rumney <jasonr@gnu.org>
23369
23370 * process.c (Fmake_network_process): Only support server sockets
23371 when we can make them non-blocking.
23372
23373 * s/ms-w32.h (HAVE_SELECT): Define.
23374
23375 * w32.h (FILE_NDELAY): New flag.
23376
23377 * w32.c (sys_getpeername, fcntl): New functions.
23378 (_sys_read_ahead): Temporarily block on non-blocking sockets.
23379
2d4713aa 23380 * w32proc.c: Include sys/file.h.
048addec
JD
23381
233822002-05-03 Colin Walters <walters@verbum.org>
23383
23384 * callproc.c (Vgame_score_directory): Renamed to
23385 Vshared_game_score_directory.
23386
233872002-04-30 Richard M. Stallman <rms@gnu.org>
23388
23389 * s/gnu.h [emacs]: Include stdio.h.
23390 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
23391
23392 * eval.c (do_autoload): Error if called while preparing to dump.
23393
23394 * fns.c (Frequire): Error if need to load while preparing to dump.
23395
233962002-04-28 Colin Walters <walters@verbum.org>
23397
23398 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
23399 Default to "~/.emacs.d/games".
23400
234012002-04-29 Stefan Monnier <monnier@cs.yale.edu>
23402
23403 * lread.c (openp): Change arg exec_only to predicate.
23404 (build_load_history): Use XCAR/XCDR.
23405 (Flocate_file_internal): New fun.
23406 (syms_of_lread): Defsubr it.
23407 (Fload): Update call to openp.
23408
23409 * lisp.h (openp): Update prototype.
23410
23411 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
23412 * w32proc.c (sys_spawnve):
23413 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
23414 * w32.c (check_windows_init_file):
23415 * sound.c (Fplay_sound_internal):
23416 * process.c (Fstart_process):
23417 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
23418 * mac.c (run_mac_command):
23419 * emacs.c (init_cmdargs):
23420 * callproc.c (Fcall_process): Update call to openp.
23421
23422 * textprop.c (remove_properties): Don't use XCAR without CONSP.
23423
23424 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
23425
234262002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23427
23428 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
23429 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
23430
234312002-04-28 Richard M. Stallman <rms@gnu.org>
23432
23433 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
23434
23435 * eval.c (Fcommandp): New arg for_call_interactively.
23436 * lisp.h (Fcommandp): Declare new arg.
23437
234382002-04-28 Jason Rumney <jasonr@gnu.org>
23439
23440 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
23441
23442 * w32.c (stat, fstat): Use file index information to generate
23443 inodes for directories where available.
23444
234452002-04-26 Andrew Choi <akochoi@shaw.ca>
23446
23447 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
23448 [HAVE_CARBON]: Include Mac object files.
23449
23450 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
23451 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
23452 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
23453 MAC_OSX, and MAC_OS instead of macintosh.
23454
23455 * editfns.c [MAC_OS8]: Include stdio.h.
23456
23457 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
23458
23459 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
23460 Apple Monaco.
23461
78819ebb 23462 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
23463 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
23464 calling select.
23465
23466 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
23467
23468 * tparam.c [MAC_OSX]: Don't define BC and UP.
23469
23470 * config.in [HAVE_CARBON]: Add.
23471
23472 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
23473 Move here from mac/src and mac/inc.
23474
23475 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
23476
234772002-04-26 Gerd Moellmann <gerd@gnu.org>
23478
23479 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
23480 Compute phys_cursor_width from the x position returned
23481 by x_draw_glyhs, which is cheaper.
23482 (x_display_and_set_cursor): Compute the buffer-local value
23483 of `cursor-in-non-selected-windows' only when needed.
23484
234852002-04-25 Gerd Moellmann <gerd@gnu.org>
23486
23487 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
23488 cursor on a stretch glyph has a width that depends on
23489 x_stretch_cursor_p.
23490
234912002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23492
23493 * abbrev.c (abbrev-start-location): Doc fix.
23494
23495 * indent.c (Fvertical_motion): Fix last change.
23496
234972002-04-25 Gerd Moellmann <gerd@gnu.org>
23498
23499 * indent.c (Fvertical_motion): Move to the start of the line
23500 containing PT before moving up or down.
23501
235022002-04-24 Gerd Moellmann <gerd@gnu.org>
23503
23504 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
23505 case of writing a whole row, more or less analogous to the case of
23506 writing only parts of a row.
23507
23508 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
23509 0 for NO_CURSOR.
23510
23511 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
23512
235132002-04-23 Colin Walters <walters@verbum.org>
23514
23515 * buffer.c (syms_of_buffer): Doc fix.
23516
235172002-04-23 Gerd Moellmann <gerd@gnu.org>
23518
23519 * xterm.c (notice_overwritten_cursor): Handle the special case
23520 of the cursor being in the first blank non-text line at the
23521 end of a window.
23522
23523 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
23524 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
23525 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
23526 bar cursors only, to make phys_cursor_width contain what its name
23527 suggests.
23528 (notice_overwritten_cursor): Consider the cursor image erased if
23529 the output area intersects the cursor image in y-direction.
23530
235312002-04-23 Simon Marshall <simon@gnu.org>
23532
23533 * xfns.c (x_set_mouse_color): Change default for cross_cursor
23534 to XC_hand2.
23535
235362002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23537
23538 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
23539
235402002-04-22 Kim F. Storm <storm@cua.dk>
23541
23542 * textprop.c (remove_properties): Fixed trap for malformed plist.
23543
235442002-04-22 Richard M. Stallman <rms@gnu.org>
23545
23546 * cmds.c (Fend_of_line): Handle intangible text in mid line.
23547
23548 * window.c (make_window): Initialize height_fixed_p,
23549 last_cursor_off_p, and p->cursor_off_p slots.
23550
235512002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23552
23553 * fns.c (use-dialog-box): Doc fix.
23554
235552002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23556
23557 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
23558 variables `row', `i' and `area'.
23559 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
23560 toolkit library.
23561
235622002-04-19 Stefan Monnier <monnier@cs.yale.edu>
23563
23564 * xfaces.c (clear_font_table): Don't free the default font of
23565 a frame even if it's on another display.
23566 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
23567 that could be Qt.
23568
235692002-04-19 Juanma Barranquero <lektu@terra.es>
23570
23571 * indent.c (Fmove_to_column): Remove unused local variable
23572 `next_boundary_byte'.
23573 (current_column_1): Likewise.
23574
235752002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
23576
23577 * msdos.c (Qhbar): New variable.
23578 (syms_of_msdos): Intern and staticpro it.
23579 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
23580 cursor type.
23581
235822002-04-19 Dave Lambert <dlambert@acm.org>
23583
23584 Theses change implement an underscore-like (`hbar') cursor.
23585
23586 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
23587
23588 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
23589 Handle the `hbar' cursor type.
23590 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
23591
23592 * xfns.c (Qhbar): New variable.
23593 (syms_of_xfns): Intern and staticpro it.
23594 (x_specified_cursor_type): Handle `hbar' cursor.
23595
23596 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
23597 not defined.
23598
235992002-04-18 Richard M. Stallman <rms@gnu.org>
23600
23601 * textprop.c (remove_properties): New arg LIST allows scanning
23602 either a list or a plist.
23603 (interval_has_some_properties_list): New function, like
23604 interval_has_some_properties using list instead of plist.
23605 All callers changed.
23606 (Fremove_list_of_text_properties): New function.
23607 (syms_of_textprop): Defsubr it.
23608
236092002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
23610
23611 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
23612
236132002-04-17 Juanma Barranquero <lektu@terra.es>
23614
23615 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
23616
236172002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
23618
23619 * window.c (coordinates_in_window): Don't report on margin area
23620 if its width is zero.
23621
236222002-04-16 Jason Rumney <jasonr@gnu.org>
23623
23624 * w32fns.c (Fx_file_dialog): Decode file name before using.
23625
23626 * w32term.c (construct_drag_n_drop): Likewise.
23627
236282002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
23629
23630 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
23631 store load-history in pure space.
23632
23633 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
23634
236352002-04-16 Stefan Monnier <monnier@cs.yale.edu>
23636
23637 * xterm.c (Qlatin_1, Qutf_8): New vars.
23638 (syms_of_xterm): Initialize them.
23639 (XTread_socket): Eliminate incorrect optimization that tried to avoid
23640 decoding the output of X*LookupString.
23641 Always use latin-1 to decode the output of XLookupString.
23642 Try Xutf8LookupString if XmbLookupString failed.
23643
23644 * region-cache.c (new_region_cache): Use BEG.
23645
236462002-04-16 Gerd Moellmann <gerd@gnu.org>
23647
23648 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
23649 configuration files.
23650 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
23651 returns 0.
23652
236532002-04-15 Andreas Schwab <schwab@suse.de>
23654
23655 * config.in: Regenerated using autoheader.
23656
23657 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
23658 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
23659 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
23660 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
23661 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
23662 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
23663 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
23664 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
23665 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
23666 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
23667 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
23668 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
23669 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
23670 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
23671 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
23672 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
23673 STACK_DIRECTION, now set by autoconf.
23674
236752002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23676
23677 * dispnew.c (marginal_area_string): Sort arguments.
23678
23679 * dispextern.h (marginal_area_string): Add prototype.
23680
236812002-04-13 Richard M. Stallman <rms@gnu.org>
23682
23683 * fileio.c (Finsert_file_contents):
23684 Don't call temp_output_buffer_setup--do just part, by hand.
23685
23686 * coding.c (run_pre_post_conversion_on_str):
23687 Don't call temp_output_buffer_setup--do just part, by hand.
23688
23689 * keyboard.c (command_loop_1): Don't call start_hourglass
23690 or cancel_hourglass when executing a macro.
23691
23692 * marker.c (count_markers): New function.
23693
23694 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
23695 grow without limit. Move recently used elements to the front.
23696
236972002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
23698
23699 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
23700
237012002-04-12 Gerd Moellmann <gerd@gnu.org>
23702
23703 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
23704 rows marginal areas.
23705 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
23706 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
23707
23708 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
23709
237102002-04-12 Dave Love <fx@gnu.org>
23711
23712 * dispnew.c (marginal_area_string): New.
23713
23714 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
23715 (Qleft_margin, Qright_margin): Declare.
23716 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
23717
23718 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
23719 note_mode_line_highlight and extended.
23720
23721 * keyboard.c (Qleft_margin, Qright_margin): Declare.
23722 (make_lispy_event): Deal with mouse events in margins.
23723
237242002-04-12 Stefan Monnier <monnier@cs.yale.edu>
23725
23726 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
23727
23728 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
23729 than deactivating the mark if tmm is set to `lambda'.
23730 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
23731 Use a single event for HELP_EVENT.
23732 (Fexecute_extended_command): Save last_point_position.
23733
237342002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23735
23736 * lisp.h (Fpropertize): Add prototype.
23737
23738 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
23739
237402002-04-10 Colin Walters <walters@verbum.org>
23741
23742 * config.in: Add HAVE_SHARED_GAME_DIR.
23743
52eb0373 23744 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
23745 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
23746
237472002-04-10 Richard M. Stallman <rms@gnu.org>
23748
23749 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
23750
237512002-04-09 Stefan Monnier <monnier@cs.yale.edu>
23752
23753 * minibuf.c (read_minibuf): Use empty_string.
23754 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
23755 Short-circuit the search as soon as it "failed".
23756 (Fall_completions): Allow lambda forms and lists of strings for alist.
23757 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
23758 when require_match is nil.
23759 (Ftest_completion): Rename from `test_completion' and export to elisp.
23760 Call the predicate also when alist is a list.
23761 Obey Vcompletion_regexp_list.
23762 (do_completion, Fminibuffer_complete_and_exit): Use it.
23763 (Fassoc_string): Rename from `assoc_for_completion'.
23764 Allow list of strings as well and export to elisp.
23765
237662002-04-08 Stefan Monnier <monnier@cs.yale.edu>
23767
23768 * puresize.h (BASE_PURESIZE): Increase to 900KB.
23769
237702002-04-08 Juanma Barranquero <lektu@terra.es>
23771
23772 * w32.c (sys_accept): Don't hide variable `s'.
23773
237742002-04-05 Gerd Moellmann <gerd@gnu.org>
23775
23776 * callint.c (Fcall_interactively): Use INTEGERP instead of
23777 NUMBERP for checking Vhistory_length.
23778
237792002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23780
23781 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
23782 Doc fix to reflect it.
23783
237842002-04-04 Richard M. Stallman <rms@gnu.org>
23785
23786 * xdisp.c (display_mode_element): New arg RISKY.
23787 Disregard text props found or specified within a variable
23788 that isn't marked risky-local-variable.
23789 (Qrisky_local_variable): New variable.
23790 (syms_of_xdisp): Init and staticpro it.
23791
237922002-04-04 Stefan Monnier <monnier@cs.yale.edu>
23793
23794 * undo.c (record_point): New fun.
23795 (record_delete, record_insert): Use it.
23796
237972002-04-03 Juanma Barranquero <lektu@terra.es>
23798
23799 * doc.c (Fdocumentation): Add missing parentheses.
23800 (Fdocumentation_property): Likewise.
23801
238022002-04-03 Stefan Monnier <monnier@cs.yale.edu>
23803
23804 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
23805 data is 0, just return nil.
23806
238072002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
23808
23809 * msdos.c (syms_of_msdos): Fix last change with
23810 mouse_autoselect_window.
23811
238122002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23813
23814 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
23815 mouse_autoselect_window.
23816
238172002-04-02 Stefan Monnier <monnier@cs.yale.edu>
23818
23819 * keyboard.c (make_lispy_event): Handle unknown keysyms together
23820 with system-specific keysyms. Use it also for unknown function keys.
23821
23822 * doc.c (reread_doc_file): Return whether reload was attempted.
23823 (Fdocumentation, Fdocumentation_property): Don't try to reload
23824 if the doc is 0 and only ask once.
23825
23826 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
23827
238282002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
23829
23830 * keyboard.c (read_char): If the event was Qselect_window,
23831 restore timer_idleness_start_time to its previous value.
23832
23833 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
23834
238352002-04-01 Stefan Monnier <monnier@cs.yale.edu>
23836
23837 * region-cache.c (new_region_cache): Use BEG.
23838
23839 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
23840 Use BEG and BEG_BYTE.
23841
23842 * doc.c (get_doc_string): Return nil if the location is wrong.
23843 (reread_doc_file): New fun.
23844 (Fdocumentation, Fdocumentation_property):
23845 Call it if get_doc_string fails.
23846 (Fsnarf_documentation): Make it work for a dumped Emacs.
23847
23848 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
23849 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
23850
23851 * charset.c (Fstring): Allow 0 arguments.
23852
23853 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
23854
23855 * process.c (DATAGRAM_CONN_P, list_processes_1)
23856 (Fprocess_datagram_address, Fset_process_datagram_address)
23857 (Fset_network_process_options, server_accept_connection):
23858 Fix some int/Lisp_Object confusions (thank you union types).
23859
238602002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23861
23862 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
23863
23864 * w32term.c: Likewise.
23865 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
23866
23867 * keyboard.c (Qselect_window): New symbol.
23868 (head_table): Use it.
23869 (keys_of_keyboard): Bound select-window event to handle-select-window.
23870 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
23871
23872 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
23873 (last_window): New variable.
23874 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
23875 (note_mouse_movement): Remove reimplemented code in #if 0.
23876 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
23877 Emacs windows.
23878
23879 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
23880
238812002-03-31 Gerd Moellmann <gerd@gnu.org>
23882
23883 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
23884 Callers changed.
23885
238862002-03-30 Richard M. Stallman <rms@gnu.org>
23887
23888 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
23889 loop whenever it stops making progress.
23890
23891 * widget.c (set_frame_size): Don't call change_frame_size.
23892
238932002-03-30 Gerd Moellmann <gerd@gnu.org>
23894
23895 * dispnew.c (direct_output_for_insert):
23896 Call mark_window_display_accurate.
23897
238982002-03-29 Jason Rumney <jasonr@gnu.org>
23899
23900 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
23901
239022002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
23903
23904 * Makefile.in (lread.o): Depend on coding.h.
23905
23906 * lread.c (openp, Fload): Encode the file name before passing it
23907 to `stat', `access', and `emacs_open'.
23908 (openp): GCPRO the encoded file name. Don't recompute Lisp
23909 strings unnecessarily.
23910
239112002-03-29 Kim F. Storm <storm@cua.dk>
23912
23913 * fns.c (Flax_plist_put): Doc fix.
23914
239152002-03-28 Miles Bader <miles@gnu.org>
23916
23917 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
23918
239192002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23920
23921 * process.c (set-network-process-options): Add usage.
23922 (make-network-process): Doc fix.
23923
239242002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
23925
23926 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
23927
239282002-03-26 Richard M. Stallman <rms@gnu.org>
23929
23930 * fns.c (Fsubstring_no_properties): New function.
23931 (Flax_plist_get, Flax_plist_put): New functions.
23932 (syms_of_fns): defsubr them.
23933
23934 * xdisp.c (update_menu_bar): Test only update_mode_lines;
23935 don't test or alter w->update_mode_line.
23936
23937 * window.c (Fdisplay_buffer): Doc fix.
23938
239392002-03-24 Richard M. Stallman <rms@gnu.org>
23940
23941 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
23942
239432002-03-24 Gerd Moellmann <gerd@gnu.org>
23944
23945 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
23946 (Fdefmacro): Handle `(declare ...)'.
23947 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
23948 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
23949
239502002-03-24 Jason Rumney <jasonr@gnu.org>
23951
23952 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
23953 (xbm_file_p): Add prototypes.
23954 (xbm_format, xbm_image_p): Sync with xfns.c.
23955 (reflect_byte): New function.
23956 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
23957 (xbm_load_image): Create bitmaps with a depth of 1.
23958 (init_xfns): Enable XBM images.
23959
239602002-03-23 Jason Rumney <jasonr@gnu.org>
23961
23962 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
23963 correctly. Do not pass up_modifier to keyboard buffer.
23964
23965 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
23966
239672002-03-22 Stefan Monnier <monnier@cs.yale.edu>
23968
23969 * Makefile.in (bootstrapclean): New target.
23970 (bootstrap-temacs, bootstrap-doc): Remove.
23971 (bootstrap-emacs): Use a bog-standard `temacs'.
23972 Don't bother to build a DOC file.
23973
23974 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
23975
23976 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
23977 in temacs even if !CANNOT_DUMP.
23978 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
23979
23980 * alloc.c (check_pure_size): Only output a warning.
23981
239822002-03-22 Jason Rumney <jasonr@gnu.org>
23983
23984 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
23985 supported.
23986
23987 * w32term.c (zv_bits): Declare as short, for word alignment.
23988 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
23989 (syms_of_w32term): Define x-use-underline-position-properties.
23990
23991 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
23992 (clear_image_cache): Block input, fix logic, clear matrices in
23993 all frames that share this cache.
23994
239952002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
23996
23997 * emacs.c (main): Update the Copyright year in the blurb printed
23998 by "emacs --version".
23999
24000 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
24001
24002 * xterm.c (XTread_socket): If XK_ISO_Lock and
24003 XK_ISO_Last_Group_Lock are defined, handle keysyms between
24004 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
24005
240062002-03-21 Kim F. Storm <storm@cua.dk>
24007
24008 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
24009 menu-bar bindings in keymap and local-map properties _are_ used.
24010 But try keymap property first in accordance with 2002-01-03 patch.
24011 Added comment describing why this is not always reliable.
24012 (tool_bar_items): Ditto for tool-bar.
24013
240142002-03-21 Jason Rumney <jasonr@gnu.org>
24015
24016 * w32fns.c (x_clear_image_1): Disable color table code.
24017
240182002-03-21 Kim F. Storm <storm@cua.dk>
24019
24020 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
24021 removed the wrong version of the DEFUN macro; fixed it.
24022
24023 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
24024 Fmember rather than Fmemq).
24025 (Fprovide): Check that subfeatures is a list.
24026
24027 * process.c (QCfeature, QCdatagram): Removed variables.
24028 (QCtype, Qdatagram): New variables.
24029 (network_process_featurep): Removed function.
24030 (Fmake_network_process): Removed :feature check.
24031 Use :type 'datagram instead of :datagram t to create a datagram
24032 socket. This allows us to add other connection types (e.g. raw
24033 sockets) later in a consistent manner.
24034 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
24035 supported subfeatures for feature make-network-process.
24036 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
24037 Intern and staticpro QCtype and Qdatagram.
24038 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
24039
9dd28cae 24040 * xfns.c (QCtype): Remove duplicate declaration and
048addec
JD
24041 initialization (is now declared in process.c).
24042
9dd28cae 24043 * w32fns.c (QCtype): Remove duplicate declaration and
048addec
JD
24044 initialization (is now declared in process.c).
24045
240462002-03-21 Richard M. Stallman <rms@gnu.org>
24047
24048 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
24049 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
24050 when jumping to `fail' to avoid undoing reg changes in the
24051 last iteration of the loop.
24052 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
24053
24054 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
24055 Depend on process.h.
24056
240572002-03-20 Jason Rumney <jasonr@gnu.org>
24058
24059 Most of the following changes are still conditional on HAVE_IMAGES
24060 which is not set by default on Windows.
24061
24062 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
24063
24064 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
24065 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
24066 (four_corners_best, x_clear_image_1, x_clear_image)
24067 (x_alloc_image_color, postprocess_image)
24068 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
24069 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
24070 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
24071
24072 * w32gui.h (struct XImage): Define.
24073
24074 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
24075 extract mouse co-ordinates.
24076
240772002-03-20 Jason Rumney <jasonr@gnu.org>
24078
24079 * w32.c (init_winsock): Dynamically load new server and UDP
24080 socket functions.
24081 (socket_to_fd): New function.
24082 (sys_socket): Use it.
24083 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
24084 (sys_recvfrom, sys_sendto): New wrapper functions.
24085
24086 * process.c (QCfamily, QCfilter): Remove duplicate declaration
24087 and initialization.
24088
24089 * makefile.w32-in (LIBS): Remove $(WSOCK32).
24090
240912002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
24092
24093 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
24094 Don't use "sun" as a variable, it's a predefined constant on Sun
24095 machines.
24096
240972002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24098
24099 * bytecode.c (Fbyte_code): Revert last change.
24100
241012002-03-19 Kim F. Storm <storm@cua.dk>
24102
24103 * makefile.w32-in (LIBS): Add $(WSOCK32).
24104 From David Ponce <dponce@voila.fr>.
24105
241062002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24107
24108 * process.c (wait_reading_process_input): Move variables `pname'
24109 and `pnamelen' down where they are used.
24110
24111 * bytecode.c (Fbyte_code): Discard unused computed value to
24112 prevent gcc warning.
24113
24114 * lisp.h (Fplist_member): Add prototype.
24115
241162002-03-18 Kim F. Storm <storm@cua.dk>
24117
24118 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
24119 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
24120
24121 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
24122 Remove explicit GNU_LINUX settings for datagram support.
24123
241242002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24125
24126 * process.c (Fmake_network_process): Remove unused variable `sa'.
24127 Doc fix. Add usage:.
24128 (set_socket_options): Remove unused variables `optnum' and `opttype'.
24129
241302002-03-17 Richard M. Stallman <rms@gnu.org>
24131
24132 * xdisp.c (cursor_type_changed): New variable.
24133 (redisplay_internal): Redisplay all windows if cursor_type_changed.
24134 Clear it when clearing windows_or_buffers_changed.
24135 (try_cursor_movement, redisplay_window, try_window_id)
24136 (try_window_reusing_current_matrix): Test cursor_type_changed
24137 along with windows_or_buffers_changed.
24138
24139 * window.h (cursor_type_changed): New variable.
24140
24141 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
24142 not update_mode_lines, and always set it to 1.
24143
24144 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
24145 if no frames needed redrawing.
24146
241472002-03-17 Kim F. Storm <storm@cua.dk>
24148
24149 The following changes add support for network server processes,
24150 datagram connections, and local (unix) sockets.
24151
24152 * process.h (struct Lisp_Process): New member log.
24153 Doc fix: Member command used to indicate stopped network process.
24154 Doc fix: Member childp contains plist for network process.
24155 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
24156
24157 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
9dd28cae 24158 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
647b07d1
AS
24159 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
24160 variables.
048addec
JD
24161 (NETCONN1_P): New macro.
24162 (DATAGRAM_SOCKETS): New conditional symbol.
24163 (datagram_address): New array.
24164 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
24165 (status_message): Use concat3.
647b07d1
AS
24166 (Fprocess_status): Add `listen' status to doc string. Return
24167 `stop' for a stopped network process.
048addec
JD
24168 (Fset_process_buffer): Update contact plist for network process.
24169 (Fset_process_filter): Ditto. Don't enable input for stopped
24170 network processes. Server must listen, even if filter is t.
24171 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
24172 New functions.
24173 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
24174 (Fprocess_contact): Added KEY argument. Handle datagrams.
24175 (list_processes_1): Optionally show only processes with the query
24176 on exit flag set. Dynamically adjust column widths. Omit tty
647b07d1
AS
24177 column if not needed. Report stopped network processes. Identify
24178 server and datagram network processes.
048addec
JD
24179 (Flist_processes): New optional arg `query-only'.
24180 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
24181 (conv_lisp_to_sockaddr, set_socket_options)
647b07d1
AS
24182 (network_process_featurep, unwind_request_sigio): New helper
24183 functions.
048addec
JD
24184 (Fprocess_datagram_address, Fset_process_datagram_address):
24185 (Fset_network_process_options): New lisp functions.
24186 (Fopen_network_stream): Removed. Now defined in simple.el.
647b07d1
AS
24187 (Fmake_network_process): New lisp function. Code is based on
24188 previous Fopen_network_stream, but heavily reworked with new
24189 property list based argument list, support for datagrams, server
24190 processes, and local sockets in addition to old client-only
24191 functionality.
048addec
JD
24192 (server_accept_connection): New function.
24193 (wait_reading_process_input): Use it to handle incoming connects.
24194 Do not enable input on a new connection if process is stopped.
647b07d1
AS
24195 (read_process_output): Handle datagram sockets. Use 2k buffer for
24196 them.
048addec 24197 (send_process): Handle datagram sockets.
647b07d1
AS
24198 (Fstop_process, Fcontinue_process): Apply to network processes. A
24199 stopped network process is indicated by setting command field to t.
048addec
JD
24200 (Fprocess_send_eof): No-op if datagram connection.
24201 (Fstatus_notify): Don't read input for a stream server socket or a
24202 stopped network process.
24203 (init_process): Initialize datagram_address array.
24204 (syms_of_process): Intern and staticpro new variables, defsubr new
24205 functions.
24206
242072002-03-16 Jason Rumney <jasonr@gnu.org>
24208
24209 * w32fns.c (w32_to_all_x_charsets): Return correct type in
24210 startup case.
24211
242122002-03-16 Richard M. Stallman <rms@gnu.org>
24213
24214 * xdisp.c (redisplay_internal, redisplay_windows):
24215 Use list_of_error to call internal_condition_case_1.
24216 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
24217 so as to catch all errors with no possibility of debugger redisplay.
24218 (list_of_error): New variable.
24219 (syms_of_xdisp): Init and staticpro it.
24220
24221 * print.c (print_object): Delete `\ ' from printed rep of frame.
24222
242232002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
24224
24225 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
24226 until its implementation is fixed.
24227
242282002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24229
24230 * xfns.c (png_load): Remove unused variable `gamma_str'.
24231
242322002-03-14 Richard M. Stallman <rms@gnu.org>
24233
24234 * xfns.c (x_real_positions): Handle failure in XQueryTree.
24235
242362002-03-14 Miles Bader <miles@gnu.org>
24237
24238 * intervals.c (adjust_for_invis_intang): New function.
24239 (set_point_both): Use `adjust_for_invis_intang' to do most of the
24240 work for dealing with invisible+intangible regions. Do so before
24241 and after both forward and backward movements, to handle both
24242 front-sticky and rear-sticky cases.
24243 * textprop.c (text_property_stickiness): Function moved here from
24244 `editfns.c'.
24245 * intervals.h (text_property_stickiness): New declaration.
24246 * editfns.c (char_property_eq): Function removed.
24247 (text_property_stickiness): Function moved to `textprop.c'.
24248
242492002-03-13 Jason Rumney <jasonr@gnu.org>
24250
24251 * config.in: Add STRFTIME_NO_POSIX2.
24252
24253 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
24254 and %OX when underlying strftime does not.
24255
242562002-03-13 Stefan Monnier <monnier@cs.yale.edu>
24257
24258 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
24259 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
24260 line) to avoid annoying flicker.
24261 (xm_scroll_callback): Get rid of the now unnecessary kludge.
24262 (XTread_socket): Mark it static.
24263
24264 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
24265
242662002-03-13 Kim F. Storm <storm@cua.dk>
24267
24268 * puresize.h (BASE_PURESIZE): Increase to 775000.
24269
242702002-03-12 Juanma Barranquero <lektu@terra.es>
24271
24272 * editfns.c (syms_of_editfns): Fix typo.
24273
242742002-03-12 Gerd Moellmann <gerd@gnu.org>
24275
24276 * xsmfns.c: Include stdio.h because termhooks.h needs it.
24277 Include termopt.h for interrupt_input.
24278
242792002-03-11 Andreas Schwab <schwab@suse.de>
24280
24281 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
24282
242832002-03-11 Gerd Moellmann <gerd@gnu.org>
24284
24285 * xterm.c (note_mouse_movement): Put code for
24286 x_autoselect_window_p in #if 0.
24287
24288 * lread.c (Fload): Don't assume that message_with_string uses the
24289 string it is given like a C string.
24290
242912002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
24292
78819ebb 24293 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 24294
52eb0373 24295 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
24296 x_session_have_connection.
24297 (x_initialize): Add call to x_session_initialize.
24298
24299 * termhooks.h (enum event_kind): Add save_session_event.
24300
24301 * keyboard.c: Add Emacs event save_session_event.
24302
24303 * emacs.c (main): Add call to syms_of_xsmfns.
24304
78819ebb 24305 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
24306
24307 * config.in: Add HAVE_X_SM.
24308
24309 * Makefile.in (LIBXT): Add -lSM -lICE
24310 if HAVE_X_SM and not USE_X_TOOLKIT.
24311 (XOBJ): New file xsmfns.c added.
24312
24313 * xsmfns.c: New file for X session management.
24314
243152002-03-09 Jason Rumney <jasonr@gnu.org>
24316
24317 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
24318 read-only when setting modified time.
24319
243202002-03-08 Gerd Moellmann <gerd@gnu.org>
24321
24322 * xdisp.c (move_it_vertically_backward): At the end of the function,
24323 when moving forward by lines, treat terminal frames specially.
24324
24325 * keyboard.c (echo_char): Make sure to add a separator between
24326 keys even if echo_dash hasn't been called.
24327
24328 * xdisp.c: Use new string macros.
24329 (update_echo_area): Pass number of bytes to message3 instead of
24330 number of chars.
24331 (set_message_1): Don't access a string's size_byte directly.
24332 (decode_mode_spec_coding): Use number of bytes of eoltype string
24333 instead number of chars.
24334
24335 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
24336
243372002-03-08 Juanma Barranquero <lektu@terra.es>
24338
24339 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
24340 24-bit.
24341
243422002-03-06 Jason Rumney <jasonr@gnu.org>
24343
24344 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
24345
243462002-03-06 Gerd Moellmann <gerd@gnu.org>
24347
24348 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
24349 (cancel_echoing, echo_length, echo_truncate): Changed to
24350 work with new kboard definition.
24351 (echo_now): Use message3_nolog instead of message2_nolog.
24352
24353 * alloc.c (mark_kboards): Mark echo_string.
24354
24355 * keyboard.h (ECHOBUFSIZE): Removed.
24356 (struct kboard): Member echoptr removed, member echobuf renamed
24357 to echo_string.
24358
24359 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
24360 message3 instead of message2 to display the message using STRING's
24361 text properties.
24362
243632002-03-05 Andreas Schwab <schwab@suse.de>
24364
24365 * xdisp.c (hscroll_margin): Change to EMACS_INT.
24366
243672002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
24368
24369 * frame.c (default-frame-alist): Explain that setting it doesn't
24370 affect existing frames.
24371
243722002-03-05 Stefan Monnier <monnier@cs.yale.edu>
24373
24374 * indent.c (skip_invisible): Fix my brain fart.
24375
24376 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
24377
243782002-03-04 Stefan Monnier <monnier@cs.yale.edu>
24379
24380 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
24381 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
24382 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
24383 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
24384 and variables to use EMACS_INT instead of just int.
24385
24386 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
24387
243882002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
24389
24390 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
24391 environment, pass it down with corrected value.
24392
243932002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24394
24395 * lread.c (read_filtered_event): Do not call start_hourglass
24396 before returning.
24397
243982002-03-04 Juanma Barranquero <lektu@terra.es>
24399
24400 * w32term.c (x_display_and_set_cursor): Fix typo.
24401
244022002-03-03 Richard M. Stallman <rms@gnu.org>
24403
24404 * fileio.c (Fmake_temp_name): Doc fix.
24405
244062002-03-03 Gary Wong <gtw@gnu.org>
24407
24408 * termcap.c [!emacs]: Replace ospeed for building standalone
24409 libtermcap, for binary compatibility.
24410
24411 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
24412
244132002-03-03 Richard M. Stallman <rms@gnu.org>
24414
24415 * xrdb.c (file_p): Rename arg `path' to `filename'.
24416
24417 * abbrev.c (Fexpand_abbrev): Increment plist as use count
24418 only if it is an integer.
24419
24420 * xfns.c (png_load): Set screen_gamma based on f->gamma.
24421 If png_get_sRGB gives an answer, call png_set_gamma
24422 using the default image gamma value.
24423
24424 * lread.c (read1): When reading from a file, default string to
24425 multibyte only if it has some multibyte characters.
24426
24427 * print.c (print_object): Output multibyte chars 128...255
24428 using \x even if ! print_escape_multibyte.
24429
24430 * xdisp.c (display_mode_element): Move the places where
24431 bytepos, charpos, this, and lisp_string are set.
24432 Use lisp_string to set bytepos.
24433
24434 * xdisp.c (redisplay_internal):
24435 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
24436
24437 * xdisp.c (display_mode_element): Merge properties specified with
24438 :propertize onto those that come with the string.
24439
244402002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
24441
24442 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
24443 automatic-hscrolling. Users changed.
24444 <hscroll-margin>: Renamed from automatic-hscroll-margin.
24445 Users changed.
24446 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
24447
244482002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
24449
24450 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
24451
244522002-03-02 Kim F. Storm <storm@cua.dk>
24453
24454 * window.c (Fminibuffer_selected_window): New function.
24455 (syms_of_window): Defsubr it.
24456
244572002-03-01 Kim F. Storm <storm@cua.dk>
24458
24459 * window.h (struct window): New member phys_cursor_width.
24460
24461 * window.c (make_window, replace_window): Init phys_cursor_width.
24462
24463 * xterm.c (x_display_and_set_cursor): Blink box cursor using
24464 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
24465
24466 * w32term.c (x_display_and_set_cursor): Blink box cursor using
24467 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
24468
24469 * lisp.h (GCPRO6): New macro.
24470
24471 * process.c (Fopen_network_stream): Use GCPRO6.
24472
244732002-03-01 Kim F. Storm <storm@cua.dk>
24474
24475 * process.c (Qconnect, Qfailed): New variables.
24476 (syms_of_process): Intern and staticpro them.
24477 (Fprocess_status): Document connect and failed return values.
24478 [NON_BLOCKING_CONNECT]: New conditional.
24479 (connect_wait_mask, num_pending_connects): New variables.
24480 (status_message): Convert Qfailed status.
24481 (Fopen_network_stream): Added support for non-blocking connect.
24482 New optional args: filter, sentinel, non_blocking. Doc updated.
24483 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
24484 (deactivate_process): Handle pending non-blocking connect.
24485 (wait_reading_process_input): Poll for status of non-blocking
24486 connects. Exec sentinel directly when connect succeeds.
24487 (status_notify): Don't read process output if not yet connected.
24488
244892002-02-28 Kim F. Storm <storm@cua.dk>
24490
9dd28cae 24491 * window.c (minibuf_selected_window): Renamed from
048addec
JD
24492 Vminibuf_selected_window. Users changed.
24493 (syms_of_window): Staticpro it.
24494
244952002-02-26 Kim F. Storm <storm@cua.dk>
24496
24497 The following changes add a new Vminibuf_selected_window variable
24498 which is similar to Vminibuf_scroll_window, but which is only set
24499 on entry to the minibuffer (from a non-minibuffer window):
24500
9dd28cae 24501 * window.c (Vminibuf_selected_window): New variable.
048addec
JD
24502 (struct save_window_data): New member minibuf_selected_window.
24503 (Fset_window_configuration): Restore Vminibuf_selected_window.
24504 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
24505 Set minibuf_scroll_window member to nil if minibuf_level is 0.
24506 (compare_window_configurations): Compare minibuf_selected_window.
24507
9dd28cae 24508 * window.h (Vminibuf_selected_window): Declare extern.
048addec
JD
24509
24510 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
24511 entry to minibuffer or on entry from a non-minibuffer window.
24512
24513 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
24514 Vminibuf_selected_window instead of Vminibuf_scroll_window.
24515
24516 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
24517 instead of Vminibuf_scroll_window when deciding in which window
24518 the region should be highlighted. Consequently, the region remains
24519 highlighteded even when a completion buffer is also displayed.
24520
245212002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
24522
24523 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
24524
24525 * xselect.c (Qcompound_text_with_extensions): Renamed from
24526 Qcompound_text_no_extensions.
24527 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
24528
245292002-02-26 Juanma Barranquero <lektu@terra.es>
24530
24531 * w32proc.c (syms_of_ntproc): Doc fix.
24532
245332002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24534
24535 * intervals.h: Include "dispextern.h" unconditionally.
24536
245372002-02-24 Jason Rumney <jasonr@gnu.org>
24538
24539 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
24540 and disp-table.elc.
24541 (lisp): Add emacs-lisp/backquote.elc.
24542
245432002-02-24 Kim F. Storm <storm@cua.dk>
24544
3419757d 24545 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
24546 The validation of the event type was too strict as it didn't
24547 allow string events; buffer names are used in bindings for
24548 menu-bar-select-buffer (see `menu-bar-update-buffers').
24549
245502002-02-23 Kim F. Storm <storm@cua.dk>
24551
24552 The following changes rework my patch of 2002-02-06 which
24553 added command remapping by entering the commands directly into
24554 the keymaps. Now, command remapping uses an explicit `remap'
24555 prefix in the keymaps, i.e. [remap COMMAND].
24556
24557 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 24558 (is_command_symbol): Remove function.
048addec
JD
24559 (Fdefine_key): No longer accept a symbol for KEY.
24560 Added validation of [remap COMMAND] argument for KEY.
24561 The DEF is no longer required to be a symbol when remapping a command.
24562 (Fremap_command): New function to remap command through keymaps.
24563 (Flookup_key): Perform command remapping initiated by
24564 Fremap_command directly for speed.
24565 (Fkey_binding): Use Fremap_command for command remapping.
24566 (where_is_internal): Handle new command remapping representation.
24567 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
24568 staticpro them. Defsubr Fremap_command.
24569
24570 * keymap.h (Fremap_command): Declare extern.
24571 (is_command_symbol): Remove extern.
24572
24573 * keyboard.c (command_loop_1): Use Fremap_command for command
24574 remapping; now try command remapping for all symbols.
24575
245762002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
24577
24578 * coding.h (run_pre_post_conversion_on_str): Add prototype.
24579
245802002-02-23 Jason Rumney <jasonr@gnu.org>
24581
24582 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
24583 on the string before encoding it.
24584 (Fw32_get_clipboard_data): Run post-read-conversion on the string
24585 after decoding it.
24586
24587 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
24588
245892002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24590
24591 * w32term.c (enter_timestamp): Remove unused static variable to
24592 prevent warning.
24593
24594 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
24595
245962002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
24597
24598 * w16select.c (Fw16_get_clipboard_data): Fix last change.
24599
24600 * xselect.c (selection_data_to_lisp_data): Fix last change.
24601
246022002-02-22 Jason Rumney <jasonr@gnu.org>
24603
24604 * w32term.h (struct w32_output): New member menu_command_in_progress.
24605
24606 * w32menu.c (menubar_selection_callback): Free the menu and
24607 clear the menu_command_in_progress flag.
24608
24609 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
24610 (menu_free_timer): New variable.
24611 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
24612 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
24613 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
24614 menu command is in progress.
24615 <WM_COMMAND>: Set the menu_command_in_progress flag.
24616 Kill any menu_free_timer that is running.
24617
24618 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
24619 Call ExtTextOutA rather than ExtTextOut.
24620
246212002-02-22 Eli Zaretskii <eliz@gnu.org>
24622
24623 * puresize.h (BASE_PURESIZE): Increase to 755000.
24624
246252002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
24626
24627 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
24628 on the string before encoding it.
24629 (Fw16_get_clipboard_data): Run post-read-conversion on the string
24630 after decoding it.
24631
246322002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
24633
9dd28cae 24634 Support for ICCCM Extended Segments in X selections:
048addec
JD
24635
24636 * xselect.c <Qcompound_text_no_extensions>: New variable.
24637 (syms_of_xselect): Intern and staticpro it.
24638 (selection_data_to_lisp_data): Run post-read-conversion on decoded
24639 selection text.
24640 (lisp_data_to_selection_data): If next-selection-coding-system is
24641 compound-text-no-extensions, set the type of selection to be
24642 compound-text.
24643
24644 * xterm.h (x_encode_text): Update prototype.
24645
24646 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
24647 callers changed. If SELECTIONP is non-zero, run the
24648 pre-write-conversion function before encoding the selection text.
24649
246502002-02-21 Kim F. Storm <storm@cua.dk>
24651
24652 * frame.c (syms_of_frame): Change mouse-highlight default to t.
24653
24654 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
24655 Correct composing of language-change event.
24656
246572002-02-20 Kim F. Storm <storm@cua.dk>
24658
24659 * keyboard.c (menu_bar_items): Don't include keymap or local-map
24660 bindings at PT when building menu (the menu is not updated often
24661 enough for this to work reliable).
24662 (tool_bar_items): Likewise.
24663 (current_active_maps): Removed unused (and buggy) function.
24664
246652002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24666
24667 * xfns.c (gif_load): Use correct width and height for GIF images.
24668
246692002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
24670
24671 * floatfns.c (Fatan): Accept an optional second arg and call
24672 atan2 if passed 2 args.
24673
246742002-02-18 Jason Rumney <jasonr@gnu.org>
24675
24676 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
24677
246782002-02-17 Jason Rumney <jasonr@gnu.org>
24679
24680 * w32term.c (x_autoselect_window_p): New variable.
24681 (syms_of_w32term): DEFVAR_BOOL and initialize it.
24682 (note_mouse_movement): Use it.
24683
24684 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
24685
24686 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
24687
24688 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
24689 New variables.
24690 (syms_of_w32fns): Intern and staticpro them.
24691 (x_frame_parms) <"fullscreen">: New parameter.
24692 (x_fullscreen_move, x_set_fullscreen): New functions.
24693 (x_set_frame_parameters): Support Qfullscreen.
24694 (x_real_positions): Save x/y_pixels_diff frame params.
24695 (x_figure_window_size): Support full-screen frames.
24696 (Fx_create_frame): Default the fullscreen parameter.
24697
24698 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
24699 (x_fullscreen_adjust): New functions.
5e1a6e32 24700 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
048addec
JD
24701 fullscreen. Call x_check_fullscreen_move, and set the
24702 want_fullscreen member of output_data.w32
24703 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
24704
24705 * w32term.h: New enum for FULLSCREEN_* constants.
24706 (struct w32_output): New members want_fullscreen, x_pixels_diff,
24707 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
24708 (x-fullscreen-adjust): New prototype.
24709
247102002-02-17 Kim F. Storm <storm@cua.dk>
24711
52eb0373 24712 * frame.c (Vmouse_highlight): New variable.
048addec
JD
24713 (syms_of_frame): DEFVAR_LISP it.
24714
52eb0373 24715 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 24716
048addec 24717 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 24718
048addec
JD
24719 * xterm.c (disable_mouse_highlight): Removed variable.
24720 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
5e1a6e32 24721 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
048addec
JD
24722 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
24723 and on after keyboard input.
24724 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 24725
048addec 24726 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 24727
048addec 24728 * msdos.c (disable_mouse_highlight): Removed variable.
5e1a6e32 24729 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
048addec
JD
24730 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
24731 (internal_terminal_init): Initialize mouse_face_hidden.
24732 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
24733 and on after keyboard input.
4f1b1854 24734
048addec 24735 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 24736
048addec
JD
24737 * w32term.c (disable_mouse_highlight): Removed variable.
24738 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
5e1a6e32 24739 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
048addec
JD
24740 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
24741 and on after keyboard input.
24742 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 24743
048addec 247442002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 24745
048addec
JD
24746 * msdos.c (last_mouse_window): New variable.
24747 (dos_rawgetc): Fix last change--if the mouse is in the same window
24748 as recorded in last_mouse_window, don't select this window.
5cb6905d 24749
048addec 24750 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 24751
048addec
JD
24752 * msdos.c (x_autoselect_window_p): New variable.
24753 (syms_of_msdos): Defvar it.
24754 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
24755 which the last mouse movement occured, unless it is already selected.
437dfb9f 24756
048addec
JD
24757 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
24758 New variables.
24759 (syms_of_xdisp): DEVFAR them.
24760 (hscroll_window_tree): Use automatic_hscroll_margin and
24761 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 24762
048addec 247632002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 24764
048addec
JD
24765 * xterm.c (x-autoselect-window): New variable.
24766 (note_mouse_movement): Use it.
9f696a00 24767
048addec 24768 * keyboard.c: Do not include "systime.h" twice.
d57966d7 24769
048addec 247702002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 24771
bfa02563 24772 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 24773
048addec 24774 * alloc.c (NSTATICS): Increase to 1280.
74779f52 24775
048addec 247762002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 24777
048addec 24778 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 24779
048addec
JD
24780 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
24781 (Vx_super_keysym): New variables.
24782 (syms_of_xterm): DEFVAR_LISP them.
24783 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
24784 variables to determine which keys to use for the various modifiers.
a474d59c 24785
048addec 247862002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 24787
9dd28cae 24788 * window.c (Vmode_line_in_non_selected_windows): Removed.
048addec
JD
24789 (mode_line_in_non_selected_windows): New variable.
24790 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 24791
048addec
JD
24792 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
24793 Use mode_line_in_non_selected_windows.
24794 (mode_line_in_non_selected_windows): Declare extern.
24795 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 24796
048addec 247972002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 24798
048addec
JD
24799 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
24800 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
24801 (Fclear_this_command_keys): Doc fixes.
2d10309f 24802
048addec
JD
24803 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
24804 (update_face_from_frame_parameter): Increment face_change_count
24805 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 24806
048addec
JD
24807 * xdisp.c (QCpropertize): New variable.
24808 (mode_line_proptrans_alist): New variable.
24809 (display_mode_element): New arg PROPS; all calls changed.
24810 Implement this, for strings.
24811 Handle literal output of strings by sharing the
24812 main-line code for strings, using local var `literal'.
24813 Handle :propertize feature.
24814 (syms_of_xdisp): Initialze and staticpro QCpropertize and
24815 mode_line_proptrans_alist.
0b1e6b54 24816
048addec 248172002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 24818
9dd28cae 24819 * window.c (Vmode_line_in_non_selected_windows): New variable.
048addec 24820 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 24821
048addec
JD
24822 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
24823 (CURRENT_MODE_LINE_FACE_ID): Use it.
24824 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 24825
048addec
JD
24826 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
24827 to get mode line face.
e17144de 24828
048addec 248292002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 24830
048addec
JD
24831 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
24832 variables; cus-start.el doesn't need them anymore.
44368f8f 24833
048addec 248342002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 24835
048addec
JD
24836 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
24837 reduction. This fixes a display problem where stray newlines were
24838 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 24839
048addec 248402002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 24841
048addec 24842 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 24843
048addec 24844 * xdisp.c (display_mode_lines): Fix last change.
453c5510 24845
048addec 248462002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 24847
048addec
JD
24848 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
24849 match each other.
24850 (w32_load_system_font): Prevent Cleartype fonts from loading.
24851 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 24852
048addec 248532002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 24854
048addec
JD
24855 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
24856 (CURRENT_MODE_LINE_HEIGHT): Use it.
24857 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 24858
048addec
JD
24859 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
24860 (pos_visible_p, handle_face_prop): Likewise.
24861 (display_mode_lines): Likewise, but for the real selected window.
24862 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 24863
048addec
JD
24864 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
24865 in non-selected windows.
24866 (realize_basic_faces): Realize it.
24867 (syms_of_term): Intern and staticpro it.
308dd672 24868
048addec 248692002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 24870
048addec
JD
24871 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
24872 Changed mail addresses to emacs-devel@gnu.org.
308dd672 24873
048addec 248742002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 24875
048addec
JD
24876 * fileio.c (Fsubstitute_in_file_name): If the file name includes
24877 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 24878
048addec 24879 * floatfns.c (Fround): Doc fix.
3c1e6b46 24880
048addec 248812002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 24882
048addec 24883 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 24884
048addec 248852002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 24886
048addec 24887 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 24888
048addec 248892002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 24890
048addec
JD
24891 * keymap.c (where_is_internal): Only check whether definition is
24892 remapped if it fulfills is_command_symbol.
0065bb74 24893
048addec 248942002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 24895
048addec 24896 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 24897
048addec 24898 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 24899
048addec 249002002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 24901
048addec
JD
24902 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
24903 defining command remapping. Doc updated.
24904 (Flookup_key): Remap command through keymap if KEY is a symbol.
24905 (is_command_symbol): New function.
24906 (Fkey_binding): Use it. New optional argument NO-REMAP.
24907 Doc updated. Callers changed. Perform command remapping via
24908 recursive call unless that arg is non-nil.
24909 (where_is_internal): New argument no_remap. Callers changed.
24910 Call recursively to find original key bindings for a remapped
24911 comand unless that arg is non-nil.
24912 (Fwhere_is_internal): New optional argument NO-REMAP.
24913 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 24914
048addec 24915 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 24916 (is_command_symbol): Add prototype.
0d8466cc 24917
048addec
JD
24918 * keyboard.c (Vthis_original_command): New variable.
24919 (syms_of_keyboard): DEFVAR_LISP it.
24920 (command_loop_1): Set it, and perform command remapping.
15fff01d 24921
048addec 249222002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 24923
048addec 24924 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 24925
048addec 249262002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 24927
048addec 24928 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 24929
048addec 249302002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 24931
048addec 24932 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 24933
048addec 249342002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 24935
048addec 24936 * filelock.c (S_ISLNK): Define if not defined.
3a232704 24937
048addec 249382002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 24939
048addec 24940 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 24941
048addec
JD
24942 * lread.c (read1): Redesign strategy for force_multibyte and
24943 force_singlebyte. Now is_multibyte records whether read_buffer
24944 is multibyte. Encountering any multibyte character makes it so.
4e02881b 24945
048addec 249462002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 24947
048addec
JD
24948 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
24949 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 24950
048addec 249512002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 24952
048addec
JD
24953 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
24954 latter never being defined on GNU/Linux.
749f499f 24955
048addec 249562002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 24957
048addec
JD
24958 * xfaces.c (realize_default_face): Don't set the weight and slant of
24959 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 24960
048addec 249612002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 24962
048addec
JD
24963 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
24964 Call cancel_hourglass unconditionally.
d0fd26dd 24965
048addec
JD
24966 * eval.c (Fsignal): Remove duplicated declaration of
24967 the variable `display_hourglass_p'.
b4c45162 24968
048addec 249692002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 24970
048addec 24971 * editfns.c (region_limit): Nicer error message.
c95eaa61 24972
048addec
JD
24973 * coding.c (decode_composition_emacs_mule):
24974 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 24975
048addec
JD
24976 * callint.c (check_mark): New arg to specify clearer error message.
24977 Callers changed.
c95eaa61 24978
048addec 249792002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 24980
048addec 24981 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 24982
048addec 249832002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 24984
048addec
JD
24985 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
24986 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
24987 Fix doc-strings.
c95eaa61 24988
048addec 249892002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 24990
048addec 24991 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 24992
048addec
JD
24993 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
24994 and scroll_up_aggressively.
c95eaa61 24995
048addec 249962002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 24997
048addec 24998 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 24999
048addec 250002002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 25001
048addec
JD
25002 * textprop.c (Fnext_property_change, Fnext_single_property_change)
25003 (Fprevious_property_change, Fprevious_single_property_change):
25004 Stay within the narrowed-buffer boundaries.
e2c3786a 25005
048addec 250062002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 25007
048addec
JD
25008 * term.c (Ftty_display_color_cells): New function.
25009 (syms_of_term): Defsubr it.
25010 (Ftty_display_color_cells, Ftty_display_color_p): Change the
25011 argument name to DISPLAY. Doc fix.
bf794306 25012
048addec
JD
25013 * dispextern.h: Add prototype for set_tty_color_mode and
25014 tty_setup_colors.
bf794306 25015
048addec 250162002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 25017
048addec
JD
25018 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
25019 If region left to draw is not what was expected, mark the frame as
25020 garbaged.
62582985 25021
048addec
JD
25022 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
25023 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 25024
048addec 250252002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 25026
048addec
JD
25027 * w32term.c (x_update_window_begin): Only hide caret if
25028 w32_use_visible_system_caret is set.
25029 (x_update_window_end): Only show caret if
25030 w32_use_visible_system_caret is set.
25031 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 25032
048addec 25033 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 25034
048addec 250352002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 25036
048addec
JD
25037 * unexelf.c (unexec): Define n so as to cause compilation error
25038 for the code where people have often written n instead of nn.
1e9a6186 25039
048addec 25040 * .gdbinit (hookpost-run): Defined.
1e9a6186 25041
048addec 250422002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 25043
048addec 25044 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 25045
048addec 250462002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 25047
048addec
JD
25048 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
25049 if fullscreen is being set.
7c75be36 25050
048addec 250512002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 25052
048addec
JD
25053 * minibuf.c (Fminibuffer_contents)
25054 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
25055 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 25056
048addec 250572002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 25058
048addec 25059 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 25060
048addec 250612002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 25062
048addec
JD
25063 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
25064 height before comparison.
25065 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 25066
048addec 250672002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 25068
048addec
JD
25069 * w32term.c (w32_system_caret_width): Remove.
25070 (w32_use_visible_system_caret): New user flag.
25071 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
25072 Windows reports a screen reader running.
25073 (x_update_window_begin): Hide the system caret.
25074 (x_update_window_end): Show the system caret.
25075 (x_display_and_set_cursor): Don't draw a cursor when
25076 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 25077
048addec
JD
25078 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
25079 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
25080 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
25081 the user requests it. Use system default width when creating.
25082 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 25083
048addec
JD
25084 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
25085 New window messages.
905cc05a 25086
048addec 250872002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 25088
048addec 25089 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 25090
048addec 250912002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 25092
048addec 25093 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 25094
048addec 250952002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 25096
048addec 25097 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 25098
048addec 250992002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 25100
048addec
JD
25101 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
25102 that Windows returns. If a double check fails, try to guess how
25103 ExtTextOut is going to act.
4d0fa4f3 25104
048addec
JD
25105 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
25106 in place of stricmp.
25107 (w32_list_synthesized_fonts): Removed.
25108 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
25109 (struct enumfont_t): New element; list.
25110 (enum_font_cb2): List all style and charset variations of a font.
25111 (Fw32_select_font): New optional argument; include_proportional.
25112 Exclude vertical fonts. Exclude proportional fonts unless
25113 include_proportional is non-nil.
25114 (w32_enable_synthesized_fonts): Change to a boolean.
25115 (Fw32_send_sys_command): Doc fix.
493faf20 25116
048addec 251172002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 25118
048addec
JD
25119 * dispnew.c (update_frame): Move the variable `tem' to the block
25120 where it is used.
4971e491 25121
048addec 251222002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 25123
048addec
JD
25124 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
25125 call to face-set-after-frame-default.
4971e491 25126
048addec 251272002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 25128
048addec
JD
25129 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
25130 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 25131
048addec 251322002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 25133
048addec
JD
25134 * window.c (enlarge_window): When exceeding size of parent,
25135 directly delete all the siblings instead of trying to resize it.
201c831a 25136
048addec 251372002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 25138
048addec 25139 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 25140
048addec 251412002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 25142
048addec 25143 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 25144
048addec 251452002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 25146
048addec
JD
25147 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
25148 is invisible. This can happen if cursor is on top line of a
25149 window, and we switch to a buffer with a header line.
d77fbc16 25150
048addec 25151 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 25152
048addec 251532002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 25154
048addec
JD
25155 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
25156 `dont_resize' only when used.
61e3b944 25157
048addec 25158 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 25159
048addec 251602002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 25161
048addec
JD
25162 * xdisp.c (display_mode_element): When computing charpos, depend
25163 on multibyteness of elt, not the text in field.
8af01033 25164
048addec 251652002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 25166
048addec
JD
25167 * buffer.c (Fkill_all_local_variables):
25168 Increment `update_mode_lines' only once.
7363986a 25169
048addec 251702002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 25171
048addec
JD
25172 * lisp.h (adjust_after_replace_noundo)
25173 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 25174
048addec 25175 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 25176
048addec 251772002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 25178
048addec
JD
25179 Support for the --color command-line argument and tty-color-mode
25180 frame parameter:
f1a85b89 25181
048addec
JD
25182 * term.c (tty_default_color_capabilities, tty_setup_colors)
25183 (set_tty_color_mode): New functions.
25184 (term_init): Call tty_default_color_capabilities.
25185 (Qtty_color_mode_alist): New variable.
25186 (syms_of_term): Intern and staticpro it.
f1a85b89 25187
048addec
JD
25188 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
25189 frames.
25190 (do_switch_frame): For termcap frames, switch the tty
25191 color mode as specified by the frame's parameters.
25192 (Qtty_color_mode): New variable.
25193 (syms_of_frame): Intern and staticpro it.
3a62677f 25194
048addec
JD
25195 * emacs.c (USAGE2): Add the --color option.
25196 (standard_args): Ditto.
72244db2 25197
048addec
JD
251982002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
25199
25200 * xterm.h (struct x_output): New members want_fullscreen,
25201 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
25202 y_pixels_outer_diff.
25203 New enum for FULLSCREEN_* constants.
25204 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
25205 is NULL.
25206 (x_fullscreen_adjust): Add prototype.
3a62677f 25207
048addec
JD
25208 * emacs.c (USAGE2): Add the new full-screen arguments.
25209 (standard_args): Ditto.
3a62677f 25210
048addec
JD
25211 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
25212 New variables.
25213 (syms_of_xfns): Intern and staticpro them.
25214 (x_frame_parms) <"fullscreen">: New parameter.
25215 (x_fullscreen_move, x_set_fullscreen): New functions.
25216 (x_set_frame_parameters): Support for Qfullscreen.
25217 (x_real_positions): More accurate computation of the frame position.
25218 (x_figure_window_size): Support full-screen frames.
25219 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 25220
048addec
JD
25221 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
25222 (XTread_socket) <Expose>: Call x_check_fullscreen.
25223 <ConfigureNotify>: Don't resize to fullscreen.
25224 Call x_check_fullscreen_move, and set the want_fullscreen member of
25225 output_data.x.
3a62677f 25226
048addec 252272002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 25228
048addec
JD
25229 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
25230 for mice with more than 3 buttons.
b8523839 25231
048addec
JD
25232 * w32term.c (parse_button): New parameter xbutton. Callers changed.
25233 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 25234
048addec
JD
25235 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
25236 (syms_of_w32fns): DEFVAR_BOOL it.
25237 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 25238
048addec 252392002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 25240
048addec 25241 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 25242
048addec 252432002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 25244
048addec 25245 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 25246
048addec 252472002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 25248
048addec
JD
25249 * .gdbinit (xbuffer): Remove address operator since data is now a
25250 pointer.
c93674bb 25251
048addec 252522002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 25253
048addec 25254 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 25255
048addec 25256 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 25257
048addec 252582002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 25259
048addec
JD
25260 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
25261 when checking for multiple frames.
91175673 25262
048addec 252632002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 25264
048addec
JD
25265 * window.c (delete_window): Rewrite the code for changing the
25266 selected window to handle the case where WINDOW is not a leaf.
91175673 25267
048addec 252682002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 25269
048addec
JD
25270 * process.c (send_process): Set src_multibyte to 1 after the call
25271 top setup_coding_system, not before the call.
e0fead5d 25272
048addec 252732002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 25274
048addec 25275 * xmenu.c (set_frame_menubar, xmenu_show):
5e1a6e32 25276 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 25277
048addec
JD
25278 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
25279 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 25280
048addec 252812002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 25282
048addec 25283 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 25284
048addec 25285 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 25286
048addec 25287 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 25288
048addec 252892002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 25290
048addec
JD
25291 * insdel.c (make_gap_larger): Make sure buffer size does not
25292 overflow range of int.
62854fe2 25293
048addec 252942002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 25295
048addec
JD
25296 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
25297 OVERLAPS_P.
656f46bb 25298
048addec 25299 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 25300
048addec
JD
25301 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
25302 to the left or to the right of the pointer, put it against
25303 the left screen edge.
25304 (x_frame_parms): Add missing braces around initializer.
036e218d 25305
048addec
JD
25306 * w32term.c (x_setup_relief_colors): Don't compute an image's
25307 background color if it doesn't have a Pixmap.
25308 (notice_overwritten_cursor): Don't depend on
25309 output_cursor and updated_area. Compare pixel coordinates with
25310 window's cursor pixel coordinates.
25311 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25312 Call notice_overwritten_cursor with new arg list.
25313 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25314 unconditionally.
25315 (x_draw_image_relief): Use predefined macro instead of
25316 constant when the value of `tool_bar_button_relief' is negative.
036e218d 25317
048addec 25318 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 25319
048addec 253202002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 25321
048addec 25322 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 25323
048addec 253242002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 25325
048addec
JD
25326 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
25327 (Fkey_binding): Try the `keymap' property map first.
25328 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
25329 minor mode bindings.
90647b07 25330
048addec 253312002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 25332
3419757d 25333 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 25334
048addec 253352002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 25336
048addec
JD
25337 * keyboard.c (read_key_sequence): Handle the keymap property
25338 before minor mode maps.
9fbc32aa 25339
048addec
JD
25340 * editfns.c (Fformat): Update thissize from field_width
25341 based on the actual width, in the string case.
036e218d 25342
048addec 253432002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 25344
048addec
JD
25345 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
25346 when used as truth value to prevent gcc warnings.
9fbc32aa 25347
048addec
JD
25348 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
25349 * w32proc.c: Include <config.h>.
9fbc32aa 25350
048addec 253512002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 25352
048addec
JD
25353 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
25354 not EMACS_INT, to make them compatible with DEFVAR_INT.
25355 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 25356
048addec 253572002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 25358
048addec
JD
25359 * print.c (print_object): Test print_escape_nonascii only for
25360 unibyte strings.
25361 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
25362 when outputting to a multibyte buffer.
9fbc32aa 25363
048addec 253642001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 25365
048addec
JD
25366 * print.c (print_object): In multibyte string, use hex escapes.
25367 Use octal only for unibyte strings.
25368 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 25369
048addec
JD
25370 * lread.c (read_escape): New arg BYTEREP for reporting whether
25371 escape forces unibyte or multibyte.
25372 (read1): When reading a string, take note of that info.
0142178a 25373
048addec 253742001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 25375
048addec
JD
25376 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
25377 comparison to test lisp value returned by Fget.
d4824a5d 25378
048addec 253792001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 25380
048addec 25381 * lisp.h (max_specpdl_size): Add declaration.
b1356234 25382
048addec 25383 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 25384
048addec
JD
25385 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
25386 Handle modifier bits. Correct typo in error message.
99e380ee 25387
048addec 253882001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 25389
048addec
JD
25390 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
25391 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
25392 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25393 Update calls to Fdefine_abbrev.
25394 (write_abbrev): Update for changed data format.
25395 Don't list "system" abbrevs.
25396 (Fexpand_abbrev): Update use count with new data format.
25397 (describe_abbrev): Update for changed data format.
25398 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 25399
048addec 25400 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 25401
048addec 25402 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 25403
048addec
JD
25404 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
25405 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 25406
048addec
JD
25407 * keymap.c (Flookup_key): Error message if key has wrong data type.
25408 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
25409 (exclude_key): New variable.
59a86c99 25410
048addec 254112001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 25412
048addec
JD
25413 * xterm.c (x_setup_relief_colors): Don't compute an image's
25414 background color if it doesn't have a Pixmap.
eb77a5f4 25415
048addec
JD
25416 * xterm.c (notice_overwritten_cursor): Don't depend on
25417 output_cursor and updated_area. Compare pixel coordinates with
25418 window's cursor pixel coordinates.
25419 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25420 Call notice_overwritten_cursor with new arg list.
25421 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25422 unconditionally.
eb77a5f4 25423
048addec
JD
25424 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
25425 height of the cursor line to the amount to scroll.
eb77a5f4 25426
048addec 254272001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 25428
048addec
JD
25429 * intervals.c (set_point_both): The position after an invisible,
25430 intangible character is not an acceptable stopping point.
bb313871 25431
048addec 254322001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 25433
048addec
JD
25434 * window.c (enlarge_window): In new preserve_before code, convert
25435 CURBEG from lisp object to integer before doing arithmetic.
6052529b 25436
048addec 254372001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 25438
048addec 25439 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 25440
048addec 254412001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 25442
048addec
JD
25443 * keyboard.c (record_char): Ignore duplicate help-echo events only
25444 separated by mouse-movement. When tracking mouse, only record
25445 first and last mouse-movement event in same window.
25446 Don't record mouse-movement events in keyboard macros.
3ce081f5 25447
048addec 254482001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 25449
048addec
JD
25450 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
25451 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 25452
048addec
JD
25453 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
25454 instead of Fstring_as_unibyte.
9fabb2f5 25455
048addec 254562001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 25457
048addec 25458 The following changes remove mocklisp support:
9fabb2f5 25459
048addec 25460 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 25461
048addec
JD
25462 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
25463 `Qmocklisp' and `Qmocklisp_arguments'.
25464 Remove prototype of syms_of_mocklisp.
2fa0eedf 25465
048addec 25466 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 25467
048addec
JD
25468 * callint.c: Do not include mocklisp.h.
25469 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 25470
048addec
JD
25471 * eval.c: Remove variables `Qmocklisp_arguments',
25472 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
25473 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
25474 Do not test for mocklisp case.
25475 (Fwhile): Remove unused variable `tem'.
25476 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 25477
048addec 25478 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 25479
048addec 25480 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 25481
048addec 25482 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 25483
048addec 254842001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 25485
048addec
JD
25486 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
25487 to the left or to the right of the pointer, put it against
25488 the left screen edge.
6108b49c 25489
048addec 254902001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 25491
048addec
JD
25492 * Makefile.in (distclean): Remove .gdbinit if we are building
25493 outside the source tree.
5eea19a4 25494
048addec 254952001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 25496
048addec 25497 * w32.c (emacs_root_dir): New function.
5eea19a4 25498
048addec 25499 * msdos.c (emacs_root_dir): New function.
5eea19a4 25500
048addec
JD
25501 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
25502 of the current drive as the fallback for default_directory.
438e57dd 25503
048addec
JD
25504 * dired.c (file_name_completion): Run the elements of
25505 completion-ignored-extensions through ENCODE_FILE.
438e57dd 25506
048addec
JD
25507 * lisp.h (scmp): Remove prototype, since it's now a static
25508 function private to dired.c.
c88e5347 25509
048addec 255102001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 25511
048addec
JD
25512 * dired.c (scmp): Function moved from minibuf.c.
25513 Delete multibyte handling--used only on encoded strings.
59ce1461 25514
048addec 25515 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 25516
048addec 25517 * fns.c (merge): Add QUIT call.
59ce1461 25518
048addec 255192001-12-18 Dave Love <fx@gnu.org>
8727d588 25520
048addec
JD
25521 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
25522 language/georgian.el.
8727d588 25523
048addec 255242001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 25525
048addec
JD
25526 * Makefile.in (lisp, shortlisp): Synchronize with changes to
25527 lisp/Makefile.in:DONTCOMPILE.
cc63037e 25528
048addec 255292001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 25530
048addec
JD
25531 * xdisp.c (window_box_height): Do not return negative values.
25532 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 25533
048addec 25534 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 25535
048addec 25536 * term.c (keys): Likewise.
deece6f5 25537
048addec 25538 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 25539
048addec 255402001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 25541
048addec
JD
25542 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
25543 patch (COMPOSING_P, not COMPOSING).
28ff4293 25544
048addec 255452001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 25546
048addec 25547 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 25548
048addec
JD
25549 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
25550 before calling decode_coding.
9b46de40 25551
048addec 25552 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 25553
048addec
JD
25554 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
25555 instead of only for COMPOSITION_DISABLED.
9b46de40 25556
048addec 255572001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 25558
048addec 25559 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 25560
048addec 25561 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 25562
048addec
JD
25563 * buffer.h (struct buffer): New field `display_error_modiff'.
25564 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 25565
048addec 25566 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 25567
048addec
JD
25568 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
25569 Call redisplay_window, but not if display_error_modiff field says no.
25570 (redisplay_window_error): New function.
25571 (displayed_buffer): New variable.
25572 (redisplay_internal, redisplay_windows): Call the new functions
25573 instead of redisplay_window directly.
2cd23960 25574
048addec 255752001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 25576
048addec 25577 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 25578
048addec 255792001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 25580
048addec 25581 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 25582 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 25583 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 25584
048addec 255852001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 25586
048addec
JD
25587 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
25588 parameter have a numeric value all the time.
f6fa0866 25589
048addec 25590 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 25591
048addec 255922001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 25593
048addec 25594 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 25595
048addec
JD
25596 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
25597 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 25598
048addec 255992001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 25600
048addec
JD
25601 * xdisp.c (move_it_vertically_backward): Change heuristic
25602 for the case that we didn't move far enough initially.
91c153e2 25603
048addec
JD
25604 * window.c (Frecenter): Simplify computation in the case of window
25605 system frames and ARG < 0; use window_box_height.
65b7d3e7 25606
048addec 256072001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 25608
048addec
JD
25609 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
25610 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 25611
048addec 256122001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 25613
048addec
JD
25614 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
25615 arg is negative.
be676094 25616
048addec 256172001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 25618
048addec
JD
25619 * m/hp800.h: Split the __hpux conditional into the parts
25620 that are right for GNU/Linux too and the parts that are not.
25621 Use the former if GNU_LINUX.
25622 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 25623
048addec 25624 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 25625
048addec 256262001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 25627
048addec
JD
25628 * macros.c, msdos.c, w16select.c: Change doc-string comments to
25629 `new style' [w/`doc:' keyword].
032a857d 25630
048addec 256312001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 25632
048addec
JD
25633 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
25634 before using.
b6270150 25635
048addec 256362001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 25637
048addec
JD
25638 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
25639 keyword].
98cbb9fa 25640
048addec 256412001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 25642
048addec 25643 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 25644
048addec 25645 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 25646
048addec 256472001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 25648
048addec 25649 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 25650 Add comment to explain where the struct came from.
048addec
JD
25651 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
25652 (add_menu_item): Process pop-up menus first to avoid memory leak.
25653 (add_menu_item, w32_menu_display_help): Use `help' field as
25654 Lisp_Object.
25655 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 25656
048addec 256572001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 25658
048addec 25659 * COPYING: Moved back.
fa336b91 25660
048addec
JD
25661 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
25662 Add parentheses around && within ||.
077907d4 25663
048addec 25664 * indent.c (compute_motion): Likewise.
aa2af83a 25665
048addec 25666 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 25667
048addec
JD
25668 * coding.c (setup_coding_system, shrink_encoding_region)
25669 (Fdecode_sjis_char): Likewise.
60a653f1 25670
048addec 256712001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 25672
048addec
JD
25673 * xdisp.c (display_mode_element): Don't read past end of string if
25674 it ends with '%'.
60a653f1 25675
048addec
JD
25676 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
25677 can hold.
60a653f1 25678
048addec
JD
25679 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
25680 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
25681 type changed to Lisp_Object.
25682 (syms_of_data): DEFVAR_LISP them.
60a653f1 25683
048addec 256842001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 25685
048addec
JD
25686 * callproc.c (init_callproc): Set Vdata_directory based on the source
25687 location whenever Emacs was run uninstalled.
60a653f1 25688
048addec 256892001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 25690
048addec
JD
25691 * config.in (HAVE_WORKING_VFORK): New #undefs.
25692 * process.c (create_process):
25693 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
25694 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
25695 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
25696 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
25697 * m/intel386.h (HAVE_VFORK): Likewise.
25698 * m/mips-siemens.h (HAVE_VFORK): Likewise.
25699 * m/mips.h (HAVE_VFORK): Likewise.
25700 * s/freebsd.h (vfork): Remove #define.
25701 * s/lynxos.h (HAVE_VFORK): Remove #undef.
25702 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 25703
048addec 257042001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 25705
048addec
JD
25706 * s/hpux10.h (random): Add undef.
25707 (HAVE_RANDOM): Define it just once.
60a653f1 25708
048addec 257092001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25710
048addec 25711 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 25712
048addec 257132001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 25714
048addec
JD
25715 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
25716 scroll bars of the frame before deleting the frame itself. If the
25717 frame has a widget, delete the frame with XtDestroyWidget, and do
25718 not call XDestroyWindow before that.
60a653f1 25719
048addec 257202001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 25721
048addec 25722 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 25723
048addec 25724 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 25725
048addec 257262001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 25727
048addec
JD
25728 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
25729 excessively large.
60a653f1 25730
048addec
JD
25731 * insdel.c (make_gap_larger): New function.
25732 (make_gap_smaller): New function.
25733 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
25734 Call make_gap_smaller if arg is negative.
60a653f1 25735
048addec 257362001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25737
048addec
JD
25738 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
25739 Pass a dummy argument when calling interrupt_signal.
25740 (parse_menu_item): Mark disabled items before checking for empty def.
25741 (read_char_minibuf_menu_prompt): Make safety more visible.
25742 (read_key_sequence): Add a `first_unbound' variable.
25743 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
25744 unbound prefix as soon as we can detect it.
60a653f1 25745
048addec
JD
25746 * doc.c (Fsnarf_documentation): Add prototype.
25747 (get_doc_string): Handle negative arguments.
25748 (Fdocumentation): Use AREF and ASIZE.
25749 Move the calls to get_doc_string to a single place.
25750 Don't confuse an interactive-spec for a docstring reference.
25751 (Fdocumentation_property): Take advantage of the fact that
25752 get_doc_string now ignores the sign of the docstring position.
60a653f1 25753
048addec 25754 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 25755
048addec 257562001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25757
a64387ee 25758 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 25759
048addec 257602001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25761
048addec
JD
25762 * xterm.c (x_draw_image_relief): Use predefined macro instead of
25763 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 25764
048addec 257652001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 25766
048addec
JD
25767 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
25768 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 25769
048addec 25770 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 25771
048addec 257722001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25773
048addec 25774 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 25775
048addec 257762001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 25777
048addec 25778 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 25779
048addec 257802001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 25781
f63fd14e 25782 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 25783
048addec
JD
25784 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
25785 [!WM_MOUSELEAVE]: Define.
60a653f1 25786
048addec
JD
25787 * w32menu.c (current_popup_menu, get_menu_item_info):
25788 (set_menu_item_info): New vars.
25789 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
25790 (w32_menu_show): Set current_popup_menu.
25791 (add_menu_item): Allocate new strings for owner-drawn menu items
25792 and help strings.
25793 Use owner-draw for disabled menu items again.
25794 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
25795 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 25796
048addec
JD
25797 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
25798 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
25799 <WM_EXITMENULOOP>: Free menu strings.
25800 <WM_MOUSELEAVE>: Stop tracking mouse.
25801 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 25802
048addec
JD
25803 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
25804 and mouse face.
60a653f1 25805
048addec 258062001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 25807
048addec
JD
25808 The following changes add left-fringe and right-fringe
25809 frame parameters to adjust fringe widths, or remove one or
25810 both fringes.
60a653f1 25811
048addec
JD
25812 * frame.h (struct frame): Remove trunc_area_pixel_width and
25813 trunc_area_cols fields.
25814 (Qleft_fringe, Qright_fringe): Declare.
25815 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 25816
048addec
JD
25817 * frame.c (Qleft_fringe, Qright_fringe): New vars.
25818 (syms_of_frame): Initialize them.
60a653f1 25819
048addec
JD
25820 * window.c (coordinates_in_window): Handle separate left and right
25821 fringe widths.
60a653f1 25822
048addec
JD
25823 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
25824 and fringe_cols fields.
25825 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
25826 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
25827 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
25828 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
25829 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
25830 (x_compute_fringe_widths): Add prototype.
60a653f1 25831
048addec
JD
25832 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
25833 fill fringe evenly with small dashes.
f63fd14e 25834 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
25835 clip the new ZV bitmap to avoid jitter between rows.
25836 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
25837 background. Don't draw fringe bitmaps if fringe width is zero.
25838 (x_compute_fringe_widths): New function.
25839 (x_new_font, x_set_window_size_1): Use it.
60a653f1 25840
048addec
JD
25841 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
25842 (x_set_frame_parameters): Process `font' parameter before other
25843 parameters as fringe widths depend on it.
25844 (x_set_fringe_width): New function.
25845 (x_figure_window_size): Use x_compute_fringe_widths.
25846 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
25847 parameters.
60a653f1 25848
048addec
JD
25849 * widget.c (set_frame_size): Use x_compute_fringe_widths.
25850 (EmacsFrameSetCharSize): Ditto.
60a653f1 25851
048addec
JD
25852 * w32term.h: Merged changes from xterm.h.
25853 * w32term.c: Merged changes from xterm.c.
25854 * w32fns.c: Merged changes from xfns.c.
60a653f1 25855
048addec 258562001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25857
048addec 25858 * COPYING: Removed.
60a653f1 25859
048addec 258602001-11-29 Dave Love <fx@gnu.org>
60a653f1 25861
048addec
JD
25862 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
25863 extra extra slot.
25864 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 25865
048addec 258662001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25867
048addec
JD
25868 * fileio.c (file-name-coding-system)
25869 (default-file-name-coding-system): Doc fix (links to referenced
25870 variables added).
60a653f1 25871
048addec 258722001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25873
048addec
JD
25874 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
25875 Add dummy uses of gcproN variables.
60a653f1 25876
048addec
JD
25877 * category.c (describe_category, describe_category_1)
25878 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
25879 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 25880
048addec 258812001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 25882
048addec 25883 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 25884
048addec
JD
25885 * Makefile.in (lispdir): New variable, referring to build dir.
25886 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 25887
048addec 258882001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 25889
048addec
JD
25890 * w32menu.c (w32_menu_display_help): Actually add the new argument
25891 OWNER.
60a653f1 25892
048addec 258932001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 25894
048addec
JD
25895 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
25896 menu items. From David Ponce <dponce@wanadoo.fr>.
25897 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
25898 conditionally.
f63fd14e 25899 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 25900 help event in the owner frame's keyboard buffer.
60a653f1 25901
048addec
JD
25902 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
25903 (Fx_show_tip): Don't subtract last width from row width.
25904
25905 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
25906 (w32_read_socket): Use EQ to compare frames.
60a653f1 25907
048addec 259082001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 25909
048addec
JD
25910 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
25911 OVERLAPS_P.
60a653f1 25912
048addec 259132001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25914
048addec
JD
25915 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
25916 `gcpro3' and `gcpro4'.
60a653f1 25917
048addec 25918 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 25919
048addec 259202001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25921
048addec 25922 * ccl.c: Use AREF and ASIZE.
60a653f1 25923
048addec 259242001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25925
048addec
JD
25926 * lisp.h (run_hook_list_with_args): Remove.
25927 (LIST_END_P): Fix call to wrong_type_argument.
25928 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 25929
048addec 259302001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25931
048addec
JD
25932 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
25933 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 25934
048addec
JD
25935 * eval.c: Use AREF and ASIZE.
25936 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 25937
048addec
JD
25938 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
25939 which match the end of the file-name.
25940 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
25941 is not a valid env var, but leave it as is instead.
60a653f1 25942
048addec
JD
25943 * keymap.c (access_keymap): Handle t bindings like nil bindings.
25944 Make nil bindings in char-tables transparent.
25945 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 25946
048addec 259472001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 25948
048addec
JD
25949 * textprop.c (set_text_properties_1): Allow START, END in either order.
25950 Do nothing if range is empty.
60a653f1 25951
048addec 25952 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 25953
048addec
JD
25954 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
25955 (clean): Not here.
60a653f1 25956
048addec 259572001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25958
048addec
JD
25959 * textprop.c (set_text_properties_1): Clearly mark that the
25960 interval should not be empty.
60a653f1 25961
048addec
JD
25962 * intervals.c (graft_intervals_into_buffer):
25963 Don't call set_text_properties_1 on an empty interval.
60a653f1 25964
048addec 259652001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 25966
048addec 25967 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 25968
048addec
JD
25969 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
25970 don't lose the data in it.
60a653f1 25971
048addec 259722001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 25973
048addec 25974 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 25975
c62aec78 25976 * buffer.c (Fkill_buffer): Likewise.
60a653f1 25977
c62aec78 25978 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 25979
048addec 259802001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25981
048addec 25982 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 25983
048addec 259842001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 25985
048addec
JD
25986 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
25987 Niemitalo <kon@iki.fi>.
60a653f1 25988
048addec 259892001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 25990
048addec 25991 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 25992
048addec
JD
25993 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
25994 (Fx_show_tip): Block input during frame creation.
25995 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 25996
048addec 259972001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 25998
048addec
JD
25999 * lread.c (Fload): Detect recursive load error for more than 3
26000 nestings of the same file.
26001 (Vrecursive_load_depth_limit): Variable deleted.
26002 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 26003
048addec 260042001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 26005
048addec
JD
26006 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
26007 mouse position if either left or top is not specified.
60a653f1 26008
048addec
JD
26009 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
26010 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
26011 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
26012 (my_create_tip_window): Assign tip_window.
26013 (x_create_tip_frame): Use same defaults as X.
26014 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 26015 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 26016
048addec
JD
26017 * w32term.c (x_after_update_window_line): Doc fix.
26018 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
26019 frames.
26020 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 26021
048addec
JD
26022 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
26023 for all Windowed systems.
60a653f1 26024
048addec 260252001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 26026
048addec
JD
26027 * msdos.c (IT_clear_screen): If the frame's faces are not yet
26028 realized, use the initial screen colors to clear the screen.
60a653f1 26029
048addec 260302001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 26031
048addec
JD
26032 * textprop.c (Fset_text_properties): Remove unused variables
26033 `unchanged', `prev_changed', `s' and `len'.
60a653f1 26034
048addec
JD
26035 * search.c (Freplace_match): Remove unused variable `inslen'.
26036
26037 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
26038
260392001-11-22 Jason Rumney <jasonr@gnu.org>
26040
26041 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
26042 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
26043 (my_create_tip_window): New function.
26044 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
26045 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
26046
260472001-11-20 Jason Rumney <jasonr@gnu.org>
26048
26049 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
26050 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
26051
26052 * w32fns.c (Vw32_system_coding_system): Remove.
26053 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
26054
260552001-11-19 Stefan Monnier <monnier@cs.yale.edu>
26056
26057 * fileio.c (Fwrite_region): Move choose_write_coding_system to
26058 after build_annotations.
26059
26060 * syntax.c (describe_syntax): Add dummy arg.
26061 (describe_syntax_1): Update call to describe_vector.
26062
26063 * category.c (describe_category): Add dummy arg.
26064 (describe_category_1): Update call to describe_vector.
26065
26066 * keymap.c (Fdescribe_vector): Add `describer' parameter.
26067 (describe_command, describe_translation): Add dummy second param.
26068 (describe_map): Call elt_describer with two arguments.
26069 (describe_vector_princ): Add `fun' parameter.
26070 Call it instead of the hardcoded `princ'.
26071 (describe_vector): Add arg `args'.
26072 Pass it as a new second argument to elt_describer.
60a653f1 26073
048addec 26074 * keymap.h (describe_vector): Update prototype.
60a653f1 26075
048addec
JD
26076 * frame.c: Don't include keymap.h any more.
26077 (keys_of_frame): Remove.
60a653f1 26078
048addec 26079 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 26080
048addec 26081 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 26082
048addec 260832001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 26084
048addec
JD
26085 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
26086 if defined, 0 otherwise.
26087 (MAP_FAILED): Define if not defined and use it to test mmap failure.
26088 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 26089
048addec 260902001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 26091
048addec 26092 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 26093
048addec 260942001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 26095
048addec
JD
26096 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
26097 (x_draw_bar_cursor): If the background color of the glyph under
26098 the cursor equals the frame's cursor color, use the glyph's
26099 foreground color for drawing the bar cursor.
26100 (x_after_update_window_line): Clear internal border in different
26101 circumstances.
26102 (w32_set_vertical_scroll_bar): Check for width and height > 0.
26103 (w32_draw_relief_rect): Correct relief by 1 pixel.
26104 (x_set_glyph_string_background_width):
26105 Set extends_to_end_of_line_p if the row's fill_line_p is set and
26106 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
26107 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
26108 if cursor_in_non_selected_windows is false.
26109 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
26110 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
26111 Notice if cursor gets overwritten.
26112 (notice_overwritten_cursor): Renamed from
26113 note_overwritten_text_cursor. Rewritten to take glyph widths
26114 into account, and to take X positions as parameters.
26115 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
26116 around call to x_draw_glyphs.
26117 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
26118 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
26119 color to use for image glyph reliefs.
26120 (x_draw_image_relief): Accept zero tool_bar_button_relief.
26121 (glyph_rect): Remove unused variable `area'.
60a653f1 26122
048addec
JD
26123 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
26124 some items.
26125 (x_set_internal_border_width): Set frame garbaged when window
26126 doesn't exist yet.
26127 (Fx_create_frame): Accept zero tool_bar_button_relief.
26128 (x_clear_image_1, four_corners_best, image_background)
26129 (image_background_transparent): New functions.
26130 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
26131 (gs_format): Add `:background' entry.
26132 (lookup_image): Set IMG's background color if specified.
26133 (pbm_load, xbm_load_image, png_load): Set IMG's background field
26134 when appropriate.
26135 (x_clear_image_1): Reset `background_valid' and
26136 `background_transparent_valid' fields.
26137 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
26138 calculating it here. Set IMG's background_transparent field.
26139 (enum xpm_keyword_index): Add XPM_BACKGROUND.
26140 (enum png_keyword_index): Add PNG_BACKGROUND.
26141 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
26142 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
26143 (enum gif_keyword_index): Add GIF_BACKGROUND.
26144 (enum gs_keyword_index): Add GS_BACKGROUND.
26145 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
26146 Pre-calculate image background color where necessary.
26147 (x_create_x_image_and_pixmap, xbm_load, gs_load):
26148 Use display info's n_cbits entry for screen depth.
26149 (Fx_show_tip): Remove unused variables `buffer', `top',
26150 `left', `max_width' and `max_height'.
60a653f1 26151
048addec 26152 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 26153
048addec 261542001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 26155
048addec 26156 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 26157
048addec 261582001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 26159
048addec 26160 * frame.c (Fframe_live_p): Doc fix.
60a653f1 26161
048addec 261622001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 26163
048addec
JD
26164 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
26165 (message_dolog_marker3): New static variables hold three markers.
26166 (syms_of_xdisp): Initialize and staticpro them.
26167 (message_dolog): Use message_dolog_marker1..3 instead of
26168 allocating markers each time. Unchain them when done.
60a653f1 26169
048addec 261702001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 26171
048addec 26172 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 26173
048addec 261742001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 26175
048addec 26176 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 26177
048addec 261782001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 26179
048addec 26180 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 26181
048addec 261822001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 26183
048addec 26184 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 26185
048addec 261862001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 26187
048addec
JD
26188 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
26189 with invalid position.
60a653f1 26190
048addec 261912001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 26192
048addec 26193 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 26194
048addec
JD
26195 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
26196 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
26197 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 26198
048addec 26199 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 26200
048addec 262012001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 26202
048addec
JD
26203 * fileio.c (build_annotations): Split off the tail.
26204 (build_annotations_2): New fun. Extracted from build_annotations.
26205 (Fwrite_region): Split the call to build_annotations into two
26206 calls to build_annotations and build_annotations_2.
077907d4 26207
048addec 262082001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 26209
048addec
JD
26210 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
26211 clear_waiting_for_input with argument.
1756e2fb 26212
048addec 26213 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 26214
048addec 26215 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 26216
048addec 26217 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 26218
048addec 26219 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 26220
048addec 262212001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 26222
048addec
JD
26223 * fileio.c (choose_write_coding_system): New fun, extracted
26224 from Fwrite_region.
26225 (Fwrite_region): Use it.
fa336b91 26226
048addec
JD
26227 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
26228 (funcall_lambda, run_hook_with_args): Make static and add prototype.
26229 (ml_apply, find_handler_clause): Add prototype.
fa336b91 26230
048addec 262312001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 26232
048addec 26233 * config.in: Add #undef HAVE_COFF_H.
fa336b91 26234
048addec
JD
26235 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
26236 Required for ISC 4.1.
fa336b91 26237
048addec 262382001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 26239
52eb0373 26240 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 26241 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 26242
048addec 262432001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 26244
048addec
JD
26245 The following changes are made to clean up the various internal
26246 references to the fringes to actually use the term `fringe' for
26247 them. Previously, they were called `flags areas', `bitmap areas',
26248 `left/right side of windows', or implicitly as `flags' or
26249 `bitmaps':
fa336b91 26250
048addec 26251 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 26252 Comments fixed. Use renamed symbols.
06e8f738 26253
f63fd14e 26254 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 26255
048addec
JD
26256 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
26257 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
26258 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 26259
048addec 26260 * msdos.c: Comment fix.
9ce647f4 26261
048addec 26262 * w32fns.c: Use renamed symbols.
9b784ab8 26263
f63fd14e 26264 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
26265 (fringe_bitmap_type): Renamed from bitmap_type.
26266 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26267 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
26268 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 26269
f63fd14e 26270 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
26271 (fringes_extra): Renamed from flags_areas_extra.
26272 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26273 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26274 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26275 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26276 (FRAME_X_LEFT_FRINGE_WIDTH):
26277 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26278 (FRAME_X_RIGHT_FRINGE_WIDTH):
26279 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 26280
048addec 26281 * widget.c: Use renamed symbols.
9f7e52b4 26282
f63fd14e 26283 * window.c: Comment fixes. Use renamed symbols.
048addec 26284 (coordinates-in-window-p): Doc fix.
fa336b91 26285
f63fd14e 26286 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 26287
048addec 26288 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 26289
048addec 26290 * xfns.c: Use renamed symbols.
89512fcd 26291
f63fd14e 26292 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
26293 (fringe_bitmap_type): Renamed from bitmap_type.
26294 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26295 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
26296 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 26297
f63fd14e 26298 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
26299 (fringes_extra): Renamed from flags_areas_extra.
26300 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26301 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26302 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26303 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26304 (FRAME_X_LEFT_FRINGE_WIDTH):
26305 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26306 (FRAME_X_RIGHT_FRINGE_WIDTH):
26307 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
26308
263092001-11-15 Jason Rumney <jasonr@gnu.org>
26310
26311 * w32menu.c (add-menu-item): Make help_echo and radio buttons
26312 work for most menu items. From David Ponce
26313 <david.ponce@wanadoo.fr>.
26314
263152001-11-15 Gerd Moellmann <gerd@gnu.org>
26316
26317 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
26318 Some x_set_* function expect to be called even if old and new
26319 value are equal.
26320
26321 * xdisp.c (build_desired_tool_bar_string): Accept zero
26322 tool_bar_button_relief.
26323
26324 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
26325
26326 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
26327
26328 * xterm.c (x_draw_bar_cursor): If the background color of the
26329 glyph under the cursor equals the frame's cursor color, use
26330 the glyph's foreground color for drawing the bar cursor.
26331
26332 * dispnew.c (direct_output_forward_char): Fix character/byte
26333 position comparison.
7d18891d 26334
048addec 263352001-11-15 Miles Bader <miles@gnu.org>
d2936d21 26336
048addec
JD
26337 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
26338 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
26339 Update arguments to find_field.
26340 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
26341 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
26342 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
26343 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 26344
048addec 263452001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 26346
048addec 26347 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 26348
048addec
JD
26349 * dispextern.h (image_background, image_background_transparent):
26350 Conditionalize on HAVE_X_WINDOWS.
7d18891d 26351
048addec 263522001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 26353
048addec 26354 * print.c (Fprin1_to_string): Doc fix.
7d18891d 26355
048addec 26356 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 26357
048addec 26358 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 26359
048addec 26360 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 26361
048addec 26362 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 26363
048addec 26364 * eval.c (syms_of_eval): Doc fix.
7d18891d 26365
048addec 26366 * coding.c (syms_of_coding): Doc fix.
7d18891d 26367
048addec 26368 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 26369
048addec 26370 * dispnew.c (syms_of_display): Doc fix.
9474c847 26371
048addec 26372 * category.c (Fget_unused_category): Doc fix.
9474c847 26373
048addec 26374 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 26375
048addec 263762001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 26377
048addec 26378 * print.c (prin1, print): Doc fix.
e3059a5d 26379
048addec 263802001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 26381
048addec
JD
26382 * fontset.h: Remove declarations of variables
26383 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 26384
048addec
JD
26385 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
26386 `Vclip_large_size_font'.
eae936e2 26387
048addec 263882001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 26389
048addec 26390 * w32fns.c: Doc fix.
ddb67bdc 26391
048addec 263922001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 26393
048addec 26394 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 26395
048addec 26396 * fns.c: Doc fix.
6e1b91d7 26397
048addec 26398 * emacs.c: Doc fix.
1c1d3d69 26399
048addec 26400 * coding.c: Doc fix.
1c1d3d69 26401
048addec
JD
26402 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
26403 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
26404 `new style' [w/`doc:' keyword].
b6f4c7ba 26405
048addec 264062001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 26407
048addec
JD
26408 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
26409 LeaveNotify events. Only FocusIn and FocusOut do that now.
26410 (x_display_and_set_cursor): Do display hollow cursors in active
26411 minibuffer windows when they are not selected.
b6f4c7ba 26412
048addec 264132001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 26414
048addec 26415 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
26416 * w32term.c: Change doc-string comments to `new style'
26417 [w/`doc:' keyword]. Doc fixes.
a89f435d 26418
048addec
JD
26419 * w32fns.c: Don't define max.
26420 (Fx_open_connection): Only execute once.
a4cd0cd7 26421
048addec 264222001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 26423
048addec
JD
26424 * ccl.c: Change macros to use do-while block instead of if-else.
26425 Use braces to follow GNU Coding Standards.
eafb659a 26426
048addec 264272001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 26428
048addec 26429 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 26430
048addec 26431 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 26432
048addec
JD
26433 * insdel.c (replace_range): Use adjust_markers_for_replace
26434 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 26435
78819ebb 26436 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 26437
048addec
JD
26438 * textprop.c (set_text_properties_1): New subroutine
26439 broken out of set_text_properties.
26440 (set_text_properties): Use set_text_properties_1.
91823618 26441
048addec
JD
26442 * intervals.c (graft_intervals_into_buffer):
26443 Use set_text_properties_1 to clear out properties.
91823618 26444
048addec
JD
26445 * search.c (Freplace_match): Use replace_range to insert
26446 and delete. Don't request property inheritance from
26447 surrounding text.
86928dfb 26448
048addec 264492001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 26450
048addec 26451 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 26452 vertical fonts. Allow them if face name is explicitly specified.
048addec 26453 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 26454
048addec 264552001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 26456
048addec
JD
26457 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
26458 instead of malloc/free.
a78e0303 26459
048addec 264602001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 26461
048addec
JD
26462 * xfaces.c (merge_face_vectors): Use braces to follow GNU
26463 Coding Standards.
26464 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 26465
048addec 26466 * buffer.c (Fbury_buffer): Likewise.
0c99b139 26467
048addec 26468 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 26469
048addec
JD
26470 * coding.c (encode_coding): Use precomputed value of `src'.
26471 (encode_coding): Remove unused variable `src_end'.
26472 (code_convert_region): Remove unused variables `count'.
830ddd77 26473
048addec 264742001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 26475
048addec
JD
26476 * w32term.c (x_display_and_set_cursor): Do not move system caret
26477 if cursor_glyph is NULL.
55c6d645 26478
048addec 264792001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 26480
048addec 26481 * keymap.c (access_keymap): Fix compilation error.
5de38842 26482
048addec 264832001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 26484
048addec 26485 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 26486
048addec 264872001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 26488
048addec
JD
26489 * intervals.c (graft_intervals_into_buffer):
26490 Remove #ifdef'd-out code.
26491 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 26492
048addec
JD
26493 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
26494 code (eval-current-buffer).
26495 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 26496
048addec 264972001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 26498
048addec 26499 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 26500
048addec 265012001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 26502
048addec 26503 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 26504
048addec
JD
26505 * keyboard.c (make_lispy_event): Check integerness and fix
26506 Lisp_Object/int mixup.
17893c65 26507
048addec 265082001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 26509
048addec 26510 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 26511
048addec
JD
26512 * fontset.c (fontset_font_pattern): Remove unused variable
26513 `family_registry'.
d5360cc7 26514
048addec 26515 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 26516
048addec 265172001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 26518
048addec 26519 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 26520
048addec
JD
26521 * buffer.c (Fkill_buffer): Don't delete auto save file
26522 if buffer is modified.
d9d54213 26523
048addec 265242001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 26525
048addec
JD
26526 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
26527 CHECK_NUMBER_CDR.
b116830b 26528
048addec 265292001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 26530
048addec 26531 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 26532
048addec 265332001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 26534
048addec 26535 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 26536
048addec 265372001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 26538
048addec 26539 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 26540
048addec 265412001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 26542
048addec
JD
26543 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
26544 the program image directly.
982f6c7e 26545
048addec 265462001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 26547
048addec 26548 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 26549
048addec 265502001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 26551
048addec
JD
26552 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
26553 and CHECK_BUFFER.
d31053f9 26554
048addec
JD
26555 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
26556 (record_char): Likewise.
d31053f9 26557
048addec
JD
26558 * keyboard.c (make_lispy_event): Don't insist a drag event must
26559 move to a different buffer position. Instead, check for moving at
26560 least double_click_fuzz.
982f6c7e 26561
048addec 26562 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 26563
048addec 26564 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 26565
048addec
JD
26566 * indent.c (current_column_1, Fmove_to_column): Separate the code
26567 for display-table glyphs from the code for buffer text, to fix
26568 bugs in the former.
830047fd 26569
048addec 265702001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 26571
048addec
JD
26572 * buffer.c (Fbuffer_local_value): New function.
26573 (syms_of_buffer): Defsubr it.
2df5238c 26574
048addec
JD
26575 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
26576 value of `cursor-in-non-selected-windows'.
4e397688 26577
048addec
JD
26578 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
26579 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
26580 (syms_of_xdisp): Initialize it.
48b0f3ae 26581
048addec 265822001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 26583
048addec 26584 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 26585
048addec
JD
26586 * coding.c: Change doc-string comments to `new style' [w/`doc:'
26587 keyword].
3ecaf7e5 26588
048addec
JD
26589 * eval.c (top_level_value, top_level_set): Remove commented and
26590 #ifdef'd-out code.
26591 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 26592
048addec 265932001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 26594
048addec 26595 * xfns.c: Include unistd.h, if it exists.
8db2e33b 26596
048addec 26597 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 26598
048addec 26599 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 26600
048addec 266012001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 26602
048addec
JD
26603 * lisp.h (CHECK_STRING_CAR): New macro.
26604 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
26605 treating XCAR and XCDR as lvalues.
26606 (openp): Use CHECK_STRING_CAR.
26607 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 26608
048addec 266092001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 26610
048addec
JD
26611 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
26612 (SIGMASKTYPE): Define.
1b1acc13 26613
048addec 26614 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 26615
048addec 266162001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 26617
048addec
JD
26618 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
26619 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
26620 Fix typos in comments.
6cb16f95 26621
048addec
JD
26622 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
26623 and #ifdef'd-out code.
26624 Fix and reindent comments.
6cb16f95 26625
048addec 26626 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 26627
048addec
JD
26628 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
26629 argument `i' in macros.
6cb16f95 26630
048addec
JD
26631 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
26632 `i' in macros.
7e9d3c2f 26633
048addec
JD
26634 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
26635 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
26636 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
26637 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
26638 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
26639 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
26640 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
26641 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
26642 in macros.
7e9d3c2f 26643
048addec
JD
26644 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
26645 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
26646 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
26647 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
26648 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
26649 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
26650 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
26651 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
26652 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
26653 (remove unused second argument).
7e9d3c2f 26654
048addec 266552001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 26656
048addec
JD
26657 * syntax.c (describe_syntax): New wrapper.
26658 (Finternal_describe_syntax_value): Rename from describe_syntax.
26659 Don't insert space at front and \n at the end.
26660 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 26661
048addec
JD
26662 * regex.c (re_wctype): Try to fix some warnings.
26663 (regcomp, regexec): Don't forget the __restrict.
9ba48103 26664
048addec 266652001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 26666
048addec 26667 * textprop.c (Fget_char_property): Doc fix.
9ba48103 26668
048addec 266692001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 26670
048addec 26671 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 26672
048addec 26673 * data.c (Fsetq_default): Ditto.
c22e59e1 26674
048addec 26675 * callint.c (Finteractive): Ditto.
9271ed2c 26676
048addec 266772001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 26678
048addec
JD
26679 * macros.c: Don't include keymap.h any more.
26680
266812001-11-01 Richard M. Stallman <rms@gnu.org>
26682
26683 * data.c (Fmake_local_variable): Doc fix.
26684
26685 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
26686 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 26687
048addec 26688 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
26689 bindings along with or instead of the buffer local map.
26690 Make the overriding maps override what they should.
26691
f00691a3 266922001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
26693
26694 * window.c (grow_mini_window): Fix typo in comment.
26695
27188d11
GM
266962001-11-01 Gerd Moellmann <gerd@gnu.org>
26697
7b49b9d2
GM
26698 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
26699 (XTset_vertical_scroll_bar): Likewise.
26700
43f7c3ea
GM
26701 * xfns.c (x_build_heuristic_mask): Use four_corners_best
26702 instead of IMAGE_BACKGROUND.
c22e59e1 26703
b350c2e5
GM
26704 * xfns.c (four_corners_best): Reindent.
26705
c22e59e1 26706 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
26707 Handle :box so that it is possible to specify sexprs.
26708
bf00d461
EZ
267092001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
26710
26711 * s/hpux11.h: New file.
26712
f00691a3 267132001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 26714
2b209b97
PJ
26715 * emacs.c (USAGE1): Show command line option --no-window-system
26716 instead of --no-windows in usage.
26717 (standard_args): Rename --no-windows to --no-window-system.
26718 (bug_reporting_address): Follow Emacs coding conventions.
26719
9dbc9081
PJ
26720 * eval.c (Fcommandp): Doc fix.
26721 Change doc-string comments to `new style' [w/`doc:' keyword].
26722
4e10df59
PJ
26723 * frame.c (Fframe_live_p): Doc fix.
26724
26725 * buffer.c (selective-display-ellipses): Doc fix.
26726
dd387b25
GM
267272001-10-31 Gerd Moellmann <gerd@gnu.org>
26728
fe957e65
GM
26729 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
26730
dd387b25
GM
26731 * xfaces.c (realize_x_face): If C is not a single-byte character,
26732 set the face's colors_copied_bitwise_p instead of the defaulted_p
26733 members which have a different meaning.
26734 (free_face_colors): Do nothing for a face whose colors have been
26735 copied bitwise.
26736
c22e59e1 26737 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 26738
f00691a3 267392001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 26740
687784e8
PJ
26741 * marker.c, mocklisp.c: Change doc-string comments to `new style'
26742 [w/`doc:' keyword].
2e1280f8 26743
b9d9a9b9
GM
267442001-10-31 Gerd Moellmann <gerd@gnu.org>
26745
26746 * fns.c (require_unwind): Return Lisp_Object.
26747
f00691a3 267482001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 26749
fa1361cb
PJ
26750 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
26751 (last-input-char): Revert doc-string to be the same as the
26752 doc-string of `last-input-event'.
26753
6c465a15 26754 * xdisp.c: Fix typos in comments.
48400103 26755
eafa3196
GM
267562001-10-31 Gerd Moellmann <gerd@gnu.org>
26757
26758 * window.c (grow_mini_window): Handle case that the root
26759 window is already smaller than the nominal mininum height.
26760
747d3f2a
SM
267612001-10-30 Stefan Monnier <monnier@cs.yale.edu>
26762
bf9bb76f
SM
26763 * emacs.c (main): Don't call keys_of_macros any more.
26764
26765 * lisp.h (keys_of_macros): Remove.
26766
26767 * macros.c (keys_of_macros): Remove.
26768
747d3f2a
SM
26769 * xfaces.c (Fface_attribute_relative_p): Declare args.
26770
5e905a57
JR
267712001-10-30 Jason Rumney <jasonr@gnu.org>
26772
26773 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
26774 (enum_font_cb2): Ignore fonts with vertical orientation.
26775
3a426197
RS
267762001-10-30 Richard M. Stallman <rms@gnu.org>
26777
26778 * keyboard.c (Finput_pending_p): Doc fix.
26779
a742d646
GM
267802001-10-30 Gerd Moellmann <gerd@gnu.org>
26781
259cf6bc
GM
26782 * xterm.c (x_after_update_window_line): Don't run the code
26783 clearing in borders for rows whose visible height is 0.
26784
3f99f948
GM
26785 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
26786 resized_p flag is set. If not set, use the much less flickering
26787 method previously used.
26788
26789 * dispnew.c (change_frame_size_1): Set frame's resized_p.
26790
26791 * frame.h (struct frame) <resized_p>: New member.
26792
b4a3be43
GM
26793 * lread.c (to_multibyte): Ensure read_buffer is at least twice
26794 as large as the number of bytes to convert.
747d3f2a 26795
a742d646
GM
26796 * lread.c (to_multibyte): New function.
26797 (read1): Use it.
26798
cacbb9e9
EZ
267992001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
26800
26801 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
26802
99cb6b2f
GM
268032001-10-30 Gerd Moellmann <gerd@gnu.org>
26804
327f42ee 26805 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
26806 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
26807 if the row's fill_line_p is set and drawing the last glyph with
26808 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 26809
99cb6b2f
GM
26810 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
26811
8e8223e2
SM
268122001-10-29 Stefan Monnier <monnier@cs.yale.edu>
26813
26814 * xmenu.c: Include coding.h and charset.h.
26815 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
26816 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
26817 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
26818 Explicitly set wv->help. Use `TRUE' rather than `True'.
26819 (menu_help_callback): Use empty_string.
26820
26821 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
26822 (Fx_popup_dialog): Explicitly init f.
26823 (w32_menu_display_help): Use empty_string.
26824
4d083a8f
RS
268252001-10-29 Richard M. Stallman <rms@gnu.org>
26826
b2304472
RS
26827 * fns.c (Frequire): Detect recursive try to require the same
26828 feature 3 or more levels deep, and get error.
26829 (require_unwind): New subroutine.
26830 (require_nesting_list): New variable.
26831 (syms_of_fns): Init and staticpro it.
26832
4d083a8f
RS
26833 * print.c (print_object): Clarify indication of insertion type.
26834
2fe41216
EZ
268352001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
26836
90480000
EZ
26837 * coding.c (syms_of_coding): Document that locale-coding-system is
26838 used for decoding input on X.
26839
2fe41216
EZ
26840 * window.c (Fscroll_left, Fscroll_right): Doc fix.
26841
f00691a3 268422001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
26843
26844 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
26845 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
26846
60ebcfe8
GM
268472001-10-29 Gerd Moellmann <gerd@gnu.org>
26848
9a7bdceb
GM
26849 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
26850 use NO_CURSOR if cursor_in_non_selected_windows is false.
26851
3f08fcd2
GM
26852 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
26853 the slant attribute if FRAME is t.
26854
0ccfdad2
GM
26855 * xfns.c (x_set_internal_border_width): Set frame garbaged
26856 when X window doesn't exist yet.
26857
ef253080
GM
26858 * xterm.c (x_after_update_window_line): Clear internal border
26859 in different circumstances.
b116830b 26860
60ebcfe8
GM
26861 * xterm.c (XTread_socket) <KeyPress>: Don't use
26862 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
26863 <handa@etl.go.jp>.
26864
73d25f9c
EZ
268652001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
26866
26867 * m/ibms390.h: New file. From Adam Thornton
26868 <athornton@sinenomine.net>.
26869
cac1daf0
GM
268702001-10-28 Gerd Moellmann <gerd@gnu.org>
26871
053b3256 26872 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 26873
cac1daf0
GM
26874 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
26875 a loop counter.
26876
f00691a3 268772001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 26878
f9711de4 26879 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 26880
4707d2d0
PJ
26881 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
26882 keyword].
26883 Fix typos in comments.
b116830b 26884
d883731c
PJ
26885 * emacs.c (bug_reporting_address): New function.
26886 Use it when displaying usage message.
26887
04012254
PJ
26888 * minibuf.c (read_minibuf): Remove unused external declaration of
26889 variable `Qread_only'.
26890
13b1a09c
PJ
26891 * keymap.c (access_keymap): Remove unused variable `charset'.
26892
5bbf4378
MB
268932001-10-28 Miles Bader <miles@gnu.org>
26894
26895 * xfaces.c (merge_face_heights): Handle TO being relative as well.
26896 Remove #ifdef'd-out code.
26897 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
26898 (syms_of_xfaces): Initialize them.
26899
1ce1e4ee
JR
269002001-10-27 Jason Rumney <jasonr@gnu.org>
26901
26902 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
26903 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
26904 position using the system caret.
26905
26906 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
26907 (w32_system_caret_height, w32_system_caret_x)
26908 (w32_system_caret_y): New variables for tracking system caret.
26909 (w32_initialize): Initialize them.
c2d53558 26910 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 26911
c2d53558
SM
26912 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
26913 New messages types.
1ce1e4ee
JR
26914
26915 * w32term.c (note_mouse_highlight): Clear old help_echo.
26916
f00691a3 269172001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 26918
bb4600a4
PJ
26919 * xterm.c: Fix typo in a comment.
26920
7db35a48
PJ
26921 * emacs.c: Fix typos in comments.
26922 Remove unnecessary spaces.
26923 Change doc-string comments to `new style' [w/`doc:' keyword].
26924 (USAGE2): Fix typos in usage string.
26925
a7248e4f
PJ
26926 * xterm.c: Fix typo in a comment.
26927
52eb0373 26928 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
26929 emacs.c.
26930
62725a92
GM
269312001-10-27 Gerd Moellmann <gerd@gnu.org>
26932
798dbe1f 26933 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 26934 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
26935 farther backward when target_y was not reached.
26936
62725a92
GM
26937 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
26938 Display errno only if non-zero.
26939 (sound_warning): New function.
26940 (vox_configure): Don't treat failing to set sample rate as error.
26941 (various places): Improve error messages.
26942
d4e34d24
EZ
269432001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
26944
944e6f60
EZ
26945 * fileio.c (Faccess_file): Run the argument filename through
26946 Fexpand_file_name, before using it.
26947
d4e34d24
EZ
26948 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
26949 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
26950
38d2af0c
GM
269512001-10-26 Gerd Moellmann <gerd@gnu.org>
26952
da80a8d5
GM
26953 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
26954
38d2af0c
GM
26955 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
26956 Fix clearing in the case of scroll bars on the right.
c2d53558 26957
45de4a6f 269582001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
26959
26960 * w32gui.h (XImage): Add a dummy typedef.
26961
fbd5ceb2
GM
269622001-10-26 Gerd Moellmann <gerd@gnu.org>
26963
c2d53558 26964 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 26965
b23236fb
EZ
269662001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
26967
26968 * frame.c (Fframe_parameter): Fix last change.
26969
5d991fc4
EZ
26970 * fileio.c: Revert last change (which removed old commented-out
26971 version of expand-file-name). Add a comment that explains why
26972 this old version should not be removed.
26973
879eadc3
GM
269742001-10-25 Gerd Moellmann <gerd@gnu.org>
26975
75700ff2
GM
26976 * frame.c (Fframe_parameter): Fix a bug whereby some
26977 ``artificial'' frame parameters, like `minibuffer' were not
26978 obtained by calling Fframe_parameters.
26979
dfe92a6a
GM
26980 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
26981 cursor differently.
26982
879eadc3
GM
26983 * xdisp.c (move_it_vertically_backward): Compute line height
26984 differently. Add heuristic to try to be more compatible to 20.x.
26985
e1010ebe
SM
269862001-10-25 Stefan Monnier <monnier@cs.yale.edu>
26987
d73a471b
SM
26988 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
26989
d6da5a06
GM
26990 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
26991 boolean.
e1010ebe 26992
f66bd220
MB
269932001-10-25 Miles Bader <miles@gnu.org>
26994
26995 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
26996 BG is a pointer to a structure, not a structure.
26997 (gif_format, png_format): Add missing commas.
26998
d436d538
RS
269992001-10-24 Richard M. Stallman <rms@gnu.org>
27000
27001 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 27002 (syms_of_xfaces): Defsubr it.
d436d538 27003
f00691a3 270042001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
27005
27006 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
27007 variable `area'.
27008
f00691a3 270092001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 27010
c2d53558 27011 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 27012
e2a57b34
MB
270132001-10-25 Miles Bader <miles@gnu.org>
27014
27015 * dispextern.h (struct image): Add `background',
27016 `background_valid', and `background_transparent' fields.
27017 (image_background, image_background_transparent): New declarations.
27018 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
27019 * xfns.c (image_background, image_background_transparent)
27020 (four_corners_best): New functions.
c2d53558 27021 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
27022 (gs_format): Add `:background' entry.
27023 (lookup_image): Set IMG's background color if specified.
27024 (pbm_load, xbm_load_image, png_load): Set IMG's background field
27025 when appropriate.
27026 (x_clear_image_1): Reset `background_valid' and
27027 `background_transparent_valid' fields.
27028 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
27029 calculating it here. Set IMG's background_transparent field.
27030 (enum xpm_keyword_index): Add XPM_BACKGROUND.
27031 (enum png_keyword_index): Add PNG_BACKGROUND.
27032 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
27033 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
27034 (enum gif_keyword_index): Add GIF_BACKGROUND.
27035 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 27036 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
27037 Pre-calculate image background color where necessary.
27038 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
27039 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
27040 color to use for image glyph reliefs.
27041
b547b6e8
GM
270422001-10-24 Gerd Moellmann <gerd@gnu.org>
27043
d9e3b8c6
GM
27044 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
27045 in full-width rows.
c2d53558 27046
b547b6e8
GM
27047 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
27048 Fix clearing of area not covered by scroll bar.
27049
f00691a3 270502001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 27051
52eb0373 27052 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 27053 and `real_start'.
c2d53558 27054 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
27055 (glyph_rect): Remove unused variable `area'.
27056
76cb5e06
GM
270572001-10-24 Gerd Moellmann <gerd@gnu.org>
27058
bdbdebff 27059 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
27060
27061 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
27062 (row_containing_pos): Take additional argument DY.
27063 Treat rows ending in middle of char differently.
62e33982
GM
27064 (display_line): Handle tabs on window systems differently.
27065
27066 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
27067 with additional argument.
27068
27069 * dispextern.h (row_containing_pos): Adjust prototype.
27070
76cb5e06
GM
27071 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
27072 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
27073 (try_window_id, try_window_reusing_current_matrix)
27074 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 27075 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 27076
f00691a3 270772001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 27078
c9e60620
PJ
27079 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
27080 gnuemacs).
27081 (HAVE_BOXES): Fix typo in comment.
27082 (push_menu_pane): Fix typo in comment.
27083
52eb0373 27084 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
27085 of `Qwhen'.
27086 (single_display_prop_string_p): Remove unused local declarations
27087 of `Qwhen' and `Qmargin'.
27088 (string_buffer_position): Remove unused variable `around'.
27089 (store_frame_title): Remove unused variable `width'.
27090
15c565ac
PJ
27091 * window.c: Don't define max.
27092 (coordinates_in_window): Remove unused variable `uy'.
27093
a8818eb9
PJ
27094 * widget.c: Don't define max.
27095
996fee11
PJ
27096 * process.c: Don't define max.
27097 (create_process): Remove unused variable `buffer'.
27098
496e1a5b
GM
270992001-10-23 Gerd Moellmann <gerd@gnu.org>
27100
c2d53558 27101 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 27102
5905ae8b
EZ
271032001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
27104
27105 * xfaces.c (Finternal_set_lisp_face_attribute)
27106 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
27107 frame is on a windowed display.
27108
24db49fb
GM
271092001-10-23 Gerd Moellmann <gerd@gnu.org>
27110
c2d53558
SM
27111 * dispnew.c (sync_window_with_frame_matrix_rows):
27112 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
27113 of marginal areas.
27114
c2d53558 27115 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 27116
f0487f05
EZ
271172001-10-23 Andreas Schwab <schwab@suse.de>
27118
27119 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
27120 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
27121
f0a48a01
GM
271222001-10-23 Gerd Moellmann <gerd@gnu.org>
27123
c2d53558 27124 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
27125 REAL_END. Notice if cursor gets overwritten.
27126 (notice_overwritten_cursor): Take X positions as parameters.
27127 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
27128 around call to x_draw_glyphs.
27129
f00691a3 271302001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 27131
fc11dff0
PJ
27132 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
27133 instead of C) and usage.
a50a10a0 27134
fc11dff0
PJ
27135 * editfns.c (char-to-string): Fix argument names (use CHAR instead
27136 of C) and usage.
a50a10a0
PJ
27137
27138 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
27139 `left', `max_width' and `max_height'.
27140
8738febd
GM
271412001-10-23 Gerd Moellmann <gerd@gnu.org>
27142
27143 * xdisp.c (display_line): For a tab continued to the next line,
27144 set row's ends_in_middle_of_char_p.
27145
653c329b
GM
271462001-10-22 Gerd Moellmann <gerd@gnu.org>
27147
27148 * xdisp.c (display_line): Fix computation of continuation lines
27149 width for TABs.
27150
f00691a3 271512001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 27152
7ba51063
PJ
27153 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
27154 `Qlaplace'.
27155
f958c5ac
PJ
27156 * fileio.c: Remove unused code.
27157
eb360291
MB
271582001-10-22 Miles Bader <miles@gnu.org>
27159
27160 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
27161 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
27162 Remove `DOC_STRINGS_IN_COMMENTS' cases.
27163
98515cf0
JR
271642001-10-21 Jason Rumney <jasonr@gnu.org>
27165
27166 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
27167
93026d88
EZ
271682001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
27169
27170 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
27171 (Finsert_string): Avoid the multi-line string literals warning.
27172
c9a95b79
MB
271732001-10-22 Miles Bader <miles@gnu.org>
27174
27175 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
27176 (Fdocumentation): Don't use it.
27177 (syms_of_doc): Don't initialize it.
27178
27179 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
27180 * print.c (Fwith_output_to_temp_buffer): Likewise.
27181 * window.c (Fsave_window_excursion): Likewise.
c2d53558 27182 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 27183 (Fsave_restriction): Likewise.
c2d53558
SM
27184 * eval.c (Frun_hooks, Frun_hook_with_args)
27185 (Frun_hook_with_args_until_failure)
27186 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
27187 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
27188 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
27189 (Funwind_protect, Fcondition_case): Likewise.
27190 * coding.c (Ffind_operation_coding_system): Likewise.
27191 * keyboard.c (Ftrack_mouse): Likewise.
27192
a3b10252
MB
271932001-10-21 Miles Bader <miles@gnu.org>
27194
c2d53558 27195 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
27196 (Fmake_hash_table): Add usage: string to doc string.
27197 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 27198 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
27199 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
27200 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
27201 (Fml_prefix_argument_loop): Likewise.
27202
f00691a3 272032001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 27204
c2d53558 27205 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 27206
c6f73eec
PJ
27207 * sysdep.c (init_sys_modes): Change doc-string comments to `new
27208 style' [w/`doc:' keyword].
27209
27210 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
27211 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
27212 comments to `new style' [w/`doc:' keyword].
27213
3cf3436e
JR
272142001-10-21 Jason Rumney <jasonr@gnu.org>
27215
27216 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
27217
c169b8f1
JR
27218 * w32term.c (remember_mouse_glyph): New function.
27219 (w32_mouse_position): Use it.
27220 (note_mouse_movement): If the mouse moved off the glyph, remember
27221 its new position.
c2d53558 27222
4fdd691b
JR
27223 * w32term.h (struct w32_output): Correct spelling of x_compatible.
27224 (w32_display_info): Add mouse_face_overlay.
27225
c169b8f1
JR
27226 * w32term.c (notice_overwritten_cursor): Renamed from
27227 note_overwritten_text_cursor. Rewritten to take glyph widths into
27228 account.
27229 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
27230 (fast_find_string_pos): New function.
27231 (fast_find_position): Return the correct vpos. Add parameter
27232 STOP. In the final row, stop before glyphs having STOP as object.
27233 Don't consider glyphs that are not from a buffer.
27234 (fast_find_position) [0]: Add a presumably more correct version
27235 for after 21.1.
27236 (expose_window_tree, expose_frame): Don't compute intersections here.
27237 (expose_window): Do it here instead.
27238 (expose_window_tree, expose_window, expose_line): Return 1 when
27239 overwriting mouse-face.
27240 (expose_window): If W is the window currently being updated, mark
27241 the frame garbaged.
27242 (expose_frame): If mouse-face was overwritten, redo it.
27243 (x_use_underline_position_properties): New variable.
27244 (syms_of_xterm): DEFVAR_BOOL it.
27245 (x_draw_glyph_string): Add comment to use it in future.
27246 (x_draw_glyph_string): Restore clipping after drawing box.
27247 Fix a computation of the underline position.
27248 (w32_get_glyph_string_clip_rect): Minor cleanup.
27249 (x_fill_stretch_glyph_string): Remove an assertion.
27250 (x_produce_glyphs): Don't convert multibyte characters
27251 to unibyte characters in unibyte buffers.
27252 (cursor_in_mouse_face_p): New function.
27253 (x_draw_stretch_glyph_string): Use it to choose a different GC
27254 when drawing a cursor within highlighted text. Don't draw
27255 background again if it has already been drawn.
27256 (x_draw_glyph_string_box): Don't draw a full-width
27257 box just because the glyph row's full_width_p flag is set.
27258 (x_draw_glyphs): Fix computation of rightmost x for
27259 full-width rows.
27260 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
27261 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 27262 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
27263 (x_update_window_end): Handle overwritten mouse face
27264 also for tool bar windows.
27265 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
27266 DRAW is DRAW_IMAGE_RAISED.
27267 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
27268 actually redrawn. Make the function static.
27269 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
27270 optimize away highlighting if we pass over that same overlay again.
27271 (note_mouse_highlight): Call mouse_face_overlay_overlaps
27272 to detect a case where we have to highlight a different region
27273 despite not having left the currently highlighted region.
27274 Set mouse_face_overlay in the x_display_info. Avoid changing the
27275 mouse pointer shape when show_mouse_face has already done it, or
27276 there is no need. Handle mouse-face and help-echo in strings.
27277 (glyph_rect): New function.
27278 (w32_mouse_position): Use it to raise the threshold for mouse
27279 movement event generation.
27280 (w32_initialize_display_info): Initialize the x_display_info's
27281 mouse_face_overlay.
27282 (w32_set_vertical_scroll_bar): Don't clear a zero height
27283 or width area.
27284 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
27285 a widget to zero height.
27286
3cf3436e 27287 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 27288 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
27289 equivalents in menu_items.
27290 (w32_menu_show): Don't overwrite an item's name with its key
27291 description in case the description is a multibyte string.
27292 (single_submenu): Some cleanup.
27293
27294 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
27295 (postprocess_image): New function.
27296 (lookup_image): Call it for all image types except PostScript.
27297 (x_kill_gs_process): Call postprocess_image.
27298 (tiff_error_handler, tiff_warning_handler): New functions.
27299 (tiff_load): Install them as handlers.
27300 (x_kill_gs_process): Recognize if someone has cleared the image
27301 cache under us.
27302 (valid_image_p): Protect better against invalid image
27303 specifications. Previous code could signal an error.
27304 (Fx_hide_tip, Fshow_tip): Doc fix.
27305 (Fv_max_tooltip_size): New variable.
27306 (syns_of_xfns): DEFVAR_LISP it.
27307 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 27308 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
27309 window_width. Use a maximum tooltip size specified by
27310 Vx_max_tooltip_size, if that has valid contents.
27311 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
27312 Make sure the tooltip is completely visible.
27313 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
27314 (Fx_create_frame): Adjust the frame's height for presence
27315 of the tool bar before calling x_figure_window_size.
27316 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
27317 when the window gets smaller.
27318 (x_set_foreground_color): Set frame's cursor_pixel.
27319 (x_set_foreground_color, x_set_background_color): Cleaned up.
27320 (x_set_font): Handle case of x_new_fontset returning the same name
27321 as before, although there was a change in fontsets.
27322
386ca361
MB
273232001-10-21 Miles Bader <miles@gnu.org>
27324
c2d53558 27325 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
27326 (Flogxor): Add usage: string to doc string.
27327 * charset.c (Fstring): Likewise.
27328 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
27329 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
27330
f00691a3 273312001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 27332
03be2694
PJ
27333 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
27334
27335 * alloc.c: Reindent DEFUNs with doc: keywords.
27336
27337 * abbrev.c (Finsert_abbrev_table_description): Reindent.
27338
14ff1ee0
PJ
27339 * frame.c: Change doc-string comments to `new style' [w/`doc:'
27340 keyword].
27341
2f147815 27342See ChangeLog.9 for earlier changes.
6922b018
KH
27343
27344;; Local Variables:
49b3bd82 27345;; coding: iso-2022-7bit
33462dfa 27346;; add-log-time-zone-rule: t
6922b018 27347;; End:
2a34a036 27348
aaef169d 27349 Copyright (C) 2001, 2002, 2003, 2004, 2005,
4e6835db 27350 2006, 2007 Free Software Foundation, Inc.
7f6d64f8
GM
27351
27352 This file is part of GNU Emacs.
27353
27354 GNU Emacs is free software; you can redistribute it and/or modify
27355 it under the terms of the GNU General Public License as published by
27356 the Free Software Foundation; either version 2, or (at your option)
27357 any later version.
27358
27359 GNU Emacs is distributed in the hope that it will be useful,
27360 but WITHOUT ANY WARRANTY; without even the implied warranty of
27361 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27362 GNU General Public License for more details.
27363
27364 You should have received a copy of the GNU General Public License
27365 along with GNU Emacs; see the file COPYING. If not, write to the
27366 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
27367 Boston, MA 02110-1301, USA.
ab5796a9
MB
27368
27369;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4