(Fdelete_process, Fprocess_id, sigchld_handler): Copy PID into EMACS_INT
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9bd1cd35
EZ
12007-01-13 Eli Zaretskii <eliz@gnu.org>
2
d30fe779
EZ
3 * process.c (Fdelete_process, Fprocess_id, sigchld_handler): Copy
4 PID into EMACS_INT to avoid GCC warnings.
5
9bd1cd35
EZ
6 * fns.c (maybe_resize_hash_table): Copy new size of hash table
7 into EMACS_INT to avoid GCC warnings.
8
9 * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
10 geteuid and getuid into EMACS_INT to avoid GCC warnings.
11
12 * dired.c (Ffile_attributes): Fix last change.
13
b55445d6
EZ
142007-01-12 Eli Zaretskii <eliz@gnu.org>
15
16 * dired.c (Ffile_attributes): Copy some members of `struct stat'
17 into int's to avoid GCC warnings about limited range of short in
18 arguments to FIXNUM_OVERFLOW_P.
19
37370cea
YM
202007-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21
22 * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
23 (mac_handle_dialog_event, install_dialog_event_handler)
24 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
25 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
26 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
27 (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
28 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
29 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
30 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
31 (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
32 (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
33 (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
34
35 * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]: Call
36 mac_prepare_for_quickdraw.
37 (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
38 outside #ifdef MAC_OSX.
39 (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
40 outside #ifdef MAC_OSX.
41 (mac_check_bundle) [MAC_OSX]: Remove unused function.
42
43 * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
44 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
45
959dc601
JD
462007-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
47
48 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
49 block/unblock SIGIO.
50
8b9ae6b0
SM
512007-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
52
c5c6b2cc
SM
53 * editfns.c (Fformat): Allow integer-format to work with floats of size
54 larger than most-positive-fixnum (but still smaller than MAXINT).
55
8b9ae6b0
SM
56 * dired.c (Ffile_attributes): Use floats for large uids/gids.
57
c7ed3276
EZ
582007-01-09 Eli Zaretskii <eliz@gnu.org>
59
60 * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
61
5d348d3f
YM
622007-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
63
64 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
65 around mkstemp.
66
67 * image.c (XDrawLine) [MAC_OS]: Remove macro.
68 (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
69 (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
70 XCreateGC_pixmap.
71
72 * macgui.h (Display): Typedef to opaque type.
73
74 * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
75 (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
76 Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
8b9ae6b0
SM
77 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
78 Use mac_quit_char_key_p.
5d348d3f
YM
79
80 * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
81 (XCreateGC): Change type of 2nd argument to void *.
82 (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
83 Fix last change.
84 (mac_to_emacs_modifiers): Change return type to int.
85 [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
86 (mac_mapped_modifiers): New function.
87 (XTread_socket): Use it.
88 [USE_TSM] (mac_handle_text_input_event): Likewise.
89 (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
8b9ae6b0
SM
90 (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
91 Remove variables.
5d348d3f
YM
92 (mac_determine_quit_char_modifiers, init_quit_char_handler)
93 [MAC_OSX]: Remove functions.
94 (make_ctrl_char) [MAC_OSX]: Add extern.
95 (mac_quit_char_key_p) [MAC_OSX]: New function.
96 (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
97
98 * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
99 (XCreateGC): Change type in extern.
100 (XDrawLine): Rename from mac_draw_line_to_pixmap.
101 (mac_quit_char_key_p) [MAC_OSX]: Add extern.
102
287110f5
JD
1032007-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
104
4c180390
JD
105 * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
106 interrupt_input_pending.
107
287110f5
JD
108 * xterm.h (x_display_info): New: net_supported_atoms,
109 nr_net_supported_atoms and net_supported_window.
110
111 * xterm.c: New variable last_user_time.
112 (handle_one_xevent): Set last_user_time from events that have Time.
113 Set net_supported_window to 0 when reparented.
114 (wm_supports): New function.
115 (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
116 (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
117 and net_supported_window.
118
5be70981
KS
1192007-01-05 Kim F. Storm <storm@cua.dk>
120
121 * indent.c (Fvertical_motion): Fix it overshoot check for overlay
122 strings without embedded newlines immediately followed by newline.
123
1675bac7
YM
1242007-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
125
126 * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
127 (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
128 gmtime/localtime/emacs_memftimeu/mktime.
129
130 * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
131 instead of 'EMAx'.
132 [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
133
134 * macgui.h (struct _XGC) [USE_CG_DRAWING
135 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
136 and cg_back_color.
137
138 * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
139 (restore_show_help_function, menu_target_item_handler)
140 [TARGET_API_MAC_CARBON]: New functions.
141 (install_menu_target_item_handler): New function.
142 (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
143 item property.
144
145 * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
146 (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
147 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
148 (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
149 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
150 (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
151 (mac_cg_color_black) [USE_CG_DRAWING
152 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
153 (init_cg_color) [USE_CG_DRAWING]: New function.
154 (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
155 CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
156 (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
157 (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
158 Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
159 CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
160 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
161 (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
162 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
163 gc->cg_back_color.
164 (install_drag_handler, remove_drag_handler): Make extern.
165 (install_menu_target_item_handler): Add extern.
166 (install_window_handler): Call install_menu_target_item_handler.
167 [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
5be70981 168 (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
1675bac7
YM
169
170 * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
171
4c9564e8
JB
1722007-01-04 Juanma Barranquero <lekktu@gmail.com>
173
174 * window.c (Fwindow_end): Fix use of >= operator.
175
c3295e7b
RS
1762007-01-03 Richard Stallman <rms@gnu.org>
177
178 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
179
0c5e9b06
JD
1802007-01-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
181
182 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
183 unhighlight_id.
184
185 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
186 parent of the menu item. Get menu item widget from event.
187 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
188 unhighlight_id has been removed.
189 (create_menus): Connect enter/leave-notify-event to the menu instead
190 of individual items.
191
1e0fe298
JD
1922006-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
193
194 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
195 xg_tool_bar_menu_proxy.
196 (xg_tool_bar_menu_proxy): New function.
197 (xg_tool_bar_proxy_callback): New function.
198
6e1440e6
JD
1992006-12-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
200
201 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
202 (xg_tool_bar_callback): Remove check for button.
203 (update_frame_tool_bar): Put an event box in the tool bar and a button
204 in the event box. Attach enter/leave-notify-event to the event box.
205
dced1a73
RS
2062006-12-30 Richard Stallman <rms@gnu.org>
207
208 * keymap.c (Fdefine_key): Doc fix.
209
05a699b6
KS
2102006-12-29 Kim F. Storm <storm@cua.dk>
211
212 * frame.h (struct frame): New member minimize_tool_bar_window_p.
213
214 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
215 (Vauto_resize_tool_bars): ... this.
216 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
217 to describe new value `grow-only', and use of C-l.
218 (display_tool_bar_line): Only use default face for border below
219 toolbar if not grow-only (to get acceptable visual appearence).
220 Explicitly set visible_height for empty toolbar lines.
221 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
222 minimize_tool_bar_window_p flag.
223
224 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
225 when called without arg to redraw with minimum toolbar height.
226 Update doc string.
227
e37b3faf
JR
2282006-12-29 Jason Rumney <jasonr@gnu.org>
229
230 * s/ms-w32.h (tzname): Do not define in msvc8.
40c41924 231 (utime): Do not define in msvc8.
e37b3faf
JR
232
233 * regex.c (regerror): Change parameter name err_code.
234
dbb8dfc7
RS
2352006-12-26 Richard Stallman <rms@gnu.org>
236
e817cc9b
RS
237 * search.c (Fsearch_forward): Doc fix.
238
dbb8dfc7
RS
239 * callint.c (Finteractive): Doc fix.
240
42f82ce7
KS
2412006-12-25 Kim F. Storm <storm@cua.dk>
242
243 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
244
fa1f0a88
EZ
2452006-12-23 Eli Zaretskii <eliz@gnu.org>
246
247 * keyboard.c (some_mouse_moved): Fix last change.
248
453027ac
EZ
2492006-12-22 Eli Zaretskii <eliz@gnu.org>
250
251 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
252
b9542c10
EZ
2532006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
254
255 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
256 * m/sh3el.h: New file.
257
5e059fc1
EZ
2582006-12-22 Eli Zaretskii <eliz@gnu.org>
259
260 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
261 $(BLD).
262 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
263 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
6808dce1 264 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
f278d4a6 265 (clean): Delete stamp_BLD.
5e059fc1 266
2f0fd19a
YM
2672006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
268
8b9ae6b0
SM
269 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
270 Call mac_update_proxy_icon also when buffer modification flag changed.
2f0fd19a
YM
271 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
272 but compare FSRef/FSSpec of resolved alias.
273
274fa194
KS
2742006-12-21 Kim F. Storm <storm@cua.dk>
275
276 * w32.c (_sys_wait_accept): Fix handle leak.
277
7fb24298
JD
2782006-12-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
279
280 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
281 defined.
282
15d6777e
KS
2832006-12-20 Kim F. Storm <storm@cua.dk>
284
285 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
286
209ceeef
JB
2872006-12-19 Juanma Barranquero <lekktu@gmail.com>
288
289 * keyboard.c (syms_of_keyboard) <double-click-time>:
290 * mac.c (Fmac_code_convert_string):
291 * search.c (Fsearch_forward): Doc fixes.
292
36ff6d6f
KS
2932006-12-19 Kim F. Storm <storm@cua.dk>
294
295 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
296 a sigusr1 event instead of [signal usr1] sequence, and signal events
297 are now supposed to be handled via special-event-map.
298
299 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
300 (make_lispy_event): Don't generate Qsignal prefix for code 0.
301 Abort if signal code is unknown.
302 (store_user_signal_events): Don't make Qsignal prefix (code 0).
303 (Qsignal): Move declaration back to process.c.
304 (syms_of_keyboard): Don't intern or staticpro it here.
305
306 * process.c (Qsignal): Declare here.
307 (syms_of_process): Intern or staticpro it.
308
309 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
310
311 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
312
6a28a84c
JB
3132006-12-19 Juanma Barranquero <lekktu@gmail.com>
314
3350dc42 315 * buffer.c (syms_of_buffer) <buffer-display-table>
6a28a84c
JB
316 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
317
294f1c39
RS
3182006-12-17 Richard Stallman <rms@gnu.org>
319
320 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
321 to Ffile_name_completion.
322
323 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
6a28a84c 324 (Ffile_name_completion): New arg PREDICATE.
294f1c39 325
f6e22881
JB
3262006-12-17 Juanma Barranquero <lekktu@gmail.com>
327
328 * buffer.c (Fkill_buffer): Doc fix.
329 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
330
f03c1894
JB
3312006-12-16 Juanma Barranquero <lekktu@gmail.com>
332
333 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
334
04afd01e
EZ
3352006-12-16 Eli Zaretskii <eliz@gnu.org>
336
b58d0378
EZ
337 * w32fns.c (w32-window-exists-p): New function.
338 (syms_of_w32fns): Defsubr it.
339
04afd01e
EZ
340 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
341
33202706
JB
3422006-12-16 Juanma Barranquero <lekktu@gmail.com>
343
344 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
345
75036d1c
EZ
3462006-12-15 Eli Zaretskii <eliz@gnu.org>
347
348 * emacs.c (USAGE3): Clarify documentation of --color.
349
e71b26ec
YM
3502006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
351
33202706
JB
352 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
353 New variable.
e71b26ec
YM
354 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
355 [!MAC_OSX] (select): Use them.
356 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
357 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
358
359 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
360 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
361 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
362
8b9ae6b0
SM
363 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
364 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
e71b26ec
YM
365
366 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
367 ATSUGetGlyphBounds if not necessary.
33202706 368 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
e71b26ec
YM
369 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
370 (fm_get_style_from_font, atsu_find_font_from_family_name)
371 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
372 [USE_ATSUI]: New functions.
373 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
374 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
375 Don't get metrics for Latin-1 right half characters.
376 (mac_load_query_font): Don't load font if space width is not positive.
8b9ae6b0
SM
377 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
378 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
e71b26ec
YM
379 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
380
381 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
382
cbaa9c44
KS
3832006-12-15 Kim F. Storm <storm@cua.dk>
384
385 * keyboard.c (ignore_mouse_drag_p): New global var.
386 (some_mouse_moved): Return 0 if it is non-zero.
387 (make_lispy_event): Generate click event on mouse up if
388 ignore_mouse_drag_p is non-zero, even if mouse moved.
389 Clear ignore_mouse_drag_p on mouse down/up.
390
391 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
392 is resized to avoid generating a mouse drag event.
393
8a4c4c7f
JB
3942006-12-14 Juanma Barranquero <lekktu@gmail.com>
395
396 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
397 minimum tracking size. Remove non-working old hack to do the same.
398
b1c6aa6e
YM
3992006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
400
401 * emacs.c (handle_user_signal): Move function to keyboard.c.
402 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
403
404 * keyboard.c (make_lispy_event): Use find_user_signal_name.
405 (read_avail_input): Store pending user signal events.
406 (struct user_signal_info): New struct.
407 (user_signals): New variable.
e71b26ec
YM
408 (add_user_signal, store_user_signal_events)
409 (find_user_signal_name): New functions.
b1c6aa6e
YM
410 (handle_user_signal): Move function from emacs.c. Don't store
411 USER_SIGNAL_EVENT here, but increment number of pending signals.
412
413 * keyboard.h (add_user_signals): Add extern.
414
fc961256
JB
4152006-12-11 Juanma Barranquero <lekktu@gmail.com>
416
417 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
418 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
419 <line-spacing, left-margin>: Doc fixes.
420
53d45a17
JB
421 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
422
df20dc2b
KS
4232006-12-10 Kim F. Storm <storm@cua.dk>
424
425 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
426
28e86dc4
JB
4272006-12-10 Juanma Barranquero <lekktu@gmail.com>
428
429 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
430 * buffer.c (syms_of_buffer) <default-major-mode>:
431 * keymap.c (Flookup_key):
432 * lread.c (Feval_buffer, Feval_region):
433 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
434 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
435 * marker.c (Fmarker_insertion_type):
436 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
437 * msdos.c (syms_of_msdos) <delete-exited-processes>:
438 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
439 <x-underline-at-descent-line>:
440 * xdisp.c (format-mode-line):
441 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
442 <x-underline-at-descent-line>: Doc fixes.
443
64d962c1
AS
4442006-12-10 Andreas Schwab <schwab@suse.de>
445
446 * systime.h (EMACS_GET_TIME): Remove check for
447 HAVE_STRUCT_TIMEZONE which is never defined.
448
43726c05
AM
4492006-12-10 Alan Mackenzie <acm@muc.de>
450
451 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
452 result is now neither the last elt nor optional for OLDSTATE.
453
cbf9640e
EZ
4542006-12-09 Eli Zaretskii <eliz@gnu.org>
455
456 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
457 extract the process ID from a Lisp float.
458
3ca241e1
CY
4592006-12-09 Chong Yidong <cyd@stupidchicken.com>
460
28e86dc4 461 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
3ca241e1 462
9e67e94f
EZ
4632006-12-08 Eli Zaretskii <eliz@gnu.org>
464
465 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
466 platforms where long is 64-bit.
467
468 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
469
28e86dc4 4702006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
a15fc3c3
CY
471
472 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
473
65fa9a64
KH
4742006-12-08 Kenichi Handa <handa@m17n.org>
475
476 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
477
b4963755
JB
4782006-12-08 Juanma Barranquero <lekktu@gmail.com>
479
480 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
481
f7a706cf
KS
4822006-12-07 Kim F. Storm <storm@cua.dk>
483
484 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
485 (Fsignal_process): Don't use strncasecmp.
486
da9109f7
GM
4872006-12-05 Glenn Morris <rgm@gnu.org>
488
489 * abbrev.c (Qforce): New Lisp_Object.
490 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
491 abbrevs, unless 'force is applied.
492 (syms_of_abbrev): Add Qforce.
493
5c35ec32
KS
4942006-12-04 Kim F. Storm <storm@cua.dk>
495
55ba687b
KS
496 * process.c (parse_signal): Rename macro from handle_signal.
497 (Fsignal_process): Also accept lower-case variants of signal
498 names (to align with signal names generated by Emacs itself).
499
5c35ec32
KS
500 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
501 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
502 first with code == 0 [signal] and one with code == sig number.
503 (main): Use it as handler for SIGUR1 and SIGUSR2.
504
505 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
506 if first event in [signal xxx] sequence.
507 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
508 (syms_of_keyboard): Don't intern and staticpro them.
9d8b24a2
KS
509 (Qsignal): Declare here.
510 (syms_of_keyboard): Intern and staticpro it.
511 (make_lispy_event): Use it. Intern symbols on the fly for other
512 USER_SIGNAL_EVENTs events.
5c35ec32
KS
513
514 * process.c (Qsignal): Declare extern.
9d8b24a2 515 (syms_of_process): Don't intern/staticpro it here.
5c35ec32
KS
516
517 * process.c (read_process_output): Abort if carryover < 0.
518
ee77eef5
YM
5192006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
520
521 * config.in: Regenerate.
522
523 * fileio.c [__NetBSD__]: Don't define `unix'.
524 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
525 `#ifdef unix'.
526
4a3363c5
GM
5272006-12-04 Glenn Morris <rgm@gnu.org>
528
529 * Makefile.in (version): New variable, set by configure.
530 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
531
a3893a90
JD
5322006-12-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
533
534 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
535 without an image.
536
107fae8b
EZ
5372006-12-01 Eli Zaretskii <eliz@gnu.org>
538
539 * w32fns.c (Fw32_shell_execute): Doc fix.
540
b88548b1
CY
5412006-11-30 Chong Yidong <cyd@stupidchicken.com>
542
543 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
544 lines ending in tab.
545
65dc67a9
JD
5462006-11-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
547
548 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
549 property ...
550 (XTframe_raise_lower): ... to here.
551
3aaab9a0
KH
5522006-11-30 Kenichi Handa <handa@m17n.org>
553
554 * regex.c (regex_compile): Fix previous change.
555
c6605d63
JB
5562006-11-29 Juanma Barranquero <lekktu@gmail.com>
557
558 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
559
1a52930b
CY
5602006-11-28 Chong Yidong <cyd@stupidchicken.com>
561
562 * config.in: Regenerate.
563
6358f8b2
KH
5642006-11-28 Kenichi Handa <handa@m17n.org>
565
566 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
567 multibyte character.
568
55107ae5
CY
5692006-11-27 Chong Yidong <cyd@stupidchicken.com>
570
2b8d8474 571 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
55107ae5 572
89692b9a
KS
5732006-11-27 Kim F. Storm <storm@cua.dk>
574
575 * window.c (set_window_buffer): Refactor recent changes.
576
7e993c06
JR
5772006-11-27 Jason Rumney <jasonr@gnu.org>
578
579 * w32term.c (w32_msg_worker): Declare correctly.
580 (w32_initialize): Don't cast w32_msg_worker.
581
582 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
583
fb873e6b
CY
5842006-11-26 Chong Yidong <cyd@stupidchicken.com>
585
586 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
587 directory exists.
588
69a6e74d
EZ
5892006-11-25 Eli Zaretskii <eliz@gnu.org>
590
591 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
592 as per the calling sequence change on 2006-07-11.
593
d496cfc0
CY
5942006-11-25 Chong Yidong <cyd@stupidchicken.com>
595
596 * window.c (set_window_buffer): Use BLOCK_INPUT.
597
5ee699a7
JB
5982006-11-24 Juanma Barranquero <lekktu@gmail.com>
599
600 * fns.c (substring_both): Add missing address operator.
601
7edbb0da
SM
6022006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
603
604 * fns.c: Use AREF/ASIZE macros.
605 (concat): Provide the full ANSI prototype.
606
96215ace
JB
6072006-11-24 Juanma Barranquero <lekktu@gmail.com>
608
609 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
610
09566666
NR
6112006-11-23 William Smith <William.Smith@global360.com> (tiny change)
612
609b291d 613 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
09566666 614
6a022bd9
CY
6152006-11-02 Alfred M. Szmidt <ams@gnu.org> (tiny change)
616
617 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
618 /usr/pkg/lib from the library search path.
619 (LD_SWITCH_X_DEFAULT): New macro.
620
63cb1543
CY
6212006-11-22 Chong Yidong <cyd@stupidchicken.com>
622
623 * window.c (set_window_buffer): Clear mouse highlight if it is in
624 this window.
625
ca612449
CY
6262006-11-21 Chong Yidong <cyd@stupidchicken.com>
627
628 * xfaces.c (realize_default_face): Check if the default font name
629 exists on this display before trying to use it.
630
a98d0b8e
RS
6312006-11-21 Richard Stallman <rms@gnu.org>
632
633 * fileio.c: Break line before &&, not after.
634
1ce0a32d
EZ
6352006-11-20 Eli Zaretskii <eliz@gnu.org>
636
637 * fns.c (concat) [!__GNUC__]: Add prototype.
638
565f08cd
KH
6392006-11-20 Kenichi Handa <handa@m17n.org>
640
641 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
642 check the tailing slash of a filename.
643
e15a0495
KH
6442006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
645
646 * indent.c (Fvertical_motion): Include composition in the case of
647 overshoot expected.
648
221439a0
AS
6492006-11-19 Andreas Schwab <schwab@gnu.org>
650
7edbb0da 651 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
221439a0
AS
652
653 * xmenu.c (Fx_popup_menu): Initialize selection.
654
bcd7101a
AS
6552006-11-18 Andreas Schwab <schwab@suse.de>
656
7edbb0da 657 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
bcd7101a 658
118ddbdd
JD
6592006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
660
661 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
662 to avoid gcc 2.96 error.
663
347d9bbe
KH
6642006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
665
666 * search.c (simple_search): In the loop of backward searching,
667 check also the byte position against the limit.
668
d089c7a8
RF
6692006-11-14 Romain Francoise <romain@orebokech.com>
670
671 * minibuf.c (Fcompleting_read): Fix typo in docstring.
672
1364f420
KH
6732006-11-14 Kenichi Handa <handa@m17n.org>
674
7edbb0da 675 * coding.c (code_convert_region): Initialize coding->heading_ascii.
1364f420
KH
676 (decode_coding_string, code_convert_region): Likewise.
677
9b150aa2
YM
6782006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
679
680 * config.in: Regenerate.
681
682 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
683 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
684 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
685 CGDisplayScreenSize is available.
686
687 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
688 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
689 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
690 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
691 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
692 CancelMenuTracking is available.
693
694 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
695 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
696 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
697 CGContextShowGlyphsWithAdvances is available.
698
52dcc2d0
JR
6992006-11-13 Jason Rumney <jasonr@gnu.org>
700
701 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
702
55a314a5
YM
7032006-11-13 Nozomu Ando <nand@mac.com>
704
705 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
706 Fix address calculations for case END < START.
707 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
708
4cb8645c
JB
7092006-11-12 Juanma Barranquero <lekktu@gmail.com>
710
711 * coding.c (Fencode_sjis_char, Fencode_big5_char):
712 Improve argument/docstring consistency.
713
714 * editfns.c (Fmessage): Doc fixes.
715
716 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
717
b071677f
CY
7182006-11-12 Chong Yidong <cyd@stupidchicken.com>
719
720 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
721
0924e3f6
RF
7222006-11-12 Romain Francoise <romain@orebokech.com>
723
724 * xselect.c (selection-coding-system): Fix docstring.
725
947129a2
JB
7262006-11-12 Juanma Barranquero <lekktu@gmail.com>
727
728 * category.c (Fchar_category_set): Improve arg/docstring consistency.
729
730 * data.c (Flogxor):
731 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
732 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
733 (Fstring_make_unibyte): Fix typos in docstrings.
734
b8e7655f
JD
7352006-11-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
736
737 * xterm.h (struct x_display_info): Fix indentation.
738
739 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
740 (x_check_fullscreen): Call do_ewmh_fullscreen.
741 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
742
743 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
744
745 * term.c: Define fullscreen_hook.
746 (syms_of_term): Initialize fullscreen_hook to NULL.
747
748 * termhooks.h: Add fullscreen_hook.
749
eed1152f
JB
7502006-11-08 Juanma Barranquero <lekktu@gmail.com>
751
752 * bytecode.c (Fbyte_code):
753 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
754
3dd428fa
JB
7552006-11-06 Juanma Barranquero <lekktu@gmail.com>
756
757 * lread.c (syms_of_lread):
758 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
759
e8407323
CY
7602006-11-06 Martin Rudalics <rudalics@gmx.at>
761
762 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
763
764 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
765 Return nil if building without menus.
766
767 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
768 Return nil if building without menus.
769
faefde36
RS
7702006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
771
7edbb0da 772 * s/netbsd.h (POSIX_SIGNALS): Define.
faefde36 773
107709d4
EZ
7742006-11-05 Martin Rudalics <rudalics@gmx.at>
775
776 * macmenu.c (Fmenu_or_popup_active_p): New function.
777 (syms_of_macmenu): Defsubr it.
778
779 * w32menu.c (Fmenu_or_popup_active_p): New function.
780 (syms_of_w32menu): Defsubr it.
781 (popup_activated_flag, popup_activated): Remove.
782
783 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
784 check popup_activated.
785
786 * xmenu.c (Fmenu_or_popup_active_p): New function.
787 (syms_of_xmenu): Defsubr it.
788
c57038f8
YM
7892006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
790
791 * unexmacosx.c (malloc_cookie): Remove unused variable.
792 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
793 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
794 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
795 (num_unexec_regions, unexec_regions): Make variables static.
796 (print_regions, find_emacs_zone_regions): Make static.
797 (unexec_region_info): New typedef.
798 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
799 All uses changed.
800 (unexec_regions_recorder): Subtract size of trailing null pages from
801 filesize. Show filesize.
802 (unexec_regions_merge): Don't merge if null pages of preceding region
803 is not too small. Use long format in printf.
804 (copy_segment, copy_data_segment): Show filesize.
7edbb0da
SM
805 (copy_data_segment): Write filesize bytes of region data.
806 Adjust filesize in segment command accordingly.
c57038f8
YM
807 (dump_it): Use long format in printf.
808
60a294e2
JB
8092006-11-05 Juanma Barranquero <lekktu@gmail.com>
810
811 * dosfns.c (Finsert_startup_screen):
812 * fns.c (Ffeaturep, syms_of_fns):
813 * frame.c (syms_of_frame): Fix typos in docstrings.
814
815 * unexcw.c (unexec): Fix typo in output message.
816
b20d6154
EZ
8172006-11-04 Ralf Angeli <angeli@caeruleus.net>
818
819 * w32fns.c (w32_createwindow): Remove code for handling -geometry
820 command line option and `initial-frame-alist' which is superfluous
821 after the last change to `w32_createwindow'.
822
ccc54d96 8232006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
3ac04ed0 824
ccc54d96
JB
825 * w32proc.c (sys_wait): Only wait for processes with fd<0.
826 Others should be handled by sys_select instead. Fixes problems
827 with (progn (start-process "" nil "ls") (call-process "ls")).
3ac04ed0 828
ccc54d96 8292006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
8630721e
CY
830
831 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
832 avoid gcc 2.95 error.
833
b20d6154 8342006-11-04 Chong Yidong <cyd@stupidchicken.com>
ffbdf67b
CY
835
836 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
837 wicon is null, insert an empty button.
838
45a26c42
JD
8392006-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
840
841 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
842 window.
843
b224de9b
JB
8442006-11-02 Juanma Barranquero <lekktu@gmail.com>
845
846 * emacs.c (Fkill_emacs): Fix typo in docstring.
847
73da71f9
YM
8482006-11-02 Nozomu Ando <nand@mac.com>
849
850 * unexmacosx.c (mach_header, segment_command, vm_region, section)
851 [_LP64]: New defines.
852 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
853 (MH_MAGIC) [_LP64]: Redefine.
854 (delta): Remove variable.
855 (curr_file_offset, pagesize): New variables.
856 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
857 (data_segment_old_fileoff): Initialize explicitly.
858 (print_region, unexec_regions_recorder, print_load_command_name)
859 (copy_segment, copy_data_segment): Use long format in printf.
860 (MAX_UNEXEC_REGIONS): Increase to 400.
861 (unexec_regions_recorder): Don't warn too many regions here.
862 (find_emacs_zone_regions): Warn too many regions here.
863 (print_load_command_name) [_LP64]: Show correct load command name.
864 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
865 Show starting virtual memory address. Don't show ending file offset.
866 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
867 (dump_it): Use new local variable `linkedit_delta' and pass to them.
868 Error if trying to handle multiple DATA segments.
869 (unexec): Initialize variable `pagesize'.
870
ebc20ca0
JB
8712006-11-01 Juanma Barranquero <lekktu@gmail.com>
872
873 * eval.c (Fcatch): Doc fix.
874
6ceb8058
YM
8752006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
876
877 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
878 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
879 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
880 (xpm_load_image): Add const qualifier to arguments.
881 [MAC_OS] (xpm_color_key_strings): Make static const.
882
883 * mac.c (create_apple_event_from_event_ref)
884 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
885 (parse_include_file, parse_binding, parse_component)
886 (parse_resource_name, parse_value, parse_resource_line)
887 (xrm_merge_string_database, xrm_get_resource)
888 (xrm_get_preference_database): Add const qualifier to arguments.
889 [MAC_OSX] (sys_select): Make variable `context' static const.
890
891 * macfns.c (mac_color_map): Make static const.
892 (mac_color_map_lookup): Add const qualifier to arguments.
893
894 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
895 static const.
896 (name_is_separator): Add const qualifier to arguments.
897
898 * macselect.c (init_service_handler): Make variable `specs' static
899 const.
900
901 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
902 `swap_nibbles' static const.
903 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
904 `tags', `sizes', `values' static const.
7edbb0da
SM
905 (mac_draw_string_common): Make variables `context' static.
906 Make variables `tags', `sizes', and `values' static const.
6ceb8058
YM
907 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
908 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
909 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
910 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
911 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
912 qualifier to arguments.
913 (xlfd_scalable_fields, keycode_to_xkeysym_table)
914 (fn_keycode_to_keycode_table): Make static const.
915 (mac_load_query_font): Make variables `tags', `sizes', `values',
916 `types', and `selectors' static const.
7edbb0da
SM
917 (mac_handle_command_event, mac_handle_window_event):
918 Make variables `names' and `types' static const.
6ceb8058
YM
919 (init_command_handler, install_window_handler): Make variables
920 `specs*' static const.
921 (mac_handle_font_event, mac_handle_text_input_event)
922 (mac_store_service_event): Make variables `names' and `types'
923 const. Make variables `names_*' and `types_*' static const.
924
925 * macterm.h (create_apple_event_from_event_ref)
926 (create_apple_event_from_drag_ref, xrm_merge_string_database)
927 (xrm_get_resource, xrm_get_preference_database): Add const
928 qualifier to arguments in externs.
929
7147863a
KH
9302006-10-31 Kenichi Handa <handa@m17n.org>
931
932 * xfns.c (xic_create_xfontset): Fix previous change.
933
78667db7
CY
9342006-10-30 Chong Yidong <cyd@stupidchicken.com>
935
936 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
937 /usr/pkg/lib to library search path.
938
ebc20ca0 9392006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
8d31e373
CY
940
941 * ralloc.c (relinquish): Use a long for excess space counter to
942 handle 64-bit case correctly.
943
1dbfd8e3
CY
9442006-10-29 Jeramey Crawford <jeramey@jeramey.com>
945
946 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
947
856bb2b0
JB
9482006-10-29 Juanma Barranquero <lekktu@gmail.com>
949
950 * window.c (Fdisplay_buffer): Fix typo in docstring.
951
4975e695
JB
9522006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
953
954 * w32term.c (x_draw_glyph_string_foreground): Set background mode
955 to TRANSPARENT before using overstrike to simulate bold faces.
956
957 * xfaces.c (best_matching_font): Fix logic to decide whether to
958 use overstriking to simulate bold-face (it was reversed).
959
cbfe778a
KS
9602006-10-23 Kim F. Storm <storm@cua.dk>
961
4975e695
JB
962 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
963 initialized.
a4614668 964
cbfe778a
KS
965 * keyboard.c (read_char): Make an element (t . EVENT) in
966 unread-command-events add EVENT to the current command's key sequence.
967 (syms_of_keyboard) <unread-command-events>: Update doc.
968
627fb581
RS
9692006-10-21 Richard Stallman <rms@gnu.org>
970
971 * minibuf.c (Vread_expression_map): Define here.
972 (Qread_expression_history): New variable.
973 (syms_of_minibuf): Initialize them.
974 (Feval_minibuffer): Use Vread_expression_map and
975 Qread_expression_history.
976
cd987aaa
KH
9772006-10-21 Kenichi Handa <handa@m17n.org>
978
979 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
980 card, change it to "*".
981 (xic_create_xfontset): Call XCreateFontSet for each single
982 fontname in fontsetname.
983
55b41ef5
CY
9842006-10-19 Chong Yidong <cyd@stupidchicken.com>
985
986 * callint.c (callint_message): Convert to a Lisp string.
987 (syms_of_callint): Initialize it.
988 (callint_message_size): Var deleted.
989 (Fcall_interactively): Use Fformat instead of doprnt to construct
990 prompt string.
991
cc7aa8dc
KS
9922006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
993
994 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
995
045b1908
YM
9962006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
997
998 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
999 New variable.
1000 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
1001
866f8518
JD
10022006-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1003
1004 * xselect.c (x_handle_selection_request): If the converted_selection
14a56a1b 1005 is nil or XCDR (converted_selection) is nil, decline the request.
866f8518 1006
b43da352
JD
10072006-10-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1008
1009 * gtkutil.c (get_utf8_string): Remove warnings with casts.
7edbb0da 1010 (xg_tool_bar_button_cb): Ditto.
b43da352
JD
1011 (xg_tool_bar_callback): Ditto.
1012
7c682cf1
YM
10132006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1014
1015 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
1016 variable ch_dim.
1017 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
1018 menu bar window matrices on non-X systems.
1019
1020 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
1021
1022 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
1023 adjustment is needed.
1024 (mac_load_query_font): Check if width and height are positive.
1025
563964ae
RS
10262006-10-14 Richard Stallman <rms@gnu.org>
1027
1028 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
1029
98721beb
CY
10302006-10-13 Chong Yidong <cyd@stupidchicken.com>
1031
1032 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
1033 title.
1034
eae637ec
CY
10352006-10-12 Chong Yidong <cyd@stupidchicken.com>
1036
1037 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
1038 XCAR and XINT.
1039
431feaf6
RF
10402006-10-12 Romain Francoise <romain@orebokech.com>
1041
1042 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
1043
de9855d5
SM
10442006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
1045
b70e1a2b
SM
1046 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
1047
1048 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
1049
1050 * xterm.c (x_check_expected_move): Remove unused var `count'.
1051
de9855d5
SM
1052 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
1053 Fdefalias is not declared in any *.h file.
1054
394ccd7d
CY
10552006-10-09 Chong Yidong <cyd@stupidchicken.com>
1056
2bcac766
CY
1057 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
1058
1059 * keyboard.c (command_loop_1): Handle non-number values of
1060 `minibuffer-message-timeout'.
1061 (Fexecute_extended_command): Fix typo.
1062
394ccd7d
CY
1063 * minibuf.c (temp_echo_area_glyphs): Sit for
1064 `minibuffer-message-timeout' seconds.
1065
bb420759
YM
10662006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1067
de9855d5
SM
1068 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
1069 Add argument OVERSTRIKE_P.
bb420759
YM
1070 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
1071 Support overstrike.
1072 (mac_draw_string, mac_draw_string_16): Remove functions.
1073 (x_draw_glyph_string_foreground): Use overstrike when needed.
de9855d5
SM
1074 (x_draw_composite_glyph_string_foreground): Likewise.
1075 Use mac_draw_image_string_16 instead of mac_draw_string_16.
4975e695
JB
1076 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
1077 F instead of DPY. All uses changed. Don't save/restore font.
bb420759 1078
2770d589
JR
10792006-10-07 Ralf Angeli <angeli@caeruleus.net>
1080
1081 * w32fns.c (w32_createwindow): Honour left and top positions if
1082 supplied explicitly.
1083
ee37d135
KS
10842006-10-06 Kim F. Storm <storm@cua.dk>
1085
1086 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
1087
26c34ec2
CY
10882006-10-05 Chong Yidong <cyd@stupidchicken.com>
1089
1090 * frame.c (Qinhibit_face_set_after_frame_default): New var.
1091 (syms_of_frame): Initialize it.
1092 (x_set_frame_parameters): Avoid resetting :font attributes to the
1093 new-frame defaults.
1094
54dd3310
SM
10952006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
1096
1097 * lisp.h (clear_regexp_cache): Declare.
1098
1099 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
1100 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
1101 (clear_regexp_cache): Only flush those regexps which depend on
1102 a syntax-table.
1103
1104 * regex.c (regex_compile): Set the new `used_syntax' bit.
1105
1106 * regex.h: Remove file local variables.
1107 (struct re_pattern_buffer): New field `used_syntax'.
1108
73812be6
KS
11092006-10-03 Kim F. Storm <storm@cua.dk>
1110
1111 * process.c (list_processes_1): Run sentinels before removing dead
1112 processes. Also remove `closed' network connections.
1113
2201c41c
SM
11142006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1115
1116 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
1117
79e01e93
EZ
11182006-09-30 Eli Zaretskii <eliz@gnu.org>
1119
4975e695 1120 * config.in: Regenerated.
79e01e93 1121
f9df5f68
JL
11222006-09-29 Juri Linkov <juri@jurta.org>
1123
1124 * buffer.c (syms_of_buffer): Reorder coding systems in the
1125 docstring of %z to the real order displayed in the modeline.
1126
7ae8428d
SM
11272006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1128
1129 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
1130
14a7cabf
CY
11312006-09-26 Chong Yidong <cyd@stupidchicken.com>
1132
1133 * indent.c (Fvertical_motion): Do move back if the Lisp string
1134 being displayed contains newlines.
1135
444a42fd
YM
11362006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1137
1138 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
1139 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
1140
4ccaff67
KH
11412006-09-26 Kenichi Handa <handa@m17n.org>
1142
1143 * keymap.c (Fsingle_key_description): For an invalid char, return
1144 "Invalid char code NNNNN".
1145
2a95a27c
CY
11462006-09-25 Chong Yidong <cyd@stupidchicken.com>
1147
1148 * callint.c (Fcall_interactively): Doc fix.
1149
cf2c6835
YM
11502006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1151
1152 * macterm.c (x_underline_at_descent_line): New variable.
1153 (syms_of_macterm): DEFVAR_BOOL it.
1154 (x_draw_glyph_string): Use it.
1155 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
1156
173517c6
KH
11572006-09-25 Kenichi Handa <handa@m17n.org>
1158
1159 * keymap.c (Fsingle_key_description): Return unique names for
1160 generic characters.
1161
45c912f2
RS
11622006-09-24 Richard Stallman <rms@gnu.org>
1163
1164 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
1165
1133f8e7
EZ
11662006-09-24 Eli Zaretskii <eliz@gnu.org>
1167
de9855d5
SM
1168 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
1169 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
8f59d602
EZ
1170
1171 * w32proc.c (nl_langinfo): New function.
1172
1133f8e7
EZ
1173 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
1174 (w32-pass-lwindow-to-system, w32-enable-num-lock)
1175 (w32-enable-caps-lock, w32-scroll-lock-modifier)
1176 (w32-lwindow-modifier, w32-rwindow-modifier)
1177 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
1178
ba5524f4
JB
11792006-09-23 Juanma Barranquero <lekktu@gmail.com>
1180
1181 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
1182 (Fdisplay_completion_list): Fix typos in docstrings.
1183
47a0ee40
RF
11842006-09-23 Romain Francoise <romain@orebokech.com>
1185
1186 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
1187
5dfe789c
KH
11882006-09-23 Kenichi Handa <handa@m17n.org>
1189
ba5524f4 1190 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
5dfe789c 1191
4560a582
SM
11922006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
1193
1194 * regex.c (analyse_first): For eight-bit-control chars, mark both the
1195 char's value and its leading byte in the fastmap.
1196 (re_search_2): When fast-scanning without translation, be careful to
1197 check that we only match the leading byte of a multibyte char.
1198
1199 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
1200 byte sequence.
1201 (AT_CHAR_BOUNDARY): New macro.
1202
2e77924d
KH
12032006-09-22 Kenichi Handa <handa@m17n.org>
1204
1205 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
1206 whose default value is non-nil.
1207
66687b7c
JD
12082006-09-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1209
db4fd914 1210 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
782447bd
JD
1211 Gtk+ versions < 2.10.
1212
66687b7c
JD
1213 * xfns.c (syms_of_xfns): Fix typo in help text for
1214 x-gtk-file-dialog-help-text.
1215
b521ddce
KS
12162006-09-21 Kim F. Storm <storm@cua.dk>
1217
1218 * fns.c (Fmemq): Refill doc string.
1219 (Fmemql): New defun, like memq but using eql.
1220 (syms_of_fns): Defsubr it.
1221
d0e0bd5f
KS
12222006-09-20 Kim F. Storm <storm@cua.dk>
1223
1224 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
1225 last visible glyph in window.
1226
a4df1f8b 1227 * window.c (Fset_window_hscroll, Fwindow_line_height):
d0e0bd5f
KS
1228 Doc fix. Use "off-window" instead of "off-screen".
1229 (Fpos_visible_in_window_p): Likewise.
1230 If POS is t, return info for last visible glyph in window.
1231
b69e3c18
CY
12322006-09-19 Chong Yidong <cyd@stupidchicken.com>
1233
1234 * search.c (struct regexp_cache): New entry syntax_table.
1235 (compile_pattern_1): Set it.
1236 (syms_of_search): Initialize it.
1237 (compile_pattern): Require the syntax_table entry of the cache
1238 element to match the current syntax table entry.
1239
31790df3
SM
12402006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
1241
1242 * window.c (Fwindow_end): Fix recent change.
1243
06e6b4be
KS
12442006-09-19 Kim F. Storm <storm@cua.dk>
1245
1246 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
1247 Doc fix. Use "off-screen" instead of "invisible".
1248 (Fwindow_line_height): Make line numbers 0-based. Make line arg
1249 optional; if nil, use current cursor row. Handle text terminals
1250 properly. Return nil if non-interactive or pseudo-window.
1251
08e26e8b
SM
12522006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
1253
1254 * keymap.c: Include alloca.h if available.
1255 (Fkey_binding): Only use AREF after checking it's a vector.
1256 Remove unused var `window'.
1257
61973eb6
YM
12582006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1259
1260 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
1261 inhibit_sentinels.
1262
1263 * mac.c [!MAC_OSX] (select): Fix argument name.
1264
1265 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
1266 menu ID for Apple menu.
1267 (menubar_selection_callback): Remove function.
1268 (find_and_call_menu_selection): New function from xmenu.c.
1269 (x_activate_menubar): Use it.
1270 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
1271
1272 * macterm.c (menubar_selection_callback): Remove extern.
1273 (M_APPLE): Change to 234.
1274 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
1275 (do_menu_choice): Remove function.
1276
1277 * macterm.h (struct mac_output): Remove member menubar_active.
1278 (do_menu_choice): Remove extern.
1279 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
1280
1dd3c9b6
JD
12812006-09-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1282
1a2b3a9f
JD
1283 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
1284 x_gtk_file_dialog_help_text.
1285
1dd3c9b6
JD
1286 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
1287 to x-gtk-use-old-file-dialog.
1a2b3a9f
JD
1288 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
1289 x_gtk_file_dialog_help_text.
1dd3c9b6
JD
1290
1291 * xfns.c (syms_of_xfns): Ditto.
1292
661bdc06
KS
12932006-09-18 Kim F. Storm <storm@cua.dk>
1294
1295 * window.c (Fwindow_line_visibility): Remove.
1296 (Fwindow_line_height): New defun replacing it.
1297 (syms_of_window): Defsubr it.
1298
37228c38
YM
12992006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1300
1301 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
1302 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
1303
a688d8b5
JB
13042006-09-17 Jay Belanger <belanger@truman.edu>
1305
1306 * gmalloc.c:
1307 * md5.c:
1308 * md5.h:
1309 * strftime.c: Replace "GNU Library General Public License" by "GNU
1310 General Public License" throughout.
1311
059fd1a1
KS
13122006-09-17 Kim F. Storm <storm@cua.dk>
1313
1314 * dispnew.c (update_text_area): Undo 2000-07-18 change.
1315 Always redrawing whole row if line has mouse-face in it causes
1316 excessive flickering of the mode line.
1317
e5b94d44
CY
13182006-09-17 Chong Yidong <cyd@stupidchicken.com>
1319
1320 * search.c (clear_regexp_cache): New function.
1321
1322 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
1323
241ad3ca
JD
13242006-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1325
31790df3
SM
1326 * gtkutil.c (xg_get_file_with_chooser):
1327 Check x-gtk-show-chooser-help-text before adding the help text.
fbce5860
JD
1328
1329 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
1330
241ad3ca
JD
1331 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
1332 will simply crash if we fail.
1333
6875fe9a
RS
13342006-09-16 Richard Stallman <rms@gnu.org>
1335
1336 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
1337
0c9337fb
KS
13382006-09-15 Kim F. Storm <storm@cua.dk>
1339
1340 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
1341 (syms_of_window): Defsubr it.
1342 (Fwindow_end): Use window's buffer rather than current buffer.
1343
45a2056c
JB
13442006-09-15 Jay Belanger <belanger@truman.edu>
1345
1346 * COPYING: Replace "Library Public License" by "Lesser Public
1347 License" throughout.
1348
b74e16a3
DK
13492006-09-15 David Kastrup <dak@gnu.org>
1350
de9855d5 1351 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
b74e16a3
DK
1352
1353 * keymap.c: include "window.h".
1354 (Fcommand_remapping): New optional POSITION argument.
1355 (Fkey_binding): New optional POSITION argument. Completely rework
1356 handling of mouse clicks to get the same order of keymaps as
1357 `read-key-sequence' and heed POSITION. Also temporarily switch
1358 buffers to location of mouse click and back.
1359
1360 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
1361 for additional argument.
1362 (parse_menu_item): Adjust call of `Fkey_binding' for additional
1363 argument.
1364 (read_key_sequence): If there are both `local-map' and `keymap'
1365 text properties at some buffer position, heed both.
1366
1367 * keymap.h: Declare additional optional arguments of
1368 `Fcommand_remapping' and `Fkey_binding'.
1369
6cb66a31
JB
13702006-09-15 Juanma Barranquero <lekktu@gmail.com>
1371
1372 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
1373
cd3587c1
AS
13742006-09-14 Andreas Schwab <schwab@suse.de>
1375
1376 * print.c: Whitespace fixup.
1377
84be646f
KS
13782006-09-14 Kim F. Storm <storm@cua.dk>
1379
1380 * xdisp.c (produce_image_glyph): Automatically crop wide images at
1381 right window edge so we can draw the cursor on the same row to
1382 avoid confusing redisplay by placing the cursor outside the visible
1383 window area.
1384
856bb2b0 13852006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
98a20c65
CY
1386
1387 * xterm.c (x_initialize): Don't install Xt event timer here.
1388 (x_timeout_atimer_activated_flag): New var.
1389 (x_activate_timeout_atimer): New function to install Xt timer.
1390 (x_send_scroll_bar_event, x_process_timeouts): Use it.
1391
1392 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
1393 (create_and_show_popup_menu, create_and_show_dialog): Use it.
1394
2371cbe9 1395 * xterm.h (x_activate_timeout_atimer): Add prototype.
98a20c65 1396
efb15f96
RS
13972006-09-13 Richard Stallman <rms@gnu.org>
1398
1399 * print.c (print_string): When printcharfun is t,
1400 copy string contents and call strout on the copy.
1401
1402 * keyboard.c (read_char): If end_time specified, don't put the
1403 event into this_command_keys.
1404 (read_key_sequence): If Voverriding_terminal_local_map is specified,
1405 don't check Voverriding_local_map at all.
1406
1baa749c 14072006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
52c0f270
CY
1408
1409 * textprop.c (Fnext_property_change, Fnext_single_property_change)
1410 (Fprevious_property_change, Fprevious_single_property_change):
1411 Avoid changing limit, so we can correctly catch the case where the
1412 property is constant up to limit.
1413
eee81f5d
YM
14142006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1415
1416 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1417 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1418 Undo 2006-09-08 change.
1419
91197db4
CY
14202006-09-11 Chong Yidong <cyd@stupidchicken.com>
1421
1422 * keymap.c (Fkey_binding): Use string position for string objects.
1423
83279b3e
KS
14242006-09-11 Kim F. Storm <storm@cua.dk>
1425
9a71d7de
KS
1426 * keymap.c (Fkey_binding): Fix last change.
1427
83279b3e
KS
1428 * editfns.c (Fmessage): Recommend using (message "%s" ...).
1429
b067ddb6
CY
14302006-09-10 Chong Yidong <cyd@stupidchicken.com>
1431
1432 * keymap.c (Fkey_binding): Check for local keymap for mouse click
1433 events.
1434
322dd254
KS
14352006-09-10 Kim F. Storm <storm@cua.dk>
1436
606fd469
KS
1437 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
1438 and Vunread_post_input_method_events.
1439
322dd254
KS
1440 * dispnew.c (Fredisplay): Document return value.
1441
437b2a15
JD
14422006-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1443
1444 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
1445
1446 * gtkutil.c (xg_display_close): Always change default display if needed,
1447 check for < Gtk+ version 2.10 before calling gdk_display_close.
1448
6eeee4d6
YM
14492006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1450
eee81f5d
YM
1451 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
1452 Make variable `ofds' static. Remove variable `maxfd'.
6eeee4d6 1453
6cb66a31
JB
1454 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
1455 Call check_mac.
6eeee4d6 1456
eee81f5d 1457 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
6cb66a31
JB
1458 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
1459 Apply 2006-09-08 change for xmenu.c.
6eeee4d6 1460
d7b1ea44 1461 * xfns.c (Fx_file_dialog): Call check_x.
6eeee4d6 1462
f90660aa
KS
14632006-09-10 Kim F. Storm <storm@cua.dk>
1464
1465 * xdisp.c (get_window_cursor_type): Use hollow cursor on
1466 non-transparent images.
1467
c048d606
EZ
14682006-09-09 Eli Zaretskii <eliz@gnu.org>
1469
1470 * editfns.c (Fsystem_name): Mention "host" in the doc string.
1471 (syms_of_editfns) <system-name>: Likewise.
1472
f4cfdbbe 14732006-09-08 Martin Rudalics <rudalics@gmx.at>
92b23323 1474
4560a582 1475 * xdisp.c (mouse_autoselect_window): Remove.
92b23323
CY
1476 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
1477
1478 * dispextern.h (mouse_autoselect_window): Remove extern.
1479 (Vmouse_autoselect_window): Add extern.
1480
1481 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
1482 instead of mouse_autoselect_window.
1483
1484 * msdos.c (dos_rawgetc): Likewise.
1485
1486 * w32term.c (w32_read_socket): Likewise.
1487
1488 * xterm.c (handle_one_xevent): Likewise.
1489
d799329b
RS
14902006-09-08 Richard Stallman <rms@gnu.org>
1491
af09dd78
RS
1492 * xdisp.c (Vmenu_updating_frame): Define here.
1493 (syms_of_xdisp): DEFVAR it here.
1494 (update_menu_bar): Always return hooks_run.
1495 Set Vmenu_updating_frame.
c989bc87 1496
af09dd78
RS
1497 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
1498 before calculating SELECTED_FRAME.
1499
1500 * xmenu.c (Vmenu_updating_frame): Don't define here.
1501 (syms_of_xmenu): Don't DEFVAR it here.
1502
1503 * xterm.c (x_error_quitter): For BadName error, just return.
1504
d799329b
RS
1505 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
1506
1507 * casetab.c (init_casetab_once): Call set_case_table.
1508
1509 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
1510
1511 * process.c (inhibit_sentinels): New variable.
1512 (exec_sentinel): Test inhibit_sentinels.
1513 (init_process): Initialize it.
1514
1515 * process.h (inhibit_sentinels): Add decl.
1516
1517 * search.c (looking_at_1, string_match_1, search_command):
1518 Make syntax table's canon table point to eqv table.
1519
bcdbfd36
AS
15202006-09-08 Andreas Schwab <schwab@suse.de>
1521
1522 * print.c (strout): Fix whitespace.
1523
70c6267a
KS
15242006-09-08 Kim F. Storm <storm@cua.dk>
1525
1526 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
1527
9deaefb7
YM
15282006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1529
1530 * mac.c [!MAC_OSX]: Don't include keyboard.h.
1531 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
1532 in the same BLOCK_INPUT block, in case that some input has already
1533 been read asynchronously. Pretend to be interrupted by a signal
1534 if some input is available.
1535 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
1536 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
1537 Now used for ReceiveNextEvent timeout instead of select timeout.
1538 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
1539 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
1540 support. Quit event loop.
1541 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
1542 connect support. Reuse previously allocated CFRunLoopSource.
1543 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
1544 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
1545
1546 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1547 Specify kWindowAsyncDragAttribute.
1548
1549 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
1550 (mac_get_ideal_size): New functions.
1551 (x_set_offset, x_set_window_size, x_make_frame_visible)
1552 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
1553 (install_window_handler, mac_handle_window_event)
1554 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
1555 kEventWindowBoundsChanged.
1556 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
1557 DragWindow.
70c6267a 1558
d7695a63
AS
15592006-09-07 Andreas Schwab <schwab@suse.de>
1560
1561 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
1562 use lib64 instead of lib.
1563
be9b5a60
SM
15642006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
1565
1566 * Makefile.in: Avoid double quotes when possible.
1567
04e28558
KH
15682006-09-06 Kenichi Handa <handa@m17n.org>
1569
1570 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
1571 a Lisp string from the result of emacs_memftimeu call.
1572
902f06ed
KS
15732006-09-06 Kim F. Storm <storm@cua.dk>
1574
1575 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
f90660aa
KS
1576 so calculate heights even when pos-visible-in-window-p is called
1577 with partially = t. Don't overshoot last_visible_y in move_it_to.
1578 Return row height and row number in new rowh and vpos args.
1579 (cursor_row_fully_visible_p): First line is always "fully visible".
902f06ed
KS
1580 (try_window): Don't clear matrix if vscrolled.
1581
1582 * lisp.h (pos_visible_p): Update prototype.
1583
1584 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
1585 Return row height and row number for partially visible rows.
647b07d1
AS
1586 Modify return value to a 2 element list for fully visible rows and
1587 6 for partially visible row.
902f06ed 1588 (window_scroll_pixel_based): Use pos_visible_p directly instead of
647b07d1
AS
1589 Fpos_visible_in_window_p. Fix auto vscrolling for partially
1590 visible lines. Only vscroll backwards if already vscrolled
1591 forwards. Unconditionally vscroll forwards if PT is first (and
1592 only) line. Set new window start instead of scrolling at
1593 start/end of tall line.
902f06ed 1594
750a6cf4
YM
15952006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1596
1597 * macterm.c (install_window_handler, mac_handle_window_event)
1598 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
1599 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
1600 ASCII keystroke event.
1601
ae6c1c19
JD
16022006-09-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1603
1604 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
1605 the file chooser message. Only call gtk_file_chooser_set_current_name
1606 when action is SAVE.
1607
5aa17bb2
AS
16082006-09-04 Andreas Schwab <schwab@suse.de>
1609
1610 * Makefile.in: Double all single and back quotes in C-style
1611 comments to help fontifier.
1612
934db434
JR
16132006-09-03 Jason Rumney <jasonr@gnu.org>
1614
1615 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
1616 (globals_of_w32): Register it as a signal handler.
1617
6a8c7cfe
JL
16182006-09-02 Juri Linkov <juri@jurta.org>
1619
1620 * marker.c (Fmarker_position): Doc fix.
1621
5c4aaa79
EZ
16222006-09-03 Eli Zaretskii <eliz@gnu.org>
1623
1624 * window.c (syms_of_window) <split-height-threshold>:
1625 <window-min-height, window-min-width>: Doc fix.
1626
655ea21c
JD
16272006-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1628
4f3097d8
JD
1629 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
1630 for writing files. Call gtk_file_chooser_set_current_name to keep
1631 default filename.
1632
655ea21c
JD
1633 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
1634
79f6ba1f
EZ
16352006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
1636
1637 * fns.c (concat) [__GNUC__]: Declare with
1638 `__attribute__((noinline))'.
1639
1640 * eval.c (apply1, call2) [__GNUC__]: Declare with
1641 `__attribute__((noinline))'.
1642
ebc80ddf
EZ
16432006-09-02 Stuart D. Herring <herring@lanl.gov>
1644
1645 * minibuf.c (Finternal_complete_buffer): New function.
1646 (syms_of_minibuf): Defsubr it.
1647 (Fread_buffer): Use it, instead of Vbuffer_alist.
1648
5deb7a51 16492006-09-01 Martin Rudalics <rudalics@gmx.at>
3e145152 1650
5deb7a51
RF
1651 * buffer.h (struct buffer_text): New field chars_modiff.
1652 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
1653 * buffer.c (Fbuffer_chars_modified_tick): New function returning
1654 value of BUF_CHARS_MODIFF.
1655 (syms_of_buffer): Defsubr it.
1656 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
1657 * insdel.c (modify_region): New argument preserve_chars_modiff.
1658 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
1659 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
1660 (adjust_after_replace, adjust_after_replace_noundo)
1661 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
1662 * lisp.h (modify_region): Add fourth argument in extern.
1663 * casefiddle.c (casify_region): Call modify_region with fourth
1664 argument zero to assert that CHARS_MODIFF is updated.
1665 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1666 (Ftranspose_regions): Likewise.
1667 * textprop.c (Fadd_text_properties, Fset_text_properties)
1668 (Fremove_text_properties, Fremove_list_of_text_properties):
1669 Call modify_region with fourth argument 1 to avoid that
1670 CHARS_MODIFF is updated.
3e145152 1671
80e0572b
RS
16722006-08-31 Richard Stallman <rms@gnu.org>
1673
1674 * editfns.c (Fformat): Don't sign-extend for %o or %x.
1675
41d24b39
CY
16762006-08-29 Chong Yidong <cyd@stupidchicken.com>
1677
1678 * indent.c (Fvertical_motion): Don't move back if we were
1679 displaying a Lisp string, either.
1680
62d108d4
KS
16812006-08-28 Kim F. Storm <storm@cua.dk>
1682
1683 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
1684 Don't attempt to replace cursor on image glyphs.
1685
c6f8bb3a
KH
16862006-08-28 Kenichi Handa <handa@m17n.org>
1687
1688 * coding.c (Fdetect_coding_region, Fdetect_coding_string): Fix
1689 docstring about ISO-2022 control characters.
1690
7b9c9125
KS
16912006-08-28 Kim F. Storm <storm@cua.dk>
1692
1693 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
1694 with a hollow box cursor if image is larger than 32x32 (or the default
1695 frame font if that is bigger). Replace any other cursor on images
1696 with hollow box cursor, as redisplay doesn't support bar and hbar
1697 cursors on images.
1698
eb411049
YM
16992006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1700
1701 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
1702 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
1703
1704 * dired.c (directory_files_internal_unwind, directory_files_internal)
1705 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
1706
1707 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
1708 of OSErr.
1709
1710 * keyboard.c (in_sighandler): Remove variable.
1711 (Fcurrent_idle_time): Add missing `doc:'.
1712 (input_available_signal, init_keyboard): Undo previous change.
1713
1714 * keyboard.h (in_sighandler): Remove extern.
1715
1716 * mac.c (create_apple_event_from_event_ref, select)
1717 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
1718 (Fmac_set_file_type, cfstring_create_normalized)
6cb66a31
JB
1719 (mac_get_system_locale, select_and_poll_event, sys_select):
1720 Use OSStatus instead of OSErr.
eb411049 1721
6cb66a31
JB
1722 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
1723 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
eb411049
YM
1724 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
1725
1726 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
1727 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
1728 (get_scrap_private_timestamp, get_scrap_target_type_list)
1729 (x_own_selection, x_get_foreign_selection)
1730 (Fx_disown_selection_internal, Fx_selection_owner_p)
1731 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
1732
1733 * macterm.c (mac_draw_string_common, mac_query_char_extents)
1734 (x_iconify_frame, XLoadQueryFont, install_window_handler)
1735 (mac_handle_command_event, init_command_handler, init_menu_bar):
1736 Use OSStatus instead of OSErr.
1737 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
1738 FRAME_FILE_NAME.
1739 (x_query_font): Apply 2006-08-04 change for xterm.c.
1740 (Qhi_command): Rename from Qhicommand. All uses changed.
1741
1742 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
1743 file_name.
1744 (FRAME_FILE_NAME): Remove macro.
1745 (install_window_handler, create_apple_event_from_event_ref):
1746 Return OSStatus instead of OSErr.
1747
d489b9c5
KS
17482006-08-26 Kim F. Storm <storm@cua.dk>
1749
1750 * buffer.c (Fset_buffer_multibyte):
1751 * editfns.c (Fcurrent_time, Fget_internal_run_time):
1752 * macfns.c (Fxw_color_values):
1753 * w32fns.c (Fxw_color_values):
1754 * xfns.c (Fxw_color_values): Simplify; use list3.
1755
1756 * fileio.c (Fmake_directory_internal, Fdelete_directory)
1757 (Fdelete_file): Simplify; use list1.
1758 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
1759 Simplify; remove NO_ARG_ARRAY stuff, use list2.
1760
24d8984e
RS
17612006-08-25 Richard Stallman <rms@gnu.org>
1762
1763 * buffer.c (Fswitch_to_buffer): Fix previous change.
1764
16fb6ded
KS
17652006-08-25 Kim F. Storm <storm@cua.dk>
1766
1767 * keyboard.c (Fcurrent_idle_time): Simplify.
1768
3e04a8fc
RS
17692006-08-25 Richard Stallman <rms@gnu.org>
1770
1771 * fns.c (sxhash_string): Rotate properly; don't lose bits.
1772
8d8dafeb
KS
17732006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
1774
1775 * xdisp.c (overline_margin): New variable.
1776 (x_produce_glyphs): Use it.
1777 (syms_of_xdisp): DEFVAR_INT it.
1778
1779 * xterm.c (x_underline_at_descent_line): New variable.
1780 (syms_of_xterm): DEFVAR_BOOL it.
1781 (x_draw_glyph_string): Use it.
1782 Draw underline and overline up to the end of line if the face
1783 extends to the end of line.
1784
1785 * macterm.c: Likewise.
1786
1787 * w32term.c: Likewise.
1788
17892006-08-24 Nick Roberts <nickrob@snap.net.nz>
6410aac9
NR
1790
1791 * buffer.c (Fswitch_to_buffer): Move buffer to front of
1792 buffer-alist if necessary.
1793
6b4d8762
KS
17942006-08-22 Kim F. Storm <storm@cua.dk>
1795
1796 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
1797 number of items changes.
1798
7e1de68d
KS
17992006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
1800
1801 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
1802
f73858ce
JD
18032006-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1804
1805 * keyboard.c: Clarify difference between in_sighandler and
1806 handling_signal.
1807
c58790e6
KS
18082006-08-21 Kim F. Storm <storm@cua.dk>
1809
1810 * macterm.c (x_draw_stretch_glyph_string):
1811 * w32term.c (x_draw_stretch_glyph_string):
1812 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
1813 stretch glyph in left marginal areas on header and mode lines.
1814
748726f4
KH
18152006-08-21 Kenichi Handa <handa@m17n.org>
1816
1817 * keyboard.c (syms_of_keyboard): Docstring of
1818 Vunread_post_input_method_events and Vunread_input_method_events
1819 fixed.
1820
c5b76d6c
CY
18212006-08-20 Chong Yidong <cyd@stupidchicken.com>
1822
1823 * keyboard.c (show_help_echo): Preserve mouse movement flag if
1824 tracking mouse.
1825
ce629713
RS
18262006-08-20 Richard Stallman <rms@gnu.org>
1827
1828 * xfaces.c (load_pixmap): Add quotes in error message.
1829
1830 * keyboard.c (Fcurrent_idle_time): New function.
1831 (syms_of_keyboard): defsubr it.
1832
454e31b3
NR
18332006-08-18 Nick Roberts <nickrob@snap.net.nz>
1834
1835 * window.c (Fset_window_fringes): Do nothing on a tty.
1836 (Fwindow_fringes): Put ? operator after the line break.
1837
dae581bf
AS
18382006-08-16 Andreas Schwab <schwab@suse.de>
1839
1840 * print.c (debug_output_compilation_hack): Fix return type.
1841
3cb74cd1
RS
18422006-08-16 Richard Stallman <rms@gnu.org>
1843
1844 * print.c (debug_output_compilation_hack): New function.
1845
29cbc482
KH
18462006-08-16 Kenichi Handa <handa@m17n.org>
1847
1848 * fileio.c (choose_write_coding_system): Use LF for end-of-line
1849 in auto-saving.
1850
3236e6b8
CY
18512006-08-15 Chong Yidong <cyd@stupidchicken.com>
1852
1853 * keyboard.c (read_char): Don't change idle timer state at all if
1854 end_time is supplied.
1855
8db1f9fa
KH
18562006-08-15 Kenichi Handa <handa@m17n.org>
1857
1858 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
1859 is exhausted, return with RET.
1860 (detect_coding_emacs_mule, detect_coding_iso2022)
1861 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
1862 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
1863 change.
1864
70282fce
CY
18652006-08-14 Chong Yidong <cyd@stupidchicken.com>
1866
1867 * keyboard.c (read_char): Don't reset idle timers if a time limit
1868 is supplied.
1869
9bdc2a5d
KS
18702006-08-14 Kim F. Storm <storm@cua.dk>
1871
1872 * .gdbinit (pitx): Print iterator position.
1873 Limit stack dump in case iterator is not initialized.
1874
e6b8d662
EZ
18752006-08-12 Eli Zaretskii <eliz@gnu.org>
1876
1877 * frame.c (Fmouse_position, Fmouse_pixel_position)
1878 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
1879
0c584069
JD
18802006-08-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1881
1882 * xselect.c (Fx_register_dnd_atom): New function.
1883 (syms_of_xselect): Defsubr it.
9bdc2a5d 1884 (x_handle_dnd_message): Check that message_type is in
0c584069
JD
1885 dpyinfo->x_dnd_atoms before generating lisp event.
1886
1887 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
1888 of drag and drop Atoms.
1889
1890 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
1891
abef1dd7
JD
18922006-08-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1893
1894 * keyboard.c: Define in_sighandler.
1895 (input_available_signal): Set in_sighandler.
1896 (init_keyboard): Initialize in_sighandler.
1897
1898 * keyboard.h: Declare in_sighandler.
1899
1900 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
1901 to check if mutex should be locked or not.
1902
c2028ac6
RS
19032006-08-09 Richard Stallman <rms@gnu.org>
1904
1905 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
1906 (read_key_sequence): Always start fkey.start and fkey.end at 0,
1907 and likewise for keytran.
1908
bb0825cb
KH
19092006-08-09 Kenichi Handa <handa@m17n.org>
1910
1911 * coding.c (syms_of_coding): Improve the docstring
1912 file-coding-system-alist.
1913
61486999
AS
19142006-08-07 Andreas Schwab <schwab@suse.de>
1915
1916 * puresize.h (BASE_PURESIZE): Increase to 1120000.
1917
43ed3b8d
CY
19182006-08-06 Chong Yidong <cyd@stupidchicken.com>
1919
1920 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
1921 (Fkill_all_local_variables): Use it.
1922 (syms_of_buffer): Defvar it.
1923
6b657e42
EZ
19242006-08-05 Eli Zaretskii <eliz@gnu.org>
1925
0a3297f7
EZ
1926 * w32.c (w32_valid_pointer_p): New function.
1927
1928 * w32.h: Add prototype for w32_valid_pointer_p.
1929
1930 * alloc.c: Include w32.h.
1931 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
1932 the job.
1933
6b657e42
EZ
1934 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
1935 is exactly equal to end_time, not only when it is past that.
1936
092869b9
CY
19372006-08-04 Chong Yidong <cyd@stupidchicken.com>
1938
1939 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
1940
1941 * process.c: Reapply 2006-08-01 change.
1942
3046c3f9
EZ
19432006-08-04 Eli Zaretskii <eliz@gnu.org>
1944
1945 * w32fns.c (w32_query_font): Fix last change: use stricmp.
1946
0f2e2a3b
SM
19472006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1948
1949 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
1950 the before-change-functions since they may have altered the buffer.
1951
316a275a
EZ
19522006-08-04 Ralf Angeli <angeli@caeruleus.net>
1953
1954 * w32fns.c (w32_createwindow): Handle -geometry command line option
1955 and the geometry settings in the Registry.
1956
ef8f7cdd
KH
19572006-08-04 Kenichi Handa <handa@m17n.org>
1958
6f64cebf
KH
1959 * w32fns.c (w32_query_font): Compare names by ignoring case.
1960
ef8f7cdd
KH
1961 * xterm.c (x_query_font): Compare names by ignoring case.
1962
f3e0a6de
JR
19632006-08-03 Jason Rumney <jasonr@gnu.org>
1964
1965 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
1966 when no option selected.
1967
d634a670
CY
19682006-08-03 Chong Yidong <cyd@stupidchicken.com>
1969
1970 * process.c: Revert last change.
1971
0885202f
KS
19722006-08-01 Kim F. Storm <storm@cua.dk>
1973
1974 * process.c (wait_reading_process_output_unwind): New function.
1975 Restores waiting_for_user_input_p to saved value.
1976 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
1977 instead of save/restore old value on stack.
1978
0f42ea76
TTN
19792006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
1980
1981 * editfns.c: Undo 2006-06-27 change.
1982
69666f77
EZ
19832006-07-29 Eli Zaretskii <eliz@gnu.org>
1984
cfb37af8
EZ
1985 * coding.c (Ffind_operation_coding_system): Revert the change from
1986 2006-05-29.
1987
69666f77
EZ
1988 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
1989
0de8dcc9
RS
19902006-07-28 Richard Stallman <rms@gnu.org>
1991
0f42ea76 1992 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
0de8dcc9
RS
1993 Add conditional aborts for clarity.
1994
1995 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
1996 Used to avoid running the hooks over and over for each frame.
1997 (prepare_menu_bars): Pass value from update_menu_bar
1998 as HOOKS_RUN of next call.
1999
2000 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
2001
4dbdb9eb
KS
20022006-07-28 Kim F. Storm <storm@cua.dk>
2003
2004 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
2005 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
2006
2f1950bf
CY
20072006-07-26 Chong Yidong <cyd@stupidchicken.com>
2008
2009 * keyboard.c (read_char): New arg END_TIME specifying timeout.
2010 All callers changed. Turn off echoing if END_TIME is non-NULL.
2011 (kbd_buffer_get_event): New arg END_TIME.
2012
2013 * lread.c (read_filtered_event): New arg SECONDS to wait until.
2014 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
2015
2016 * lisp.h: Update read-char, read-event, and read_filtered_event
2017 prototypes.
2018
2019 * keyboard.h: Include systime.h. Update read_char prototype.
2020
55a90501
YM
20212006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2022
2023 * alloc.c (find_string_data_in_pure): New function.
2024 (make_pure_string): Use it to reuse existing string data if possible.
2025
2026 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
2027
2db8f173
SM
20282006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
2029
2030 * keymap.c (Fdefine_key): If the key binding definition looks like an
2031 XEmacs-style key sequence, convert it to Emacs's format.
2032
272f22eb
EZ
20332006-07-22 Ralf Angeli <angeli@caeruleus.net>
2034
2035 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
2036 parameters are bound to some values, use that instead of
2037 CW_USEDEFAULT.
2038
69b72317
EZ
20392006-07-21 Eli Zaretskii <eliz@gnu.org>
2040
2041 * w32.c (convert_time): Use explicit long double constants to
2042 ensure long double arithmetics is used throughout.
2043
14eee502
YM
20442006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2045
2046 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
2047 (init_alloc_once): Initialize them.
2048 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
2049 without alignment.
2050
2051 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
2052
eeeda6f1
KS
20532006-07-18 Francis Litterio <franl@world.std.com>
2054
2055 * w32term.c (x_calc_absolute_position): Fix frame positioning
2056 with negative X/Y coordinates.
2057
2381d38d
DN
20582006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
2059
2060 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
2061
2062 * textprop.c (text_read_only): Likewise.
2063
2064 * lread.c (end_of_file_error): Likewise.
2065
2066 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
2067 Likewise.
2068
2069 * eval.c (unwind_to_catch): Likewise.
2070
2071 * buffer.h (buffer_slot_type_mismatch): Likewise.
2072
5b5fca28
KS
20732006-07-18 Kim F. Storm <storm@cua.dk>
2074
2075 Cleanup Fsignal calls that never returns; now only use it for Qquit.
2076
2077 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
2078 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
2079 (signal_error): New no-return function (from xfaces.c).
2080 (Fthrow): Use xsignal2 instead of Fsignal + abort.
2081 (error): Use xsignal1 instead of Fsignal + abort.
2082 (FletX, Flet, grow_specpdl): Use signal_error.
2083 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
2084
6cb66a31 2085 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
5b5fca28
KS
2086 (list1): New function.
2087
2088 * lisp.h (list1): Add EXFUN.
2089 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
2090 Add prototypes. Mark them as no-return.
2091
2092 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
2093 Use xsignal1.
2094
2095 * callint.c (check_mark): Use xsignal0.
2096
2097 * casefiddle.c (casify_object): wrong_type_argument is no-return.
2098
2099 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
2100
2101 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
2102 (Fdefine_coding_system_internal): Use xsignal1.
2103
2104 * data.c (circular_list_error): Use xsignal.
2105 (wrong_type_argument): Use xsignal2. Don't care about return value.
2106 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
2107 Remove loop around Fsignal.
2108 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
2109 (indirect_function, Findirect_function, Fstring_to_number)
2110 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
2111 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
2112 Use xsignal0.
2113
2114 * doc.c (Fdocumentation): Use xsignal1.
2115
2116 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
2117
2118 * fileio.c (report_file_error): Use xsignal.
2119 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
2120 (Finsert_file_contents): Use xsignal2.
2121 (syms_of_fileio): Use list2, list3.
2122
2123 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
2124 (range_error2, domain_error2): Use xsignal3.
2125 (rounding_driver, fmod_float): Use xsignal0.
2126 (float_error): Use xsignal1.
2127 (matherr): Use xsignal.
2128
2129 * fns.c (Flength): wrong_type_argument is no-return.
2130 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
2131 (Fmd5): Use xsignal1.
2132
2133 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
2134
2135 * keyboard.c (recursive_edit_1): Use xsignal1.
2136
2137 * keymap.c (Fmap_keymap): Use xsignal1.
2138
2139 * lread.c (Fload): Use xsignal2, signal_error.
2140 (end_of_file_error): Use xsignal0, xsignal1.
2141 (read0): Use xsignal1.
2142 (invalid_syntax): New error function marked no-return.
2143 (read_integer, read1, read_list): Use it.
2144
2145 * macselect.c (x_get_local_selection): Use signal_error.
2146
2147 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
2148
2149 * search.c (compile_pattern_1): Use xsignal1.
2150 (signal_failure): Remove (was only called once).
2151 (search_command): Use xsignal1 instead of signal_failure.
2152
2153 * syntax.c (scan_lists): Use xsignal3.
2154
2155 * textprop.c (text_read_only): Use xsignal0, xsignal1.
2156
2157 * unexsol.c (unexec): Use xsignal.
2158
2159 * window.c (window_scroll_pixel_based, window_scroll_line_based):
2160 Use xsignal0.
2161
2162 * xfaces.c (signal_error): Move to eval.c.
2163 (resolve_face_name): Use xsignal1.
2164
2165 * xfns.c (x_decode_color): Use signal_error.
2166
2167 * xselect.c (x_get_local_selection, copy_multiple_data)
2168 (x_get_window_property_as_lisp_data)
2169 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
2170 (Fx_get_cut_buffer_internal): Use signal_error.
2171
d3f31bc5
YM
21722006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2173
2174 * macterm.c (XTread_socket): Undo previous change.
2175
1e53bd0e
YM
21762006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2177
2178 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
2179 directly lookup keycode_to_xkeysym_table.
2180 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
2181 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
2182 (XTread_socket): Use character codes to construct keypad key events.
2183 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
2184 (x_delete_display): Apply 2006-07-04 change for xterm.c.
2185
0de8dcc9
RS
21862006-07-17 Richard Stallman <rms@gnu.org>
2187
2188 * keyboard.c (Vcommand_error_function): New variable.
2189 (syms_of_keyboard): Defvar it.
2190 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
2191
2192 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
2193
55dc982c
KS
21942006-07-17 Kim F. Storm <storm@cua.dk>
2195
2196 * xdisp.c (handle_single_display_spec): Ensure the right value of
2197 it->position is saved by push_it.
2198 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
2199 (reseat_1): Don't setup it->object twice.
2200 (set_iterator_to_next): No need to set it->object after pop_it.
2201 (move_it_to): Explicitly check to see if last move reached to_charpos.
2202
ce7d5efe
TTN
22032006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
2204
2205 * xdisp.c (display_mode_line): Preserve match data.
2206
d753d9b7
KS
22072006-07-14 Kim F. Storm <storm@cua.dk>
2208
2209 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
2210 (init_winsock): Load them. Use ws2_32.dll.
2211 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
2212 (sys_accept): Undo last change. Instead, set child status to
2213 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
2214 sys_select will wakeup the reader thread.
2215 (_sys_wait_accept): New function used by reader thread to wait for
2216 an incoming connection on a server socket.
2217
2218 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
2219
2220 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
2221 server socket (FILE_LISTEN flag).
2222
dcc88121
JD
22232006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2224
2225 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
2226
8a8476f9
KS
22272006-07-14 Kim F. Storm <storm@cua.dk>
2228
2229 * w32.c: Fix high cpu load for server sockets.
2230 (pfn_WSAEventSelect): New function ptr.
2231 (init_winsock): Load it.
2232 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
2233 char_avail event object to FD_ACCEPT.
2234 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
2235 socket's char_avail event object to FD_READ|FD_CLOSE.
2236
2237 * w32.h (FILE_LISTEN): New filedesc flag value.
2238
f3500bbe
KS
22392006-07-13 Kim F. Storm <storm@cua.dk>
2240
2241 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
2242 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
2243 Simplify loops and use CAR for Bnth and Belt.
2244
2245 * data.c (Findirect_function): Optimize for no indirection.
2246
2247 * eval.c (Fthrow): Remove loop around Fsignal.
2248 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
2249 Use original function name in all signaled errors.
2250 Simplify Fsignal calls (no return).
2251 (funcall_lambda): Simplify Fsignal calls (no return).
2252
60c86a83
AS
22532006-07-13 Andreas Schwab <schwab@suse.de>
2254
2255 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
2256 out_charpos.
2257
d40ec4a0
KH
22582006-07-13 Kenichi Handa <handa@m17n.org>
2259
2260 * editfns.c (Fformat): Fix calculation of text property positions
2261 of format string.
2262
b8a6aaa7
KS
22632006-07-12 Kim F. Storm <storm@cua.dk>
2264
2265 * lisp.h (CHECK_TYPE): New macro for generic type checking.
2266 (CAR_SAFE, CDR_SAFE): New macros.
2267 (ARRAYP, CHECK_ARRAY): New macros.
2268 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
2269 (CHECK_WINDOW_CONFIGURATION): New macro.
2270 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
2271 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2272 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
2273 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
2274 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
2275 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
2276 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2277 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
2278
2279 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
2280 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
2281
2282 * callint.c (Fcall_interactively):
2283 * casefiddle.c (casify_object):
2284 * editfns.c (general_insert_function):
2285 * fns.c (Flength, Felt, Ffillarray):
2286 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
2287
2288 * data.c (wrong_type_argument): Remove loop around Fsignal.
2289 (Farrayp, Fsequencep): Use ARRAYP.
2290 (Fcar): Use CAR.
2291 (Fcar_safe): Use CAR_SAFE.
2292 (Fcdr): Use CDR.
2293 (Fcdr_safe): Use CDR_SAFE.
2294 (Fsetcar, Fsetcdr): Use CHECK_CONS.
2295 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
2296 (Faset): Use CHECK_ARRAY.
2297
2298 * fns.c (Felt): Use CHECK_ARRAY.
2299 (concat): Use CHECK_NUMBER.
2300 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
2301 (Fmemq): Use CHECK_LIST.
2302 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
2303 (assq_no_quit): Use CAR_SAFE.
2304 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
2305 Use CHECK_LIST_CONS.
2306 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
2307
2308 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
2309
2310 * casetab.c (check_case_table):
2311 * category.c (check_category_table):
2312 * marker.c (Fcopy_marker):
2313 * syntax.c (check_syntax_table):
2314 * xfaces.c (load_pixmap): Use CHECK_TYPE.
2315
2316 * fns.c (Fcopy_sequence, concat):
2317 * fringe.c (Fdefine_fringe_bitmap):
2318 * lread.c (check_obarray): Cleanup wrong_type_argument use.
2319
e55deb0b
KS
2320 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
2321
b8a6aaa7
KS
2322 * keymap.c (Fdefine_key, Flookup_key):
2323 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
2324
2325 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
2326
2327 * search.c (Fset_match_data): Use CHECK_LIST.
2328
2329 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
2330
2331 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
2332 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
2333
099d4201
YM
23342006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2335
2336 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
2337
2338 * dired.c: Include blockinput.h.
2339 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
2340
2341 * editfns.c: Include blockinput.h.
2342 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
2343 getpwuid/getpwnam.
2344
2345 * fileio.c: Include blockinput.h.
2346 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
2347 around getpwnam.
2348 (search_embedded_absfilename): Remove spurious xfree.
2349
2e42ee7b
KS
23502006-07-11 Kim F. Storm <storm@cua.dk>
2351
2352 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
2353 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
2354 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
8e09f23f 2355 Signal error if TIMEOUT is not a number.
2e42ee7b
KS
2356 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
2357 The rework of sit_for args also fixes several incorrect Qt args
2358 which should have been 1.
2359 (Fredisplay): Pass 1 instead of Qt to swallow_events and
2360 detect_input_pending_run_timers.
2361
2362 * lisp.h (sit_for): Update prototype.
2363 (Fredisplay): Add EXFUN.
2364
2365 * dispextern.h (sit_for): Remove prototype.
2366
2367 * callint.c (Fcall_interactively):
2368 * minibuf.c (temp_echo_area_glyphs):
2369 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
2370 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
2371
a0aa7fcf
SM
23722006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
2373
2374 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
2375
ff97f952
KS
23762006-07-11 Kim F. Storm <storm@cua.dk>
2377
68ade564 2378 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
ff97f952
KS
2379 input is available. Fix test for redisplay_dont_pause non-nil.
2380 Specbind redisplay-dont-pause to t if FORCE non-nil.
2381
7ba07a1a
CY
23822006-07-10 Chong Yidong <cyd@stupidchicken.com>
2383
2384 * puresize.h (BASE_PURESIZE): Increment to 1211000.
2385
2386 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
2387 (Fsit_for): Function deleted.
2388
a0aa7fcf
SM
2389 * keyboard.c (command_loop_1, Fexecute_extended_command):
2390 Call sit_for instead of Fsit_for.
7ba07a1a
CY
2391
2392 * minibuf.c (temp_echo_area_glyphs): Likewise.
2393
2312c580
SM
23942006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
2395
2396 * syntax.c (Fforward_comment): Revert the reversion.
932e6895 2397 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
2312c580 2398
bf88ca63
JPW
23992006-07-09 John Paul Wallington <jpw@pobox.com>
2400
2401 * syntax.c (Fforward_comment): Revert previous change.
2402
08b17d37
KS
24032006-07-09 Kim F. Storm <storm@cua.dk>
2404
2405 * window.c (Fforce_window_update): Doc fix.
2406
26816cbf
SG
24072006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
2408
2409 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
2410 directory unreadable for better user privacy.
2411
4332cf50
SM
24122006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
2413
dd9f0dcd
SM
2414 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
2415
4332cf50
SM
2416 * lread.c (read_filtered_event): Remove `register' qualifier because it
2417 causes compilation problem with gcc-4.0.2-20051125 on amd64.
91fe9496
SM
2418 (readevalloop): Remove unused var `bpos'.
2419 Yet another int/Lisp_Object mixup (YAILOM).
4332cf50 2420
dfb4bff5
EZ
24212006-07-07 Eli Zaretskii <eliz@gnu.org>
2422
2423 * keyboard.c (Fexecute_extended_command): Mention the argument
2424 PREFIXARG in the doc string.
2425
efaed3b0
KS
24262006-07-07 Kim F. Storm <storm@cua.dk>
2427
2428 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2429
e2e6e4d2
CY
24302006-07-05 Chong Yidong <cyd@stupidchicken.com>
2431
234fb773
CY
2432 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
2433 clash detection using the base buffer.
2434
e2e6e4d2
CY
2435 * puresize.h (BASE_PURESIZE): Increment to 1210500.
2436
e128be55
KS
24372006-07-04 Kim F. Storm <storm@cua.dk>
2438
2439 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
2440
2462bc66
KH
24412006-07-04 Kenichi Handa <handa@m17n.org>
2442
2443 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
2444 to update Voverriding_fontspec_alist.
2445
9ca24617
RS
24462006-07-03 Richard Stallman <rms@gnu.org>
2447
2448 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
2449
2450 * xfaces.c (Fface_attribute_relative_p): Doc fix.
2451
2452 * textprop.c (Fget_char_property_and_overlay): Doc fix.
2453
2454 * eval.c (Fdefvaralias): Doc fix.
2455
d8ab3c6d
KS
24562006-07-03 Kim F. Storm <storm@cua.dk>
2457
2458 * dispnew.c (sit_for): Fix preempt condition.
2459
ca77ee45
SM
24602006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
2461
2462 * lread.c (read_filtered_event): Treat select-window just like
2463 switch-frame.
2464
8cb72de5
KS
24652006-07-02 Kim F. Storm <storm@cua.dk>
2466
2467 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
2468 to ever fit the tool-bar,
2469 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
2470 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
2471 (redisplay_tool_bar): Only clear desired matrix if we actually
2472 change the tool-bar window height. Only try to make the tool-bar
2473 window bigger if there is actually room for it.
2474
6407e67c
EZ
24752006-06-30 Ralf Angeli <angeli@caeruleus.net>
2476
2477 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
2478 SPI_GETWORKAREA to find the dimensions of the screen work area,
2479 and adjust vertical position of the frame in order to avoid being
2480 covered by the task bar.
2481
2482 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
2483 f->left_pos and SH_SHOW instead of f->top_pos in the call to
2484 CreateWindow. Record the actual position in f->left_pos and
2485 f->top_pos.
2486
639804b3
JPW
24872006-06-30 John Paul Wallington <jpw@pobox.com>
2488
2489 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
2490 Doc fix - default value has changed.
2491
3ff05183
YM
24922006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2493
2494 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
2495
2496 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
2497
2498 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
2499
2500 * macterm.c (Qeql): Add extern.
2501 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
2502 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
2503 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
2504 Change keys of Vmac_atsu_font_table from strings to numbers.
2505 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
2506 (init_font_name_table) [USE_ATSUI]: Use it.
2507 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
2508 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
2509 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
2510 only when saved_ts_script_language_on_focus coincides with
2511 Vmac_ts_script_language_on_focus.
2512 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
2513 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
2514 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
2515 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
2516
df8ffa05
CY
25172006-06-27 Chong Yidong <cyd@stupidchicken.com>
2518
2519 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
2520 (Ffield_string_no_properties, Ffield_end): Mention
2521 args-out-of-range error condition in docstring.
2522
04405ad9
KS
25232006-06-27 Kim F. Storm <storm@cua.dk>
2524
2525 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
2526
f8e83735
KS
25272006-06-25 Kim F. Storm <storm@cua.dk>
2528
2529 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
2530 version 2.4 and later.
2531
86b2ba0d
CY
25322006-06-24 Chong Yidong <cyd@stupidchicken.com>
2533
2534 * xfns.c (Fx_create_frame): Set font parameter directly instead of
2535 using x_default_parameter, since x_get_args clears the parm alist.
2536
eff6bfea
EZ
25372006-06-24 Eli Zaretskii <eliz@gnu.org>
2538
2539 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
2540 case-insensitively.
2541
d9034473
EZ
25422006-06-24 Aidan Kehoe <kehoea@parhasard.net>
2543
2544 * lread.c (read_escape): When an unknown Unicode code point is
2545 encountered as a string or character escape, signal an error.
2546
8800bd5c
KS
25472006-06-23 Kim F. Storm <storm@cua.dk>
2548
31005921
KS
2549 * .gdbinit (pitx): Dump iterator stack.
2550
8800bd5c
KS
2551 * xdisp.c (handle_composition_prop): Push iterator on stack.
2552 (set_iterator_to_next): Pop iterator at end of composition.
2553
28fa06ea
EZ
25542006-06-23 Martin Rudalics <rudalics@gmx.at>
2555
2556 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
2557 itself on DOS_NT platforms, if the old and new names are identical
2558 but for the letter-case.
2559
43a37241
KS
25602006-06-21 Kim F. Storm <storm@cua.dk>
2561
2562 * dispextern.h (struct it): Add `position' member to iterator stack.
2563 Rename `pos' member to `current'. Rearrange and add comments.
2564
2565 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
2566 if we get any overlays.
2567 (set_cursor_from_row): Don't clobber `end' if we rescan from
2568 start_string.
2569 (push_it, pop_it): Save it->position.
2570
a5bd14d3
RS
25712006-06-19 Richard Stallman <rms@gnu.org>
2572
2573 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
2574 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
2575 for the case of a top-level window and the following minibuffer.
2576 Don't exit because of no `next' when there is a parent.
2577 Use the FIRST_ONLY feature when resizing following windows.
eb85ecac 2578
a5bd14d3
RS
2579 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
2580
a3efc408
KS
25812006-06-17 Kim F. Storm <storm@cua.dk>
2582
2583 * dispnew.c (update_frame): Check for input pending on entry.
2584 (update_window, update_frame_1): Break loop if input is detected.
2585
d692a3d5
JD
25862006-06-16 Francis Litterio <flitterio@gmail.com>
2587
2588 * xterm.c (x_check_expected_move, handle_one_xevent)
2589 (x_set_offset, x_check_fullscreen): Extensive changes to make
2590 frame positioning deterministic under X.
2591
b70e1a2b 2592 * xterm.h (x_output): Add members left_before_move and
d692a3d5
JD
2593 top_before_move. Removed members expected_left and expected_top.
2594
df05d913
KS
25952006-06-16 Kim F. Storm <storm@cua.dk>
2596
626c7c71
KS
2597 * dispextern.h (struct it): Add union to iterator stack to save
2598 image, composition, and stretch specific paramters.
2599
2600 * xdisp.c (next_overlay_string): Fix assert.
2601 (push_it, pop_it): Handle composition and stretch specific values.
2602 Only handle it->slice in image (for now).
2603 (back_to_previous_visible_line_start): Continue search if newline is
2604 part of a compisition. Simplify.
2605 (reseat_1): Set it->object to buffer.
2606 (set_iterator_to_next): Set it->object to string or buffer, when
2607 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
2608 (next_element_from_composition): Set it->object to buffer if not
2609 from string.
2610 (set_cursor_from_row): Only save start of string if not already
2611 done to handle multiple strings in a row.
2612
df05d913
KS
2613 * .gdbinit (pitx): Show composition parameters.
2614 (pgx, pg): New commands to print a glyph structure.
2615 (pgi, pgn): New commands to print specific/next glyph.
2616 (pgrowx, pgrow): New commands to print all glyphs in a row.
2617
aa2f234a
YM
26182006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2619
2620 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
2621 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
2622
2623 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
2624 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
2625 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
2626 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
2627 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2628 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
2629 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
2630 Services functions to get size of main display in pixels.
2631
633e63ca
CY
26322006-06-14 Chong Yidong <cyd@stupidchicken.com>
2633
d0f891a7
SM
2634 * xdisp.c (back_to_previous_visible_line_start):
2635 Reset it->continuation_lines_width.
633e63ca 2636
cac9d766
RS
26372006-06-14 Richard Stallman <rms@gnu.org>
2638
2639 * eval.c (Fdefconst): Mark variable as risky.
2640
2641 * callproc.c (Fcall_process): Doc fix.
2642
2643 * window.c (adjust_window_trailing_edge): Don't break out of the loop
2644 because there's no next window, if there are parallel windows.
2645 Do break out when WINDOW is nil.
df05d913 2646
bae1ed29
KS
26472006-06-14 Kim F. Storm <storm@cua.dk>
2648
1bb32610
KS
2649 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
2650 iterator stack (instead of hardcoded number). Increase from 2 to
2651 4 to make room for propertized overlay strings before and after a
2652 display string, image or composition.
2653 (struct it): Add image_id and method members to iterator stack.
2654
2655 * xdisp.c (init_from_display_pos): Don't set it->method and
2656 overlay_string_index after pop_it. Add asserts.
2657 (handle_stop): Look for overlay strings around a display string,
2658 image, or composition. Handle properties on those strings.
2659 (next_overlay_string): Don't set string, pos or method after pop_it.
2660 (get_overlay_strings_1): Split from get_overlay_strings; don't
2661 modify it if no overlay strings are found.
2662 (get_overlay_strings): Use get_overlay_strings_1. Always set
2663 it->string and it->method.
2664 (push_it): Push it->image_id and it->method. Push it->object
2665 instead of it->string if method is GET_FROM_IMAGE.
2666 (pop_it): Pop it->image_id and it->method. Ppo it->object
2667 instead of it->string if method is GET_FROM_IMAGE.
2668 Reset it->current.string_pos if popped it->string is nil.
2669 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
2670 whether a given change was correct; but the change is correct.
2671 Clear it->string_from_display_prop_p.
2672 (set_iterator_to_next): Rely on it->method and it->image_id from
2673 iterator stack, instead of setting them explicitly after pop_it.
2674
bae1ed29
KS
2675 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
2676 negative time forces redisplay even when input is available.
2677 (Fsit_for): Doc fix.
2678
8eb2b87f
KS
26792006-06-13 Kim F. Storm <storm@cua.dk>
2680
2681 * dispnew.c: Modify preemptive redisplay to be based on periodic
2682 checks for input.
2683 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
2684 (Vredisplay_preemption_period): New variable.
2685 (syms_of_display): DEFVAR_LISP and initialize it.
2686 (preemption_period, preemption_next_check): New variables.
2687 (update_frame, update_single_window): Initialize them based on
2688 Vredisplay_preemption_period if !force_p.
2689 (update_window, update_frame_1): Use them to determine when to
2690 check for input.
2691
7cb93181
EZ
26922006-06-03 Aidan Kehoe <kehoea@parhasard.net>
2693
2694 * lread.c (read_escape): Provide a Unicode character escape
2695 syntax; \u followed by exactly four or \U followed by exactly
2696 eight hex digits in a comment or string is read as a Unicode
2697 character with that code point.
2698
cf402f3f
EZ
26992006-06-09 Eli Zaretskii <eliz@gnu.org>
2700
2701 * window.c (window_scroll_pixel_based): Signal "Beginning of
2702 buffer" when scroll-down at the beginning of an empty buffer.
2703
67b5f809
YM
27042006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2705
d0f891a7
SM
2706 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
2707 Exclude 0x7f from ASCII range.
67b5f809 2708
94856834
JR
27092006-06-05 Jason Rumney <jasonr@gnu.org>
2710
2711 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
2712 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
2713 (x_scroll_bar_report_motion): Remove workarounds for
2714 versions of Windows NT < 3.51.
2715 [!SIF_ALL]: Remove.
2716 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
2717 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
2718
d495ccfc
DK
27192006-06-04 David Kastrup <dak@gnu.org>
2720
2721 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
2722 `sit-for'.
2723
fabcf455
YM
27242006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2725
2726 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
2727
2728 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
2729
2730 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
2731 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
2732 [USE_MAC_TSM]: Likewise.
2733 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
2734 (Qbefore_string) [USE_MAC_TSM]: Add extern.
2735 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
2736 ActivateTSMDocument/DeactivateTSMDocument.
2737 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
2738 (mac_handle_window_event) [USE_MAC_TSM]: Handle
2739 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
2740 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
2741 (install_window_handler) [USE_MAC_TSM]: Install it. Register
2742 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
2743 (keycode_to_xkeysym_table): Add entry for f16.
2744 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
2745 before/after passing keystroke event to toolbox dispatcher.
2746 (init_tsm) [USE_MAC_TSM]: New function.
2747 (mac_initialize) [USE_MAC_TSM]: Call it.
2748 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
2749
2750 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
2751
4985dde2
JPW
27522006-06-02 John Paul Wallington <jpw@gnu.org>
2753
2754 * xfns.c (x_set_name_internal): Set icon to `text', derived from
2755 name, when frame's icon_name isn't a string rather than only when
2756 it is nil.
2757
3f65d6f5
EZ
27582006-06-03 Eli Zaretskii <eliz@gnu.org>
2759
2760 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
2761 and not nil.
2762
56f41f98
CY
27632006-06-02 Chong Yidong <cyd@stupidchicken.com>
2764
2765 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
2766 string.
2767
70a4cae4
YM
27682006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2769
2770 * xdisp.c (next_element_from_composition): Set it->object to
2771 it->string if composition is coming from string.
2772 (set_cursor_from_row): Don't return 0 unless row displays a
2773 continued line.
2774 (dump_glyph): Dump composite glyph.
06c7827a 2775
8b2b00f5
JD
27762006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2777
2778 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
2779
963128f3
RS
27802006-06-01 Richard Stallman <rms@gnu.org>
2781
2782 * window.c (Fsplit_window): Doc fix.
2783
24a71bb1
KS
27842006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
2785
2786 * process.c (deleted_pid_list): New variable to store the pids
2787 of deleted processes. Declare it only if SIGCHLD is defined.
2788 (init_process): Initialize it.
2789 (syms_of_process): Staticpro it.
2790 (Fdelete_process): Add pid of the deleted process to it. Check after
2791 the addition and before the kill if the process is already stopped,
2792 in which case it is deleted from the list and not killed.
2793 (sigchld_handler): Define it only if SIGCHLD is. Search the process
2794 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
2795 Original idea by Stefan Monnier.
2796
a71a7704
KS
27972006-06-01 Kim F. Storm <storm@cua.dk>
2798
2799 * dispnew.c (sit_for): Perform redisplay even if input is pending
2800 when redisplay-dont-pause is non-nil.
2801
36f0107c
YM
28022006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2803
2804 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
2805 (XTread_socket): Remove obsolete comment.
2806
2e92a7cb
JD
28072006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2808
2809 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
2810 menu-bar-open.
2811
c9467aaa
JD
28122006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2813
2814 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
2815 menu-bar-open.
2816
2817 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
2818
82db8fa7
JL
28192006-05-31 Juri Linkov <juri@jurta.org>
2820
2821 * minibuf.c (Vhistory_add_new_input): New variable.
2822 (read_minibuf): Use it.
2823 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
2824 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
2825
360fecca
KS
28262006-05-31 Kim F. Storm <storm@cua.dk>
2827
2828 * process.c (select_wrapper): Add wrapper around select to work around
2829 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
2830 select called from wait_reading_process_output.
2831
303e108c
AS
28322006-05-30 Andreas Schwab <schwab@suse.de>
2833
2834 * xmenu.c (Fmenu_bar_start): Return a value.
2835
d9e8091d
RS
28362006-05-30 Richard Stallman <rms@gnu.org>
2837
2838 * coding.c (Ffind_operation_coding_system): Doc fix.
2839
7c42b3e0
EZ
28402006-05-30 Eli Zaretskii <eliz@gnu.org>
2841
2842 * w32term.c (x_draw_hollow_cursor): Fix last change.
2843
73af0716
KS
28442006-05-29 Kim F. Storm <storm@cua.dk>
2845
2846 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
2847
28482006-05-29 Eli Zaretskii <eliz@gnu.org>
a952cebe
EZ
2849
2850 * coding.c (Ffind_operation_coding_system): Doc fix.
2851
ffd71266
YM
28522006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2853
2854 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
2855 Call mac_set_font_info_for_selection if font panel is made visible.
2856
2857 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
2858 (mac_font_panel_visible_p, mac_show_hide_font_panel)
2859 [USE_MAC_FONT_PANEL]: New functions.
2860 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
2861 immediately if font panel is not visible.
2862
2863 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
2864 Add externs.
2865
01d09305
DN
28662006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
2867
2868 * search.c (matcher_overflow): Mark as NO_RETURN.
2869
2870 * xterm.c (x_connection_closed): Likewise.
2871
2872 * sysdep.c (croak): Likewise.
2873
2874 * sound.c (sound_perror, alsa_sound_perror): Likewise.
2875
2876 * lisp.h (die, nsberror): Likewise.
2877
c1c032a3
JD
28782006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2879
3fc7a865
JD
2880 * sound.c (alsa_open, alsa_configure, alsa_write): Move
2881 assignment to err out of if-statement.
2882
c1c032a3
JD
2883 * gtkutil.c (menu_nav_ended): New function.
2884 (create_menus): Connect menu_nav_ended to "selection-done" to fix
2885 grabs.
2886
2887 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
2888
345b3483
DN
28892006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
2890
2891 * charset.h (invalid_character): Mark as NO_RETURN.
2892
7311509e
KH
28932006-05-29 Kenichi Handa <handa@m17n.org>
2894
2895 * coding.c (Ffind_operation_coding_system): Call a function by
2896 safe_call1 instead of call1.
2897
6ad0381c
SM
28982006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2899
2900 * window.c (struct saved_window): Add `dedicated'.
2901 (Fset_window_configuration, save_window_save): Save/restore the
2902 `dedicated' flag.
2903
794033ae
KS
29042006-05-28 Kim F. Storm <storm@cua.dk>
2905
2906 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
2907 don't update w->cursor and return 0. Return 1 on success.
2908 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
2909 until it succeeds.
2910
2911 * dispextern.h (set_cursor_from_row): Update prototype.
2912
26837cd3
KS
29132006-05-28 Kim F. Storm <storm@cua.dk>
2914
2915 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
2916 parameters. Adjust x and width in case cursor in on a partially
2917 visible stretch glyph on the left edge.
2918 (erase_phys_cursor): Don't erase into left fringe/margin in case
2919 previous cursor glyph is a partially visible stretch glyph on left.
2920
2921 * dispextern.h (get_phys_cursor_geometry): Update prototype.
2922
2923 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
2924 cursor and erasing cursor on partially visible stretch glyph on left.
2925 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
2926
2927 * macterm.c: Likewise.
2928
2929 * w32term.c: Likewise.
2930
412f3f18
YM
29312006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2932
6ad0381c
SM
2933 * macselect.c (mac_handle_apple_event):
2934 Return errAEEventNotHandled if key binding is not found.
412f3f18 2935
0f7078f0
EZ
29362006-05-26 Eli Zaretskii <eliz@gnu.org>
2937
2938 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
2939 [__MINGW32__]: MinGW-specific declaration of `etext'.
2940
2941 * w32heap.c (etext, edata): Remove unused definitions.
2942
795c20df
CY
29432006-05-26 Chong Yidong <cyd@stupidchicken.com>
2944
6ad0381c
SM
2945 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
2946 Incorporate the exclusive file-opening functionality into the behavior
2947 when OK-IF-ALREADY-EXISTS is nil.
795c20df
CY
2948 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
2949
07a7837c
JD
29502006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2951
2952 * sound.c (alsa_configure): Move get period/buffer_size after
2953 setting hwparams.
2954
f1c582b4
KH
29552006-05-26 Kenichi Handa <handa@m17n.org>
2956
2957 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
2958 . BUFFER) in TARGET.
2959
3165e450
CY
29602006-05-25 Chong Yidong <cyd@stupidchicken.com>
2961
2962 * image.c (png_load): Don't call fclose on NULL.
2963
d579f53b
LT
29642006-05-25 Luc Teirlinck <teirllm@auburn.edu>
2965
2966 * fns.c (Fyes_or_no_p):
2967 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
2968 only seven args.
2969
abeb5483
JL
29702006-05-25 Juri Linkov <juri@jurta.org>
2971
2972 * lisp.h (Fread_from_minibuffer): Decrement number of args.
2973
2974 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
2975 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
2976
2977 * buffer.c (mode-line-format): Fix docstring.
2978
403a7bca
RS
29792006-05-25 Richard Stallman <rms@gnu.org>
2980
2981 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
2982
24b0232f
LT
29832006-05-24 Luc Teirlinck <teirllm@auburn.edu>
2984
2985 * puresize.h (BASE_PURESIZE): Increase to 1210000.
2986
ac9f37df
AM
29872006-05-24 Alan Mackenzie <acm@muc.de>
2988
2989 * lread.c (Vload_history): Enhance doc-string to say that the file
2990 is the absolute truename of the loaded file.
2991
2992 * lread.c (Vafter_load_alist): doc-string: state that an element
2993 now has a regexp to match file names, not a file name as such.
2994
2995 * lread.c (readevalloop): Call file-truename on the name for
2996 load-history, except at preloading time.
2997
2998 * lread.c (Fload): At preloading time, preserve the extension of
6ad0381c 2999 the filename which goes into load-history. New var hist_file_name.
ac9f37df
AM
3000
3001 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
3002 function do-after-load-evaluation.
3003
e4dff88d
YM
30042006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3005
3006 * mac.c (ae_attr_table): New variable.
3007 (syms_of_mac): Intern and staticpro its elements.
3008 (mac_aelist_to_lisp): Also convert Apple event attributes.
3009 (mac_ae_put_lisp): New function.
3010 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
3011
3012 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
3013
3014 * macselect.c (Qemacs_suspension_id): New variable.
3015 (syms_of_macselect): Intern and staticpro it.
3016 (struct suspended_ae_info): New struct.
3017 (deferred_apple_events, defer_apple_events)
3018 (Fmac_process_deferred_apple_events): Use it.
3019 (suspended_apple_events): New variable.
3020 (mac_handle_apple_event_1): New function.
3021 (mac_handle_apple_event): Use it. Don't process previously
3022 suspended events.
412f3f18 3023 (cleanup_suspended_apple_events, get_suspension_id)
e4dff88d
YM
3024 (cleanup_all_suspended_apple_events): New functions.
3025 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
3026 at exit.
3027 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
3028 (Fmac_resume_apple_event): New defuns.
3029 (syms_of_macselect): Defsubr them.
3030
3031 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
3032 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
3033
3034 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
3035 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
3036 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
3037 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
3038 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
3039 Likewise.
3040 (typeUTF8Text, kEventParamWindowMouseLocation)
3041 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
3042 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
3043
b8c6940e
YM
30442006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3045
3046 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
3047 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
3048 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
3049 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
3050 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
3051 resource to backtranslate key with modifiers.
3052 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
3053
0277e36c
JD
30542006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3055
3056 * xterm.c: Remove declarations already in xterm.h
3057
3058 * xterm.h: Add extern declarations for x_clear_errors,
26837cd3 3059 x_fully_uncatch_errors, x_catching_errors and
0277e36c
JD
3060 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
3061
63af6055
RS
30622006-05-21 Richard Stallman <rms@gnu.org>
3063
55815819
RS
3064 * xfaces.c (best_matching_font): Abort for best == NULL
3065 before we start to use it.
3066
63af6055
RS
3067 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
3068
5748161e
KS
30692006-05-20 Kim F. Storm <storm@cua.dk>
3070
3071 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
3072
431225c6
YM
30732006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3074
3075 * macterm.c (convert_fn_keycode): Fix last change.
3076
e00b99c8
EZ
30772006-05-19 Eli Zaretskii <eliz@gnu.org>
3078
3079 * w32.c (init_environment): Perform the processing of environment
3080 variables on a copy of default variables and their values, not on
75e3b957
EZ
3081 the original. Simplify code that calls ExpandEnvironmentStrings
3082 and make buf1[] and buf2[] more visible for easier debugging.
e00b99c8 3083
689840b9
YM
30842006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3085
3086 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
3087
3088 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
3089
3090 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
3091
3092 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
3093 Forward keyUp events to toolbox_dispatcher.
3094
3095 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
3096
a940e2c6
JD
30972006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3098
3099 * config.in: Regenerated (HAVE_ALSA).
3100
3101 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
3102 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
3103 (snd_error_quiet, alsa_init): New functions.
3104 (vox_init): Return 0 if unable to open device.
3105 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
3106 a fallback.
3107 (struct sound_device): Add period_size.
3108 (wav_play, au_play): Use period_size if set.
3109
14a56a1b
JB
3110 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
3111 (ALL_CFLAGS): Add CFLAGS_SOUND.
a940e2c6 3112
8acb7dad
KH
31132006-05-18 Kenichi Handa <handa@m17n.org>
3114
3115 * callproc.c (Fcall_process): Reject encoding arguments by
3116 ascii-incompatible coding systems (e.g. utf-16).
3117
3118 * coding.c (Qascii_incompatible): New variable.
3119 (syms_of_coding): Setup Qascii_incompatible.
3120 (setup_coding_system): Be sure to initialize coding->common_flags.
3121 Check `ascii-incompatible' property of the coding system.
3122
3123 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
3124
f5ecbcee
KS
31252006-05-18 Kim F. Storm <storm@cua.dk>
3126
647b07d1
AS
3127 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
3128 geometry when backtracking in case last image doesn't fit on line.
f5ecbcee 3129
856bb2b0 31302006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
f5ecbcee 3131
647b07d1
AS
3132 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
3133 more than height of one frame default line.
f5ecbcee 3134
5748161e
KS
31352006-05-17 Richard Stallman <rms@gnu.org>
3136
3137 * xfaces.c (better_font_p): Any font beats no font.
3138 (best_matching_font): Simplify based on above change.
26837cd3 3139
6f5c4cc9 3140 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
5748161e 3141
b3abe3a5
KS
31422006-05-16 Kim F. Storm <storm@cua.dk>
3143
3144 * xterm.c (handle_one_xevent): Check that f is not NULL before
3145 calling x_kill_gs_process.
3146
46a2df8e
RS
31472006-05-14 Richard Stallman <rms@gnu.org>
3148
3149 * textprop.c (Fnext_single_char_property_change)
3150 (Fprevious_single_char_property_change): Don't allow returning
3151 value beyond LIMIT in any cases.
3152 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
b3abe3a5 3153
46a2df8e
RS
3154 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
3155
79fb0ab7
JD
31562006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3157
3158 * xterm.c (handle_one_xevent): Check that f is not NULL before
3159 calling _XEditResCheckMessages.
3160
0f479f06
KS
31612006-05-14 Kim F. Storm <storm@cua.dk>
3162
3163 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
3164
642c61f3
EZ
31652006-05-13 Eli Zaretskii <eliz@gnu.org>
3166
dac85f4b
EZ
3167 * frame.c (x_set_border_width): Fix error message to say "frame",
3168 not "window".
3169
642c61f3
EZ
3170 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
3171
4e8f005c
CY
31722006-05-12 Chong Yidong <cyd@stupidchicken.com>
3173
3174 * intervals.c (set_point_both): Fix mixup before before and after
3175 in variable names.
3176
3177 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
3178 while setting point temporarily.
3179
1ed7b9ae
RS
31802006-05-11 Richard Stallman <rms@gnu.org>
3181
3182 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
3183
f46f3e21
KS
31842006-05-11 Kim F. Storm <storm@cua.dk>
3185
3186 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
3187
17ad716a
KH
31882006-05-11 Kenichi Handa <handa@m17n.org>
3189
3190 * fileio.c (Finsert_file_contents): Fix for the case of IO error
3191 while handling replace operation.
3192
4da9c136
KH
31932006-05-10 Kenichi Handa <handa@m17n.org>
3194
3195 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
3196 chosen for the default face was different from the frame font,
3197 adjust the frame font.
3198
dec94049
YM
31992006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3200
3201 * image.c (Qduration) [MAC_OS]: Undo previous change.
3202 (syms_of_image) [MAC_OS]: Likewise.
3203 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
3204
3205 * macfns.c (x_to_mac_color): Fix shift amount change.
b8c6940e 3206 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
dec94049
YM
3207 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
3208
3209 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
3210 Vmac_services_selection. All uses changed.
3211 (mac_store_service_event): Rename from mac_store_services_event in
3212 extern and calls.
3213
3214 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
3215 changed.
3216 [MAC_OSX] (mac_store_service_event): Rename from
3217 mac_store_services_event. All callers changed.
3218 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
3219 FACE_ID and C. All callers changed.
3220 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
3221 mac_set_font_info_for_selection when focus frame is destroyed.
3222 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
3223
3224 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
3225 args in extern.
3226
d3ee989e
CY
32272006-05-09 Chong Yidong <cyd@stupidchicken.com>
3228
3229 * keymap.c (describe_map): Avoid generating duplicate entries if
3230 the shadowed binding has the same definition.
3231
5f2c7b2a
KH
32322006-05-09 Kenichi Handa <handa@m17n.org>
3233
3234 * keymap.c (push_key_description): Handle invalid character key.
3235
76a25e79
KH
32362006-05-08 Kenichi Handa <handa@m17n.org>
3237
3238 * callproc.c (Fcall_process): Use system_eol_type for encoding
3239 arguments if eol_type is not yet decided.
3240
3241 * coding.h (system_eol_type): Extern it.
3242
3243 * coding.c (setup_coding_system): For invalid coding-system, set
3244 coding->eol_type to CODING_EOL_UNDECIDED.
3245 (encode_coding): Cancel previous change.
3246 (shrink_encoding_region): Likewise.
3247 (code_convert_region1): Likewise.
3248 (code_convert_string1): Likewise.
3249 (code_convert_string_norecord): Likewise.
3250
3251 * fileio.c (choose_write_coding_system): Use system_eol_type for
3252 encoding if eol_type is not yet decided.
3253
3254 * process.c (setup_process_coding_systems): Use system_eol_type
3255 for encoding if eol_type is not yet decided.
3256 (read_process_output): Likewise.
3257 (send_process): Likewise.
3258
f4b46bb9
JB
32592006-05-07 Juanma Barranquero <lekktu@gmail.com>
3260
3261 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
3262
cc9945f2
YM
32632006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3264
3265 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
3266 (syms_of_mac): Likewise for defsubr.
3267
3268 * macfns.c (mac_set_font): New function.
3269 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
3270 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
3271 kWindowToolbarButtonAttribute when creating window.
3272 (Fmac_clear_font_name_table): Move from macfns.c.
3273 (syms_of_macfns): Likewise for defsubr.
3274 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
3275 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
3276
3277 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
3278 and build is done on Mac OS X 10.2 and later.
3279
3280 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
3281 (mac_store_services_event): Change return type in extern.
3282
dec94049
YM
3283 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
3284 FMFontFamily value.
cc9945f2
YM
3285 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
3286 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
3287 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
3288 (QWindow) [MAC_OSX]: Likewise.
3289 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
3290 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
3291 (syms_of_macterm) [USE_ATSUI]: Defvar it.
3292 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
3293 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
3294 (syms_of_macterm): Intern and staticpro them.
dec94049 3295 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
cc9945f2
YM
3296 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
3297 function.
3298 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
3299 [MAC_OSX] (mac_store_services_event): Likewise.
3300 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
3301 kEventWindowToolbarSwitchMode event.
3302 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
3303 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
3304 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
3305 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
3306 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
3307
3308 * macterm.h (mac_set_font_info_for_selection): Add extern.
3309
41f7a85e
YM
33102006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3311
3312 * image.c (Qduration) [MAC_OS]: New variable.
3313 (syms_of_image) [MAC_OS]: Intern and staticpro it.
3314 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
3315 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
3316 instead of cfstring_create_with_string.
3317
a1dfdf24
KS
33182006-05-06 Kim F. Storm <storm@cua.dk>
3319
3320 * .gdbinit (xframe): Print frame name.
3321 (xlist): New command to print a list (max 10 elements).
3322 (xpr): Print lisp object of any type.
3323 (pitx): Print it->pixel_width.
3324
37e21325
KH
33252006-05-05 Kenichi Handa <handa@m17n.org>
3326
3327 * xdisp.c (handle_composition_prop): Fix for the case of empty
3328 composition component.
3329
ef0154b5
YM
33302006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3331
3332 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
3333 from event->arg.
3334
3335 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
3336 MAC_APPLE_EVENT.
3337
3338 * macterm.h (mac_make_lispy_event_code): Remove extern.
3339 (mac_post_mouse_moved_event): Add extern.
3340 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
3341 `const AEDesc *' in externs.
3342 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
3343
3344 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
3345 `const AEDesc *'.
3346 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
3347 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
3348 Use xrealloc instead of repeated xmalloc/xfree.
3349 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
3350 function.
3351
3352 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
3353
3354 * macselect.c: Update copyright year.
3355 (mac_store_apple_event): Change return type to void in extern.
3356 (mac_handle_apple_event): Don't get return value from
3357 mac_store_apple_event.
3358 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
3359 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
3360 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
3361 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
3362 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
3363 implementation using create_apple_event_from_drag_ref.
3364 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
3365 (mac_do_receive_dragUPP): Move variables from macterm.c.
3366 (install_drag_handler, remove_drag_handler): New functions.
3367
3368 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
3369 path select also for proxy icon click.
3370 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
3371 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
3372 (xlfdpat_create): Remove unused label `error' and trailing sentences.
3373 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
3374 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
3375 macselect.c.
3376 (install_drag_handler, remove_drag_handler): Add extern.
3377 (mac_store_apple_event): Change return type to void. All uses changed.
3378 Create Lisp object from Apple event and store it into input event.
3379 (mac_make_lispy_event_code): Remove function.
3380 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
3381 (install_window_handler): Call install_drag_handler.
3382 (remove_window_handler): Call remove_drag_handler.
3383
8b0ba111
RS
33842006-05-03 Richard Stallman <rms@gnu.org>
3385
e4a9a1cf
RS
3386 * sound.c (Fplay_sound_internal): Dynamically allocate
3387 current_sound_device and current_sound.
3388 (sound_cleanup): Free them.
3389
8b0ba111
RS
3390 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
3391 when inside a keyboard macro.
3392
64ec8b2f
AS
33932006-05-02 Andreas Schwab <schwab@suse.de>
3394
3395 * xmenu.c (restore_menu_items): Return a value.
3396
fcdd4585
SM
33972006-05-01 Martin Rudalics <rudalics@gmx.at>
3398
3399 * syntax.c (Fforward_comment): Detect generic comment at beginning of
3400 buffer when moving backwards.
3401
c1eb34c2
YM
34022006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3403
3404 * dispnew.c (update_window): Don't set changed_p when mode/header
3405 line is updated.
3406
3407 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
fcdd4585
SM
3408 (get_glyph_face_and_encoding, get_char_face_and_encoding):
3409 Don't distinguish known faces from others.
c1eb34c2
YM
3410
3411 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
3412 through typeFileURL failed.
3413
3414 * macfns.c (mac_update_title_bar): New function.
3415 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
fcdd4585
SM
3416 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
3417 Call mac_prepare_for_quickdraw.
c1eb34c2
YM
3418
3419 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
3420 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
3421 (enum pcm_status): New enum.
3422 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
3423 (XCharStructRow): Remove. Now validity is represented by
3424 non-negativeness of sum of ascent and descent.
3425 (struct MacFontStruct): Change type of member `rows'.
3426 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
3427
fcdd4585
SM
3428 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
3429 Adjust endpoints of strictly horizontal/vertical lines.
c1eb34c2
YM
3430 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
3431 (pcm_init, pcm_get_status): New functions.
3432 (x_per_char_metric, XLoadQueryFont): Use them instead of
3433 XCharStructRow and related macros.
3434 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
3435 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
3436 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
3437 and window path pop-up menu on title bar.
3438 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
3439
3440 * macterm.h (mac_update_title_bar): Add extern.
3441 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
3442 (FRAME_FILE_NAME): New macro.
3443
3444 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
3445
9abc5f45
RS
34462006-04-30 Richard Stallman <rms@gnu.org>
3447
3448 * keymap.c (Fdefine_key): Improve error message
3449 when KEY begins with a non-prefix key.
3450
5fed8c15 34512006-04-30 Martin Rudalics <rudalics@gmx.at>
39c41ad4
SM
3452
3453 * syntax.c (Fforward_comment): Don't forget to break out of the loop
3454 when we skipped backward over a generic comment.
3455
4a113e3f
NR
34562006-04-27 Nick Roberts <nickrob@snap.net.nz>
3457
3458 * .gdbinit (pp1, pv1): Only print value as expression is now
3459 printed out by gud-print.
3460 (pv1): Correct doc string.
3461
e89e07cc
SM
34622006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
3463
3464 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
3465 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
3466 keymap.c:895: error: address of register variable `def' requested.
3467
7d6f8c68
JR
34682006-04-26 Jason Rumney <jasonr@gnu.org>
3469
8b03732e
JR
3470 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
3471
7d6f8c68
JR
3472 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
3473 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
3474 where we preempt mouse_button_timer.
3475
51d793da
MB
34762006-04-25 Miles Bader <miles@gnu.org>
3477
3478 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
3479
a9ec7317
SM
34802006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
3481
3482 * process.h: Include headers for pid_t.
3483
e9346494
KS
34842006-04-24 Kim F. Storm <storm@cua.dk>
3485
1ada896b
KS
3486 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
3487 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
6fcd305c 3488 (produce_stretch_glyph): Assume that face box height and width is
5fed8c15 3489 already included in stretch glyph size so caller doesn't have to
6fcd305c 3490 consider the extra space otherwise added (fixes problem in ses.el).
1ada896b 3491
e9346494
KS
3492 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
3493 matrices to force recalculation of tool-bar height after font change.
3494
3495 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
14922abe
KS
3496 Clear it when done, so we don't accidentally draw a second copy of
3497 the tool-bar after resetting f->n_tool_bar_rows.
e9346494
KS
3498 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
3499 we recalculate f->n_tool_bar_rows.
3500
4f261b99
RF
35012006-04-23 Lars Hansen <larsh@soem.dk>
3502
59062dce
LH
3503 * editfns.c (find_field): Fix comment.
3504 (Ffield_beginning): Fix bug when POS is at field beginning.
3505
3705332d
EZ
35062006-04-22 Eli Zaretskii <eliz@gnu.org>
3507
3508 * puresize.h (BASE_PURESIZE): Increase to 1205000.
3509
cdd2341c
KS
35102006-04-21 Kim F. Storm <storm@cua.dk>
3511
95797ede
KS
3512 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
3513 window start is at BEGV.
3514
cdd2341c
KS
3515 * dispextern.h (struct image): New member `corners'.
3516 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
3517
3518 * image.c (four_corners_best): New arg CORNERS specifies what pixels
3519 to look at in case image has margin.
3520 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
3521 (image_background, image_background_transparent)
3522 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
3523 (gif_load): Set img->corners according to image's margin spec.
3524 Use img->corners values directly where applicable.
3525 Save image extension data in img->data.lisp_val.
3526 (gif_clear_image): New function to free img->data.lisp_val.
3527 (gif_type): Use it instead of generic x_clear_image.
3528 (Fimage_extension_data): New defun.
3529 (syms_of_image): Defsubr it.
3530
72ffd9d0
EZ
35312006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
3532
3533 * window.c (Fdisplay_buffer): Doc fix.
3534
0d95f6b2
EZ
35352006-04-21 Eli Zaretskii <eliz@gnu.org>
3536
3537 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
3538
a0c62ca2
YM
35392006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3540
3541 * image.c [MAC_OS] (xpm_load_image): Fill in background field
3542 while we have ximg handy.
3543
3544 * macmenu.c (restore_menu_items, save_menu_items): New functions
3545 from xmenu.c.
3546 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
3547 changes for xmenu.c.
3548
3549 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
3550 (add_mac_font_name): New function.
3551 (init_font_name_table): Use it. Adopt the first found font from
3552 those having the same family name.
3553
bf49275d
NR
35542006-04-21 Nick Roberts <nickrob@snap.net.nz>
3555
3556 * xdisp.c (note_mouse_highlight): Use build_string.
3557
570fab6c
LH
35582006-04-20 Lars Hansen <larsh@soem.dk>
3559
a9ec7317
SM
3560 * textprop.c (Fremove_list_of_text_properties):
3561 Ensure modify_region is called only when buffer is modified and that
570fab6c
LH
3562 signal_after_change is allways called in that case.
3563
3564 * print.c (PRINTFINISH): Call signal_after_change.
3565
7f32b80b
KS
35662006-04-20 Kim F. Storm <storm@cua.dk>
3567
bdb60d06
KS
3568 * xdisp.c (redisplay_window): Fix last change.
3569
7f32b80b
KS
3570 * xdisp.c (redisplay_window): If current window start is not at the
3571 beginning of a line, select a new window start if buffer is modified
3572 and window start is in the modified region, but the first change is
3573 before window start.
3574
290e4aae
RS
35752006-04-18 Richard Stallman <rms@gnu.org>
3576
3577 * xmenu.c (restore_menu_items, save_menu_items): New fns.
3578 (set_frame_menubar): Use save_menu_items. Save updated vector in
a9ec7317
SM
3579 the frame before unwinding it. Don't use unuse_menu_items.
3580 Don't use discard_menu_items.
290e4aae
RS
3581 (digest_single_submenu): Abort if an item is not in a pane.
3582 (init_menu_items): Put the error check at the top.
3583
3584 * keymap.c (describe_map): Make "shadowed" warning more verbose.
3585
3586 * window.c (adjust_window_trailing_edge): Correctly distinguish
3587 series vs parallel cases, even when window has no parent.
3588
3589 * abbrev.c (record_symbol): New function.
3590 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
3591
b96fe6ea
YM
35922006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3593
3594 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
3595 value of xmalloc.
3596
3597 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
3598 (create_apple_event_from_event_ref, xrm_get_preference_database)
3599 (cfstring_create_normalized): Don't check return value of xmalloc.
3600
3601 * macselect.c (get_scrap_target_type_list, defer_apple_events)
3602 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
3603 return value of xmalloc/xrealloc.
3604
3605 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
3606 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
a0c62ca2
YM
3607 (XLoadQueryFont, mac_store_apple_event): Don't check return value
3608 of xmalloc.
b96fe6ea 3609
6c7809b3
NR
36102006-04-17 Kim F. Storm <storm@cua.dk>
3611
3612 * window.c (coordinates_in_window): On the vertical border,
3613 calculate the row number measured from the top of the window, not
3614 the top of the frame.
39d78835
KS
3615 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
3616 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
6c7809b3 3617
4bba3064
EZ
36182006-04-16 Eli Zaretskii <eliz@gnu.org>
3619
3620 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
3621
8d95636b
RF
36222006-04-16 Romain Francoise <romain@orebokech.com>
3623
3624 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
3625
6a258a33
AS
36262006-04-16 Andreas Schwab <schwab@suse.de>
3627
3628 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
3629
f70a96b0
RF
36302006-04-15 Romain Francoise <romain@orebokech.com>
3631
3632 * puresize.h (BASE_PURESIZE): Increment to 1210000.
3633
28b257dc 36342006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
cda4c00b
EZ
3635
3636 * print.c (Fprin1_to_string): Mention in the `doc' that the
3637 behavior is modified by `print-level' and `print-length'.
3638
6e9715ae
KH
36392006-04-13 Kenichi Handa <handa@m17n.org>
3640
3641 * coding.c (setup_coding_system): If eol-type is not yet decided
3642 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
3643 If coding_system is nil, return 0.
3644 (code_convert_region1): Even if coding_system is nil, don't skip
3645 conversion if system_eol_type is not LF.
3646 (code_convert_string1): Likewise.
3647 (code_convert_string_norecord): Likewise.
3648
2b89a53f
KH
36492006-04-13 Kenichi Handa <handa@m17n.org>
3650
3651 * coding.c (setup_coding_system): Fix previous change.
a9ec7317 3652 (encode_coding): If eol_type is not yet decided, use system_eol_type.
73ec0f89
KH
3653 (shrink_encoding_region): If eol_type is not yet decided and
3654 system_eol_type is not LF, don't shrink.
2b89a53f 3655
5c24517a
NR
36562006-04-13 Nick Roberts <nickrob@snap.net.nz>
3657
3658 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
3659 line.
3660
9d1a8e5d
RS
36612006-04-12 Richard Stallman <rms@gnu.org>
3662
a53fe666
RS
3663 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
3664
9d1a8e5d
RS
3665 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
3666 (Fprocess_send_eof): Abort if fail to open null device.
3667
190998d8
YM
36682006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3669
3670 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
3671
3672 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
3673 assignment used as truth value. Add explicit braces to avoid
3674 ambiguous `else'.
3675 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
3676
3677 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
3678 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
3679 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
3680 Put externs in #ifdef HAVE_X_WINDOWS.
3681 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
3682 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
3683 (init_mac_osx_environment) [MAC_OSX]: Add extern.
3684
3685 * mac.c (init_process): Remove undef.
3686 (select) [MAC_OSX]: Undefine before including sysselect.h.
3687 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
3688 Remove functions and prototypes.
3689 (parse_value): Add parentheses around + inside shift.
3690 (path_from_vol_dir_name): Make static.
3691 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
3692 [!MAC_OSX] (get_path_to_system_folder): Likewise.
3693 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
3694 variable `cCode'.
3695 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
3696 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
3697
3698 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
3699 (x_set_mouse_color): Remove unused variable `dpy'.
3700 (Fx_create_frame): Remove unused variable `x_frame_count'.
3701 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
3702 (x_sync): Move from macterm.c.
3703 (Fx_file_dialog): Remove unused variable `default_filter_index'.
3704
3705 * macmenu.c (min_menu_id): Make element type explicit.
3706
3707 * macselect.c (get_flavor_type_from_symbol): Remove unused
3708 variable `val'.
3709 (get_scrap_private_timestamp, x_get_foreign_selection)
3710 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
3711 (Fmac_process_deferred_apple_events): Remove unused variables
3712 `keyword', `reply', `apple_event', `count', and `err'.
3713
3714 * macterm.c: Don't include gnu.h.
3715 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
3716 (x_sync): Move to macfns.c.
3717 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
3718 variable `mask_bits'.
3719 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
3720 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
3721 (x_mac_to_emacs_modifiers): Remove function.
3722 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
3723 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
3724 Add explicit braces to avoid ambiguous `else'.
3725 (x_make_frame_visible): Remove unused variables `type',
3726 `original_top', and `original_left'.
3727 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
3728 (x_load_font): Remove unused variables `full_name', and `value'.
3729 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
3730 Remove functions.
3731 (do_zoom_window): Reorganize variables with respect to conditionals.
3732 (init_command_handler): Remove unused variable `err'.
3733 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
3734
3735 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
3736 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
3737 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
3738 (do_menu_choice, have_menus_p, x_real_positions)
3739 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
3740 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
3741 (free_frame_menubar): Add externs.
3742
3743 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
3744 (malloc, realloc, free): Add undefs.
3745 (read_load_commands): Remove unused variable `n' and `j'.
3746 (copy_data_segment): Remove unused variable `r'.
3747
3748 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
3749 within ||. Add explicit braces to avoid ambiguous `else'.
3750 (dump_glyph_row): Remove label for `inverse_p' from legend.
3751
a9ec7317
SM
3752 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
3753 Add explicit braces to avoid ambiguous `else'.
190998d8 3754
28b257dc 37552006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
00d70d57
JD
3756
3757 * dispnew.c (init_display): Don't init X display if the user asked
3758 for a non-X display.
7e37cb69 3759
957b3c5f
KH
37602006-04-12 Kenichi Handa <handa@m17n.org>
3761
3762 * coding.c (setup_coding_system): Use system_eol_type for default
3763 coding->eol_type.
3764
db926d80
DN
37652006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3766
3767 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
3768
3769 * data.c (wrong_type_argument): Try to avoid compiler warnings due
3770 to the fact the function is now marked as NO_RETURN.
3771
978781a5
EZ
37722006-04-10 Eli Zaretskii <eliz@gnu.org>
3773
3774 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
3775
8fd0f424
RF
37762006-04-10 Romain Francoise <romain@orebokech.com>
3777
3778 * xrdb.c (gethomedir): Use xstrdup.
3779
f8f10777
AS
37802006-04-10 Andreas Schwab <schwab@suse.de>
3781
3782 * xrdb.c (gethomedir): Make sure to always return a pointer that
3783 can be passed to free.
3784
2a8da555
RS
37852006-04-09 Richard Stallman <rms@gnu.org>
3786
3787 * lisp.h (Fkill_emacs): Undo previous change.
3788
37892006-04-08 Richard Stallman <rms@gnu.org>
3790
3791 * search.c (boyer_moore): Test ch >= 0400, not >.
3792
404be028
DN
37932006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
3794
3795 * puresize.h (pure_write_error): Mark as NO_RETURN.
3796
4ca412ec 3797 * lisp.h (args_out_of_range, args_out_of_range_3)
404be028 3798
f93bd8e4
EZ
37992006-04-08 Eli Zaretskii <eliz@gnu.org>
3800
3801 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
3802 if a menu is active on this frame.
3803
31a4f621
DN
38042006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
3805
3806 * lisp.h (report_file_error): Mark as NO_RETURN.
3807
7e773529
EZ
38082006-04-08 Eli Zaretskii <eliz@gnu.org>
3809
4f27350a
EZ
3810 * alloc.c [STDC_HEADERS]: Include stddef.h.
3811
7e773529
EZ
3812 * lisp.h (PSEUDOVECSIZE): Fix last change.
3813
6bfd98e7
SM
38142006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
3815
3816 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
3817 `raw_status_high', and `raw_status_low' with plain integers, and move
3818 them to the end of the structure.
3819
3820 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
3821 pseudovector's size field so only the Lisp_Object fields get GC'd.
3822
3823 * process.c (update_status, make_process, Fdelete_process)
3824 (Fprocess_status, list_processes_1, start_process_unwind)
3825 (create_process, Fmake_network_process, server_accept_connection)
3826 (wait_reading_process_output, send_process, Fprocess_running_child_p)
3827 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
3828 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
3829 `pid' and `raw_status'.
3830 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
3831 representing PIDs that are larger than most-positive-fixnum.
3832
3833 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
3834
3835 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
3836
1d79e521
EZ
38372006-04-08 Eli Zaretskii <eliz@gnu.org>
3838
3839 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
3840
d65b4235
PE
38412006-04-03 Paul Eggert <eggert@cs.ucla.edu>
3842
3843 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
3844 ../lib-src/b2m.c and ../lib-src/editfns.c.
3845 (Fcurrent_time_string): Use it.
3846 Document that the year might not consume 4 columns if it's outside
3847 the range 1000-9999.
3848 Check for asctime failure.
3849 Don't assume that the output string length is always exactly 24.
3850
fc9f8d15
YM
38512006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3852
3853 * macterm.c (XTread_socket): Initialize variable `f' before its use.
3854
022af124
KH
38552006-04-03 Kenichi Handa <handa@m17n.org>
3856
3857 * image.c: Include "charset.h" and "coding.h".
3858 (x_find_image_file): Return an encoded file name.
3859
61be4a8a
EZ
38602006-04-01 Eli Zaretskii <eliz@gnu.org>
3861
3862 * configure: Regenerated.
3863
a869edd4
KH
38642006-03-31 Kenichi Handa <handa@m17n.org>
3865
3866 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
3867
29444a2f
DN
38682006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3869
3870 * xdisp.c (syms_of_xdisp): Fix variable name.
3871
3c5f9492
KH
38722006-03-30 Kenichi Handa <handa@m17n.org>
3873
3874 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
3875
267ee78f
JB
38762006-03-29 Juanma Barranquero <lekktu@gmail.com>
3877
3878 * keyboard.c (process_tool_bar_item): Reorder dummy args.
3879
293bd733
SM
38802006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3881
3882 * keyboard.c (tool_bar_items): Use map_keymap.
3883 (process_tool_bar_item): Add dummy args to fit the required interface.
3884
4fccedb5
EZ
38852006-03-25 Eli Zaretskii <eliz@gnu.org>
3886
3887 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
3888 to zero before calling debug_print or safe_debug_print.
3889
3890 * print.c (print_output_debug_flag): New global variable.
3891 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
3892 OutputDebugString if print_output_debug_flag is zero.
3893
aac18aa4
PE
38942006-03-24 Paul Eggert <eggert@cs.ucla.edu>
3895
71c3f28f 3896 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
aac18aa4 3897 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
71c3f28f
EZ
3898 (Fdecode_time): Cast tm_year to EMACS_INT.
3899 (Fcurrent_time_string): Report an invalid time specification if
293bd733 3900 the argument is invalid. Also, check for out-of-range time stamps.
aac18aa4 3901
0ef4f79b
KS
39022006-03-24 Kim F. Storm <storm@cua.dk>
3903
95d8aa28
KS
3904 * xterm.c (handle_one_xevent):
3905 * w32term.c (w32_read_socket):
95d8aa28
KS
3906 * macterm.c (XTread_socket): Don't let key-press clear mouse face
3907 on in toolbar window if mouse-highlight is an integer.
3908
0ef4f79b
KS
3909 * fns.c (sxhash_list): Include last non-nil CDR in hash.
3910
e2e206ae
YM
39112006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3912
3913 * macmenu.c (enum mac_menu_kind): New enum.
3914 (min_menu_id): New variable.
3915 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
3916 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
3917 min_menu_id and enumerators in enum mac_menu_kind.
3918 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
3919 All uses changed. Add range check for menu ID.
3920 (fill_menubar): Add range check for menu ID.
3921 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
3922 GetEventParameter.
3923 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
3924 for each menu kind.
3925
5a32a2f2
KS
39262006-03-22 Kim F. Storm <storm@cua.dk>
3927
ea049c5e
KS
3928 * xdisp.c: Undo 2006-03-21 change.
3929
3930 * term.c: Define aliases for append_glyph and produce_stretch_glyph
3931 when `static' is defined to avoid name clash with those in xdisp.c.
3932
647b07d1
AS
3933 * process.c (Faccept_process_output): Fix to comply with lisp
3934 reference. Change arg "timeout" to "seconds" and allow both
3935 integer and float value. Change arg "timeout-msec" to "millisec"
3936 and interpret" as milliseconds rather than microseconds. Fix doc
3937 string accordingly.
5a32a2f2 3938
d63cd766
KR
39392006-03-21 Ken Raeburn <raeburn@raeburn.org>
3940
293bd733
SM
3941 * xdisp.c (store_next_glyph): Rename from append_glyph.
3942 (generate_stretch_glyph): Rename from produce_stretch_glyph.
d63cd766
KR
3943 All callers changed accordingly.
3944
11e887e2
JD
39452006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3946
3947 * xterm.c: x_session_initialized new variable.
3948 (x_term_init): Use x_session_initialized to check if
3949 x_session_initialize should be called.
3950 (x_initialize): Initialize x_session_initialized.
3951
52bd2f43
KS
39522006-03-21 Kim F. Storm <storm@cua.dk>
3953
3954 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
3955 bitmap here, but ...
3956 (update_window_fringes): ... here, so we can test if it has changed.
3957
c1fc674b
AS
39582006-03-20 Andreas Schwab <schwab@suse.de>
3959
3960 * dispnew.c (init_display): Check DISPLAY here.
3961
3962 * emacs.c (main): Don't check here.
3963
3964 * xterm.c (x_display_ok): Don't use DISPLAY env var.
3965
7d619454
SM
39662006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3967
3968 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
3969 mixup (YAILOM).
3970
e2916251
EZ
39712006-03-20 Eli Zaretskii <eliz@gnu.org>
3972
3973 * emacs.c (main): Fix last change.
3974
95c1c901
KH
39752006-03-20 Kenichi Handa <handa@m17n.org>
3976
7d619454 3977 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
95c1c901
KH
3978
3979 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
3980
3981 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
3982
3983 * xterm.c (x_term_init): Remove unnecessary GCPRO.
3984
45c1c789
KS
39852006-03-19 Kim F. Storm <storm@cua.dk>
3986
3987 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
3988 so it doesn't associate overlay string with following glyph by default.
3989 Allow integer property value to specify explicit number of buffer
3990 positions associate with overlay string.
3991
11aaf447
CY
39922006-03-18 Chong Yidong <cyd@stupidchicken.com>
3993
3994 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
3995
e4d181dc
EZ
39962006-03-18 Nozomu Ando <nand@mac.com>
3997
3998 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
3999 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
4000 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
4001 Don't redefine.
4002
4003 * m/mips.h: Don't use unexmips on NetBSD.
4004 (LIBS_MACHINE): Move definition lower, so it doesn't use
4005 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
4006 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
4007
4008 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
4009 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
4010 option is broken (e.g., MIPS/NetBSD).
4011
50f9edc2
EZ
40122006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
4013
4014 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
7b833ed1 4015 Remove the HAVE_X_WINDOWS conditional.
50f9edc2 4016
7e37c7c0
EZ
40172006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
4018
4019 * emacs.c (main): If user asks for a display that is unavailable,
4020 simulate -nw.
4021
4022 * xterm.c (x_display_ok): New function.
4023
4024 * xterm.h: Add prototype for x_display_ok.
4025
c85eab3a
EZ
40262006-03-18 Eli Zaretskii <eliz@gnu.org>
4027
4028 * w32fns.c (Fw32_select_font): Doc fix.
4029
e09ce637
YM
40302006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4031
4032 * image.c [MAC_OS] (XPutPixel, XGetPixel)
4033 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
4034 version when depth is 32.
7d619454
SM
4035 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
4036 New function.
e09ce637
YM
4037 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
4038 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
4039
4040 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
4041 Create GWorld in ARGB pixel format.
7d619454
SM
4042 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
4043 Remove functions.
e09ce637
YM
4044 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
4045 instead of mac_copy_area/mac_copy_area_with_mask.
4046
b0896280
KS
40472006-03-15 Kim F. Storm <storm@cua.dk>
4048
4049 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
4050 empty row. Fixes memory corruption revealed by 2006-03-02 change.
4051 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
4052 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
4053 width is exactly the same as the window width. Don't count a final
4054 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
4055
713cb18d
JB
40562006-03-15 Juanma Barranquero <lekktu@gmail.com>
4057
364d0cf8 4058 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
713cb18d
JB
4059 conditional on HAVE_NTGUI, not WINDOWS_NT.
4060
ad21830e
YM
40612006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4062
4063 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
4064
4065 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
4066
4067 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
4068 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
4069 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
4070 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
4071 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
4072 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
4073 instead of mac_draw_bitmap.
4074 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
4075 define_fringe_bitmap and destroy_fringe_bitmap.
4076
8a34117e
CY
40772006-03-14 Chong Yidong <cyd@stupidchicken.com>
4078
4079 * xterm.c (x_uncatch_errors): Block input for entire function.
4080
ab68b375
JR
40812006-03-12 Jason Rumney <jasonr@gnu.org>
4082
92cc46af 4083 * w32fns.c (Fx_create_frame): Remove call to
364d0cf8 4084 Qface_set_after_frame_default (from xfns.c 2003-05-26).
92cc46af 4085
335be36b
JR
4086 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
4087 finished with the menu.
4088
ab68b375
JR
4089 * w32term.c: Sync 2005-10-24 xterm.c changes.
4090 (last_mouse_glyph_frame): New var.
4091 (note_mouse_movement): Say mouse moved if current frame differs
4092 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4093 (w32_mouse_position): Set last_mouse_glyph_frame.
875e613d 4094 Remove OLD_REDISPLAY_CODE block.
ab68b375 4095
204b78de
YM
40962006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4097
4098 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
4099
4100 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
4101 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
4102
4103 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4104
4105 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
4106
4107 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
4108 (x_draw_composite_glyph_string_foreground)
4109 (x_draw_image_foreground): Undo previous changes.
4110 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
4111 argument of mac_draw_rectangle.
4112 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
4113 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
4114 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
4115 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
4116 [USE_CG_DRAWING]: New functions.
4117 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
4118 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
4119 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
4120 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
4121 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
4122 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
4123 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4124
a9d54793
KL
41252006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4126
4127 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
4128
b452fd7a
JR
41292006-03-11 Jason Rumney <jasonr@gnu.org>
4130
4131 * w32fns.c (signal_user_input): New function.
4132 (post_character_message): Use it for keyboard input.
4133 (w32_msg_pump): Use it for mouse input.
4134
f372bd5b
LT
41352006-03-11 Luc Teirlinck <teirllm@auburn.edu>
4136
4137 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
4138 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
4139
2c1bd367
EZ
41402006-03-11 Eli Zaretskii <eliz@gnu.org>
4141
4142 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
4143 if a menu is already active (the menubar_active flag is on).
4144
f161146b
EZ
41452006-03-11 David Ponce <david@dponce.com>
4146
7d619454 4147 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
f161146b 4148
9257b627
EZ
41492006-03-11 Eli Zaretskii <eliz@gnu.org>
4150
db3c0e9c
EZ
4151 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
4152 the list of unused display error handling functions.
4153
8887e8ec
EZ
4154 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
4155 HAVE_X_WINDOWS.
4156 (internal_condition_case, internal_condition_case_1)
4157 (internal_condition_case_2): Call x_catching_errors only if
4158 HAVE_X_WINDOWS.
4159
9257b627
EZ
4160 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
4161 Don't include sys/resource.h unless defined.
4162
395d3972
RS
41632006-03-11 Richard Stallman <rms@gnu.org>
4164
5a893bff
RS
4165 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
4166
395d3972 4167 * vm-limit.c (get_lim_data, lim_data, data_space_start):
7d619454 4168 Move from mem-limits.h.
395d3972
RS
4169 (enum warnlevel): New data type.
4170 (check_memory_limits): Rewrite the logic about warnings.
4171 Use standard `struct rlimit'. Check return values for nonsense.
4172 (memory_warnings): Always clear lim_data.
4173
4174 * mem-limits.h (get_lim_data, lim_data, data_space_start):
7d619454 4175 Move to vm-limit.c.
395d3972
RS
4176
4177 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
4178
4179 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
f372bd5b 4180 (internal_condition_case_1, internal_condition_case_2):
395d3972
RS
4181 Abort if within unclosed x_catch_errors.
4182
635a3496
RF
41832006-03-11 Romain Francoise <romain@orebokech.com>
4184
4185 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
4186
306cea3a
EZ
41872006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4188
4189 * lisp.h: Remove duplicate prototypes. Make the prototype of
4190 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
4191
97b5ae78
EZ
41922006-03-11 Eli Zaretskii <eliz@gnu.org>
4193
7325e714
EZ
4194 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
4195 argument of XDrawRectangle.
4196
97b5ae78
EZ
4197 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
4198
4199 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
4200 (x_draw_glyph_string_foreground)
4201 (x_draw_composite_glyph_string_foreground)
4202 (x_draw_image_foreground): Don't subtract 1 from width and height
4203 arguments to mac_draw_rectangle.
4204 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
4205
68f632a8
KS
42062006-03-10 Kim F. Storm <storm@cua.dk>
4207
4208 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
4209
349a4500
SM
42102006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
4211
4212 * alloc.c (USE_POSIX_MEMALIGN): New macro.
4213 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
4214
53a5eba9
KH
42152006-03-09 Kenichi Handa <handa@m17n.org>
4216
4217 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
4218 ASCII component of a composition.
4219
629f023d
LT
42202006-03-08 Luc Teirlinck <teirllm@auburn.edu>
4221
4222 * window.c: Declare preserve_y as a static global variable.
4223 (window_scroll_pixel_based): No longer declare preserve_y;
4224 it is global now.
f945af42 4225 (syms_of_window): Set preserve_y to -1.
629f023d 4226
4cdffedf
YM
42272006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4228
4229 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
4230 depth is 32.
204b78de 4231 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
4cdffedf
YM
4232 depth is 32.
4233
45b5f35d
CY
42342006-03-06 Chong Yidong <cyd@stupidchicken.com>
4235
4236 * xdisp.c (handle_invisible_prop): Don't update it->position with
4237 a buffer position if we're in a display string.
4238
48b60fa1
YM
42392006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4240
4241 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
4242 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
4243
4244 * macfns.c (x_default_scroll_bar_color_parameter)
349a4500
SM
4245 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
4246 Remove unnecessary prototypes.
4247 (x_set_scroll_bar_default_width):
4248 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
48b60fa1
YM
4249 (mac_set_scroll_bar_width): New function.
4250 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
4251
4252 * macterm.c (get_control_part_bounds): Fix type of return value.
4253 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4254 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
4255 scroll bar if it is not tall enough to display scroll bar thumb.
4256 [USE_CARBON_EVENTS] (mac_convert_event_ref)
4257 (mac_handle_command_event, mac_handle_window_event)
4258 (mac_handle_mouse_event): Check error code of GetEventParameter.
4259 (convert_fn_keycode) [MAC_OSX]: Likewise.
f945af42 4260
6f10509c
AS
42612006-03-05 Andreas Schwab <schwab@suse.de>
4262
4263 * xselect.c (x_catch_errors_unwind): Fix missing return value.
4264
f79bc642
KS
42652006-03-02 Kim F. Storm <storm@cua.dk>
4266
4267 * frame.h (struct frame): New member n_tool_bar_rows.
4268
4269 * xdisp.c: Minimize the unpleasent visual impact of the requirement
4270 that non-toolkit tool-bars must occupy an integral number of screen
875e613d 4271 lines, by distributing the rows evenly over the tool-bar screen area.
f79bc642
KS
4272 (Vtool_bar_border): New variable.
4273 (syms_of_xdisp): DEFVAR_LISP it.
349a4500
SM
4274 (display_tool_bar_line): Add HEIGHT arg for desired row height.
4275 Make tool-bar row the desired height. Use default face for border
4276 below tool-bar.
f79bc642
KS
4277 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
4278 actual tool-bar rows.
4279 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
4280 Adjust the height of the tool-bar rows to fill tool-bar screen area.
4281 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
4282 is resized.
4283
0bbe0c9c
LT
42842006-03-01 Luc Teirlinck <teirllm@auburn.edu>
4285
4286 * search.c (Fregexp_quote): Do not precede a literal `]' with two
4287 backslashes to try to make clear that it has a literal meaning; it
4288 does not do that. (It could close a character alternative
4289 containing a backslash.)
4290
c525d842
CY
42912006-02-28 Chong Yidong <cyd@stupidchicken.com>
4292
4293 * xselect.c (x_catch_errors_unwind): New function.
4294 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
4295 (Fx_get_atom_name): Call x_uncatch_errors earlier.
4296
4297 * window.c (Qscroll_up, Qscroll_down): New syms.
4298 (window_scroll_pixel_based): Make preserve_y static to avoid
4299 getting point stuck when scrolling 1 line.
4300
4545fa20
CY
43012006-02-26 Chong Yidong <cyd@stupidchicken.com>
4302
349a4500 4303 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
4545fa20 4304
364d0cf8
JB
4305 * xterm.c (x_load_font, x_term_init, XTmouse_position)
4306 (handle_one_xevent, x_connection_closed, x_list_fonts):
4307 No arg for x_uncatch_errors.
4545fa20
CY
4308
4309 * xselect.c (x_own_selection, x_decline_selection_request)
4310 (x_reply_selection_request, x_get_foreign_selection)
4311 (Fx_get_atom_name, Fx_send_client_event): Likewise.
4312
4313 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
4314 Likewise.
4315
a5e25a4c
LT
43162006-02-26 Luc Teirlinck <teirllm@auburn.edu>
4317
440cbd9e
LT
4318 * lread.c: Declare Vload_file_rep_suffixes instead of
4319 deleted variable default_suffixes.
4320 (Fget_load_suffixes): New function.
4321 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
4322 No longer use deleted variable default_suffixes. Update docstring.
4323 (syms_of_lread): defsubr Sget_load_suffixes.
4324 Expand `load-suffixes' docstring.
4325 Delete default_suffixes and DEFVAR_LISP the new variable
4326 `load-file-rep-suffixes'.
4327
4328 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
4329 of Vload_suffixes.
4330
4331 * lisp.h: EXFUN Fget_load_suffixes.
4332 Extern Vload_file_rep_suffixes.
4333
a5e25a4c
LT
4334 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
4335 with lisp.h.
4336
a7af5886
SM
43372006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
4338
4339 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
4340 qualifier which was trying to avoid the bug that was fixed by
4341 yesterday's changes to xterm.c.
4342
9ba8e10d
CY
43432006-02-25 Chong Yidong <cyd@stupidchicken.com>
4344
4345 * xterm.h (x_catch_errors) Return value changed to void.
4545fa20 4346 (x_uncatch_errors): Delete unused count argument.
a7af5886 4347
9ba8e10d
CY
4348 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
4349 it can be called in a signal handler.
4350 (x_catch_errors_unwind): Function deleted.
4351 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
4352 (x_check_errors): Call x_uncatch_errors before signalling error.
4353
4354 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
4355 (x_connection_closed, x_list_fonts): Use new versions of
4356 x_catch_errors and x_uncatch_errors.
4357
4358 * xselect.c (x_own_selection, x_decline_selection_request)
4359 (x_reply_selection_request, x_get_foreign_selection)
4360 (Fx_get_atom_name, Fx_send_client_event): Likewise.
4361
4362 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
4363 Likewise.
4364
4365 * eval.c (record_unwind_protect): Add an assertion.
4366
f523e0c3
SM
43672006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4368
4369 * process.c (Fmake_network_process): Init the process's mark.
4370
a7a7e1d7
KS
43712006-02-25 Kim F. Storm <storm@cua.dk>
4372
4373 * buffer.c (modify_overlay): Force redisplay if we modify an
4374 overlay at the end of the buffer.
4375
a821c035
JD
43762006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4377
4378 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
4379 nil the image file has been removed, in that case use the (cached)
4380 pixmap.
4381
77343e1d
KH
43822006-02-24 Kenichi Handa <handa@m17n.org>
4383
4384 * fileio.c (Finsert_file_contents): When a text is replaced
4385 partially, be sure to set point before the inserted characters.
4386
92fb5516
KH
43872006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
4388
4389 * xfns.c (Fx_file_dialog): Return a decoded file name.
4390
78897758
YM
43912006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4392
4393 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
4394 glyph whose face is extended to the text area end.
4395
5b574e69
YM
4396 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
4397 values if control is not visible or values are not changed.
4398
acc6289a
SM
43992006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
4400
4401 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
4402 The default `window' should not be "on a different frame".
4403
c4336e88
KS
44042006-02-22 Kim F. Storm <storm@cua.dk>
4405
4406 * indent.c (Fvertical_motion): Only try to move back if we can.
4407
b6e3efe0
YM
44082006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4409
4410 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
4411 n_clip_rects.
4412
4413 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
4414 xmenu.c.
4415
4416 * macterm.c (GC_CLIP_REGION): Remove macro.
4417 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
4418 All uses changed. Don't do clipping if n_clip_rects is zero.
acc6289a
SM
4419 (mac_set_clip_rectangles): Use xassert instead of abort.
4420 Set n_clip_rects. Don't make clip_region empty when number of
b6e3efe0
YM
4421 clipping rectangles is zero.
4422 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
4423 calling mac_set_clip_rectangles.
4424 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
4425 avoid multiple redraws.
4426
6f62a45e
KS
44272006-02-22 Kim F. Storm <storm@cua.dk>
4428
4429 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
4430
dd9959da
KS
44312006-02-21 Kim F. Storm <storm@cua.dk>
4432
4433 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
4434
364d0cf8 44352006-02-21 Zhang Wei <brep@newsmth.org>
a8f4bdc6
JD
4436
4437 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
4438 returning it.
4439
dd9959da 44402006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9866a438
JB
4441
4442 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
4443 (standard_bitmaps): Use it.
4444
9fb446e3
YM
44452006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4446
4447 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
4448 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
4449 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
4450 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
acc6289a
SM
4451 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
4452 Draw background if BG_WIDTH is not zero. Use float constants as
9fb446e3
YM
4453 divisors instead of double. Use alloca instead of xmalloc/xfree.
4454 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4455 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
4456 mac_draw_image_string* functions.
4457 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
4458 some fonts when srcCopy text transfer mode might be used.
4459 (mac_begin_clip, mac_end_clip): Check if region is empty.
4460 (mac_set_clip_rectangles): When resetting clip region, make it
4461 empty instead of disposing of it.
4462
49af2995
KS
44632006-02-20 Kim F. Storm <storm@cua.dk>
4464
4465 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
4466
4467 * buffer.h (struct buffer): New members fringe_indicator_alist and
4468 fringe_cursor_alist.
4469
4470 * buffer.c (init_buffer_once): Set dummy default values for
4471 fringe-indicator-alist and fringe-cursor-alist. The proper
4472 default values are set by pre-loading fringe.el.
4473 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
4474 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
9866a438 4475 corresponding default- variables.
49af2995
KS
4476
4477 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
4478 to use `int'.
4479 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
4480 Define explicitly.
4481 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
4482 (Qhollow_small): New variables.
4483 (syms_of_fringe): Intern and staticpro them.
4484 (question_mark_bits): Rename from unknown_bits.
4485 (left_curly_arrow_bits): Rename from continuation_bits.
4486 (right_curly_arrow_bits): Rename from continued_bits.
4487 (left_triangle_bits): Rename from ov_bits.
acc6289a 4488 (right_triangle_bits): Add.
49af2995
KS
4489 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
4490 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
acc6289a 4491 (filled_square_bits): Add.
49af2995 4492 (vertical_bar_bits): Rename from bar_cursor_bits.
9866a438 4493 (horizontal_bar_bits): Rename from hbar_cursor_bits.
49af2995
KS
4494 (empty_line_bits): Rename from zv_bits.
4495 (standard_bitmaps): Update to use new names.
4496 (draw_fringe_bitmap_1): Make static.
4497 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
4498 to map from logical cursors and indicators to physical bitmaps.
875e613d 4499 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
49af2995
KS
4500 bitmaps using symbol names instead of bitmap numbers.
4501 (update_window_fringes): Use logical indicator symbol names
4502 instead of bitmap numbers for logical. Add bitmap cache.
4503 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
4504
a77f947b
CY
45052006-02-20 Chong Yidong <cyd@stupidchicken.com>
4506
a073faa6
CY
4507 * regex.c: Revert 2006-02-19 change.
4508 (xmalloc, xrealloc): Define these when not linked to Emacs.
4509 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
a77f947b 4510
2f90d2bc
LT
45112006-02-19 Luc Teirlinck <teirllm@auburn.edu>
4512
4513 * regex.c (extend_range_table_work_area): Fix typo.
4514
5498b6af
RS
45152006-02-19 Richard M. Stallman <rms@gnu.org>
4516
7b1d7d66
RS
4517 * xterm.c (x_catch_errors): Use xmalloc.
4518
4519 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
4520 (regex_compile): Likewise.
4521 (regcomp): Use xmalloc.
4522
4523 * gtkutil.c (malloc_widget_value): Use xmalloc.
4524
5498b6af
RS
4525 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
4526 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
4527
4528 * xmenu.c (digest_single_submenu): When pane_string is empty,
4529 do initialize save_wv.
4530
4f2f3214
YM
45312006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4532
4533 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
4534 w->update_mode_line if arg F is not the selected frame.
4535
4536 * macmenu.c (popup_activated_flag, submenu_id)
4537 (next_menubar_widget_id): Remove variables.
4538 (initialize_frame_menubar): Remove function.
4539 (pop_down_menu, mac_menu_show): Simplify save value.
4540 (dispose_menus): New function.
4541 (pop_down_menu, fill_menubar): Use it.
4542 (fill_submenu): Remove function. All uses changed to fill_menu.
4543 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
4544 POS. Don't call SetMenuItemHierarchicalID here.
4545 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
4546 used next. Call SetMenuItemHierarchicalID here.
4547 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
4548 objects if needed. Reuse existing menu bar titles if possible.
4549 (set_frame_menubar): Don't clean up menu objects here.
4550
da7520de
CY
45512006-02-18 Chong Yidong <cyd@stupidchicken.com>
4552
4553 * window.c (window_min_size_1): Ensure room for the scroll bar and
4554 fringes.
4555
a9c18b84
RF
45562006-02-17 Romain Francoise <romain@orebokech.com>
4557
4558 * puresize.h (BASE_PURESIZE): Increment to 1200000.
4559
537407f0
SM
45602006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
4561
4562 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
4563 addition of the BLOCK_INPUTs.
4564
5bf3610f
JB
45652006-02-17 Juanma Barranquero <lekktu@gmail.com>
4566
4567 * window.c (Fset_window_scroll_bars): Doc fix.
4568
ed0218e2
KH
45692006-02-17 Kenichi Handa <handa@m17n.org>
4570
4571 * xdisp.c (display_mode_element): Call display_string with correct
4572 PREC arg (which must be a number of characters, not column width).
4573
f036d043
YM
45742006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4575
4576 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
4577
4578 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
4579
4580 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
4581
885f1975
RS
45822006-02-14 Richard M. Stallman <rms@gnu.org>
4583
9d8f542c
RS
4584 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
4585
885f1975
RS
4586 * m/ibms390x.h: New file.
4587
26ebccfd
JD
45882006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4589
4590 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
4591 value of x-gtk-whole-detached-tool-bar.
d8d3d48c 4592 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
26ebccfd
JD
4593
4594 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
4595
4d7637b8 45962006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
58118de5
JD
4597
4598 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
4599
4600 * xterm.h: Declare x_x_to_emacs_modifiers.
4601
4602 * gtkutil.c (xg_tool_bar_button_cb): New function.
4603 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
4604 store modifiers in event.
4605 (update_frame_tool_bar): Connect button-release-event to
4606 xg_tool_bar_button_cb.
4607
f8d775e1
RS
46082006-02-13 Richard M. Stallman <rms@gnu.org>
4609
4610 * .gdbinit (xwindow): Update the code to show the window box.
4611
0c0351b5
JD
46122006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4613
4614 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
4615
4d94dd9a
RS
46162006-02-12 Richard M. Stallman <rms@gnu.org>
4617
4618 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
4619
c54fb9ef
EZ
46202006-02-11 Eli Zaretskii <eliz@gnu.org>
4621
4622 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
4623 (syms_of_keyboard): DEVFAR_LISP and initialize it.
4624 (parse_tool_bar_item, parse_menu_item): If that variable is
4625 non-nil, don't disable menu items and tool-bar buttons.
4626
ac6a9b55
JB
46272006-02-11 Juanma Barranquero <lekktu@gmail.com>
4628
4629 * doc.c (Fsubstitute_command_keys): Doc fix.
4630
0ddb0ae8
TTN
46312006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
4632
4633 * data.c (Findirect_function): Rewrite docstring.
4634 Fix omission bug: Declare new arg NOERROR.
4635
cbd488c4
YM
46362006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4637
4638 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
4639 if window_desc is not set yet.
4640 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
4641 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
4642 parameter `visibility' is `icon'.
4643 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
4644 instead of "fontset-mac".
4645 (Fx_focus_frame): New defun.
4646 (syms_of_macfns): Defsubr it.
4647
4648 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
4649 for unfocused frame.
4650 (x_raise_frame): Call BringToFront instead of SelectWindow.
4651 (x_lower_frame): Use NULL instead of nil.
4652 (x_make_frame_visible): Don't call SelectWindow.
4653 (XTread_socket): Increment handling_signal at the start, decrement
4654 it at the end.
4655 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
4656 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
4657
a7f96a35
KS
46582006-02-10 Kim F. Storm <storm@cua.dk>
4659
4660 * data.c (Findirect_function): Add NOERROR arg. All callers changed
4661 to pass Qnil for NOERROR.
4662
4663 * keymap.c (current_minor_maps_error): Remove.
4664 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
4665 instead of using internal_condition_case_1+current_minor_maps_error.
4666
1834d8e7
JD
46672006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4668
4669 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
4670 frames for GTK, in that case it is the tool bar. This is so that
4671 highlighted text get reset properly.
4672
cffc3472
JB
46732006-02-09 Juanma Barranquero <lekktu@gmail.com>
4674
4675 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
4676
e99c7521
JD
46772006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4678
4679 * window.c (adjust_window_trailing_edge): Check that shrinking
4680 does not set a window to size zero or less.
4681
42ab8e36
MB
46822006-02-08 Miles Bader <miles@gnu.org>
4683
4684 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
cffc3472 4685 of Fget_text_property (other field functions work with overlays as
42ab8e36
MB
4686 well as text-properties).
4687
6a80c3ba
KH
46882006-02-07 Kenichi Handa <handa@m17n.org>
4689
e1a67366 4690 * dispextern.h (unibyte_display_via_language_environment): Extern it.
6a80c3ba 4691
e1a67366
KS
4692 * xterm.h (unibyte_display_via_language_environment):
4693 * w32term.h (unibyte_display_via_language_environment):
4694 * macterm.h (unibyte_display_via_language_environment): Delete extern.
6a80c3ba 4695
d2b4c17d
KH
46962006-02-07 Kenichi Handa <handa@m17n.org>
4697
e1a67366 4698 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
d2b4c17d 4699 (produce_glyphs): Set the character to print in
e1a67366
KS
4700 it->char_to_display. Handle unibyte-display-via-language-environment.
4701 (produce_stretch_glyph): Set character to print in it->char_to_display.
d2b4c17d 4702
8b9d426a
KH
47032006-02-06 Kenichi Handa <handa@m17n.org>
4704
e1a67366 4705 * lread.c (openp): Initialize encoded_fn before GCPRO it.
8b9d426a 4706
d63b4018
KR
47072006-02-05 Ken Raeburn <raeburn@raeburn.org>
4708
4709 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
4710
98950fd6
KR
4711 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
4712 Cast bitfield value to EMACS_INT, to suppress gcc warning.
4713
0cf36656
KR
4714 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
4715 defining.
4716
ad02d7ea
KS
47172006-02-03 Kim F. Storm <storm@cua.dk>
4718
4719 * xdisp.c: Cache last merged escape glyph face.
4720 (last_escape_glyph_frame, last_escape_glyph_face_id)
4721 (last_escape_glyph_merged_face_id): New variables.
4722 (get_next_display_element): Use/update them.
4723 (redisplay_internal): Reset them before redisplay.
4724
4725 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
4726 Only recheck faces after displaying ellipsis.
4727
999a0fe5
KH
47282006-02-02 Kenichi Handa <handa@m17n.org>
4729
4730 * coding.c (decode_composition_emacs_mule): Fix handling of
4731 incorrect format data.
4732
cd7cd4ac
JD
47332006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4734
14a56a1b
JB
4735 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
4736 gtk_toolbar_insert() so we can have tool bars of different sizes.
cd7cd4ac 4737
4cf7e99c
LT
47382006-01-30 Luc Teirlinck <teirllm@auburn.edu>
4739
4740 * data.c (Flistp): Doc fix.
4741
a3bc032f
JB
47422006-01-30 Juanma Barranquero <lekktu@gmail.com>
4743
4744 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
4745 Fix typos in docstrings.
4746
6badf38c
LT
47472006-01-28 Luc Teirlinck <teirllm@auburn.edu>
4748
1f2907ee 4749 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
6badf38c 4750
e2984df0
CY
47512006-01-27 Chong Yidong <cyd@stupidchicken.com>
4752
4753 * alloc.c (make_interval, allocate_string)
4754 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
4755 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
4756 global variables.
4757
dc86c16d
EZ
47582006-01-27 Eli Zaretskii <eliz@gnu.org>
4759
4760 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
4761 the MSDOS definition.
4762
57436ee7
RS
47632006-01-26 Richard M. Stallman <rms@gnu.org>
4764
4765 * alloc.c (check_pure_size): Make overflow message an "error message".
4766
4767 * keymap.c (Fmap_keymap): Doc fix.
4768
4769 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
4770 unless they were cleared out.
4771
4772 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
4773
2cb3aec4
KL
47742006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4775
e477bb04
KL
4776 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
4777 (find_field): Set before_field to after_field when pos is at BEGV.
293bd733
SM
4778 (Fline_beginning_position, Fline_end_position):
4779 Clarify confusing doc string.
2cb3aec4
KL
4780
4781 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
4782 string.
4783
34b87689
KH
47842006-01-26 Kenichi Handa <handa@m17n.org>
4785
4786 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
4787 current_dir, and error_file. On reporting an error, decode them
4788 back.
4789
1cee1e27
SM
47902006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4791
4792 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
4793 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
4794 Don't check for quit, since any loop will go through fail or jump.
4795
a0b08700
CY
47962006-01-24 Chong Yidong <cyd@stupidchicken.com>
4797
4798 * alloc.c (allocate_string_data): Update next_free immediately, to
4799 reduce risk of memory clobberage.
4800
bf7f1d30
KL
48012006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4802
4803 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
4804 display when point moves across an ellipsis. If there are
4805 adjacent invisible texts, don't lose the second one's ellipsis.
4806 (x_produce_glyphs): Doc fix.
4807
e5e26d8f
SM
48082006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
4809
4810 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
4811
1ff4535b
KS
48122006-01-23 Kim F. Storm <storm@cua.dk>
4813
4814 * xdisp.c (handle_single_display_spec): Fix handling of space
4815 property on char from string: set *position rather than
4816 it->current.pos.
4817 (produce_stretch_glyph): Reduce width of stretch glyphs so they
4818 don't get wider than the window (unless truncate-lines is on).
4819
5badc98d
SM
48202006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
4821
4822 * xterm.c: Avoid allocating Lisp data from a signal handler.
4823 (x_error_message): New var to replace x_error_message_string.
4824 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
4825 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
4826 (syms_of_xterm): Use it instead of x_error_message_string.
4827
4828 * alloc.c (lisp_align_free): Add an assertion.
4829 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
4830 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
4831 a signal handler.
4832
638590e8
LT
48332006-01-21 Luc Teirlinck <teirllm@auburn.edu>
4834
4835 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
4836
cde0a40c
RF
48372006-01-21 Romain Francoise <romain@orebokech.com>
4838
4839 * xdisp.c (get_window_cursor_type): Fix last change.
4840 Update copyright year.
4841
ea5f3ad4
EZ
48422006-01-20 Eli Zaretskii <eliz@gnu.org>
4843
3fdf12ca
EZ
4844 * lread.c (Fload): Don't leak the file descriptor returned by
4845 openp if we are going to signal an error.
4846
7559f399
EZ
4847 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
4848 directly to _close.
4849 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
4850 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
4851 to _read.
cde0a40c 4852 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
7559f399
EZ
4853 directly to _write.
4854
ea5f3ad4
EZ
4855 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
4856 if it is NULL.
4857
ef8beec6
KH
48582006-01-20 Kenichi Handa <handa@m17n.org>
4859
4860 * puresize.h (BASE_PURESIZE): Increment to 1190000.
4861
995f2df9
CY
48622006-01-19 Chong Yidong <cyd@stupidchicken.com>
4863
4864 * xdisp.c (get_window_cursor_type): Use cursor type specified by
4865 the selected buffer for the echo area too.
4866
c94c4d0a
RS
48672006-01-19 Richard M. Stallman <rms@gnu.org>
4868
4869 * keymap.c (Fmap_keymap): Doc fix.
4870
4871 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
4872
4873 * keyboard.c (echo_char): Don't omit the space between first two
4874 echoed chars.
4875
4876 * minibuf.c (read_minibuf): Fix previous change.
4877
71578d4f
KH
48782006-01-19 Kenichi Handa <handa@m17n.org>
4879
4880 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
4881
edd1c685
RS
48822006-01-17 Richard M. Stallman <rms@gnu.org>
4883
4884 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
4885 value in f->param_alist.
4886
0501acd4
AS
48872006-01-15 Andreas Schwab <schwab@suse.de>
4888
4889 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
4890
d33a7384
NR
48912006-01-13 Richard M. Stallman <rms@gnu.org>
4892
4893 * Makefile.in: Define new macro WINDOW_SUPPORT.
4894 (lisp): Use it.
4895 (SOME_MACHINE_LISP): Add conditionally loaded files.
4896
2026418c
YM
48972006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4898
4899 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
22e6707e 4900 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2026418c
YM
4901 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
4902 decomposed form.
4903
4904 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
4905 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
4906 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
4907 macro. Also try member ifr_addr when getting netmask.
4908
b8f7f3be
SM
49092006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
4910
4911 * fileio.c (Fexpand_file_name): Remove redundant tests.
4912 Fix elimination of // so that it doesn't prevent elimination of an
4913 immediately following /. or /..
4914
4c9ca1a3
JD
49152006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4916
4917 * gtkutil.c (xg_toggle_notify_cb): New function.
4918 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
4919 xg_toggle_notify_cb.
4920 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
4921 parameter value changes so the toggle button gets updated.
4922
340bb2ea
NR
49232006-01-06 Nick Roberts <nickrob@snap.net.nz>
4924
4925 * .gdbinit: Fix typo.
4926
feaf060a
EZ
49272006-01-05 Eli Zaretskii <eliz@gnu.org>
4928
4929 * .gdbinit: Fix last change.
4930
c22cc558
KS
49312006-01-05 Kim F. Storm <storm@cua.dk>
4932
4933 * process.c (Fmake_network_process): Use AF_INET instead of
22e6707e 4934 AF_UNSPEC when AF_INET6 is not defined.
c22cc558 4935
07f9b01c
YM
49362006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4937
4938 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
4939 Don't check that the other type is known file-related one.
4940
4941 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
4942 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
4943 OS X 10.4 and later.
4944
0facd9c3
JD
49452006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4946
4947 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
4948 let GTK do all image processing. Importing Emacs own pixmaps to GTK
4949 looks bad for inactive tool bar items with some Gnome themes.
4950
805b0439
EZ
49512006-01-04 Eli Zaretskii <eliz@gnu.org>
4952
913645cd
EZ
4953 * .gdbinit: Avoid a warning message when x_error_quitter is not
4954 compiled in.
4955
805b0439
EZ
4956 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
4957 for w32.
4958
0f5642c2
KS
49592006-01-04 Kim F. Storm <storm@cua.dk>
4960
8a5db8ae
KS
4961 * process.c: Add IPv6 support.
4962 (Qipv4, Qipv6): New vars.
4963 (syms_of_process): Intern and staticpro them.
4964 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
4965 with or without port number. Handle 4 element vector as IPv4 address
4966 without port number.
4967 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
4968 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
4969 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
4970 request that address family only. :family nil or omitted means to
4971 determine address family from the specified :host and :service.
4972 (ifflag_table): Add missing OpenBSD IFF_ flags.
4973 (server_accept_connection): Handle IPv6 addresses.
4974 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
4975
0f5642c2
KS
4976 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
4977 determine which breakpoints to set.
4978
e7b394e1
SM
49792006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
4980
4981 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
4982
4983 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
4984
dcc9b98d
RF
49852006-01-03 Romain Francoise <romain@orebokech.com>
4986
4987 * emacs.c (main): Update copyright year.
4988
6918ac24 49892006-01-03 Ken Raeburn <raeburn@gnu.org>
1a271e14
KR
4990
4991 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
4992 nil for the call to internal_delete_file.
4993
bb951f0e
KR
49942006-01-01 Ken Raeburn <raeburn@gnu.org>
4995
4996 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
4997 to nil for the call to Fwrite_region.
4998
b20de1cd
RS
49992005-12-31 Richard M. Stallman <rms@gnu.org>
5000
5001 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
5002
b5871831
EZ
50032005-12-31 Eli Zaretskii <eliz@gnu.org>
5004
5005 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
5006
c26ec07f
LT
50072005-12-30 Luc Teirlinck <teirllm@auburn.edu>
5008
5009 * textprop.c (set_text_properties): Reword description of return value.
5010 Return Qnil if caller wants to remove all text properties from a
5011 string and the string already has no intervals.
5012
0db017c0
SM
50132005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
5014
5015 * term.c (visible_cursor): New boolean var.
5016 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
5017 visible_cursor.
5018 (syms_of_term): Export the new var as "visible-cursor".
5019
fc8dc7cf
EZ
50202005-12-30 Eli Zaretskii <eliz@gnu.org>
5021
5022 * .gdbinit: Tell users not to worry about GDB warnings that some
5023 functions do not exist in the binary.
5024
82a80058
AS
50252005-12-30 Andreas Schwab <schwab@suse.de>
5026
5027 * process.c (Fnetwork_interface_info): Correctly terminate the
5028 loop over ifflag_table.
5029
c36238ee
RS
50302005-12-29 Richard M. Stallman <rms@gnu.org>
5031
d11db2c8
RS
5032 * lread.c (readevalloop): Test for reading a whole buffer
5033 before actually reading anything. Handle all cases, including
5034 START = END = nil and an already-narrowed buffer.
5035 Convert END to a marker if it is a number.
5036
c36238ee
RS
5037 * keymap.c (describe_map): Put sparse map elements into an array,
5038 sort them, then output a sequence of identical bindings on one line.
5039 (struct describe_map_elt): New data type.
5040 (describe_map_compare): New function.
5041
82bc1fd6
JD
50422005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5043
e7b394e1 5044 * gtkutil.c (xg_get_file_with_chooser): Change message shown
82bc1fd6
JD
5045 in file chooser.
5046
fe5195e8
RS
50472005-12-27 Richard M. Stallman <rms@gnu.org>
5048
6281e1e8
RS
5049 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
5050 not the current one.
5051
5052 * minibuf.c (Fminibuffer_message): Doc fix.
5053 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
5054
fe5195e8
RS
5055 * eval.c (do_autoload): Ignore elements of Vautoload_queue
5056 where car is not symbol.
5057
0d9fb289
KH
50582005-12-27 Kenichi Handa <handa@m17n.org>
5059
5060 * charset.c (lisp_string_width): Check multibyteness of STRING.
5061
ff9c9c59
JD
50622005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5063
14a56a1b 5064 * xfns.c (x_show_hidden_files): New variable.
ff9c9c59
JD
5065 (syms_of_xfns): Defvar it.
5066
5067 * gtkutil.c (xg_toggle_visibility_cb): New function.
5068 (xg_get_file_with_chooser): Add toggle hidden files and a message
5069 to the new file chooser dialog. Show hidden files if
5070 x_show_hidden_files is non-zero.
5071
d7504d5c
RS
50722005-12-26 Richard M. Stallman <rms@gnu.org>
5073
5074 * keyboard.h: Undo previous change.
5075
5076 * Makefile.in (undo.o): Undo previous change.
5077
5078 * undo.c: Undo previous change.
5079
0ad017ce
LT
50802005-12-26 Luc Teirlinck <teirllm@auburn.edu>
5081
403c00a5
LT
5082 * keyboard.h: extern last_point_position_window.
5083
0ad017ce
LT
5084 * undo.c: include keyboard.h.
5085
403c00a5 5086 * Makefile.in (undo.o): Depend on keyboard.h.
0ad017ce 5087
91e25f5e
RS
50882005-12-26 Richard M. Stallman <rms@gnu.org>
5089
d7504d5c
RS
5090 * commands.h (last_point_position_window): Declare.
5091
91e25f5e
RS
5092 * undo.c: Depend on window.h.
5093 (record_point): Save old point from the correct window.
5094
5095 * keyboard.c (last_point_position_window): New variable.
5096 (command_loop_1): Set last_point_position_window.
5097 (syms_of_keyboard): Init it.
5098
5099 * Makefile.in (undo.o): Depend on window.h.
5100
cad1051b
RS
51012005-12-25 Richard M. Stallman <rms@gnu.org>
5102
5103 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
5104 to undo a `provide'.
5105
5106 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
5107
d52c26e9
KB
51082005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
5109
5110 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
5111 define for FreeBSD on this platform.
5112
14af1e44
YM
51132005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5114
5115 * macterm.h (TYPE_FILE_NAME): New define.
5116 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
5117
e7b394e1
SM
5118 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
5119 Add prototypes. Make static.
14af1e44
YM
5120 (mac_aedesc_to_lisp): Initialize err to noErr.
5121 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
5122 (init_coercion_handler): New functions.
5123 (Fmac_coerce_ae_data): Use coercion of Apple event data for
5124 translation from/to file names.
5125
5126 * macterm.c: Don't include sys/param.h.
5127 (init_coercion_handler): Add extern.
5128 [MAC_OS8] (main): Call init_coercion_handler.
5129 (mac_initialize) [MAC_OSX]: Likewise.
5130 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
5131 Apple event data for translation from/to file names.
5132
5133 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
5134
5135 * image.c [MAC_OS] (find_image_fsspec): Likewise.
5136
5fed8c15 51372005-12-23 Martin Rudalics <rudalics@gmx.at>
bab3eee1
EZ
5138
5139 * insdel.c (insert, insert_and_inherit, insert_before_markers)
5140 (insert_before_markers_and_inherit): Make sure FROM is correct
5141 when `after-change-functions' are called.
5142
90f2e16b
JD
51432005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5144
5145 * xfns.c (Fx_uses_old_gtk_dialog): New function.
5146
5147 * gtkutil.c (xg_uses_old_file_dialog): New function.
5148 (xg_get_file_name): Use xg_uses_old_file_dialog.
5149
5150 * gtkutil.h: Declare xg_uses_old_file_dialog.
5151
0ee01fff
RS
51522005-12-22 Richard M. Stallman <rms@gnu.org>
5153
5154 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
5155
b73e4d84
YM
51562005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5157
5158 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
5159
5160 * macgui.h (XCharStruct): Remove member `valid_p'.
5161 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
5162 (XCharStructRow): New typedef.
e7b394e1
SM
5163 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
5164 New macros.
b73e4d84
YM
5165 (struct MacFontStruct): Add member `bounds'. Remove member
5166 `per_char'. All uses for QuichDraw Text fonts are changed to
5167 `bounds.per_char'. ATSUI font bounds are represented as an array
5168 `bounds.rows' of XCharStructRow's, each of which consists of a
5169 bitmap of valid entries and an array of char bounds.
5170
5171 * macterm.c (mac_per_char_metric): Add prototype.
5172 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
5173 (mac_query_char_extents): New function.
5174 (x_per_char_metric): Use it.
5175 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
e7b394e1
SM
5176 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
5177 Use mac_per_char_metric instead of x_per_char_metric.
b73e4d84
YM
5178 (mac_text_extents_16): New function.
5179 (mac_compute_glyph_string_overhangs): Use it.
5180 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
5181
a425bd03
SM
51822005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5183
5184 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
5185 (Fminibuffer_completion_help): Remove duplicates before display.
5186
aa0b0cd9
KL
51872005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5188
da3863b5 5189 * print.c (print_preprocess): Don't lose print_depth levels while
aa0b0cd9
KL
5190 iterating.
5191
5a61ec18
YM
51922005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5193
5194 * macmenu.c (Qmac_apple_event): Add extern.
5195 (set_frame_menubar, mac_menu_show keymp_panes)
5196 (single_keymap_panes, list_of_panes, list_of_item)
5197 (single_menu_item): Add argument types to prototypes.
5198 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
5199 (struct skp): New struct (from xmenu.c).
5200 (single_keymap_panes, single_menu_item, list_of_panes)
5201 (list_of_item): Sync with xmenu.c.
5202 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
5203 POSITION if it is mac-apple-event event.
5204 (menubar_selection_callback): Don't use menu_command_in_progress.
5205 (set_frame_menubar): First parse all submenus, then make
5206 widget_value trees from them. Don't allocate any widget_value
5207 objects until we are done with the parsing.
5208 (parse_single_submenu, digest_single_submenu): New functions.
5209 (single_submenu): Function deleted, replaced by those two.
5210 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
5211 create or dispose of EventHandlerUPP. Install hander to all submenus.
5212 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
5213 instead of ENCODE_SYSTEM.
5214 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
5215 integer values.
5216 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
5217 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
5218 format menu item string. Don't use NULL for integer value.
5219
5220 * macterm.h (struct mac_output): Remove unused member
5221 menu_command_in_progress.
5222
3bdba51d
JL
52232005-12-20 Juri Linkov <juri@jurta.org>
5224
5225 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
5226 position is non-nil, else set it to nil.
5227
5228 * macmenu.c (Fx_popup_menu): Add `else' to set
5229 Vmenu_updating_frame to nil only if position is nil.
5230
5231 * w32menu.c (Fx_popup_menu): Add `else' to set
5232 Vmenu_updating_frame to nil only if position is nil.
5233
d6a90a49
YM
52342005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5235
5236 * keyboard.c (make_lispy_event): Drag-and-drop items are now
5237 stored in member `args' of struct input_event.
5238
5239 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
5240
5241 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
5242 stored in member `args' of struct input_event.
5243
5244 * w32term.c (construct_drag_n_drop): Likewise.
5245
5246 * macterm.c (mac_do_receive_drag): Likewise.
5247 (x_use_underline_position_properties): Undo 2005-07-13 change.
5248 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
5249 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
a425bd03
SM
5250 (mac_pass_command_to_system, mac_pass_control_to_system):
5251 New boolean variables renamed from Lisp_Object ones
d6a90a49 5252 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
a425bd03
SM
5253 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
5254 All uses changed.
d6a90a49
YM
5255 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
5256 Make them user options.
a425bd03
SM
5257 (mac_handle_command_event, mac_store_services_event):
5258 Call create_apple_event_from_event_ref without 5th argument.
d6a90a49
YM
5259 (backtranslate_modified_keycode): Mask off modifier keys that are
5260 mapped to some Emacs modifiers before passing it to KeyTranslate.
5261 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
5262 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
5263 Fix docstrings of `mac-*-modifier'.
5264
5265 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
a425bd03
SM
5266 (do_applescript): Change argument types to Lisp_Object.
5267 All uses changed.
d6a90a49
YM
5268
5269 * macterm.h (create_apple_event_from_event_ref): Remove 5th
5270 argument from extern.
5271
20d1c5c5
DN
52722005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5273
5274 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
5275 the answer, return `lambda', not nil.
5276
abeb5855
EZ
52772005-12-17 Eli Zaretskii <eliz@gnu.org>
5278
5279 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
5280 enclosed in $(ARGQUOTE)s should not be split between two lines, as
5281 that will break with GNU Make >3.80, when sh.exe is used and
5282 arg quoting is with '..'.
5283
6b8dfbf7
CY
52842005-12-17 Chong Yidong <cyd@stupidchicken.com>
5285
5286 * print.c (print_preprocess): Just signal an error if print_depth
5287 is exceeded.
5288
d912b87a
EZ
52892005-12-17 Eli Zaretskii <eliz@gnu.org>
5290
5291 * .gdbinit: Set a breakpoint on w32_abort.
5292
2a502a32
JL
52932005-12-16 Juri Linkov <juri@jurta.org>
5294
5295 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
5296 created from minibuffer_completion_contents.
5297 (minibuffer_completion_contents): Remove.
5298 (do_completion, Fminibuffer_complete_word)
5299 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
5300 with Fminibuffer_completion_contents.
5301 (syms_of_minibuf): Add Sminibuffer_completion_contents.
5302 (Fdisplay_completion_list): Doc fix.
5303 (display_completion_list_1): Use `nil' for second arg of
5304 `Fdisplay_completion_list'.
5305
bf63eb69
JD
53062005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5307
5308 * xfns.c (compute_tip_xy): Handle negative dx and dy.
5309
a425bd03 5310 * w32fns.c (compute_tip_xy): Ditto.
bf63eb69 5311
a425bd03 5312 * macfns.c (compute_tip_xy): Ditto.
bf63eb69 5313
9b98e161
CY
53142005-12-14 Chong Yidong <cyd@stupidchicken.com>
5315
5316 * print.c (print_preprocess): Go to a deeper print_depth to avoid
5317 print_object loop.
5318
89aa725a
KH
53192005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
5320
5321 * coding.c (code_convert_region_unwind): GCPRO arg.
5322
3b006f5b
JD
53232005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5324
57134802
JD
5325 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
5326 i.e. dy is offset from top of frame instead of bottom.
5327
5328 * macfns.c (compute_tip_xy): Ditto.
5329
5330 * w32fns.c (compute_tip_xy): Ditto.
5331
3b006f5b
JD
5332 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
5333 (xg_get_image_for_pixmap, xg_create_frame_widgets)
5334 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
5335
5336 * xmenu.c (menubar_selection_callback): Do nothing if the callback
5337 is for an unselected radio menu item.
5338
2cb33a98
RS
53392005-12-11 Richard M. Stallman <rms@gnu.org>
5340
5341 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
5342
5343 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
5344
5345 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
5346 (Flookup_key): Doc fix.
5347 (syms_of_keymap) <function-key-map>: Doc fix.
5348
5349 * fns.c (Frequire): Treat evaluating from a source file
5350 like loading the file.
5351
5352 * floatfns.c (Flog): Doc fix.
5353
5354 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
5355 when we change the buffer.
5356
d7d1f75e
JL
53572005-12-11 Juri Linkov <juri@jurta.org>
5358
5359 * minibuf.c (display_completion_list_1):
5360 Call `minibuffer_completion_contents' instead of using `nil' as
5361 second arg of `Fdisplay_completion_list'.
5362 (keys_of_minibuf): Unbind SPC in
5363 Vminibuffer_local_filename_completion_map (see also related
5364 change on 2005-12-06).
5365
ac8fcf0f
YM
53662005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5367
5368 * emacs.c (main) [MAC_OS8]: Undo previous change.
5369
5370 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
5371 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
5372
4b3eb407
YM
53732005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5374
5375 * Makefile.in (macselect.o): Depend on keymap.h.
5376
5377 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
5378 syms_of_macselect.
5379
5380 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
5381 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
5382
5383 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
5384 (syms_of_keyboard) [MAC_OS]: Initialize it.
5385 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
5386
5387 * mac.c (Qundecoded_file_name): New variable.
5388 (syms_of_mac): Initialize it.
5389 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
a425bd03 5390 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4b3eb407
YM
5391 (Fmac_coerce_ae_data): New defun.
5392 (syms_of_mac): Defsubr it.
5393
5394 * macselect.c: Include keymap.h.
5395 (mac_ready_for_apple_events): New variable.
5396 (Vmac_apple_event_map, Qmac_apple_event_class)
5397 (Qmac_apple_event_id): New variables.
5398 (syms_of_macselect): Initialize them.
5399 (Qundefined, mac_store_apple_event): Add externs.
5400 (struct apple_event_binding): New struct.
5401 (find_event_binding_fun, find_event_binding)
5402 (mac_find_apple_event_spec, defer_apple_events)
5403 (mac_handle_apple_event, init_apple_event_handler)
5404 (copy_scrap_flavor_data): New functions.
5405 (Fmac_process_deferred_apple_events): New defun.
5406 (syms_of_macselect): Defsubr it.
5407 (mac_store_services_event): Fix extern.
5408 (mac_handle_service_event): Don't allocate Lisp objects during
5409 asynchronous input processing. Use mac_store_services_event
5410 instead of mac_store_application_menu_event.
5411
5412 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
5413 (Qpreferences): Remove variables.
5414 (syms_of_macterm) : Don't initialize them.
5415 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
5416 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
5417 (init_required_apple_events, do_ae_open_application)
5418 (do_ae_print_documents, do_ae_open_documents)
5419 (do_ae_quit_application): Remove functions and prototypes.
5420 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
5421 (mac_find_apple_event_spec): Add externs.
5422 (mac_store_application_menu_event): Remove function.
5423 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
5424 (mac_handle_command_event): Create Apple event from Carbon event.
5425 Use mac_store_apple_event instead of mac_store_application_menu_event.
5426 [MAC_OSX] (mac_store_services_event): Likewise.
5427 (struct SelectionRange, SelectionRange): Remove struct and typedef.
5428 [MAC_OS8] (main): Call init_apple_event_handler instead of
5429 init_required_apple_events.
5430 (mac_initialize) [MAC_OSX]: Likewise.
e7b394e1
SM
5431 [!USE_CARBON_EVENTS] (mac_wait_next_event):
5432 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
4b3eb407 5433
e7b394e1
SM
5434 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
5435 Add externs.
4b3eb407
YM
5436 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
5437 (Fmac_get_preference): Add EXFUN.
5438
5439 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
5440 event.
5441
e358e052
RS
54422005-12-09 Richard M. Stallman <rms@gnu.org>
5443
5444 * xfns.c (Fx_create_frame): Reinstate previous change.
5445
9ea74bfb
EZ
54462005-12-09 Eli Zaretskii <eliz@gnu.org>
5447
5448 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
5449 GDB to the abort dialog.
5450
9dd28cae 54512005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
84fdb82c
KS
5452
5453 * indent.c (Fvertical_motion): Force move if starting on
5454 stretch glyph.
5455
2fda6977
RS
54562005-12-08 Richard M. Stallman <rms@gnu.org>
5457
2663a204
RS
5458 * lread.c (read_escape) <\s>: Don't treat strings specially.
5459
2fda6977
RS
5460 * xfns.c (Fx_create_frame): Comment out previous change.
5461
225c13a5
KL
54622005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5463
5464 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
5465 when needed.
5466
da8ec671
SM
54672005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
5468
5469 * minibuf.c (keys_of_minibuf): Just unbind SPC in
5470 Vminibuffer_local_filename_completion_map rather than forcing it
5471 explicitly to the same binding as the global map.
5472
88fde92a
KR
54732005-12-06 Ken Raeburn <raeburn@gnu.org>
5474
e7b394e1 5475 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
88fde92a 5476 * bytecode.c (Fbyte_code): Likewise.
e7b394e1 5477 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
88fde92a
KR
5478 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
5479 * undo.c (truncate_undo_list): Likewise.
5480
fa0d4d0c
RS
54812005-12-05 Richard M. Stallman <rms@gnu.org>
5482
5483 * window.c (enlarge_window): Eliminate arg preserve_before.
5484 Assume it is 0. All callers changed.
5485 (Fenlarge_window, Fshrink_window): Likewise.
5486
5a98616e
EZ
54872005-12-02 Eli Zaretskii <eliz@gnu.org>
5488
5489 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
5490 fit below.
5491
1dbacb90
JD
54922005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5493
5494 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
5495
5496 * xfns.c (x_real_positions): int ign => unsigned int.
5497 (xg_set_icon_from_xpm_data): Remove unused variable err.
5498 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
5499 to remove compiler warning.
5500 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
5501
0a79da1b
EZ
55022005-12-02 David Reitter <david.reitter@gmail.com>
5503
5504 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
5505 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
5506 and Vminibuffer_local_must_match_filename_map keymaps.
5507 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
5508
5509 * keymap.c (Vminibuffer_local_filename_completion_map)
5510 (Vminibuffer_local_must_match_filename_map): New variables.
5511 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
5512 parent to be Vminibuffer_local_completion_map and
5513 Vminibuffer_local_must_match_map, respectively.
5514
5515 * commands.h (Vminibuffer_local_filename_completion_map)
5516 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
5517
e67a1dea
SM
55182005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
5519
5520 * window.c (Fset_window_configuration): Don't accidentally copy the
5521 window-point of one window to another.
5522
6ad0f04d
KL
55232005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5524
7854b2a3 5525 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6ad0f04d 5526
4269a2fd
KS
55272005-11-30 Kim F. Storm <storm@cua.dk>
5528
5529 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
5530 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
5531 passing it to `emacs_write'.
5532
96013ba9
SM
55332005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
5534
5535 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
5536
161ef3be
RS
55372005-11-27 Richard M. Stallman <rms@gnu.org>
5538
5539 * window.c (adjust_window_trailing_edge): New function.
5540 (Fadjust_window_trailing_edge): New function.
96013ba9 5541 (syms_of_window): Defsubr it.
161ef3be
RS
5542 (window_deletion_count): New variable.
5543 (delete_window): Update window_deletion_count.
5544
02b1a164
EZ
55452005-11-26 Eli Zaretskii <eliz@gnu.org>
5546
5547 * minibuf.c (syms_of_minibuf): Mention the extension of
5548 `completion-auto-help's meaning by complete.el.
5549
07908aec
EZ
55502005-11-26 Henrik Enberg <henrik.enberg@telia.com>
5551
96013ba9 5552 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
07908aec
EZ
5553 Handle :inherit property as a lisp expression.
5554
b9c7cbf9
YM
55552005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5556
5557 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
5558 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
5559 Qsuper, and Qmodifier_value.
5560 (Vmac_control_modifier, Vmac_option_modifier)
5561 (Vmac_command_modifier, Vmac_function_modifier)
5562 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
5563 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
5564 (Vmac_charset_info_alist): Doc fixes.
5565
2c012c41
YM
55662005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5567
5568 * emacs.c (main) [MAC_OSX]: Change working directory to home
5569 directory if `-psn_*' option is specified.
5570
5571 * mac.c (DECODE_UTF_8): Remove macro.
5572 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
5573 created from cfstring_to_lisp.
5574 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
5575 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
5576
5577 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
5578 Add prototype.
5579
88fde92a 55802005-11-21 Ken Raeburn <raeburn@gnu.org>
d7c0be75
KR
5581
5582 * keymap.c (shadow_lookup): Use make_number to pass a number to
5583 Fsubstring.
5584
17c1971a
JL
55852005-11-21 Juri Linkov <juri@jurta.org>
5586
5587 * puresize.h (BASE_PURESIZE): Increment to 1180000.
5588
0268cef3
CY
55892005-11-20 Chong Yidong <cyd@stupidchicken.com>
5590
96013ba9
SM
5591 * xfaces.c (Finternal_set_lisp_face_attribute):
5592 Use :ignore-defface for new frame defaults when `unspecified' is
0268cef3
CY
5593 supplied.
5594 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
67d23e01
CY
5595 (merge_face_vectors): Don't do :ignore-defface overwriting here.
5596 (Finternal_merge_in_global_face): Do it here.
0268cef3 5597
dd949173
JL
55982005-11-20 Juri Linkov <juri@jurta.org>
5599
5600 * charset.c (invalid_character): Use Lisp-readable syntax
5601 for octal and hex. Reorder decimal, octal and hex values.
5602
76986433
NR
56032005-11-20 Nick Roberts <nickrob@snap.net.nz>
5604
5605 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
5606 this type is recognised when debugging.
5607
603add2d
AS
56082005-11-19 Andreas Schwab <schwab@suse.de>
5609
5610 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
5611 Lisp_Cons and Lisp_Float.
5612
125ce9ec
YM
56132005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5614
5615 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
5616 New variable.
96013ba9 5617 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
125ce9ec
YM
5618 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
5619 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
5620 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
5621
2ff10663
CY
56222005-11-17 Chong Yidong <cyd@stupidchicken.com>
5623
96013ba9 5624 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
fe45ad15 5625
2ff10663
CY
5626 * xfaces.c (Qignore_defface): New variable.
5627 (syms_of_xfaces): Provide `:ignore-defface'.
5628 (IGNORE_DEFFACE_P): New macro.
05338727
CY
5629 (check_lface_attrs, lface_fully_specified_p)
5630 (Finternal_set_lisp_face_attribute)
96013ba9
SM
5631 (Fface_attribute_relative_p, Fmerge_face_attribute):
5632 Handle Qignore_defface as a possible value.
2ff10663
CY
5633 (merge_face_vectors): The merged face is `unspecified' if the
5634 mergee specifies `:ignore-defface'.
5635
c01f0ed3
SM
56362005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
5637
5638 * lread.c (readevalloop): Add missing GCPROs.
5639
786a43d6
CY
56402005-11-16 Chong Yidong <cyd@stupidchicken.com>
5641
9f7b984b
CY
5642 * xfns.c (xg_set_icon_from_xpm_data): New function.
5643
c01f0ed3
SM
5644 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
5645 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
786a43d6
CY
5646
5647 * xterm.c (x_bitmap_icon): Use the xpm if available.
5648
5649 * image.c (x_create_bitmap_from_xpm_data): New function.
54188d8f 5650 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
786a43d6 5651
8ab84823
LT
56522005-11-15 Luc Teirlinck <teirllm@auburn.edu>
5653
5654 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
5655
3671718b
NR
56562005-11-16 Nick Roberts <nickrob@snap.net.nz>
5657
5658 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
5659
28a099a4
AS
56602005-11-15 Andreas Schwab <schwab@suse.de>
5661
5662 * lisp.h (struct Lisp_Cons): Make cdr a union.
5663 (XCDR_AS_LVALUE): Adjust.
5664 (struct Lisp_Float): Make data a union.
5665 (XFLOAT_DATA): Adjust.
5666
5667 * alloc.c (free_float): Make free list chaining aliasing-safe.
5668 (make_float): Likewise.
5669 (free_cons): Likewise.
5670 (Fcons): Likewise.
5671 (check_cons_list): Likewise.
5672 (Fmake_symbol): Likewise.
5673 (allocate_misc): Likewise.
5674 (free_misc): Likewise.
5675 (gc_sweep): Likewise.
5676
308a6607
YM
56772005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5678
fc09d07f
YM
5679 * mac.c (HASHKEY_QUERY_CACHE): New define.
5680 (xrm_create_database, xrm_q_put_resource): Empty query cache.
5681 (xrm_get_resource): Use query cache.
5682
308a6607
YM
5683 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
5684 inhibit_window_system is set.
5685
29b585db
YM
56862005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5687
5688 * macgui.h (USE_CG_TEXT_DRAWING): New define.
5689 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
5690 and cg_glyphs.
5691
5692 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
5693 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
5694 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
5695 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
5696 not used and font substitution never occurs for ASCII and Latin-1
5697 characters.
5698 (XLoadQueryFont): Maximum and minimum metrics are now those among
5699 ASCII characters.
5700 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
5701 height adjustments for Courier, Helvetica, and Times.
5702
5703 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
5704
9dd28cae 57052005-11-11 David Reitter <david.reitter@gmail.com>
b02e3f7b 5706
dff79d04 5707 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
267ee78f 5708 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
dff79d04
ST
5709 Vmac_control_modifier / mac-control-modifier,
5710 Vmac_option_modifier / mac-option-modifier,
5711 Vmac_command_modifier / mac-command-modifier.
5712 (mac_to_emacs_modifiers): Use the new style modifier
c01f0ed3
SM
5713 variables. Return UInt32 (modifiers are longs now.)
5714 (backtranslate_modified_keycode): New function (refactoring).
5715 (XTread_socket): Use new modifier variables and refactored function.
5716 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
5717 no dedicated meta key. Not in use anyway.)
b02e3f7b
ST
5718 (convert_fn_keycode): Map Fn-keys to their original keycode
5719 using a table (english keyboard only).
b02e3f7b 5720
6a77a9f5
KS
57212005-11-11 Kim F. Storm <storm@cua.dk>
5722
ab4d879e
KS
5723 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
5724 Add post hook to "backtrace" to always dump lisp call stack to
5725 increase chance of people sending it to us when reporting bugs.
5726
8c41220c
KS
5727 * doc.c (Fsubstitute_command_keys): Doc fix.
5728
6a77a9f5
KS
5729 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
5730
5731 * xdisp.c (handle_stop): Skip overlay string handling if
5732 ignore_overlay_strings_at_pos_p is set.
5733 (set_iterator_to_next): At end of display vector, set
5734 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
5735 string, so we skip those overlay strings at current pos.
5736
9dd28cae 57372005-11-10 Lars Hansen <larsh@soem.dk>
19a9c3b7
LH
5738
5739 * fileio.c (file-regular-p): Doc fix.
5740
932954d1
KS
57412005-11-10 Kim F. Storm <storm@cua.dk>
5742
5743 * alloc.c (valid_lisp_object_p): New function to validate that
5744 an object is really a valid Lisp_Object.
5745
5746 * lisp.h (valid_lisp_object_p): Add prototype.
5747
5748 * print.c (safe_debug_print): New function to be called from gdb
5749 to print Lisp objects; use valid_lisp_object_p to avoid crashing
5750 if user tries to print something which is not a Lisp object.
5751
5752 * .gdbinit (pp, pp1): Use safe_debug_print.
5753 (pv, pv1): New commands to print value of a lisp variable.
5754
78e5988d
NR
57552005-11-10 Nick Roberts <nickrob@snap.net.nz>
5756
5757 * .gdbinit (pp1): New user-defined function.
5758
f56a5bd8
YM
57592005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5760
5761 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
5762
5763 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
5764 related variables for dumped executable.
5765
5766 * unexmacosx.c (unexec_write_zero): New function.
5767 (copy_data_segment): Clear uninitialized local variables in
5768 statically linked libraries.
5769
5770 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
5771
58b6f884
JL
57722005-11-09 Juri Linkov <juri@jurta.org>
5773
5774 * keymap.c (shadow_lookup): If Flookup_key returns a number,
5775 call it again with a sub-key-sequence, and if its return value
5776 is non-nil (sub-key is bound), return nil.
5777
1f5f957a
KS
57782005-11-08 Kim F. Storm <storm@cua.dk>
5779
5780 * process.c (Fsignal_process): Recognize signal names with and
5781 without SIG prefix, e.g. SIGHUP and HUP.
5782
5783 * search.c (search_buffer): No need to initialize base_pat.
5784
20b69789
SM
57852005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
5786
5787 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
5788 Don't abuse the `mini' arg. Use the `obj' arg instead.
5789
7353f169
KS
57902005-11-04 Kim F. Storm <storm@cua.dk>
5791
5792 * xdisp.c (show_mouse_face): Clear mouse face to eol.
5793
1f7b1131
DN
57942005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
5795
5796 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
5797 font-lock.elc and jit-lock.elc.
5798
e082564e
RS
57992005-11-03 Richard M. Stallman <rms@gnu.org>
5800
5801 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
5802 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
5803 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
5804
5805 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
5806
5807 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
5808
49e99345
SM
58092005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5810
5811 * window.c (Fdisplay_buffer): Fix last change to not use
5812 a dedicated window.
5813
8f15921b
KS
58142005-11-01 Kim F. Storm <storm@cua.dk>
5815
5816 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
5817 Instead, rotate the bottom angle bitmap 180 degrees to indicate
5818 that the bottom row does not end in a newline.
5819
b4235a80
AS
58202005-11-01 Andreas Schwab <schwab@suse.de>
5821
5822 * unexelf.c (unexec): Handle .plt section in BSS segment.
5823
3cbb13c8
SM
58242005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5825
e5f64be2
SM
5826 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
5827
3cbb13c8
SM
5828 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
5829 determine whether to consider dedicated windows as well.
5830 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
5831 (Fdisplay_buffer): Do consider dedicated windows in those cases where
5832 we will split the window rather than reuse it.
5833 Don't try to use windows on other displays.
5834
c94f08ff
DN
58352005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
5836
5837 * puresize.h (BASE_PURESIZE): Increment to 1170000.
5838
edf84ae9
RF
58392005-10-31 Romain Francoise <romain@orebokech.com>
5840
5841 * macfns.c: Update copyright year.
5842 * m/gould.h: Likewise.
5843
6f07f649
KS
58442005-10-30 Kim F. Storm <storm@cua.dk>
5845
5846 * xdisp.c (display_line): Restore it->current_x and call
5847 extend_face_to_end_of_line when last glyph doesn't fit on line.
9dd28cae 5848 (set_glyph_string_background_width): Remove specific tests here
6f07f649
KS
5849 to see if face background should extend to end of line. Simplify.
5850
4d74a5fc
RS
58512005-10-30 Richard M. Stallman <rms@gnu.org>
5852
5853 * alloc.c (BYTES_USED): Use uordblks, not arena.
5854 (bytes_used_when_reconsidered): New variable.
5855 (emacs_blocked_free): Set that.
5856
bccfb310
CY
58572005-10-29 Chong Yidong <cyd@stupidchicken.com>
5858
5859 * alloc.c (emacs_blocked_free): Fix typo.
5860
f5b8d5f2
RS
58612005-10-29 Richard M. Stallman <rms@gnu.org>
5862
4d74a5fc
RS
5863 * data.c (Fmake_variable_frame_local): Doc fix.
5864
f5b8d5f2
RS
5865 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
5866 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
5867 controls whether to save and restore mode_line_proptrans_alist.
5868 Callers changed.
5869 (unwind_format_mode_line): Work with that feature.
5870 (redisplay_internal): Don't call prepare_menu_bars if memory full.
5871 (move_elt_to_front): New function.
5872 (display_mode_element): Use move_elt_to_front.
5873 Don't bother munging text props on a null string.
5874 Delete obsolete elts from mode_line_proptrans_alist.
5875 (decode_mode_spec): Test Vmemory_full, not spare_memory.
685abb98 5876 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
f5b8d5f2 5877
49e99345
SM
5878 * lisp.h (memory_full_cons_threshold): Declare.
5879 (internal_lisp_condition_case): Declare.
f5b8d5f2
RS
5880
5881 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
5882 (Fmemory_full_p): Function deleted.
5883 (syms_of_alloc): Don't defsubr it.
5884 (memory_full_cons_threshold): New variable.
5885 (spare_memory): Now a vector of 7 elts.
5886 (buffer_memory_full): Don't set Vmemory_full here.
5887 (xfree): Don't try to refill here.
5888 (emacs_blocked_free): Record BYTES_USED in local var.
5889 (memory_full): Now free all the slots in spare_memory.
5890 (refill_memory_reserve): Allocate each slot in spare_memory.
5891 (init_alloc_once): Call refill_memory_reserve.
5892
5893 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
5894
5895 * eval.c (internal_lisp_condition_case): New function.
5896 (Fcondition_case): Use internal_lisp_condition_case.
5897 (Feval): Test Vmemory_full and memory_full_cons_threshold.
5898 (Ffuncall): Likewise.
5899
5900 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
5901
c390e28c
SM
59022005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
5903
5904 * syntax.c (Fparse_partial_sexp): Fix docstring.
5905
ab5d87b3
RF
59062005-10-28 Romain Francoise <romain@orebokech.com>
5907
c390e28c 5908 * puresize.h (BASE_PURESIZE): Increment to 1130000.
ab5d87b3 5909
107fb6c9
RS
59102005-10-28 Richard M. Stallman <rms@gnu.org>
5911
5912 * xfns.c (syms_of_xfns): Provide `x' as feature.
5913
5914 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
5915
5916 * editfns.c (Fformat): Don't include string padding
5917 between info[n].start and info[n].end.
5918
5919 * alloc.c (spare_memory): No longer static.
5920 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
5921
c390e28c 5922 * puresize.h (BASE_PURESIZE): Increment to 1120000.
107fb6c9 5923
f351b58b
CY
59242005-10-27 Chong Yidong <cyd@stupidchicken.com>
5925
c390e28c 5926 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
437610c5 5927
f351b58b
CY
5928 * fringe.c (update_window_fringes): Handle case where buffer ends
5929 with a newline.
5930
581e7427
KH
59312005-10-27 Kenichi Handa <handa@m17n.org>
5932
5933 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
5934
59352005-10-24 Kenichi Handa <handa@m17n.org>
5936
5937 * charset.h (charset_mule_unicode_0100_24ff)
5938 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
5939 Extern them.
5940
5941 * charset.c (charset_mule_unicode_0100_24ff)
5942 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
5943 New variables.
5944 (Fsetup_special_charsets): Initialize them.
5945
5946 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
5947 supported Unicode characters.
5948
813fa8a8
JR
59492005-10-25 Jason Rumney <jasonr@gnu.org>
5950
5951 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
5952
05f7d868
YM
59532005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5954
5955 * image.c [MAC_OS] (image_load_qt_1): Check image size.
5956 Use GraphicsImportGetImageDescription instead of
5957 GraphicsImportGetNaturalBounds.
5958 [MAC_OSX] (image_load_quartz2d): Check image size.
5959 [MAC_OS] (xpm_load_image): Likewise.
5960
5961 * macterm.c (last_mouse_glyph_frame): New var.
5962 (note_mouse_movement): Say mouse moved if current frame differs
5963 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
5964 (XTmouse_position): Set last_mouse_glyph_frame.
5965 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
29b585db 5966 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
05f7d868
YM
5967 Use EndianU16_BtoN.
5968 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
5969 (x_per_char_metric, XLoadQueryFont)
5970 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
5971 glyph bounds.
5972 (mac_to_x_fontname, mac_do_list_fonts)
5973 (mac_initialize_display_info): Change screen resolutions to 72dpi.
5974
128e729d
MY
59752005-10-25 Masatake YAMATO <jet@gyve.org>
5976
5977 * minibuf.c (Fdisplay_completion_list): Small doc fix.
5978
59017afb
KS
59792005-10-24 Kim F. Storm <storm@cua.dk>
5980
94717db1
KS
5981 * xterm.c: Undo 2005-10-23 change.
5982 (last_mouse_glyph_frame): New var.
5983 (note_mouse_movement): Say mouse moved if current frame differs
5984 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
5985 (XTmouse_position): Set last_mouse_glyph_frame.
5986 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
5987 last_mouse_glyph] on mouse up/down event.
5988
59017afb
KS
5989 * editfns.c (Fcompare_buffer_substrings): Fix last change.
5990
7c5ba0d2
SM
59912005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5992
5993 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
5994
a4b0e228
JD
59952005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5996
5997 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
5998 so tool tips don't interfere with press on tool bar button.
5999
f6a18aa2
RS
60002005-10-23 Richard M. Stallman <rms@gnu.org>
6001
6002 * casetab.c (Fset_case_table): Doc fix.
6003
6004 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
6005 (readevalloop): Compute ENTIRE properly.
6006 (syms_of_lread) <load-history>: Doc fix.
6007
45158e77
RS
60082005-10-21 Richard M. Stallman <rms@gnu.org>
6009
6010 * lread.c (Fload): Simplify gcpro structure.
6011 Gcpro FOUND as well as FILE, but not EFOUND.
6012 Unless preloading, record FOUND instead of FILE in Vload_history.
6013 Rename repeat local FILE to MSG_FILE.
6014 (syms_of_lread) <load-history>: Doc fix.
6015
dfa1cd4d
KH
60162005-10-21 Kenichi Handa <handa@m17n.org>
6017
96664fc0 6018 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 6019
1064a9ea
KS
60202005-10-20 Kim F. Storm <storm@cua.dk>
6021
6022 * buffer.c (clone_per_buffer_values): Remove unused var tem.
6023 (init_buffer): Remove unused vars dotstat, pwdstat.
6024
6025 * ccl.c (check_ccl_update): Remove unused var vp.
6026
6027 * fileio.c (auto_save_error): Call SAFE_FREE.
6028
6029 * fns.c (Fchar_table_range): Remove unused var i.
6030
6031 * minibuf.c (display_completion_list_1): New wrapper function
6032 for Fdisplay_completion_list.
6033 (Fminibuffer_completion_help): Use it.
6034
6035 * term.c (encode_terminal_code): Remove unused var src_start.
6036
6037 * window.c (Fwindow_tree): Remove unused var alist.
6038
6039 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
6040
ce13796f
EZ
60412005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
6042
20b69789 6043 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
ce13796f 6044
ad9c16d3
EZ
60452005-10-20 Olli Savia <ops@iki.fi> (tiny change)
6046
6047 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
6048
26e9d2cf
AS
60492005-10-20 Andreas Schwab <schwab@suse.de>
6050
6051 * minibuf.c (Fdisplay_completion_list): Doc fix.
6052
e50165ec
KS
60532005-10-19 Kim F. Storm <storm@cua.dk>
6054
6055 * image.c (check_image_size): Handle integer Vmax_image_size value
6056 directly as max pixel value. Use default frame size for null frame.
6057 (syms_of_image) <max-image-size>: Describe integer value.
6058
d7b94c98
RF
60592005-10-19 Romain Francoise <romain@orebokech.com>
6060
6061 * emacs.c (main): Update copyright year.
6062
f1f25b99
CY
60632005-10-18 Chong Yidong <cyd@stupidchicken.com>
6064
6065 * image.c (Vmax_image_size): New variable.
6066 (check_image_size): New function.
6067 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
6068 (gif_load, gs_load): Use it.
6069 (lookup_image): Try loading again if previous load failed.
6070 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
6071 to display in, NULL if none.
6072 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
6073 argument.
6074
f42d19a2
RS
60752005-10-18 Richard M. Stallman <rms@gnu.org>
6076
6077 * search.c (Fstring_match): Doc fix.
6078
bcbdafce
YM
60792005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6080
6081 * macterm.c (note_mouse_movement): Use PtInRect.
6082 (XTread_socket): Also ignore mouse motion just before a button
6083 release event. Don't process button release event when mouse is
6084 not grabbed.
6085
f5fab556
MY
60862005-10-16 Masatake YAMATO <jet@gyve.org>
6087
6088 * minibuf.c (Fdisplay_completion_list): Add new optional
e5f64be2 6089 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
6090 to the optional argument during running `completion-setup-hook'.
6091
2ef1363e
YM
60922005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6093
6094 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
6095 Allow nil as argument.
6096 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
6097 for encoding arguments as UTF-16 in native byte order, no BOM.
6098
6099 * macfns.c (Fx_create_frame): Add debugging code.
6100 (Fx_show_tip): Set frame pixel width and height.
6101
6102 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
6103 (FRAME_NORMAL_GC): New macro.
6104 (mac_draw_line, mac_clear_area, mac_clear_window)
6105 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
6106 (mac_draw_image_string, mac_draw_image_string_16): Rename from
6107 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
6108 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
6109 All uses changed.
6110 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
6111 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
6112 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
6113 (mac_draw_string_16, mac_draw_image_string)
6114 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
6115 (mac_scroll_area): Drawing functions now take frame as destination.
6116 All uses changed.
6117 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
6118 (x_draw_fringe_bitmap): Set clipping area in face->gc.
6119
6120 * macterm.h (mac_clear_area): Add extern.
6121
fc5c7550
YM
61222005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6123
6124 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
6125 changes for xterm.c.
6126
6127 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
6128
fed91c38
KH
61292005-10-14 Kenichi Handa <handa@m17n.org>
6130
6131 * search.c (search_buffer): Give up BM search on case-fold-search
6132 if one of a target character has a case-equivalence of different
6133 charset even if that target charcter is an ASCII.
6134
6135 * casefiddle.c (casify_object): Fix for the case that case
6136 conversion change the byte length.
6137
0ea1a8af
KS
61382005-10-14 Kim F. Storm <storm@cua.dk>
6139
6140 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
6141 (handle_one_xevent): Only clear help_echo_string; restore it if
6142 note_mouse_movement didn't record any mouse movement.
6143
6144 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
6145 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
6146
647b07d1
AS
6147 * keyboard.c (make_lispy_position): Adjust wx for left margin if
6148 ON_TEXT.
0ea1a8af
KS
6149 (Fposn_at_x_y): Fix calculation of x coordinate.
6150 (Fposn_at_point): Return nil if point is hscrolled out of view.
6151
6e5b2385
AS
61522005-10-13 Andreas Schwab <schwab@suse.de>
6153
6154 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
6155 non-interactive mode.
6156
6de0e1a2
YM
61572005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6158
6159 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
6160
78f3b91f
KS
61612005-10-12 Kim F. Storm <storm@cua.dk>
6162
6163 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
6164
b639c9be
RF
61652005-10-12 Romain Francoise <romain@orebokech.com>
6166
6167 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
6168
76d8f04c
YM
61692005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6170
6171 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
6172 get end of text rows. Obtain header-line/mode-line rows directly.
6173
96013ba9
SM
6174 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
6175 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
621036f9 6176
d76432f5
KS
61772005-10-12 Kim F. Storm <storm@cua.dk>
6178
7a127784
KS
6179 * xdisp.c (remember_mouse_glyph): New generic version based on
6180 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
6181 properly handle all different window areas.
6182
6183 * dispextern.h (remember_mouse_glyph): Add prototype.
6184
6185 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
6186 (note_mouse_movement, XTmouse_position): Use generic
6187 remember_mouse_glyph, add last_mouse_glyph arg.
6188
6189 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
6190 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
6191 (note_mouse_movement, w32_mouse_position): Use generic
6192 remember_mouse_glyph, add last_mouse_glyph arg.
6193
6194 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
6195 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
6196 (XTmouse_position): Adapt to use generic remember_mouse_glyph
6197 instead of pixel_to_glyph_coords.
6198
d76432f5
KS
6199 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
6200 Fix x position for ON_TEXT when left margin width > 0.
6201
55a4ac3e
KS
62022005-10-11 Kim F. Storm <storm@cua.dk>
6203
d76432f5 6204 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
6205
6206 * keyboard.c (make_lispy_position): Fix buffer calculations for
6207 mouse click or movement in right fringe and the margins.
6208
2d4713aa
JB
62092005-10-11 Juanma Barranquero <lekktu@gmail.com>
6210
6211 * image.c (fn_jpeg_stdio_src): Don't define it.
6212 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
6213 (our_common_init_source): Rename from `our_init_source'.
6214 (our_common_term_source): Rename from `our_term_source'.
6215 (our_memory_fill_input_buffer): Rename from
6216 `our_fill_input_buffer'.
6217 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
6218 (jpeg_memory_src): Use the new names.
6219 (struct jpeg_stdio_mgr): New struct.
6220 (JPEG_STDIO_BUFFER_SIZE): New constant.
6221 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
6222 (jpeg_file_src): New functions.
6223 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
6224
71b7a47f
YM
62252005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6226
6227 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
6228 (fm_font_family_alist): New variable.
6229 (syms_of_macterm): Initialize and staticpro it.
6230 (decode_mac_font_name): Replace '-' in family name with '_' if it
6231 occurs just once. Lower family name.
6232 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
6233 All uses changed. Remove argument MF and code conversion for it.
6234 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
6235 to CHARSET. Parse font size. Lower family name. Return integer
6236 value for status of parsing.
6237 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
6238 Don't use Fdowncase because family name is already lowered by
6239 decode_mac_font_name.
96013ba9
SM
6240 (init_font_name_table): Always call decode_mac_font_name.
6241 Add pair of family name and its reference to fm_font_family_alist.
71b7a47f
YM
6242 (mac_clear_font_name_table): Clear fm_font_family_alist.
6243 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
6244 Lookup fm_font_family_alist to get font family reference.
6245 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
6246 name is already lowered by parse_x_font_name.
6247
74051a92
KS
62482005-10-11 Kim F. Storm <storm@cua.dk>
6249
31ab1f05
KS
6250 * xterm.c (glyph_rect): Return 0 if position is outside text area.
6251
74051a92
KS
6252 * keyboard.c (make_lispy_position): Fix buffer position calculation for
6253 mouse click or movement in fringe.
6254
9b909870
JR
62552005-10-10 Jason Rumney <jasonr@gnu.org>
6256
6257 * xterm.c (remember_mouse_glyph): New function.
58af5591 6258 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 6259 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 6260 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 6261
f9e36a6d
JD
62622005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6263
58af5591 6264 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 6265
04bc7945
JB
62662005-10-10 Juanma Barranquero <lekktu@gmail.com>
6267
6268 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
6269 (next_frame, prev_frame, set_term_frame_name): Make static.
6270
6271 * window.c (Fwindow_tree): Fix spelling.
6272
41791a20
RF
62732005-10-09 Romain Francoise <romain@orebokech.com>
6274
6275 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
6276
e313fc07
JD
62772005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6278
58af5591
KS
6279 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
6280 Add options -nb, --no-bitmap-icon.
e313fc07
JD
6281
6282 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
6283
61e62f5f
YM
62842005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6285
6286 * macgui.h (MAX_CLIP_RECTS): New define.
6287 (struct _XGC): New member clip_region.
6288 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
6289 clip_rects.
6290
6291 * macterm.c (GC_CLIP_REGION): New macro.
6292 (saved_port_clip_region): New variable.
6293 (mac_begin_clip, mac_end_clip): New functions.
6294 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
6295 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
6296 (mac_copy_area_with_mask, mac_scroll_area): Use them.
6297 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
6298 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
6299 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
6300 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
6301 rectangles stored in gc.
71b7a47f 6302 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
6303 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
6304 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
6305 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
6306 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
6307 (x_draw_bar_cursor): Use them.
6308 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
6309 get multiple clipping rectangles.
6310
6311 * macterm.h (mac_term_init): Add types to extern.
6312 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 6313 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
6314 scroll_bar_background_pixel in #if 0.
6315 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
6316
6317 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 6318 Add debugging code.
61e62f5f 6319
ef1b4c9e
KS
63202005-10-08 Kim F. Storm <storm@cua.dk>
6321
6322 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
6323
f1010549
KS
63242005-10-07 Kim F. Storm <storm@cua.dk>
6325
6326 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
6327 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
6328 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
6329
c2ded1b7
YM
63302005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6331
6332 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
6333 to for_overlaps. Now occupy 3 bits.
6334 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
6335 (OVERLAPS_ERASED_CURSOR): New defines.
6336 (struct redisplay_interface): Add new OVERLAPS arg to member
6337 fix_overlapping_area.
6338 (x_fix_overlapping_area): Add new OVERLAPS arg.
6339 (get_glyph_string_clip_rects): Add extern.
6340
96013ba9
SM
6341 * dispnew.c (redraw_overlapping_rows):
6342 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
c2ded1b7
YM
6343
6344 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
6345 for_overlaps.
6346 (get_glyph_string_clip_rects): New function created from
f1010549
KS
6347 get_glyph_string_clip_rect. Set clipping rectangles according to the
6348 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
6349 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
6350 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
6351 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 6352 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 6353 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
6354 calculating clipping rectangles later. Call x_fix_overlapping_area
6355 with new OVERLAPS arg to draw only erased cursor area.
f7270128 6356 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 6357 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
6358
6359 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
6360 struct glyph_string to for_overlaps.
6361
a19a0003
RS
63622005-10-04 Richard M. Stallman <rms@gnu.org>
6363
6364 * alloc.c (refill_memory_reserve): Conditionalize the body,
6365 not the function's existence.
6366
abc8ce50
KS
63672005-10-04 Kim F. Storm <storm@cua.dk>
6368
6369 * window.c (window_split_tree): New function.
6370 (Fwindow_split_tree): New defun.
6371 (syms_of_window): Defsubr it.
6372
66533b25
YM
63732005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6374
6375 * macterm.c (mac_invert_rectangle): New function.
6376 (XTflash): Use it.
6377
4156359e
SM
63782005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
6379
4e2f601f
SM
6380 * regex.h (re_char): Don't expose it in the interface.
6381 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
6382
6383 * regex.c (re_char): Move it back here.
6384 (re_set_whitespace_regexp): Change the arg's type to not use it.
6385
4156359e
SM
6386 * keyboard.c (make_lispy_event): If point has moved between down and up
6387 event, make it a drag, not a click, to mirror what
6388 mouse-drag-region expects.
6389
eb27c2ca
DN
63902005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6391
6392 * lisp.h (fatal): Undo previous change.
6393 * term.c (fatal): Undo previous change.
6394
b059f7d0
RS
63952005-10-01 Richard M. Stallman <rms@gnu.org>
6396
6397 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
6398
21a9a7be
KS
63992005-10-01 Kim F. Storm <storm@cua.dk>
6400
6401 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
6402
ddcb7665
YM
64032005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6404
6405 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
6406
6407 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 6408 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
6409 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
6410 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
6411
6412 * macgui.h (struct _XCharStruct): New member valid_p.
6413 (STORE_XCHARSTRUCT): Set valid_p.
6414 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
6415
6416 * macterm.c (mac_draw_string_common, x_per_char_metric)
6417 (mac_compute_glyph_string_overhangs, init_font_name_table)
6418 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
6419 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
6420 (x_draw_glyph_string_background)
6421 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
6422 XDrawImageString. Always draw background and foreground separately.
6423 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
6424 functions for one-byte chars when using ATSUI-compatible fonts.
6425 (atsu_font_id_hash) [USE_ATSUI]: New variable.
6426 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
6427 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
6428 max_char_or_byte2 more in detail.
6429 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
6430
fa8459a3
DN
64312005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
6432
4156359e 6433 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
6434 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
6435
6436 * unexelf.c (fatal): Fix prototype.
6437
6438 * term.c (fatal): Implement using varargs.
6439
21a9a7be 6440 * regex.c (re_char): Move typedef ...
fa8459a3 6441 * regex.h (re_char): ... here.
4156359e 6442 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
6443
6444 * emacs.c (malloc_set_state): Fix return type.
6445 (endif): Fix type.
6446
6447 * lisp.h (fatal): Add argument types.
6448
6449 * dispextern.h (fatal): Delete prototype.
6450
9dd28cae 6451 * systime.h (make_time): Prototype moved from ...
fa8459a3
DN
6452 * editfns.c (make_time): ... here.
6453
6454 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
6455 * dired.c:
6456 * xsmfns.c:
fa8459a3 6457 * process.c: Likewise.
21a9a7be 6458
fa8459a3
DN
6459 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
6460 Add parameter types.
6461 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
6462 (emacs_blocked_free): Change definition to match __free_hook.
6463 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 6464 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 6465
97c3e4cc
RF
64662005-09-30 Romain Francoise <romain@orebokech.com>
6467
6468 * minibuf.c (Fread_buffer): Follow convention for reading from the
6469 minibuffer with a default value. Doc fix.
6470
8ad8c5ce
JL
64712005-09-29 Juri Linkov <juri@jurta.org>
6472
6473 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
6474 Rename argument name `string' to `format-string'.
6475 (Fformat): Doc fix.
6476
64da5759
KS
64772005-09-28 Kim F. Storm <storm@cua.dk>
6478
6479 * image.c (gif_load): Fix size of allocated image buffer
6480 for images where a sub-image may be larger than the image's
6481 total height/width specifications.
6482
eaf92438
YM
64832005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6484
6485 * macgui.h (struct _XCharStruct): Each member now takes short value.
6486
43f15d4a
DN
64872005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
6488
6489 * xfaces.c (lookup_derived_face): Add parameter type.
6490
6491 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
6492
6493 * marker.c (verify_bytepos): Add parameter type.
6494
6495 * process.c (get_operating_system_release): Move prototype ...
6496
6497 * systime.h (get_operating_system_release): ... here.
6498
04bc7945
JB
6499 * xterm.c (handle_one_xevent): Refer to union field to match the
6500 type required by the function definition.
6501 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
6502
6503 * xterm.h: ... here.
6504
6505 * fns.c (internal_equal, seed_random): Fix prototypes.
6506 (internal_equal): Add missing parameter.
6507
c769dcac
RS
65082005-09-25 Richard M. Stallman <rms@gnu.org>
6509
6510 * keyboard.c (update_menu_bindings): Variable deleted.
6511 (syms_of_keyboard): Don't defvar it.
6512 (parse_menu_item): Don't test it.
6513
8dbf19c7
RS
65142005-09-23 Richard M. Stallman <rms@gnu.org>
6515
6516 * editfns.c (Fformat): Explicitly test for end of format string
6517 and don't use `index'.
6518
3480d92b
DN
65192005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
6520
4156359e
SM
6521 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
6522 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
6523
6524 * sysdep.c (get_current_dir_name): Also define if
64da5759 6525 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
6526
6527 * m/ibmrs6000.h: Test for USG5, not USG5_4.
6528
5db60f31
KS
65292005-09-22 Kim F. Storm <storm@cua.dk>
6530
6531 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
6532 (message2): Fix commentary. Ok to use alloca'ed memory.
6533 Still not ok to use Lisp string data (because of GC).
6534 (set_message): Add comment why GC cannot happen.
6535
7c3d233d
YM
65362005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6537
6538 * macterm.c (xlfdpat_block_match_1): Fix assertion.
6539 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
6540 variants for a scalable font multiple times.
6541
acde1152
YM
65422005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6543
6544 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
6545 Setup slave tty options before forking.
6546
52d166e0
JD
65472005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6548
6549 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
6550 positions have been set for the frame (as is done for frames in
6551 special-display-buffer-names).
6552
12d10bc7
KS
65532005-09-19 Kim F. Storm <storm@cua.dk>
6554
6555 * editfns.c (Fformat): Don't scan past end of format string that
6556 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
6557
9f1cf0e3
AS
65582005-09-18 Andreas Schwab <schwab@suse.de>
6559
6560 * window.h (struct window): Remove height_fixed_p, no longer set.
6561
6562 * window.c (make_window): Don't initialize height_fixed_p.
6563 (window_fixed_size_p): Don't use it.
6564
8a658a52
JPW
65652005-09-18 John Paul Wallington <jpw@pobox.com>
6566
6567 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
6568
be9bb408
YM
65692005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6570
6571 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
6572
6573 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
6574 New variables.
6575 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
6576 file selection.
6577
6578 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
6579
cbf223e1
EZ
65802005-09-17 Eli Zaretskii <eliz@gnu.org>
6581
6582 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
6583 (obj): Use XMENU_OBJ, not a literal xmenu.o.
6584
e3f509dd
RF
65852005-09-16 Romain Francoise <romain@orebokech.com>
6586
8ccd3630 6587 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 6588
5c4757d3
RS
65892005-09-15 Richard M. Stallman <rms@gnu.org>
6590
6591 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
6592 (display_mode_element): Instead of `lisp_string' and `this',
6593 record `offset' and increment that.
6594 `last_offset' replaces `last'.
6595
6596 * Makefile.in (XMENU_OBJ): Variable deleted.
6597 (obj): Use xmenu.o unconditionally.
6598 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
6599
6600 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
6601
01978521
KS
66022005-09-15 Kim F. Storm <storm@cua.dk>
6603
6604 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
6605 (reseat_at_next_visible_line_start): Likewise (in xassert).
6606
ccf61795
RF
66072005-09-14 Romain Francoise <romain@orebokech.com>
6608
6609 * fileio.c (write_region_inhibit_fsync): New variable.
6610 (Fwrite_region): Use it to skip call to fsync.
6611 (syms_of_fileio): Initialize it.
6612
2b046a72
KH
66132005-09-14 Kenichi Handa <handa@m17n.org>
6614
24a2b282
KH
6615 * coding.c (code_convert_region_unwind): Argument format changed.
6616 (run_pre_post_conversion_on_str): If pre-write-conversion function
6617 changed the current buffer, delete the new buffer.
6618 (run_pre_write_conversin_on_c_str): Likewise.
6619
2b046a72
KH
6620 * fileio.c (Fexpand_file_name): Check multibyteness of
6621 default_directory.
6622
d008f7b7
KH
66232005-09-13 Kenichi Handa <handa@m17n.org>
6624
6625 * composite.c (compose_chars_in_text): Delete it.
6626
6627 * composite.h (compose_chars_in_text): Delete extern.
6628
2ada8ac5
KS
66292005-09-13 Kim F. Storm <storm@cua.dk>
6630
6631 * print.c (print_error_message): Fix last change.
6632
48c60938
KS
66332005-09-12 Kim F. Storm <storm@cua.dk>
6634
0fdbe302
KS
6635 * composite.c (compose_chars_in_text): Fix setup of `pend'.
6636 Unconditionally reload `ptr' and `pend' after eval.
6637
48c60938
KS
6638 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
6639
6640 * print.c (print_error_message): Pass copy of caller name to
6641 message_dolog.
6642
6643 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
6644
5add1986
KH
66452005-09-12 Kenichi Handa <handa@m17n.org>
6646
6647 * xdisp.c (display_mode_element): Be sure to make variables THIS
6648 and LISP_STRING point into a string data of ELT.
6649
18bb66c7
KS
66502005-09-12 Kim F. Storm <storm@cua.dk>
6651
6652 * editfns.c (Ftranslate_region_internal): Reload `tt' after
6653 signal_after_change that may have GC'ed.
6654 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
6655
6656 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
6657 after insert while runs signal_after_change.
6658
6659 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
6660 declaration to where it is used.
6661
6662 * w32.c (check_windows_init_file): Fix allocation of error buffer.
6663
6664 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
6665 (x_set_name_internal): Call x_encode_text with new FREEP arg to
6666 know if xfree is needed instead of guessing.
6667
6668 * xterm.h (x_encode_text): Remove prototype.
6669
945a75f8
JR
66702005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
6671
6672 * w32term.c (x_bitmap_icon): Load small icons too.
6673
156bdb41
RF
66742005-09-10 Romain Francoise <romain@orebokech.com>
6675
6676 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 6677 and terminal zero. Fix typos.
156bdb41 6678
67b8391b
EZ
66792005-09-10 Eli Zaretskii <eliz@gnu.org>
6680
a17b5ed1
EZ
6681 * buffer.c (init_buffer): Fix error message for failed call to
6682 get_current_dir_name.
6683 (get_current_dir_name): Remove prototype.
6684
9dd28cae 6685 * xsmfns.c (get_current_dir_name): Remove prototype.
a17b5ed1 6686
9dd28cae 6687 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
96013ba9 6688 Add prototype.
a17b5ed1 6689
ed326e35 6690 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 6691 Don't #undef NULL after including blockinput.h.
ed326e35 6692
67b8391b
EZ
6693 * config.in: Regenerated.
6694
c187839d
EZ
66952005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
6696
6697 Remove the MAXPATHLEN limitations:
6698
1486d036
EZ
6699 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
6700 New function.
c187839d
EZ
6701
6702 * buffer.c (init_buffer): Use it.
6703
6704 * xsmfns.c (smc_save_yourself_CB): Ditto.
6705
ae8a5689
KS
67062005-09-09 Kim F. Storm <storm@cua.dk>
6707
39cac6b3
KS
6708 * doc.c (Fsubstitute_command_keys): Lookup key binding for
6709 commands that are remapped from some other command.
6710
aeb55c44
KS
6711 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
6712 flag in disabled rows below the window.
6713
ae8a5689
KS
6714 * frame.h (struct frame): New member updated_p.
6715
6716 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
6717 member. Remove local `updated' array and associated variables.
6718
821f6dae
KS
67192005-09-07 Kim F. Storm <storm@cua.dk>
6720
6e5395f2
KS
6721 * xdisp.c (handle_display_prop): Respect overlay window property.
6722
821f6dae
KS
6723 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
6724 Fixes crash reported by YAMAMOTO Mitsuharu.
6725
9655b404
YM
67262005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6727
6728 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
6729 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
6730 (xlfdpat_block_match_1, xlfdpat_match): New functions.
6731 (xlfdpat_block_match): New macro.
6732 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
6733 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
6734 (add_font_name_table_entry): Increase font_name_table_size more
6735 rapidly.
6736 (mac_c_string_match): Remove function.
6737 (mac_do_list_fonts): Use XLFD pattern match instead of regular
6738 expression match.
6739
6740 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
6741
d7ea8b71
RS
67422005-09-03 Richard M. Stallman <rms@gnu.org>
6743
6744 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
6745 (move_it_in_display_line_to): Stop after last char on line even
6746 on a windowing terminal, if that's the specified stop position.
6747
6748 * fns.c (Fsort): Doc fix.
6749
6750 * editfns.c (Fpropertize): Don't insist that properties be symbols.
6751
1550ae60
SM
67522005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
6753
6754 * dired.c (directory_files_internal_unwind, directory_files_internal)
6755 (file_name_completion): Use a Save_Value object rather than a cons of
6756 two 16bit ints to store the DIR*.
6757 (directory_files_internal, file_name_completion): Handle both EINTR and
6758 EAGAIN consistently after `readdir'.
6759
bdb4d6d8
SM
67602005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
6761
1550ae60
SM
6762 * intervals.c (update_interval): Add position info in error.
6763
bdb4d6d8
SM
6764 * dispnew.c (window_to_frame_hpos, update_window):
6765 Avoid gcc warning about unused variable `f'.
6766
6bcc3ca4
JR
67672005-08-31 Jason Rumney <jasonr@gnu.org>
6768
6769 * w32menu.c (add_menu_item): If unicode_append_menu returns an
6770 error, revert to using AppendMenu.
6771
07c5948c
YM
67722005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6773
bdb4d6d8
SM
6774 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
6775 All uses changed.
07c5948c
YM
6776 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
6777 cases.
6778 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
6779 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
6780 Use posix_pathname_to_fsspec.
07c5948c
YM
6781 [MAC_OS] (xpm_load_image): Fill in background_transparent field
6782 while we have mask.
6783
6784 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
6785
6786 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
6787
5a774522
SM
67882005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6789
6790 * syntax.c (update_syntax_table): Properly reproduce the special +1
6791 setting of e_property at the end of the buffer when bumping into the
6792 INTERVALS_AT_ONCE limit.
6793
0fb57cc0
EZ
67942005-08-27 Eli Zaretskii <eliz@gnu.org>
6795
6796 * emacs.c (USAGE1): Fix the description of the -Q option.
6797
5a774522
SM
67982005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
6799
6800 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
6801
4e6b8c5a
KS
68022005-08-26 Kim F. Storm <storm@cua.dk>
6803
6804 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
6805 Don't move PT to new window start.
6806
1f98fbb4
YM
68072005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6808
6809 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
6810 ICONIFY/DEICONIFY_EVENT.
6811
5a774522
SM
6812 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
6813 Restore background color.
1f98fbb4
YM
6814 (mac_handle_visibility_change): New function.
6815 (x_make_frame_invisible, x_iconify_frame)
6816 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
6817 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 6818 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
6819 (x_make_frame_visible): Don't reposition window if it is iconified
6820 or asked for visible before. Select and uncollapse window when it
6821 is made visible.
6822 (x_make_frame_invisible): Don't reset x_highlight_frame.
6823 (x_iconify_frame): Likewise. Make invisible frame visible before
6824 it is iconified.
6825 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
6826 (do_window_update): Don't change visibility of invisible frame.
6827
16691d29
JL
68282005-08-22 Juri Linkov <juri@jurta.org>
6829
6830 * term.c (turn_on_face): Check for TS_set_foreground and
6831 TS_set_background depending on standout_mode. Simplify.
6832
7c3f805b
KS
68332005-08-21 Kim F. Storm <storm@cua.dk>
6834
0f467468
KS
6835 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
6836 bitmaps on fully visible rows.
6837
7c3f805b
KS
6838 * fringe.c (update_window_fringes): Replace FORCE_P arg with
6839 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
6840 and return 0.
6841
6842 * xdisp.c (redisplay_window): Call update_window_fringes with
6843 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
6844
40b388f9
RS
68452005-08-20 Richard M. Stallman <rms@gnu.org>
6846
6847 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
6848 (resize_mini_window): Set w->start, and PT, so as to display the tail
6849 end of the buffer, if it doesn't all fit.
6850
581360f0
KS
68512005-08-18 Kim F. Storm <storm@cua.dk>
6852
6853 * xdisp.c (calc_pixel_width_or_height): Use actual display
6854 resolution when available instead of Vdisplay_pixels_per_inch.
6855
0eefa6fb
KS
68562005-08-17 Kim F. Storm <storm@cua.dk>
6857
6858 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
6859
6860 * dispnew.c (buffer_posn_from_coords): Check that target row is
6861 within matrix.
6862
ada192ba
JD
68632005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6864
6865 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
6866 xg_set_frame_icon and call it.
6867
6868 * gtkutil.c (xg_set_frame_icon): New function.
6869
0eefa6fb 6870 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 6871
ab89a403
KS
68722005-08-16 Kim F. Storm <storm@cua.dk>
6873
6874 * dispnew.c (increment_row_positions): Skip non-enabled rows.
6875
6876 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
6877 (Fcurrent_window_configuration): Use VECSIZE macro instead.
6878
8d34b5e1
RS
68792005-08-15 Richard M. Stallman <rms@gnu.org>
6880
6881 * xdisp.c (message3_nolog): Clear echo_message_buffer.
6882
71e37f3c
KS
68832005-08-15 Kim F. Storm <storm@cua.dk>
6884
0781c303
KS
6885 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
6886
71e37f3c
KS
6887 * process.c (deactivate_process, status_notify, read_process_output)
6888 (update_status, status_convert, decode_status, allocate_pty)
6889 (make_process, remove_process, list_processes_1)
6890 (create_process_1, unwind_request_sigio, read_process_output)
6891 (send_process, keyboard_bit_set): Declare static.
6892 (Fdelete_process): Simplify. Pass process to status_notify, so we
6893 don't try to read output from it.
6894 (status_notify): New arg deleting_process--don't try to read
6895 output from that process.
6896
6897 * lisp.h (deactivate_process, status_notify, read_process_output):
6898 Remove prototypes.
6899
0bf14bfd
RS
69002005-08-14 Richard M. Stallman <rms@gnu.org>
6901
bdb4d6d8
SM
6902 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
6903 define_image_type.
0bf14bfd 6904
6c7eb721
JD
69052005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6906
6907 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
6908 (xg_get_image_for_pixmap): Move some code to
6909 xg_get_pixbuf_from_pix_and_mask, and call it.
6910
6911 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
6912
6913 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
6914 to get an GTK icon and set it with GTK functions to avoid having GTK
6915 override an icon set with just X functions.
6916
6e2d14c8
RS
69172005-08-11 Richard M. Stallman <rms@gnu.org>
6918
bdb4d6d8
SM
6919 * image.c (syms_of_image): Init image_types here, and call
6920 define_image_type.
6e2d14c8
RS
6921 (init_image): Not here.
6922
61298e17
RS
69232005-08-09 Richard M. Stallman <rms@gnu.org>
6924
6925 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
6926
6927 * lisp.h (QUIT): Throw t to Vthrow_on_input.
6928
5a9807a8
TTN
69292005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
6930
6931 * floatfns.c (Fexpt): Use floats for negative exponent.
6932
93469010
JD
69332005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6934
6935 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
6936 should not be there, causing menu display errors with GTK 2.6.9.
6937
44edd521
RS
69382005-08-07 Richard M. Stallman <rms@gnu.org>
6939
8b6a9551
RS
6940 * floatfns.c (Fexpt): Undo previous change.
6941
44edd521
RS
6942 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
6943 so it can be used with various state vectors.
6944
6945 * emacs.c (endif): Convert -script into -scriptload.
6946 (standard_args): Add -scriptload. Allow -basic-display with one dash.
6947
6948 * fns.c (syms_of_fns): Add `emacs' to features.
6949
6950 * term.c (set_terminal_modes): If no TS_termcap_modes string,
6951 output newlines to scroll the old screen contents off the screen.
6952
cac87e30
TTN
69532005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
6954
2a205424
TTN
6955 * floatfns.c (Fexpt): Use floats for negative exponent.
6956 Reported by D Goel.
cac87e30 6957
31b7cc74
JB
69582005-08-02 Richard M. Stallman <rms@gnu.org>
6959
6960 * frame.c (Fframe_char_width): Doc fix.
6961
e2b64074
JB
69622005-07-30 Juanma Barranquero <lekktu@gmail.com>
6963
6964 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
6965 Defvar it.
6966
0962822d
JB
69672005-07-28 Juanma Barranquero <lekktu@gmail.com>
6968
6969 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
6970 (my_create_window, my_create_tip_window): Make static.
6971
6972 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
6973 (my_set_foreground_window, my_destroy_window): Make static.
6974
9eff9fe3
PE
69752005-07-26 Paul Eggert <eggert@cs.ucla.edu>
6976
6977 Merge gnulib getopt implementation into Emacs.
6978
6979 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
6980 now part of lib-src.
6981
1c9916a1
SM
69822005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
6983
6984 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
6985
94c7f257
JR
69862005-07-25 Jason Rumney <jasonr@gnu.org>
6987
6988 * w32menu.c (w32_menu_display_help): Suppress tooltip when
6989 navigating menus with the keyboard.
6990
bf0bf758
RS
69912005-07-23 Richard M. Stallman <rms@gnu.org>
6992
6993 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
6994
6995 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
6996 gc_relative_threshold, one by one.
6997
6998 * keyboard.c (read_char): Test gc_cons_threshold.
6999 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
7000
7001 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
7002 gc_relative_threshold, one by one.
7003
7004 * alloc.c (gc_cons_threshold): Not static.
7005 (gc_cons_combined_threshold): Var deleted.
7006 (gc_relative_threshold): New variable.
7007 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
7008 instead of gc_cons_combined_threshold.
7009
1c9916a1 7010 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
7011 (gc_cons_combined_threshold): Declaration deleted.
7012
99f963e4
YM
70132005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7014
7015 * mac.c: Don't include stdlib.h or string.h.
7016 (Fdo_applescript, Fmac_file_name_to_posix)
7017 (Fmac_file_name_to_posix): Doc fixes.
7018 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
7019 (Fmac_code_convert_string): Likewise.
7020 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
7021 if the executable is not contained in a bundle.
7022
7023 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
7024 (gray_width, gray_height): Remove defines.
7025 (gray_bits, gray_bitmap_width, gray_bitmap_height)
7026 (gray_bitmap_bits): Remove variables.
7027 (lispy_function_keys): Remove extern.
7028 (free_frame_menubar): Add extern.
7029 (x_window_to_frame): Remove function.
7030 (unwind_create_tip_frame): Add declaration.
7031 (x_set_name_internal): New function.
7032 (x_set_name, x_set_title): Use it.
7033 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
7034 (Fx_display_pixel_height, Fx_display_planes)
7035 (Fx_display_color_cells, Fx_server_max_request_size)
7036 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7037 (Fx_display_mm_height, Fx_display_mm_width)
7038 (Fx_display_backing_store, Fx_display_visual_class)
7039 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
7040
7041 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
7042
bdb4d6d8 7043 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
7044 (Fx_get_selection_internal, Fx_selection_owner_p)
7045 (Fx_selection_exists_p): Doc fixes.
7046 (syms_of_macselect) <selection-converter-alist>: Likewise.
7047
1d256714
JB
70482005-07-21 Juanma Barranquero <lekktu@gmail.com>
7049
7050 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
7051
7052 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
7053 (Fccl_execute_on_string): Likewise; add usage info.
7054
7055 * composite.c (Fcompose_region_internal)
7056 (Fcompose_string_internal):
7057 Improve argument/docstring consistency.
7058
7059 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
7060 Fix typos in docstrings.
7061
7062 * textprop.c (Fnext_char_property_change)
7063 (Fprevious_char_property_change): Doc fixes.
7064
7065 * window.c (Fset_window_margins, Fset_window_fringes):
7066 Improve argument/docstring consistency.
7067
7068 * xfaces.c (Finternal_lisp_face_p): Doc fix.
7069
538f78c3
AS
70702005-07-21 Andreas Schwab <schwab@suse.de>
7071
7072 * eval.c (restore_stack_limits): Return a value.
7073
a5b5bf44
JB
70742005-07-20 Juanma Barranquero <lekktu@gmail.com>
7075
7076 * eval.c (Fdefvar): Doc fix.
7077
ae643123
KS
70782005-07-20 Kim F. Storm <storm@cua.dk>
7079
0ed4bf15
KS
7080 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
7081 Use make_save_value to unwind protect stream.
7082
7083 * lread.c (Fload, load_unwind):
7084 Use make_save_value to unwind protect stream.
ae643123 7085
82fc29a1
JB
70862005-07-19 Juanma Barranquero <lekktu@gmail.com>
7087
7088 * eval.c (Fprog2, Fcalled_interactively_p),
7089 (syms_of_eval) <debug-on-quit>: Doc fixes.
7090 (syms_of_eval) <max-specpdl-size>:
7091 (Finteractive_p): Fix typos in docstrings.
7092
73b90087
KS
70932005-07-19 Kim F. Storm <storm@cua.dk>
7094
7095 * w32fns.c (Vx_hand_shape): Variable removed.
7096 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
7097
dfc434d0
KH
70982005-07-19 Kenichi Handa <handa@m17n.org>
7099
bdb4d6d8 7100 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 7101
bcd98331
SM
71022005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
7103
7104 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
7105
2a85a754
KS
71062005-07-18 Kim F. Storm <storm@cua.dk>
7107
7108 * frame.h (struct frame): New member already_hscrolled_p.
7109
7110 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
7111 to avoid redisplay looping hscrolling back and forth ad infinitum.
7112
426179e1
JL
71132005-07-18 Juri Linkov <juri@jurta.org>
7114
7115 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
7116 * keymap.c (Fminor_mode_key_binding):
7117 * macterm.c (mac-emulate-three-button-mouse):
7118 Delete duplicate duplicate words.
7119
9f4a578d
KR
71202005-07-18 Ken Raeburn <raeburn@gnu.org>
7121
7122 * minibuf.c (Ftest_completion): Fix odd syntax in test.
7123
d005338b
YM
71242005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7125
bcd98331 7126 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
7127
7128 * macgui.h (struct _XGC): New struct.
7129 (GC): Use it.
7130 (GCForeground, GCBackground, GCFont): Use X11 mask values.
7131 (XCreateGC, XParseGeometry): Move externs to macterm.h.
7132
bcd98331 7133 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 7134 (XSetFont): Add declaration.
bcd98331
SM
7135 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
7136 Remove functions.
7137 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
7138 New defines.
d005338b
YM
7139 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
7140 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
7141 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
7142 Use them.
d005338b
YM
7143 (mac_erase_rectangle): New function.
7144 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
7145 (x_draw_stretch_glyph_string): Use it.
7146 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
7147 (XSetBackground, XSetFont): Adjust for new GC implementation.
7148 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
7149 (XTset_vertical_scroll_bar): Clear area under scroll bar.
7150
7151 * macterm.h (struct mac_display_info): Change types of
7152 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
7153 (XCreateGC, XParseGeometry): Move externs from macgui.h.
7154
7155 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
7156
9b0c2c56
RS
71572005-07-16 Richard M. Stallman <rms@gnu.org>
7158
7159 * buffer.c (Fmake_overlay): Doc fix.
7160
2e9c1c6d
EZ
71612005-07-16 Eli Zaretskii <eliz@gnu.org>
7162
7163 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
7164 Vw32_valid_locale_ids, and Vw32_valid_codepages.
7165
407289a4
YM
71662005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7167
bcd98331
SM
7168 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
7169 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 7170
e4b477a1
RS
71712005-07-15 Richard M. Stallman <rms@gnu.org>
7172
7173 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
7174
a8613adf
KS
71752005-07-15 Kim F. Storm <storm@cua.dk>
7176
7177 * xdisp.c: Fix redisplay loop in last change.
7178 (IT_POS_VALID_AFTER_MOVE_P): New macro.
7179 (move_it_vertically_backward, move_it_by_lines): Use it.
7180
2d5324c5
JR
71812005-07-14 Jason Rumney <jasonr@gnu.org>
7182
7183 * w32.c (init_environment): Default HOME directory to user's
7184 appdata directory if possible.
7185
3ed70dc4
KS
71862005-07-14 Kim F. Storm <storm@cua.dk>
7187
7b9389b0
KS
7188 * .gdbinit (pitx): Fix output format. Print string charpos.
7189
3ed70dc4
KS
7190 * lread.c (syms_of_lread): Initialize seen_list.
7191
7192 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
7193
7194 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
7195 Staticpro re_match_object.
7196
ef029e5a
YM
71972005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7198
7199 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
7200 dereference.
7201
7202 * macterm.c (mac_window_to_frame): Remove duplicate define.
7203
16ef9c56
KH
72042005-07-14 Kenichi Handa <handa@m17n.org>
7205
7206 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 7207 (code_convert_region): Adjust for the above change.
16ef9c56
KH
7208 (set_conversion_work_buffer): If the work buffer is already in
7209 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 7210 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
7211 (run_pre_write_conversin_on_c_str): Likewise.
7212
098e1273
KS
72132005-07-13 Kim F. Storm <storm@cua.dk>
7214
010b9a45
KS
7215 * xdisp.c (start_display): Don't reseat to next visible line start
7216 if current start position is in a string or image.
7217 (move_it_vertically_backward): Be sure to move out of strings and
7218 images when moving it2 forward.
7219 (move_it_by_lines): When moving forward, move to next buffer
7220 position if we end up in a string or image. When moving backward,
7221 count rows moved over when moving to start of current row in case
7222 row starts in middle of a string or image. Also move further
7223 backward if we end up in a string or image.
bcd98331 7224 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
7225 move backward to set cursor on start of an overlay string.
7226 (cursor_row_p): Row is ok if cursor is at newline from string, but
7227 string starts on this line (so we always position cursor at start
7228 of string).
7229
7230 * indent.c (Fvertical_motion): If start position is on an image,
7231 don't move back if we move too far (that's almost certain to happen).
7232
098e1273
KS
7233 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
7234 row in minibuffer windows.
7235 (try_window): Don't check margins in minibuffer windows.
7236
c229fb15
YM
72372005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7238
7239 * macterm.c: Don't include stdlib.h or composite.h.
7240 (x_use_underline_position_properties, last_mouse_press_frame)
7241 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
7242 (syms_of_macterm, mac_initialize): Don't initialize them.
7243 (waiting_for_input, initial_argv, initial_argc)
7244 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
7245 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
7246 (extra_keyboard_modifiers): Fix type in extern.
7247 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
7248 (x_scroll_bar_report_motion): Add argument types to declaration.
7249 (mac_compute_glyph_string_overhangs): Add declaration.
7250 (disable_mouse_highlight): Remove unused variable.
7251 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
7252 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
7253 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
7254 All callers changed.
c229fb15
YM
7255 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
7256 timestamp.
7257 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
7258 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
7259 only when its width is less than the height.
7260 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
7261 (font_name_table, font_name_table_size, font_name_count):
7262 Make static.
c229fb15
YM
7263 (drag_and_drop_file_list): Remove variable. Previous use is now
7264 local to function.
7265 (do_ae_open_documents): Move DRAG_N_DROP event construction part
7266 from XTread_socket.
bcd98331
SM
7267 (XTread_socket): Consolidate setting of event timestamp.
7268 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
7269 Support extra_keyboard_modifiers.
7270
7271 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
7272 beginning with that for ASCII.
7273
69d05d83
SM
72742005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
7275
7276 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
7277 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
7278 (syms_of_alloc): Declare gc-cons-percentage.
7279
7280 * eval.c (Feval, Ffuncall):
7281 * keyboard.c (read_char):
7282 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
7283
7284 * lisp.h (gc_cons_combined_threshold): Declare.
7285
5c7f9de1
KS
72862005-07-12 Kim F. Storm <storm@cua.dk>
7287
7288 * coding.c (Qprocess_argument):
7289 * coding.h (Qprocess_argument): Remove unused var.
7290
7291 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
7292
c37efb7a
YM
72932005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7294
7295 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
7296 Endian.h.
7297 [!MAC_OSX] (fchmod, fchown): New functions.
7298 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
7299 Use SBYTES and EndianU32_BtoN.
7300 (mac_get_object_from_code): Return 4 byte string even if argument
7301 is 0. Use make_unibyte_string and EndianU32_NtoB.
7302 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
7303 (Fmac_set_file_type): Fix documents and argument declarations.
7304 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
7305
a4429c5b
SM
73062005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
7307
7308 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
7309
a2d7e722
JD
73102005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7311
7312 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
7313 Lucid if X_I18N, font otherwise.
7314
9a4183e9
ST
73152005-07-10 Steven Tamm <steventamm@mac.com>
7316
a4429c5b
SM
7317 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
7318 (Fmac_set_file_type, Fmac_set_file_creator): Add.
7319 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 7320
51f74c37
RS
73212005-07-10 Richard M. Stallman <rms@gnu.org>
7322
7323 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
7324 (syms_of_lread): Set up eval-buffer-list.
7325 (Feval_buffer, Feval_region): Bind eval-buffer-list.
7326
93c7da4c
RS
73272005-07-08 Richard M. Stallman <rms@gnu.org>
7328
7329 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
7330
64af5917
KS
73312005-07-08 Kim F. Storm <storm@cua.dk>
7332
7333 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
7334 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
7335
a96b333c
KS
73362005-07-07 Kim F. Storm <storm@cua.dk>
7337
7338 * window.c (Frecenter): Fix last change (set iarg before use).
7339
dc2204be
RS
73402005-07-06 Richard M. Stallman <rms@gnu.org>
7341
7342 * window.c (Frecenter): When arg is inside the scroll margin,
7343 move it out of the margin.
7344
3fb1d72b
JR
73452005-07-06 Jason Rumney <jasonr@gnu.org>
7346
7347 * w32console.c (initialize_w32_display): Detect when the console
7348 dimensions are insane, and default to 80x25 instead.
14a56a1b 7349 (w32_use_full_screen_buffer): Default to nil.
3fb1d72b 7350
dd15724d
YM
73512005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7352
7353 * macterm.c (mac_draw_vertical_window_border): Use foreground of
7354 VERTICAL_BORDER_FACE_ID for vertical border line.
7355 (mac_encode_char): Call check_ccl_update in advance.
7356 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
7357 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
7358 Don't assume that font family length is less than 32.
dd15724d
YM
7359 (x_compute_min_glyph_bounds): Make static.
7360 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 7361
68003d6b
LK
73622005-07-04 Lute Kamstra <lute@gnu.org>
7363
dc2204be 7364 * Update FSF's address in GPL notices.
68003d6b 7365
3d393029
RS
73662005-07-03 Richard M. Stallman <rms@gnu.org>
7367
7368 * xdisp.c (try_window): Fix previous change in how it handles
7369 a partially-visible line or one only partly past the margin.
7370
7371 * window.c (window_scroll_pixel_based): Take account
7372 of this_scroll_margin when finding point when scrolling up.
7373
73742005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
7375
7376 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7377 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
9dd28cae 7378 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3d393029 7379
d6951bb4
EZ
73802005-07-02 Juri Linkov <juri@jurta.org>
7381
7382 * w32term.c (w32_draw_vertical_window_border): Use foreground of
7383 VERTICAL_BORDER_FACE_ID for vertical border line.
7384
b016179b
EZ
73852005-07-02 Eli Zaretskii <eliz@gnu.org>
7386
7387 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
7388 fchmod so that chmod doesn't get called on MSDOS before the file
7389 is closed.
7390
c2baa2b6
JR
73912005-07-01 Jason Rumney <jasonr@gnu.org>
7392
7393 * w32term.c (cleartype_active): New flag for enabling sub-pixel
7394 workaround.
7395 (w32_initialize): Initialize it.
7396 (w32_native_per_char_metric): Allow a couple of extra pixels when
7397 Cleartype is active.
7398
7399 * w32term.c (w32_initialize): Move check for screen reader here
7400 from syms_of_w32term.
7401
a6d0ae55
JD
74022005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7403
7404 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
7405 is not zero.
7406
711877f3
MY
74072005-07-01 Masatake YAMATO <jet@gyve.org>
7408
a4429c5b 7409 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 7410
63f7ffb3
JL
74112005-06-30 Juri Linkov <juri@jurta.org>
7412
7413 * xdisp.c (x_draw_vertical_border): If left fringe is not present
7414 decrease x coord of vertical border by 1 pixel to not occupy text
7415 area of the right window.
7416
7417 * xterm.c (x_draw_vertical_window_border): Use foreground of
7418 VERTICAL_BORDER_FACE_ID for vertical border line.
7419
7420 * term.c (turn_on_face): In standout mode apply specified
7421 fg to bg, and specified bg to fg (this makes the logic of
7422 inversion on terminal consistent with X).
7423
b26860ad
JB
74242005-06-29 Juanma Barranquero <lekktu@gmail.com>
7425
7426 * eval.c (user_variable_p_eh): New function.
7427 (Fuser_variable_p): Use it. Clarify docstring.
7428 Return t for aliases of user options, nil for alias loops.
7429
3a1f1d79
RS
74302005-06-27 Richard M. Stallman <rms@gnu.org>
7431
7432 * eval.c (Fdefvar): Improve error message.
7433
92de1e01
YM
74342005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7435
7436 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
7437 change.
7438
69410484
JB
74392005-06-27 Juanma Barranquero <lekktu@gmail.com>
7440
7441 * eval.c (Fdefvar): Don't try to set constant symbols.
7442
09352e8f
RS
74432005-06-25 Richard M. Stallman <rms@gnu.org>
7444
a68d870b
RS
7445 * macfns.c (Fx_show_tip): Pass new arg to try_window.
7446
7447 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
7448
7449 * xfns.c (Fx_show_tip): Pass new arg to try_window.
7450
7451 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
7452 (redisplay_window): Handle try_window reporting point in scroll margin.
7453
7454 * dispextern.h (try_window): Declare new arg.
7455
7456 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
7457 Use fchmod to copy the file modes.
7458 (Frename_file): Don't copy UID and GID here;
7459 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
7460
df13531d
RS
7461 * eval.c (call_debugger): Take full care of extending stack limits
7462 to make space for the debugger, and restore the change afterward.
7463 Bind debug-on-error to nil.
7464 (restore_stack_limits): New subroutine.
7465 (Fsignal): Extend specpdl bound along with eval depth bound,
7466 for calling edebug. Don't do either one, for calling debugger.
7467 (find_handler_clause): Don't bind debug-on-error here.
7468 Don't unbind anything either.
7469 Temporarily advance max_specpdl_size for calling
7470 internal_with_output_to_temp_buffer.
7471 (grow_specpdl): Don't alter max_specpdl_size before signaling
7472 an error.
7473 (syms_of_eval) <max-specpdl-size>: Doc fix.
7474
09352e8f
RS
7475 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
7476
90296dd3
EZ
74772005-06-24 Eli Zaretskii <eliz@gnu.org>
7478
7479 * fileio.c (Frename_file): Undo last change: no need to ifdef away
7480 chown on DOS_NT platforms.
7481
7482 * w32.c (sys_chown): New function.
7483
7484 * s/ms-w32.h (chown): New; define to sys_chown.
7485
c4f6ca24
JB
74862005-06-24 Juanma Barranquero <lekktu@gmail.com>
7487
3338c0ad
JB
7488 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
7489 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
7490
9a1505e9 7491 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 7492
528b6abc
RS
74932005-06-23 Richard M. Stallman <rms@gnu.org>
7494
7495 * xdisp.c (get_next_display_element): Finish reversing the tests of
7496 Vnobreak_char_display.
7497
9a1505e9 7498 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 7499 All uses changed.
9a1505e9 7500 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
7501 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
7502
7503 * fileio.c (Frename_file): Preserve owner and group, if possible,
7504 when copying.
7505
1d1c7e75
JB
75062005-06-23 Juanma Barranquero <lekktu@gmail.com>
7507
253b2298
JB
7508 * abbrev.c (Funexpand_abbrev):
7509 * category.c (Fmake_category_set):
7510 * dispnew.c (Fsleep_for, Fsit_for):
7511 * editfns.c (Fsubst_char_in_region):
7512 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
7513 * frame.c (make_frame_without_minibuffer):
7514 * lread.c (read_vector):
7515 * macfns.c (check_x_frame):
7516 * process.c (Fstop_process, Fcontinue_process):
7517 * search.c (Freplace_match):
7518 * syntax.c (Fstring_to_syntax):
7519 * w32fns.c (check_x_frame, check_x_display_info):
7520 * xfaces.c (x_supports_face_attributes_p):
7521 * xselect.c (Fx_own_selection_internal): Follow error conventions.
7522
1d1c7e75
JB
7523 * image.c (fn_png_init_io): Don't define it.
7524 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
7525 (png_read_from_file): New function, based on png_read_from_memory.
7526 (png_load): Use it, instead of fn_png_init_io.
7527
d1fab151
KS
75282005-06-23 Kim F. Storm <storm@cua.dk>
7529
7530 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 7531 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
7532 Add commentary explaining evaporate arg (for internal use only).
7533 (unwind_set_match_data): Add comment on evaporate use.
7534
53abc3bf
MB
75352005-06-22 Miles Bader <miles@gnu.org>
7536
a4429c5b 7537 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
7538 (realize_basic_faces, syms_of_xfaces): Update references to it.
7539 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
7540 to `VERTICAL_BORDER_FACE_ID'.
7541 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
7542
36a3b076
JL
75432005-06-21 Juri Linkov <juri@jurta.org>
7544
7545 * dispextern.h: Add extern Qframe_set_background_mode.
7546
7547 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
7548 Qframe_set_background_mode.
7549
7550 * frame.c (Fmodify_frame_parameters):
7551 Call frame-set-background-mode after changing the background color
7552 on non-window non-dos branch.
7553
23873c96
JB
75542005-06-21 Juanma Barranquero <lekktu@gmail.com>
7555
7556 * fns.c (Fchar_table_range):
7557 * process.c (Fmake_network_process): Fix spellings.
7558
b7d1f38f
KS
75592005-06-20 Kim F. Storm <storm@cua.dk>
7560
7561 * fns.c (Fsort): Doc fix.
7562
b4e49aee
MB
75632005-06-20 Miles Bader <miles@gnu.org>
7564
7565 * xfaces.c (Qvertical_divider): New variable.
7566 (realize_basic_faces): Realize its face.
7567 (syms_of_xfaces): Initialize it.
7568
7569 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
7570
7571 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
7572 window-separator on ttys using `vertical-divider' face by default.
7573
b7da00ba
RS
75742005-06-17 Richard M. Stallman <rms@gnu.org>
7575
a4429c5b
SM
7576 * xdisp.c (get_next_display_element):
7577 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
7578
7579 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
7580 (Ftty_no_underline): New function.
7581 (syms_of_term): defsubr it.
b7d1f38f 7582
b7da00ba
RS
7583 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
7584
7585 * dispnew.c (spec_glyph_lookup_face): New function.
7586 (build_frame_matrix_from_leaf_window): Use it.
7587
7588 * dispextern.h (spec_glyph_lookup_face): Add declaration.
7589
7590 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
7591
75922005-06-12 Richard M. Stallman <rms@gnu.org>
7593
7594 * keyboard.c (read_char): After catching a longjmp,
7595 call restore_getcjmp.
7596
289824a3
JB
75972005-06-17 Juanma Barranquero <lekktu@gmail.com>
7598
7599 * xselect.c (lisp_data_to_selection_data): Fix spelling.
7600
95085023
YM
76012005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7602
7603 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
7604 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
7605 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
7606 events.
7607 (XTread_socket): Don't pass keyboard events with the option
7608 modifier to the system when Vmac_command_key_is_meta is nil or
7609 Vmac_option_modifier is non-nil.
7610 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
7611 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
7612 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
7613 handler function.
7614 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
7615 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
7616 handler part to mac_handle_mouse_event.
7617
4a9308b8
JB
76182005-06-14 Juanma Barranquero <lekktu@gmail.com>
7619
7620 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
7621 NEW-ALIAS and BASE-VARIABLE, respectively.
7622
5aa6db57
SM
76232005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
7624
7625 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
7626 (get_phys_cursor_geometry, format_mode_line_unwind_data)
7627 (get_line_height_property, x_produce_glyphs): Remove unused vars.
7628
7629 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
7630
0e0dddda
EZ
76312005-06-13 Eli Zaretskii <eliz@gnu.org>
7632
7633 * w32term.c (x_use_underline_position_properties): New variable.
7634 (x_draw_glyph_string): Remind in a comment to change doc string of
7635 x-use-underline-position-properties if/when underline positioning
7636 is implemented.
7637 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
7638 and initialize it to nil.
7639
7f2b4738
JR
76402005-06-12 Jason Rumney <jasonr@gnu.org>
7641
7642 * w32fns.c (NEWOPENFILENAME): New struct.
7643 (Fx_file_dialog): Use it to trick the system into giving us up to
7644 date dialogs on systems that are documented to support it.
7645 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
7646
a1e8cad6
EZ
76472005-06-12 Eli Zaretskii <eliz@gnu.org>
7648
7649 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
7650 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
7651
099a3eea
EZ
76522005-06-11 Eli Zaretskii <eliz@gnu.org>
7653
2e09fef1
EZ
7654 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
7655 to CreateDIBSection to avoid a compiler warning.
7656 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
7657 warning.
7658 (png_load): Cast return values of fn_png_create_read_struct and
7659 fn_png_create_info_struct, to avoid compiler warnings on W32.
7660 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
7661 to avoid compiler warnings.
7662 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
7663 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
7664 avoid a compiler warning.
7665 (tiff_load): Cast return values of fn_TIFFOpen and
7666 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
7667 to IMAGE_BACKGROUND to avoid a compiler warning.
7668 (gif_load): Cast return values of fn_DGifOpenFileName and
7669 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
7670 IMAGE_BACKGROUND to avoid a compiler warning.
7671 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
7672 before redefining.
7673
099a3eea
EZ
7674 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
7675 the call to CreateDIBSection, to avoid a compiler warning.
7676
d11f8e1a
JR
76772005-06-11 Jason Rumney <jasonr@gnu.org>
7678
7679 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
7680 minibuffer.
7681 * macfns.c (Fx_file_dialog): Likewise.
7682
cd4344a3
EZ
76832005-06-10 Eli Zaretskii <eliz@gnu.org>
7684
7685 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
7686
578c1340
JB
76872005-06-10 Juanma Barranquero <lekktu@gmail.com>
7688
7689 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
7690 * w32fns.c (syms_of_w32fns): Fix spellings.
7691
4162f25f
EZ
76922005-06-10 Eli Zaretskii <eliz@gnu.org>
7693
7694 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
7695 `verbose'; print diagnostic messages only if it is non-zero.
7696 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
7697 in the environment.
7698 (copy_executable_and_dump_data): Print section names with %.8s.
7699
121c59a3
MY
77002005-06-10 Masatake YAMATO <jet@gyve.org>
7701
7702 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
7703 when mouse_face is not given.
121c59a3 7704
c869384d
LT
77052005-06-09 Luc Teirlinck <teirllm@auburn.edu>
7706
7707 * window.c (Fselect_window): Adapt call to Fselect_frame.
7708
7709 * lisp.h: Update EXFUN of Fselect_frame.
7710
7711 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
7712
6ecf436d
LT
7713 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
7714 no_enter.
7715 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
7716 Adapt to above change.
7717
c14ec135
JB
77182005-06-10 Juanma Barranquero <lekktu@gmail.com>
7719
7720 * fns.c (Fmemq, Fmaphash): Doc fixes.
7721
9fed2905
JB
77222005-06-09 Juanma Barranquero <lekktu@gmail.com>
7723
7724 * xfaces.c (Fdisplay_supports_face_attributes_p):
7725 Fix typo in docstring.
7726
427c5b1b
ST
77272005-06-08 Steven Tamm <steventamm@mac.com>
7728
7729 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
7730 used by gcc4 on intel mac.
7731
b7aae902
KS
77322005-06-09 Kim F. Storm <storm@cua.dk>
7733
7734 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
7735 in REUSE list if non-nil; free them if equal to evaporate.
7736 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
7737 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
7738 (restore_search_regs): Rename from restore_match_data. Uses changed.
7739 (unwind_set_match_data): New function.
7740 (record_unwind_save_match_data): New function like save-match-data.
7741
7742 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
7743 (record_unwind_save_match_data): Add prototype.
7744 (restore_search_regs): Rename from restore_match_data.
7745
7746 * composite.c (compose_chars_in_text):
7747 * eval.c (do_autoload):
7748 * macmenu.c (set_frame_menubar):
7749 * process.c (read_process_output, exec_sentinel):
7750 * xmenu.c (set_frame_menubar):
7751 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
7752 * w32menu.c (set_frame_menubar):
7753 Use record_unwind_save_match_data.
7754
547d2b37
RS
77552005-06-08 Richard M. Stallman <rms@gnu.org>
7756
7757 * xdisp.c (get_next_display_element): Alter previous change:
7758 Distinguish Vshow_nonbreak_escape = t or not t.
7759 For t, use escape_glyph once again, as before previous change.
7760 Use space or hyphen for display, instead of the non-ASCII char.
7761 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
7762
7763 * process.c (Fstart_process): Don't touch command_channel_p slot.
7764
99598737 7765 * process.h (struct process): Delete command_channel_p.
547d2b37 7766
602907ae
MY
77672005-06-07 Masatake YAMATO <jet@gyve.org>
7768
5aa6db57
SM
7769 * xdisp.c (note_mode_line_or_margin_highlight):
7770 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 7771 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
7772 is not ON_MODE_LINE nor ON_HEADER_LINE.
7773
8b793bed
KS
77742005-06-07 Kim F. Storm <storm@cua.dk>
7775
7776 * process.c: Improve commentary for adaptive read buffering.
7777
3d031334
SM
77782005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
7779
7780 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
7781 if available.
7782
16d2e704
JD
77832005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7784
5aa6db57
SM
7785 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
7786 New functions for popping down menus on C-g.
16d2e704
JD
7787 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
7788
7789 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
7790 non-static.
7791
9fed2905 7792 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 7793
b6cc2ad0
EZ
77942005-06-06 Eli Zaretskii <eliz@gnu.org>
7795
9a1505e9 7796 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 7797
5aa6db57 7798 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
7799
7800 * w32proc.c (RVA_TO_PTR): New macro.
7801
7802 * w32heap.c (RVA_TO_PTR): No need to #undef now.
7803
7804 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
7805 Depend on w32heap.h.
7806
24e55feb
LT
78072005-06-06 Luc Teirlinck <teirllm@auburn.edu>
7808
7809 * keyboard.c (command_loop_1): Update Vthis_original_command.
7810
ce6e10af
RS
78112005-06-06 Richard M. Stallman <rms@gnu.org>
7812
7813 * xmenu.c (popup_get_selection): Undo previous change.
7814
c476bcb0
JL
78152005-06-06 Juri Linkov <juri@jurta.org>
7816
7817 * xdisp.c (Qno_break_space): New variable.
7818 (syms_of_xdisp): Initialize it.
7819 (get_next_display_element): Add no-break space and soft hypen
7820 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
7821 Use `no-break-space' face for no-break spaces.
7822
5494d7bc
JD
78232005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7824
7825 * window.c (delete_window): Handle the case where a h/vchild has
7826 a h/vchild.
7827
a0c38328
EZ
78282005-06-05 Eli Zaretskii <eliz@gnu.org>
7829
7830 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
7831 call to pfn_setsockopt, cast optval to `const char *'.
7832
91018229
EZ
78332005-06-04 Eli Zaretskii <eliz@gnu.org>
7834
1a8fb426
EZ
7835 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
7836 (open_unc_volume): Cast return value of map_w32_filename, to avoid
7837 compiler warnings.
7838
b6f0a397
EZ
7839 * s/ms-w32.h (fileno): Don't define if already defined.
7840
17a7c5c2 7841 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 7842
91018229
EZ
7843 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
7844
196ac78c
RS
78452005-06-04 Richard M. Stallman <rms@gnu.org>
7846
7847 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
7848
b8987570
JD
78492005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7850
7851 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 7852 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
7853 mac_menu_show Quit:s.
7854 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
7855 a dialog).
7856
555228aa
KS
78572005-06-04 Kim F. Storm <storm@cua.dk>
7858
7859 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
7860
7861 * callproc.c (Fcall_process): Don't use alloca to gradually
7862 increase size of buf, as it effectively uses twice the necessary
7863 space on the stack. Instead, pre-allocate buf of full size, and
7864 gradually increase the read size.
7865
7866 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
7867
7868 * eval.c (unbind_to): Preserve value of Vquit_flag.
7869
7870 * xterm.c (handle_one_xevent): Also ignore mouse motion just
7871 before a button release event.
7872
6312e5f7
JB
78732005-06-03 Juanma Barranquero <lekktu@gmail.com>
7874
7875 * xfaces.c (Finternal_lisp_face_equal_p): Really report
7876 on faces in a frame, if the argument FRAME is non-nil.
7877 Improve argument/docstring consistency.
7878
0493f7be
KS
78792005-06-02 Kim F. Storm <storm@cua.dk>
7880
7881 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
7882 (x_consider_frame_title, Fformat_mode_line): Save offset into
7883 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
7884
89fe657e
KS
78852005-06-01 Kim F. Storm <storm@cua.dk>
7886
7887 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
7888
02a6375c
YM
78892005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7890
7891 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
7892 resolution fields for scalable fonts to 0.
7893
7894 * xfaces.c (build_scalable_font_name): Round pixel size to the
7895 nearest integer.
7896
95d4fad8
KS
78972005-06-01 Kim F. Storm <storm@cua.dk>
7898
7899 * xdisp.c (display_mode_line): Support nested calls to redisplay
7900 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
7901
3c1b433a
SM
79022005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7903
7904 * fileio.c (Finsert_file_contents):
7905 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
7906
13cc7d61
KS
79072005-05-31 Kim F. Storm <storm@cua.dk>
7908
7909 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
7910 (mode_line_noprop_ptr): Rename from frame_title_*.
7911 (store_mode_line_noprop_char): Rename from store_frame_title_char.
7912 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 7913 (mode_line_target): New enum to specify current output target
13cc7d61
KS
7914 for mode line formatting.
7915 (display_mode_element): Test it rather than frame_title_ptr and
7916 mode_line_string_list to determine where output should go.
7917 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
7918 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
7919 (format_mode_line_unwind_data, unwind_format_mode_line):
7920 New functions for unwind protection in mode line formatting.
13cc7d61 7921 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
7922 to support nested calls to format-mode-line and redisplay.
7923 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 7924 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
7925 support nested calls to format-mode-line and redisplay.
7926 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 7927 Don't trim trailing dashes.
13cc7d61
KS
7928 (decode_mode_spec): Don't make infinite number of trailing dashes
7929 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
7930 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
7931 mode_line_string_face_prop, and Vmode_line_unwind_vector.
7932 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
7933 Initialize mode_line_target to MODE_LINE_DISPLAY.
7934
c16b1394
RS
79352005-05-29 Richard M. Stallman <rms@gnu.org>
7936
7937 * buffer.c (Fbuffer_local_value): Call indirect_variable.
7938
edfaeb4e
MY
79392005-05-28 Masatake YAMATO <jet@gyve.org>
7940
7941 * xdisp.c (note_mode_line_or_margin_highlight): Change the
7942 pointer to a hand cursor when hoovering over a mouse-face.
7943
7cf49add
KH
79442005-05-27 Kenichi Handa <handa@m17n.org>
7945
7946 * xterm.c (x_encode_char): Call check_ccl_update in advance.
7947
7948 * ccl.c: Now an element of Vccl_program_table is a vector of
7949 length 4, not 3.
3c1b433a
SM
7950 (ccl_get_compiled_code): New arg idx. Caller changed.
7951 Adjust for the change of Vccl_program_table.
7952 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
7953 (check_ccl_update): New function.
7954 (Fregister_ccl_program): Use ASET to set an element of a vector.
7955 Adjusted for the change of Vccl_program_table.
7956
7957 * ccl.h (struct ccl_program): New member idx.
7958 (check_ccl_update): Extern it.
7959
5e2ad10b
JB
79602005-05-27 Juanma Barranquero <lekktu@gmail.com>
7961
3c1b433a 7962 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
7963 (syms_of_image): Defvar it.
7964 (lookup_image_type): Use it.
7965
5e2ad10b
JB
7966 * buffer.c (Fbuffer_local_value): Make argument name match its use
7967 in docstring.
7968
6e604a9b
JB
79692005-05-26 Juanma Barranquero <lekktu@gmail.com>
7970
7971 * keyboard.c (Frecursive_edit): Fix typo in docstring.
7972 (Fposn_at_x_y): Make argument name match its use in docstring.
7973
59244a3f
LK
79742005-05-26 Lute Kamstra <lute@gnu.org>
7975
7976 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
7977
55ce5058
MY
79782005-05-24 Masatake YAMATO <jet@gyve.org>
7979
7980 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
7981 as loop sentinels.
7982
cb5db137
NR
79832005-05-24 Nick Roberts <nickrob@snap.net.nz>
7984
7985 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
7986 select frame title ("Question"/"Information").
7987 (xdialog_show): Use it.
7988
13dcfc35
NR
7989 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
7990
7991 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
7992
d3393daa
NR
7993 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
7994 a third argument (Qnil).
7995
7996 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
7997
7998 * editfns.c (Fmessage_box): Use "Information" for frame title.
7999
71d4fba1
TTN
80002005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
8001
8002 * termcap.c [VMS]: Include <starlet.h>.
8003
359e4563
MY
80042005-05-23 Masatake YAMATO <jet@gyve.org>
8005
6e604a9b
JB
8006 * xdisp.c (note_mode_line_or_margin_highlight): Add code
8007 for mouse-face. Change the type of the first argument from `window'
8008 to `Lisp_Object'.
359e4563
MY
8009 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
8010 window instead of w.
8011
edceb51c
AS
80122005-05-22 Andreas Schwab <schwab@suse.de>
8013
41c4895c 8014 * process.c (send_process): Move misplaced volatile.
edceb51c 8015
5c213fcc
RS
80162005-05-21 Richard M. Stallman <rms@gnu.org>
8017
8018 * xdisp.c (display_mode_element): If we're processing a list and
8019 padding is specified, put it after the last element.
8020
aa4060b9
EZ
80212005-05-21 Eli Zaretskii <eliz@gnu.org>
8022
8023 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
8024 "superroot" on DOS_NT systems.
8025
a2c9aee6
EZ
80262005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
8027
8028 * process.c (send_process): Restore the SIGPIPE handler if we
8029 catch a SIGPIPE.
8030
09e8eb5b
JB
80312005-05-20 Juanma Barranquero <lekktu@gmail.com>
8032
8033 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
8034 misleading comments).
8035 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
8036
f3fbdb1f
LK
80372005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8038
8039 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
8040 Correct the right value.
8041
639ec765
NR
80422005-05-19 Nick Roberts <nickrob@snap.net.nz>
8043
240d926e 8044 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
8045 post-command-idle-hook and post-command-idle-delay.
8046 (command_loop_1): Don't try to execute post-command-idle-hook.
8047
03d42907
KS
80482005-05-16 Kim F. Storm <storm@cua.dk>
8049
1cb83e13
KS
8050 * xdisp.c (handle_display_prop): Handle empty replacement.
8051 (handle_single_display_spec): Return -1 for empty replacement.
8052
8053 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
8054
03d42907
KS
8055 * .gdbinit (pitx): Print more info about iterator.
8056
0da46b6e
AS
80572005-05-16 Andreas Schwab <schwab@suse.de>
8058
3c1b433a 8059 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 8060
d06ba294
RS
80612005-05-14 Richard M. Stallman <rms@gnu.org>
8062
8063 * xdisp.c (message3): Call cancel_echoing.
8064
8065 * alloc.c (Fmemory_full_p): New function.
8066 (syms_of_alloc): defsubr it.
8067
8068 * process.c (send_process_trap): Unblock SIGPIPE.
8069 (send_process): Reset SIGPIPE handler before reporting error.
8070
90713743
NR
80712005-05-14 Nick Roberts <nickrob@snap.net.nz>
8072
8073 * emacs.c (syms_of_emacs): Fix doc string for system-type.
8074
68780e2a
RS
80752005-05-13 Richard M. Stallman <rms@gnu.org>
8076
8077 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
8078 (Finsert_file_contents): If we read 0 bytes from a special file,
8079 unlock the visited file if we locked it.
8080 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 8081 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 8082
5063dbbf
YM
80832005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8084
8085 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
8086
3c1b433a
SM
8087 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
8088 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
8089 redisplay from being paused by them.
8090
8091 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
8092 [!MAC_OSX] (target_ticks): Remove variable.
8093 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
8094 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
8095 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 8096 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
8097 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
8098 handling using Time Manager routines.
3c1b433a
SM
8099 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
8100 New variables.
5063dbbf
YM
8101 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
8102 (setitimer): New functions.
8103
8104 * macfns.c, macmenu.c: Don't include signal.h.
8105
8106 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
8107 Rename from get_control_part_bound. All callers changed.
8108 (x_scroll_bar_clear): New function.
8109 (x_clear_frame): Use it.
8110 (XTset_vertical_scroll_bar): Don't call Draw1Control.
8111 (x_scroll_bar_handle_click): Change type of second argument from
8112 int to ControlPartCode.
8113 (check_alarm): Remove declaration.
02a6375c
YM
8114 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
8115 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
8116
81172005-05-13 Nozomu Ando <nand@mac.com>
8118
8119 * unexmacosx.c: Include assert.h.
8120 (MACOSX_MALLOC_MULT16): New define.
8121 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
8122 ptr is in unexec regions by checking it is multiple of 16.
8123 (unexec_malloc_header_t): New typedef.
8124 (unexec_malloc, unexec_realloc, unexec_free): Store and use
8125 allocated size information in unexec_malloc_header.
8126
d101bf56
RS
81272005-05-10 Richard M. Stallman <rms@gnu.org>
8128
8129 * xterm.c (noinclude): Add #undef.
8130
8131 * image.c, xfns.c, xmenu.c: Don't include signal.h.
8132
2f60660a
JB
81332005-05-09 Juanma Barranquero <lekktu@gmail.com>
8134
f1701e65
JB
8135 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
8136 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
8137 Doc fixes.
8138
2f60660a
JB
8139 * dired.c (Ffile_name_completion): Make argument name
8140 match its use in docstring.
8141
9f29e806
LT
81422005-05-08 Luc Teirlinck <teirllm@auburn.edu>
8143
8144 * eval.c (Fdefvaralias): Remove any pre-existing
8145 variable-documentation property of the alias.
8146
a790bcd4
TTN
81472005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
8148
8149 * xfns.c (start_hourglass): Do nothing when running on a tty.
8150
d5fb8dab
JB
81512005-05-07 Juanma Barranquero <lekktu@gmail.com>
8152
8153 * fns.c (Fchar_table_range): Fix typos in docstring.
8154
7ec64183
SM
81552005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8156
8157 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
8158
6ff95f1d
EZ
81592005-05-06 Eli Zaretskii <eliz@gnu.org>
8160
2c6b25c7
EZ
8161 * lread.c (Flocate_file_internal): Doc fix.
8162
6ff95f1d
EZ
8163 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
8164
17d28d26
YM
81652005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8166
8167 * macselect.c (x_own_selection): Accept Lisp string as result of
8168 selection converter function.
8169 (x_clear_frame_selections): Don't call x-lost-selection-functions
8170 if Emacs is not owner of the selection.
8171 (Vmac_services_selection): Put variable and initialization in
8172 #ifdef MAC_OSX.
8173 (syms_of_macselect) [MAC_OSX]: Set default value of
8174 Vmac_services_selection to PRIMARY.
8175
7ec64183
SM
8176 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
8177 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
8178 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
8179 (install_scroll_bar_timer, set_scroll_bar_timer)
8180 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
8181 (get_control_part_bound, x_scroll_bar_handle_press)
8182 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
8183 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
8184 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
8185 (scroll_bar_timer_event_posted_p): New variables.
8186 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
8187 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
8188 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
8189 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
8190 Initialize track_top and track_height to nil.
8191 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
8192 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
8193 (XTset_vertical_scroll_bar): Don't make space between scroll bar
8194 and associated window.
8195 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
8196 from window config.
7ec64183
SM
8197 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
8198 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
8199 Recalculate them if they are nil.
8200 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
8201 clicked control is a scroll bar.
8202 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
8203 event handler functions. Don't add modifiers to scroll bar click
7ec64183 8204 events. Call scroll bar release handler when window is deactivated.
17d28d26 8205 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
8206 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
8207 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 8208
7ec64183
SM
8209 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
8210 New members track_top and track_height.
17d28d26
YM
8211
8212 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
8213 init_process when including sys/select.h.
8214
643b4cf5
LT
82152005-05-05 Luc Teirlinck <teirllm@auburn.edu>
8216
8217 * eval.c (Fdefvaralias): Doc fix.
8218
8219 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
8220
99bda128
KS
82212005-05-05 Kim F. Storm <storm@cua.dk>
8222
8223 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
8224 default value.
8225 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
8226 Fix type of cursor-in-non-selected-windows.
8227
3a3563e9
JD
82282005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8229
8230 * mac.c: #undef init_process so not to conflict with system headers.
8231
0124c5bd
RS
82322005-05-02 Richard M. Stallman <rms@gnu.org>
8233
8234 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
8235
8236 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
8237
8238 * xdisp.c (Vcursor_in_non_selected_windows)
8239 (Qcursor_in_non_selected_windows): Vars deleted.
8240 (syms_of_xdisp): Don't initialize them.
8241 (get_window_cursor_type): Use cursor_in_non_selected_windows
8242 buffer slot.
8243
4b3f161f
KS
82442005-05-02 Kim F. Storm <storm@cua.dk>
8245
e40527dc
KS
8246 * macros.c (executing_kbd_macro_index): Rename from
8247 executing_macro_index. All uses changed.
8248 (executing_kbd_macro_iterations): Rename from
8249 executing_macro_iterations. All uses changed.
8250 (executing_kbd_macro): Rename from executing_macro.
8251 All uses changed.
8252 (syms_of_macros): Rename Lisp var executing-macro-index to
8253 executing-kbd-macro-index.
8254
4b3f161f
KS
8255 * xdisp.c (move_it_in_display_line_to): Fix last change.
8256
4d49edf6
LT
82572005-05-01 Luc Teirlinck <teirllm@auburn.edu>
8258
f6b1b15a
LT
8259 * xmenu.c (Fx_popup_menu): Doc fix.
8260
4d49edf6
LT
8261 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
8262
4a766fe6
JR
82632005-05-02 Jason Rumney <jasonr@gnu.org>
8264
8265 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
8266
c924d3ff
TTN
82672005-05-02 Nozomu Ando <nand@mac.com>
8268
8269 * sysselect.h: Fix typo.
8270
b161ea4e 82712005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 8272
b161ea4e
NR
8273 * charset.c (Fchars_in_region): Remove as obsolete.
8274
d37e919d 82752005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
8276
8277 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 8278 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 8279 glyph.
5c2e5a5e 8280
bec0b768
LT
82812005-05-01 Luc Teirlinck <teirllm@auburn.edu>
8282
8283 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
8284
ebbfa918
RS
82852005-05-01 Richard M. Stallman <rms@gnu.org>
8286
8287 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
8288 If user cancels the menu, quit unless FOR_CLICK.
8289
7ec64183 8290 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
8291 All uses changed.
8292 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
8293 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
8294 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
8295 * commands.h (Vexecuting_kbd_macro): Likewise.
8296
a72c2d97
TTN
82972005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
8298
8299 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
8300
7e995a23
RS
83012005-04-30 Richard M. Stallman <rms@gnu.org>
8302
8303 * fileio.c (Ffind_file_name_handler): Handle the `operations'
8304 property of the file name handler.
8305 (Qoperations): New variable.
8306 (syms_of_fileio): Initialize and staticpro it.
8307
8308 * xdisp.c (set_message_1): Delete xassert.
8309
7a92caf8
YM
83102005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8311
7ec64183 8312 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
8313
8314 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
8315
8316 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
8317 before/after including Carbon.h if there is a working mktime.
8318
5ae91803
KS
83192005-04-28 Kim F. Storm <storm@cua.dk>
8320
8321 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
8322 Fix cyclic alias check. If alias loop is detected, signal
8323 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
8324
d79b6c21
LK
83252005-04-28 Lute Kamstra <lute@gnu.org>
8326
8327 * eval.c (do_autoload): Record only autoloads in the autoload
8328 property of symbols.
8329
8c75afbf
NR
83302005-04-28 Nick Roberts <nickrob@snap.net.nz>
8331
8332 * emacs.c (USAGE1): Add --basic-display and --quick options.
8333
832e294f
KS
83342005-04-27 Kim F. Storm <storm@cua.dk>
8335
8336 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
8337
f03f317a
RS
83382005-04-26 Richard M. Stallman <rms@gnu.org>
8339
c019856e
RS
8340 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
8341 (syms_of_window): Doc fixes.
8342
f03f317a
RS
8343 * indent.c (Fvertical_motion): Undo previous change.
8344
38f60cd9
KH
83452005-04-26 Kenichi Handa <handa@m17n.org>
8346
8347 * fns.c (char_table_range): New function.
8348 (Fchar_table_range): Signal an error if characters in the range
8349 have inconsistent values. Don't check the parent.
8350
87ede5a1
KH
83512005-04-25 Kenichi Handa <handa@m17n.org>
8352
8353 * fontset.c (fontset_set): Fix previous change.
8354
a6390474
RS
83552005-04-24 Richard M. Stallman <rms@gnu.org>
8356
8357 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
8358
7fce7dfe
EZ
83592005-04-24 Eli Zaretskii <eliz@gnu.org>
8360
cf1982d9
EZ
8361 * regex.c (re_search_2, re_match_2_internal): Convert second arg
8362 of RE_TRANSLATE to int, to shut up GCC warnings.
8363
7fce7dfe
EZ
8364 * fileio.c (Fcopy_file): Doc fix.
8365 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
8366 not needed.
8367
49ed33c7
YM
83682005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8369
8370 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
8371 (SOME_MACHINE_OBJECTS): Likewise.
8372 (mac.o): Depend on ccl.h.
8373 (macselect.o): New target.
8374
7ec64183
SM
8375 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
8376 Call syms_of_macselect.
49ed33c7
YM
8377
8378 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
8379
7ec64183 8380 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
8381 (QCLIPBOARD): Remove variable.
8382 (syms_of_mac): Don't initialize it.
8383 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
8384 Remove functions.
8385 (syms_of_mac): Don't defsubr them.
8386 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
8387 (QHFS_plus_D, QHFS_plus_C): New variables.
8388 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
8389 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
8390 (cfstring_create_normalized): New functions.
8391 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
8392 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
8393
7ec64183
SM
8394 * macterm.c (handling_window_update, terminate_flag):
8395 Remove variables.
8396 (do_window_update, do_ae_quit_application, XTread_socket):
8397 Don't use them.
49ed33c7
YM
8398 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
8399 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
8400 (init_service_handler): Move to macselect.c. Remove declarations.
8401 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
8402 (Qapplication, Qabout): New variables.
8403 (syms_of_mac): Initialize them.
8404 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
8405 (Qperform): New variables.
8406 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 8407 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
8408 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
8409 (mac_store_application_menu_event, init_menu_bar): New functions.
8410 [USE_CARBON_EVENTS] (mac_handle_command_event)
8411 (init_command_handler): New functions.
8412 (mac_handle_window_event): Return noErr on window update event.
8413 (do_ae_quit_application): Call mac_store_application_menu_event.
8414 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
8415 and init_menu_bar.
8416
8417 * macterm.h (x_clear_frame_selections): Add extern.
8418
8419 * macselect.c: New file for selection processing on Mac OS.
8420
469bc679
RS
84212005-04-23 Richard M. Stallman <rms@gnu.org>
8422
8423 * fileio.c (Fcopy_file): New arg MUSTBENEW.
8424 (Frename_file): Pass new arg to Fcopy_file.
8425
8426 * window.c (window_size_fixed): Variable deleted.
8427 (syms_of_window): Initialize window-size-fixed to nil.
8428 But don't DEFVAR window_size_fixed.
8429
d379c558
AS
84302005-04-23 Andreas Schwab <schwab@suse.de>
8431
8432 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
8433 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
8434 use lib64 instead of lib.
8435 (_LP64) [_ARCH_PPC64]: Define if not defined.
8436
007d105b
TTN
84372005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
8438
8439 * s/ms-w32.h (HAVE_PWD_H): Define.
8440
b9c15916
KH
84412005-04-22 Kenichi Handa <handa@m17n.org>
8442
8443 * fns.c (copy_sub_char_table): Explicitly copy the default value
8444 of the sub-chartable.
8445
8446 * fontset.c (fontset_set): When a sub-chartable is created,
8447 explicitly sets the defalt value.
8448
1ba52906
KS
84492005-04-22 Kim F. Storm <storm@cua.dk>
8450
8451 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
8452 (Fsafe_plist_get): Rename to Fplist_get.
8453 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
8454 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
8455
8456 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
8457
8458 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
8459 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8460 Use Fplist_get instead of Fsafe_plist_get.
8461
8462 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
8463
e235145c
MB
84642005-04-21 Miles Bader <miles@gnu.org>
8465
8466 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
8467
766c5349
TTN
84682005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
8469
c164a7e6
TTN
8470 * sysdep.c: Remove reference to defunct vms-pwd.h.
8471 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
8472 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
8473
766c5349
TTN
8474 * config.in: Regenerate.
8475
2b048bf5
KH
84762005-04-20 Kenichi Handa <handa@m17n.org>
8477
8478 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
8479 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
8480 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
8481
8482 * alloc.c (make_sub_char_table): Argument changed to initial
8483 value of the slots.
8484
8485 * data.c (Faref): Handle special slots used as default values of
8486 ascii, eight-bit-control, eight-bit-control. Don't ignore a
8487 default value set for a group of characters.
8488 (Faset): Signal an error if IDXVAL is not a valid character code.
8489 Make a sub-chartable with correct initial value.
8490
8491 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
8492 values for ascii, eight-bit-control, eight-bit-graphic.
8493 Don't call Faref with charset-id.
2b048bf5
KH
8494 (Fset_char_table_default): Document how to treat normal character
8495 argument. Handle special slots used as default values of ascii,
8496 eight-bit-control, eight-bit-control. Make a sub chartable if
8497 necessary.
8498
b0a35939
KH
84992005-04-20 Kenichi Handa <handa@m17n.org>
8500
8501 * search.c (boyer_moore): Fix previous change.
8502
98dde726
KS
85032005-04-19 Kim F. Storm <storm@cua.dk>
8504
8505 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
8506 face unless last visible char and first invisible char have the
8507 same face. Also use default face if saved_face_id is undefined.
8508
327a3376
YM
85092005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8510
8511 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
8512 `full_name'.
8513 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
8514 mac_scriptcode member.
8515
8516 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
8517 (syms_of_mac): Don't initialize them.
8518 (Vmac_charset_info_alist): New variable.
8519 (syms_of_mac): Defvar it.
8520 (create_text_encoding_info_alist): New function.
8521 (decode_mac_font_name, mac_to_x_fontname)
8522 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
8523 code the correspondence among XLFD charsets, Mac script codes, and
8524 Emacs coding systems. Use Vmac_charset_info_alist and result of
8525 create_text_encoding_info_alist instead.
8526 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
8527 routines also on Mac OS Classic.
7ec64183
SM
8528 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
8529 Use add_font_name_table_entry.
327a3376
YM
8530 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
8531 specified. Derive unspecified scalable fields from specified one.
8532 (x_list_fonts): Consider Valternate_fontname_alist.
8533 (kDefaultFontSize): Change value from 9 to 12.
8534 (XLoadQueryFont): Get decoded font family, font face, and charset
8535 from x_font_name_to_mac_font_name. Set full name of loaded font.
8536 (mac_unload_font): Free `full_name' member.
8537 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
8538 NULL. Copy full_name member of struct MacFontStruct to that of
8539 struct font_info.
8540
d0636839
KS
85412005-04-19 Kim F. Storm <storm@cua.dk>
8542
5827e9d4
KS
8543 * xdisp.c (handle_stop): Set saved_face_id to current face if
8544 selective_display_ellipsis_p so ellipsis will be shown in same
8545 face as preceding text.
8546 (setup_for_ellipsis): Don't set saved_face_id here.
8547 (next_element_from_display_vector): Default to saved_face_id.
8548
d0636839
KS
8549 * fns.c (Fsafe_get): New function.
8550 (syms_of_fns): Defsubr it.
8551
8552 * lisp.h (Fsafe_get): EXFUN it.
8553
8554 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
8555 loops in case of bad face property lists. Limit number of face
8556 alias lookups to 10 (in case of face alias loops).
8557
e5c78c9d
KS
85582005-04-18 Kim F. Storm <storm@cua.dk>
8559
8560 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
8561 It replaces the corresponding member from struct window, as a
8562 window may now show multiple overlay arrows.
8563 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
8564
8565 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
8566 Compare overlay_arrow_bitmap than overlay_arrow_p members.
8567
8568 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
8569 rather than from window.
8570 (update_window_fringes): Compare overlay_arrow_bitmap rather than
8571 overlay_arrow_p members.
8572 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
8573 if not default.
8574
8575 * window.h (struct window): Remove member overlay_arrow_bitmap.
8576
8577 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
8578
8579 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
8580 Calls changed. Don't check for overlay-arrow-bitmap property here.
8581 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
8582 fringe is present, return Lisp integer for bitmap (or -1 for default).
8583 Fix value of overlay-arrow-bitmap property to be a symbol, use
8584 lookup_fringe_bitmap to parse it.
8585 (display_line): Change call to overlay_arrow_at_row. Store integer
8586 return value as overlay bitmap in row rather than window.
8587 Only show overlay arrow if row displays text, or if no other overlay
8588 arrow is seen in window (if overlay marker is at point-max).
8589
7d603e3f
TTN
85902005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
8591
8592 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
8593
9942fa0c
LK
85942005-04-18 Lute Kamstra <lute@gnu.org>
8595
8596 * lread.c (Vloads_in_progress): Static.
8597 * fns.c (Vloads_in_progress): Remove extern.
8598 (load_in_progress): Add extern.
8599 (Frequire): Use load_in_progress instead of Vloads_in_progress.
8600
999cdb8f
TTN
86012005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
8602
8603 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
8604
3f4413f8
YM
86052005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8606
8607 * macterm.c (XTread_socket): Don't beep on keyboard input even if
8608 no frame is visible.
8609
60ec7b7e
DN
86102005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8611
8612 * term.c (struct keys): Add support for shifted keys.
8613
a8a1c0ee
RS
86142005-04-16 Richard M. Stallman <rms@gnu.org>
8615
8616 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
8617 (set_message): Call with_echo_area_buffer with WHICH = 0.
8618 (set_message_1): Erase the echo area buffer first thing.
8619 (echo_area_display): Don't clear echo_message_buffer.
8620
f3cf04d3
YM
86212005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8622
8623 * Makefile.in (mac.o): Depend on charset.h and coding.h.
8624
8625 * mac.c: Include charset.h and coding.h.
8626 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 8627 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
8628 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
8629
8630 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
8631
8632 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
8633
8634 * macterm.c (x_autoselect_window_p): Remove variable.
8635 (last_window): New variable.
7ec64183
SM
8636 (XTreassert_line_highlight, x_change_line_highlight):
8637 Remove declarations.
f3cf04d3
YM
8638 (mac_focus_changed, x_detect_focus_change): New functions and
8639 declarations.
8640 (XTextExtents16, front_emacs_window): Remove function.
8641 (mac_focus_frame): New function.
8642 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
8643 (mac_check_for_quit_char): Use it instead of front_emacs_window.
8644 (x_scroll_bar_report_motion): Obtain window from control owner.
8645 (x_make_frame_invisible): Set window manager size hint.
8646 (do_mouse_moved): Remove function.
8647 (XTread_socket): Move its contents here. Generate select-window
8648 event on mouse movement if needed. Use x_detect_focus_change on
8649 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
8650 window rectangle when dnd items are dropped.
8651 Don't activate/deactivate root control.
f3cf04d3
YM
8652 (frame_highlight, frame_unhighlight): Activate/deactivate root
8653 control here.
8654 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
8655
8656 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
8657 New extern.
8658
9e5b2858
LT
86592005-04-15 Luc Teirlinck <teirllm@auburn.edu>
8660
8661 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
8662 (lisp): Use it.
8663 (SOME_MACHINE_LISP): Add tooltip.
8664
42c6741e
YM
86652005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8666
7ec64183
SM
8667 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
8668 Don't include TextEncodingConverter.h.
42c6741e
YM
8669 (mac_system_script_code, Vmac_system_locale): New variables.
8670 (syms_of_mac): Defvar them.
8671 (mac_get_system_locale): New function.
8672
7ec64183
SM
8673 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
8674 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 8675 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
8676 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
8677 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
8678
8679 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
8680 TextEncodingConverter.h.
8681
0614c575
ST
86822005-04-13 Steven Tamm <steventamm@mac.com>
8683
7e26f91b
KS
8684 * macterm.c (syms_of_macterm): Remove redundant definition of
8685 mac-pass-control-to-system.
0614c575 8686
203eb0aa
SM
86872005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8688
8689 * window.c (Fset_window_configuration): Be careful when you choose
8690 among several possible points for the new_current_buffer.
8691
a56e6111
YM
86922005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8693
8694 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
8695 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
8696 (Qlanguage_change) [MAC_OS]: New variable.
8697 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 8698 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
8699
8700 * macterm.c (mac_keyboard_text_encoding)
8701 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
8702 (XTread_socket): Store language-change event if keyboard script change
8703 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 8704 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 8705
7e26f91b 8706 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 8707
6695c528
RS
87082005-04-10 Richard M. Stallman <rms@gnu.org>
8709
8710 * emacs.c (standard_args): Rename --bare-bones to --quick.
8711 Add -D aka --basic-display.
8712
8713 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
8714
18e2d91f
RS
87152005-04-09 Richard M. Stallman <rms@gnu.org>
8716
8717 * keymap.c (where_is_internal): Convert a string used as event type
8718 into "(any string)".
8719
8720 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
8721 * fns.c (Vloads_in_progress): Add extern.
8722 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
8723
87242005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
8725
8726 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
8727
1cf21850
LK
87282005-04-09 Lute Kamstra <lute@gnu.org>
8729
8730 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
8731 within the accessible part of the buffer.
8732
bfd93240
KS
87332005-04-09 Kim F. Storm <storm@cua.dk>
8734
8735 * lread.c (readevalloop): Add args START and END as region in
8736 current buffer to read. Callers changed.
8737 When specified, narrow to this region only when reading,
8738 not during eval. Track next point to read from during eval.
8739 Also restore point to "real" buffer position before eval.
8740 (Feval_region): Don't save excursion and restriction here, and
8741 don't narrow to region. Just pass region to readevalloop.
8742 Note: Point is now preserved even when PRINTFLAG is nil.
8743
9ba27690
KS
87442005-04-08 Kim F. Storm <storm@cua.dk>
8745
8746 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
8747
73f0d996
KS
87482005-04-06 Kim F. Storm <storm@cua.dk>
8749
8750 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
8751
369f76bb
YM
87522005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8753
8754 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
8755 (Fmac_get_preference): Doc fix.
8756
203eb0aa
SM
8757 * macfns.c (Fx_create_frame, x_create_tip_frame):
8758 Add "fontset-mac" to fallback font/fontsets.
369f76bb 8759
2ba613a6
KS
87602005-04-04 Kim F. Storm <storm@cua.dk>
8761
4d5ddddc
KS
8762 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
8763
2ba613a6
KS
8764 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
8765 Call it again after autoload.
8766
1673df2e
JD
87672005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8768
8769 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
8770 mallopt.
8771
8772 * ralloc.c (r_alloc_init): Ditto.
8773
41639988
KH
87742005-04-01 Kenichi Handa <handa@m17n.org>
8775
1cf21850
LK
8776 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
8777 (Vascii_eqv_table): Extern them.
41639988
KH
8778
8779 * casetab.c (set_case_table): If standard is nonzero, setup
8780 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
8781
8782 * search.c (looking_at_1): Use current_buffer->case_canon_table,
8783 not DOWNCASE_TABLE.
8784 (string_match_1): Likewise.
8785 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
8786 Vascii_downcase_table.
8787 (fast_string_match_ignore_case): Likewise.
8788 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
8789 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
8790 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
8791 simple_translate.
8792
6ca53601
SM
87932005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8794
8795 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
8796 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
8797 Use XtNtopShadowPixel and XtNbottomShadowPixel.
8798 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
8799 really work and that breaks with some versions of Xaw3d.
8800
fafbb99d 88012005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
8802
8803 * coding.c (syms_of_coding): Fix previous change.
8804
6ca53601
SM
88052005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
8806
8807 * fileio.c (search_embedded_absfilename): Fix last change.
8808
bf762c98
KH
88092005-03-25 Kenichi Handa <handa@m17n.org>
8810
8811 * coding.c (syms_of_coding): Suggest to use set-coding-category in
8812 the docstring of coding-category-list.
8813
f793f885
KS
88142005-03-31 Kim F. Storm <storm@cua.dk>
8815
8816 * keyboard.c (Qmouse_fixup_help_message): New var.
8817 (syms_of_keyboard): Intern and staticpro it.
8818 (show_help_echo): Apply mouse-fixup-help-message to help string.
8819
c364fe19
KS
88202005-03-30 Kim F. Storm <storm@cua.dk>
8821
8822 * xdisp.c (display_line): Allow multiple overlay arrows in window.
8823
c70a4df6
SM
88242005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8825
8826 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
8827 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
8828 (Ffile_name_absolute_p): Use it.
8829 (search_embedded_absfilename): New fun, extracted from
8830 Fsubstitute_in_file_name. Use file_name_absolute_p.
8831 Free the pw data after use.
8832 (Fsubstitute_in_file_name): Use it.
8833 After cutting a prefix, re-check file-name-handler.
8834
6e7d0438
JR
88352005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
8836
6ca53601 8837 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
8838
8839 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
8840 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
8841
65671706
SM
88422005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
8843
8844 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
8845 Use Fexit_minibuffer.
8846 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
8847
0de4dad4
SM
88482005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8849
781da985
SM
8850 * dired.c (Ffile_attributes): Add a missing gcpro.
8851
0de4dad4
SM
8852 * alloc.c (make_number): The arg can be bigger than `int'.
8853 * lisp.h (make_number): Make prototype more precise.
8854
8855 * process.c, dired.c (Vfile_name_coding_system)
8856 (Vdefault_file_name_coding_system):
8857 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
8858 (Vdefault_file_name_coding_system): Remove unused declarations.
8859
ff18668f
JD
88602005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8861
8862 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
8863 if it failed to pop up (Gnome "show pointer on ctrl" option makes
8864 menus fail to pop up).
8865
0de4dad4 88662005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
8867
8868 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 8869 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 8870
8df0ffbe
KS
88712005-03-22 Kim F. Storm <storm@cua.dk>
8872
8873 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
8874 * dispextern.h (lookup_derived_face): Fix prototype.
8875 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
8876
8877 * xdisp.c (handle_single_display_spec): Derive left-fringe and
8878 right-fringe face from fringe face.
8879
8880 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
8881 Derive face from fringe face.
8882
6ca30ba4
JD
88832005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8884
8885 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
8886
d615870a
DK
88872005-03-22 David Kastrup <dak@gnu.org>
8888
8889 * textprop.c (Fnext_char_property_change)
66347da7 8890 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
8891 (Fnext_single_char_property_change)
8892 (Fprevious_single_char_property_change): Check that limit is a
8893 number in strings.
8894 (Fnext_single_char_property_change): Coerce position to integer.
8895 (Fprevious_single_char_property_change): Same here.
8896
32b939ea
TTN
88972005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
8898
8899 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
8900
6027e473
SM
89012005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8902
8903 * frame.c (Fignore_event): Remove.
8904 (syms_of_frame): Don't defsubr it.
8905
8906 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
8907 redundant `ignore-event'.
8908
730f4d72
EZ
89092005-03-19 Eli Zaretskii <eliz@gnu.org>
8910
8911 * unexec.c (write_segment, unexec): Move these functions to avoid
8912 forward references (which cause errors with "gcc -gcoff").
8913
c7f6afd5
JD
89142005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8915
6027e473 8916 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 8917 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 8918
c7f6afd5
JD
8919 * xrdb.c (x_load_resources): Use different char *helv when I18N
8920 is present.
8921
db328182
KH
89222005-03-17 Kenichi Handa <handa@m17n.org>
8923
66347da7 8924 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 8925
211f2210
SM
89262005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8927
8928 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
8929 Use xic_create_fontsetname even for non-Motif menus.
8930 Don't forget to free the fontsetname.
8931
8932 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
8933
c7bd5d57
RS
89342005-03-17 Richard M. Stallman <rms@gnu.org>
8935
8936 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
8937
8938 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
8939 (Fmake_symbolic_link): Use G to read the new file name.
8940
8941 * callint.c (Finteractive): Document G option.
8942 (Fcall_interactively): Implement G option.
8943
8944 * buffer.c (buffer_lisp_local_variables): New function,
8945 broken out from Fbuffer_local_variables.
8946 (clone_per_buffer_values): Use buffer_lisp_local_variables.
8947
888953f1
SM
89482005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8949
3c916d65
SM
8950 * xfns.c (xic_create_fontsetname): Add `motif' argument.
8951 Always return a freshly allocated string.
8952 (xic_create_xfontset): Adjust call.
8953
8954 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
8955 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
8956 (dump_realized_face): Fix warning.
8957
9f9e5275
SM
8958 * emacs.c (Fkill_emacs): YAILOM.
8959
888953f1
SM
8960 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
8961
48502d68
YM
89622005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8963
8964 * mac.c (HASHKEY_TERMINAL): Remove.
8965 (HASHKEY_MAX_NID): New macro.
8966 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
8967 argument.
888953f1 8968 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
8969 (xrm_create_database, xrm_q_put_resource)
8970 (xrm_merge_string_database, xrm_q_get_resource_1)
8971 (xrm_q_get_resource): Change resource database representation so
8972 that it may not use multiple hash tables for a single database.
8973 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
8974
d5161e8c
SM
89752005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
8976
11a646cd
SM
8977 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
8978
8979 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
8980 locale-coding-system, as was already done for WINDOWSNT.
8981
d5161e8c
SM
8982 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
8983 translation for chars in the 0-255 range.
8984
568b6e41
LK
89852005-03-16 Lute Kamstra <lute@gnu.org>
8986
8987 * floatfns.c (Ffloor): Doc fix.
8988
469fb3cf
YM
89892005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8990
8991 * mac.c: Include macterm.h instead of directly including Carbon.h.
8992 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
8993 (Qarray, Qdictionary): New variables.
8994 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
8995 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
8996 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
8997 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
8998 in callback for CFDictionaryApplyFunction.
8999 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9000 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9001 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
9002 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
9003 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
9004 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
9005 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 9006 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
9007 (parse_binding, parse_component, parse_resource_name, parse_value)
9008 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
9009 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
9010 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
9011 New functions.
469fb3cf
YM
9012
9013 * macfns.c (mac_get_rdb_resource): Remove function.
9014 (x_get_string_resource): Use xrm_get_resource.
9015
9016 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
9017
9018 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
9019 name_list_element.
9020 (mac_make_rdb): Create resource database from preferences and
9021 argument string.
9022 (mac_term_init): Save resource database to cddr part of
9023 name_list_element.
9024
9025 * macterm.h (xrm_merge_string_database, xrm_get_resource)
9026 (xrm_get_preference_database): Add externs.
9027 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9028 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9029 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
9030
9031 * process.c (init_process): Change `#ifdef DARWIN' to `#if
9032 defined (DARWIN) || defined (MAC_OSX)'
9033
9034 * s/darwin.h (DARWIN): Don't define.
9035
6a3fac90
YM
90362005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9037
9038 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
9039 Remove unused variables.
9040 (syms_of_macfns): Don't initialize them. Likewise for
9041 Qface_set_after_frame_default. Defvar and initialize
9042 Vx_window_horizontal_drag_shape.
9043 (x_set_mouse_color): Change mouse pointer shape.
9044 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 9045 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
9046 (hourglass_started): New function (from xfns.c).
9047 (start_hourglass, cancel_hourglass): Put function body in #ifdef
9048 MAC_OSX.
9049 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
9050 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 9051 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
9052
9053 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
9054 Controls.h. Use ThemeCursor instead of CursHandle.
9055
d5161e8c
SM
9056 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
9057 Remove functions and declarations.
9058 (mac_set_colors): Take argument for saving background color.
9059 All callers changed.
6a3fac90
YM
9060 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
9061 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
9062 background color.
9063 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
9064 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
9065 Use SetThemeCursor.
6a3fac90
YM
9066 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
9067 indicator control to the upper-right corner of the window.
9068 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
9069 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
9070 (do_window_update): Update controls after updating content area.
9071 (mac_handle_window_event): Remove unused extern.
9072 (XTread_socket): Check both control handle and control part code
9073 to determine whether a scroll bar is clicked. Activate/deactivate
9074 root control instead of contained scroll bar controls.
9075 (make_mac_terminal_frame): Use ThemeCursor constants.
9076
d5161e8c
SM
9077 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
9078 New member hourglass_control.
6a3fac90 9079 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 9080 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 9081
a7321976
YM
90822005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9083
9084 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 9085 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
9086 laptops, and fn + `enter' on laptops.
9087
f7b758bd
SM
90882005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9089
9090 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
9091 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
9092 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
9093
9094 * xfns.c (xic_defaut_fontset): New constant.
9095 (xic_create_fontsetname): New function.
9096 Extracted from create_frame_xic. Try to generate a slightly
9097 better fontset.
9098 (xic_create_xfontset): Use it.
9099 (create_frame_xic): Simplify.
9100
dac24db4
SM
91012005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
9102
9103 * fileio.c (Fmake_symbolic_link): Fix last change.
9104
e0402468
RS
91052005-03-11 Richard M. Stallman <rms@gnu.org>
9106
9107 * fileio.c (Frename_file, Fadd_name_to_file)
9108 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
9109 expand the basename of FILE relative to it.
9110
fa815b14
KH
91112005-03-11 Kenichi Handa <handa@m17n.org>
9112
9113 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
9114 before calling setup_coding_system so that autoloading of a coding
9115 system work.
9116
817d354b
JD
91172005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9118
68a505ef
JD
9119 * xfns.c (hourglass_started): New function.
9120
9121 * dispextern.h: Declare hourglass_started.
9122
9123 * keyboard.c (Fexecute_extended_command): Restart hourglass
9124 after call to Fcompleting_read if already started.
9125
817d354b
JD
9126 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
9127 GTK main loop is entered in xterm.c, thus doing the redraw.
9128
b0a6f45c
KS
91292005-03-10 Kim F. Storm <storm@cua.dk>
9130
9131 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
9132
ee5d57b0
KH
91332005-03-08 Kenichi Handa <handa@m17n.org>
9134
9135 * frame.c (x_set_font): Call set_default_ascii_font if an
9136 available font is found.
9137
9138 * fontset.c (set_default_ascii_font): New function.
dac24db4 9139 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
9140
9141 * fontset.h (set_default_ascii_font): Extern it.
9142
f30c4a5c
KS
91432005-03-07 Kim F. Storm <storm@cua.dk>
9144
3fb26a86
KS
9145 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
9146 (clear_image_cache_count): New var.
9147 (redisplay_internal): Don't clear face and image caches in the
9148 middle of redisplay; do it afterwards.
9149
a54595d4
KS
9150 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
9151
f30c4a5c
KS
9152 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
9153 is valid. If not, clear phys_cursor_on_p and return.
9154
3d182f9d
AS
91552005-03-07 Andreas Schwab <schwab@suse.de>
9156
9157 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
9158
85d964de
RS
91592005-03-06 Richard M. Stallman <rms@gnu.org>
9160
9161 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
9162
9163 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
9164 (Feval, Ffuncall): Use CHECK_CONS_LIST.
9165
9166 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
9167
9168 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
9169 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
9170
3ff96c81
JL
91712005-03-05 Juri Linkov <juri@jurta.org>
9172
9173 * emacs.c (USAGE1): Replace Info node name "command arguments"
9174 with "emacs invocation".
9175 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
9176 allow arguments `--color' and `MODE' to be separated by space.
9177 Add --no-blinking-cursor, -nbc.
9178 (standard_args): Add -nbc, --no-blinking-cursor.
9179
64eb0083
TTN
91802005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
9181
9182 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
9183 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
9184 * fileio.c (Fexpand_file_name) [VMS]:
9185 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
9186 * doc.c (munge_doc_file_name) [VMS]: Likewise.
9187 (Fsnarf_documentation): Call munge_doc_file_name.
9188
ad708ae5
TTN
91892005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
9190
9191 * s/vms.h (FILE_SYSTEM_CASE): New macro.
9192 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
9193 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
9194
ba025f6d
YM
91952005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9196
9197 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
9198 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 9199
dac24db4 9200 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
9201
9202 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
9203 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 9204 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
9205 (mac_clear_font_name_table): Move extern to macterm.h.
9206
9207 * macfns.c (install_window_handler): Move extern to macterm.h.
9208 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
9209 valid. Don't check !NILP (dir) because it is already checked with
9210 CHECK_STRING.
9211 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 9212 specifying the default location and obtaining the selected filename.
ba025f6d
YM
9213
9214 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
9215
2313f861 9216 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
9217 are included via Carbon.h.
9218
dac24db4
SM
9219 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
9220 Define USE_CARBON_EVENTS to 1.
2313f861 9221 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
9222 (x_free_frame_resources): Call remove_window_handler for
9223 non-tooltip windows.
9224 [TARGET_API_MAC_CARBON]: Don't include headers that are included
9225 via Carbon.h.
9226 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
9227 (mac_do_receive_dragUPP): New variables.
9228 (mac_handle_service_event, init_service_handler): Put declarations
9229 and definitions in #ifdef MAC_OSX.
9230 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
9231 drag-and-drop handler functions and register them.
9232 (remove_window_handler): New function.
dac24db4
SM
9233 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
9234 Use fsspec_to_posix_pathname.
ba025f6d
YM
9235 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
9236 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
9237 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
9238 Set default cursors.
ba025f6d
YM
9239 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
9240 init_service_handler or init_quit_char_handler.
9241 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
9242
9243 * macterm.h (install_window_handler, remove_window_handler)
9244 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
9245 (mac_clear_font_name_table): New externs.
ad708ae5 9246
c1558952
TTN
92472005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
9248
9249 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
9250 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
9251 (Fexpand_file_name): Likewise.
9252
fa439170
TTN
92532005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
9254
9255 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
9256 no longer special-case VMS. Add bogus return value.
9257
db2dacf6
KS
92582005-03-02 Kim F. Storm <storm@cua.dk>
9259
9260 * dispextern.h (XASSERTS): Define to 0 if not already defined.
9261 (xassert) [!XASSERTS]: Define dummy version.
9262
0870514c
KS
92632005-03-02 Kim F. Storm <storm@cua.dk>
9264
9265 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
9266 Reported by David Kastrup.
9267
6b640092
KS
92682005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
9269
9270 * xdisp.c (get_next_display_element): Fix control and escape
9271 glyph from display vector.
9272
f4a5a485
SM
92732005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
9274
9275 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
9276
85d964de
RS
92772005-02-27 Richard M. Stallman <rms@gnu.org>
9278
9279 * xdisp.c (fast_find_position): Rename END to BEG.
9280 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
9281
6e8db3ea
JD
92822005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9283
f4a5a485 9284 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
9285 gtk_window_resize and x_wm_set_size_hint.
9286
0f465b55
KS
92872005-02-25 Kim F. Storm <storm@cua.dk>
9288
9289 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
9290
9291 * xdisp.c (init_from_display_pos): Don't read past end of
9292 it->overlay_strings array.
9293
d5fb8dab 92942005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
9295
9296 * buffer.c (syms_of_buffer): Fix typo.
9297
b02c3eed
LK
92982005-02-23 Lute Kamstra <lute@gnu.org>
9299
9300 * buffer.c (Foverlay_buffer): Doc fix.
9301
c8500765
KS
93022005-02-22 Kim F. Storm <storm@cua.dk>
9303
b686dd59
KS
9304 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
9305 and symbol keys in alists and hash tables.
9306
c8500765
KS
9307 * xdisp.c (fast_find_position): Fix search for start of overlay.
9308
81c85b53
KS
93092005-02-21 Kim F. Storm <storm@cua.dk>
9310
9311 * window.c (window_scroll_pixel_based): When scrolling backwards,
9312 handle partial visible line at end of window even when we hit PT.
9313
f4a5a485 93142005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
9315
9316 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
9317
0dd5a842
KS
93182005-02-21 Kim F. Storm <storm@cua.dk>
9319
9320 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
9321 I think those asserts are bogus if buffer contains invisible text
9322 or images.
9323
d5fb8dab 93242005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
9325
9326 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
9327
0fba9f25
KS
93282005-02-20 Kim F. Storm <storm@cua.dk>
9329
9330 * xdisp.c (pos_visible_p): Be sure to move to the specified
9331 position. Always get the full ascent / descent of the
9332 corresponding row, to return reliable rtop and rbot values.
9333 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
9334 Must look one character back, as back_to_previous_line_start
9335 returns position after the newline.
9336 (move_it_vertically_backward): Fix heuristic for when to move further
9337 back in case line_height * 2/3 is larger than window height.
9338 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
9339 as it does not do anything anymore. Add arg current_matrix_p to
9340 use current matrix rather than desired matrix when set.
9341 (try_cursor_movement): Don't scroll to make cursor row fully
9342 visible if cursor didn't move. This avoids unexpected recentering
9343 in case of blinking cursor or accepting process output.
9344 Use current matrix to check cursor row visibility.
9345 (redisplay_window): Fix whether to recenter or move to top in case
9346 cursor line is taller than window height.
9347 (find_first_unchanged_at_end_row): Stop search if we reach a row
9348 which not enabled (instead of abort).
9349
b1c2adc3
KS
93502005-02-18 Kim F. Storm <storm@cua.dk>
9351
c2ee48fb
KS
9352 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
9353 to be nil in a :box attribute value list; customize prints that
9354 as lisp value when no box color is specified.
9355
b1c2adc3
KS
9356 * .gdbinit (pitx, pit): Pretty print display iterator.
9357 (prowx, prow): Pretty print glyph row.
9358 (pcursorx, pcursor): Pretty print a window cursor.
9359 (pwinx, pwin): Pretty print struct window.
9360
f102186f
SM
93612005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9362
9363 * alloc.c (BLOCK_BYTES): Harmless typo.
9364
9b516537
AS
93652005-02-17 Andreas Schwab <schwab@suse.de>
9366
9367 * xfns.c (hack_wm_protocols): Use correct type for last parameter
9368 of XGetWindowProperty to avoid aliasing issues.
9369 (Fx_window_property): Likewise.
9370
9371 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 9372 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
9373
9374 * xterm.c (handle_one_xevent): Use union of struct input_event and
9375 struct selection_input_event to avoid aliasing issues.
9376 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
9377
886b1418
KS
93782005-02-17 Kim F. Storm <storm@cua.dk>
9379
9380 * dispextern.h (enum it_method): New enum.
9381 (GET_FROM_*): Its members.
9382 (struct it): Change member method from function pointer to enum.
9383
9384 * xdisp.c (check_it, init_from_display_pos, handle_stop)
9385 (setup_for_ellipsis, handle_single_display_spec)
9386 (handle_composition_prop, next_overlay_string)
9387 (get_overlay_strings, reseat_1, reseat_to_string)
9388 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
9389 (in_display_vector_p, display_line, get_next_display_element):
9390 Change it->method from function pointer to enum.
9391 (get_next_element): New array to map it->method to function.
9392 (get_next_display_element): Use it.
9393 (set_iterator_to_next): Use switch instead of if/else chain.
9394
99ee2c6a 93952005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
9396
9397 * w32select.c: Summary: Thorough rework to implement Unicode
9398 clipboard operations and delayed rendering.
9399
9400 Drop last_clipboard_text and related code, keep track of
f4a5a485 9401 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
9402
9403 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
9404 (clipboard_owner, modifying_clipboard, cfg_coding_system)
9405 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
9406 (current_coding_system, current_requires_encoding)
f4a5a485
SM
9407 (current_num_nls, current_clipboard_type, current_lcid):
9408 New static variables.
52c7f9ee
JR
9409
9410 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
9411 (render, render_all, run_protected, lisp_error_handler)
9412 (owner_callback, create_owner, setup_config)
f4a5a485
SM
9413 (enum_locale_callback, cp_from_locale, coding_from_cp):
9414 New local functions.
52c7f9ee
JR
9415
9416 (term_w32select, globals_of_w32select): New global functions.
9417
9418 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
9419 clipboard_owner instead. Use delayed rendering and provide
9420 all text formats. Provide CF_LOCALE if necessary.
9421
9422 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
9423 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
9424 available. Force DOS line-ends for decoding.
9425
9426 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
9427
9428 (syms_of_w32select): Init and register new variables.
9429
9430 * w32.h: Add prototypes for globals_of_w32select and
9431 term_w32select. Make the neighboring K&R declarations into
9432 prototypes, too.
9433
9434 * emacs.c: Include w32.h to get function prototypes.
9435 (main): Call globals_of_w32select.
9436
886b1418 9437 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
9438
9439 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
9440
86e61586
KS
94412005-02-16 Kim F. Storm <storm@cua.dk>
9442
9443 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
9444 at end of display vector.
9445
6407f07b
RS
94462005-02-15 Richard M. Stallman <rms@gnu.org>
9447
9448 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
9449 for mode and header lines.
9450
9451 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
9452
9453 * keymap.h (describe_map_tree): Change decl.
9454
9455 * keyboard.c (command_loop_1): Always use safe_run_hooks
9456 to run Qdeferred_action_function.
9457
9458 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
9459 (describe_map, describe_vector): Likewise. When it's 1,
9460 don't omit shadowed bindings, instead mark them as shadowed.
9461
9462 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
9463 for describe_map_tree. Pass 1 for MENTION_SHADOW.
9464
9465 * data.c (Fsetq_default): Allow no arg case.
9466
3bb917bf
KH
94672005-02-14 Kenichi Handa <handa@m17n.org>
9468
9469 * coding.c (encode_coding_string): Always return a unibyte string.
9470 If NOCOPY is nonzero and there's no need of encoding, make STR
9471 unibyte directly.
9472
9473 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
9474 multibyte string, signal an error instead of aborting.
9475
e31d908f
DN
94762005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
9477
9478 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
9479
48e029b6
KS
94802005-02-12 Kim F. Storm <storm@cua.dk>
9481
9482 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
9483
c10bb00a
KS
94842005-02-10 Kim F. Storm <storm@cua.dk>
9485
9486 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
9487 if it moves outside window or it doesn't display text.
9488
9ca0f64a
KS
94892005-02-09 Kim F. Storm <storm@cua.dk>
9490
9491 * undo.c (Fprimitive_undo): Check that undo function does not
9492 switch buffer.
9493
b8d6f4af
JD
94942005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9495
9496 * xselect.c (selection_data_to_lisp_data): For the special case
9497 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
9498 (x_property_data_to_lisp, selection_data_to_lisp_data):
9499 Comment update: data must be array of int for format == 32.
b8d6f4af 9500
3419757d
SM
95012005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9502
9503 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
9504
3a441526
JD
95052005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9506
fc34503b
JD
9507 * xfns.c (Fx_change_window_property): Use long array when format is 32.
9508 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
9509 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
9510 (x_set_tool_bar_lines): Check that width and height is greater than
9511 zero before clearing area.
fc34503b
JD
9512
9513 * xselect.c (x_reply_selection_request): Pass long array to
9514 XChangeProperty so that 64 bit longs are handeled correctly.
9515 (x_get_window_property): If format is 32 and long is bigger than 32
9516 bits convert data from XGetWindowProperty from long array to int array.
9517 (lisp_data_to_selection_data): When the input is a vector and the
9518 format is 32, allocate a long array even if long is bigger than 32 bits.
9519 (x_fill_property_data): Use char, short and long as the man page
9520 for XChangeProperty specifies. This way the data returned is OK for
9521 both 32 and 64 bit machines.
9522 (x_handle_dnd_message): Calculate size correctly even for 64 bit
9523 machines.
9524 (Fx_send_client_event): Undo change from 2005-02-05,
9525 x_fill_property_data now handles that case.
9526
3419757d 9527 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
9528 reason for the approach in the code.
9529
82ec225b
KS
95302005-02-07 Kim F. Storm <storm@cua.dk>
9531
9532 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
9533
ba2c991c
RS
95342005-02-06 Richard M. Stallman <rms@gnu.org>
9535
9536 * eval.c (Frun_hook_with_args)
9537 (Frun_hook_with_args_until_success)
9538 (Frun_hook_with_args_until_failure): Doc fixes.
9539
e120ea40
AS
95402005-02-05 Andreas Schwab <schwab@suse.de>
9541
3419757d 9542 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 9543
31f16913
JD
95442005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9545
9546 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
9547 the longs in a XClientMessageEvent correctly when long is 64 bits.
9548
6082a820
EZ
95492005-02-05 Eli Zaretskii <eliz@gnu.org>
9550
9551 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
9552 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
9553
0e95095b
JD
95542005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9555
9556 * xmenu.c (menubar_selection_callback): Force out GTK buffered
9557 events so the menu event comes after them. This is to prevent sit-for
9558 from exiting on buffered events directly after a menu selection,
9559 lisp code for Help => About Emacs uses sit-for.
9560
9561 * gtkutil.c (create_menus): Connect selection-done event instead of
9562 the deactivate event to deactivate_cb. This will make the last
9563 leave event come before the call to deactivate_cb, so the leave
9564 event does not make sit-for exit after a menu selection.
9565
5bb6a3c1
KS
95662005-02-03 Kim F. Storm <storm@cua.dk>
9567
9568 * dispnew.c (build_frame_matrix_from_leaf_window)
9569 [!GLYPH_DEBUG]: Fix xassert.
9570
9571 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
9572
9573 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9574
e9859e26
YM
95752005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9576
9577 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
9578 the compiling OS version.
9579
9580 * macfns.c (x_create_tip_frame): Likewise.
9581
3419757d 9582 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 9583
4e07258f
RS
95842005-02-03 Richard M. Stallman <rms@gnu.org>
9585
9586 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
9587
9588 * xdisp.c (echo_area_display): Clear echo_message_buffer.
9589
9590 * buffer.c (Fbury_buffer): Doc fix.
9591
4a34b529
ST
95922005-02-02 Steven Tamm <steventamm@mac.com>
9593
7e26f91b 9594 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 9595 xassert being uncondition, but predicate is.
7e26f91b 9596 * dispnew.c (update_window): Fix compile error due to
f6c62d96 9597 xassert being uncondition, but predicate is.
4a34b529 9598
d78f30b8
MB
95992005-02-02 Miles Bader <miles@gnu.org>
9600
9601 * dispextern.h (xassert): Enable unconditionally.
9602
b044278d
KS
96032005-02-02 Kim F. Storm <storm@cua.dk>
9604
9605 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
9606
56072160
KH
96072005-02-02 Kenichi Handa <handa@m17n.org>
9608
9609 * casefiddle.c (casify_object): Enable changing characters of
9610 different byte length.
9611 (casify_region): Fix loop condition, args to replace_range_2, and
9612 update opoint_byte.
9613
f4a5a485 9614 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 9615
5e1674c5
KS
96162005-02-01 Kim F. Storm <storm@cua.dk>
9617
9618 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
9619 stack before calling handle_display_prop.
9620
fb89c330
KS
96212005-01-31 Kim F. Storm <storm@cua.dk>
9622
9623 * undo.c (Qapply): New lisp var.
9624 (syms_of_undo): Intern and staticpro it.
9625 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
9626 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
9627
9628 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
9629
7bf72fa6
JH
96302005-01-30 Jesper Harder <harder@phys.au.dk>
9631
a050b1a9
KS
9632 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
9633 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 9634
03c64f2e
LT
96352005-01-29 Luc Teirlinck <teirllm@auburn.edu>
9636
9637 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 9638 Increase value to 3 Meg.
03c64f2e 9639
49b8b5dc
JD
96402005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9641
9642 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
9643 button events are not received otherwise.
9644
5a92a9eb
RS
96452005-01-29 Richard M. Stallman <rms@gnu.org>
9646
9647 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
9648
9649 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
9650
5c243ee4
SM
96512005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9652
9653 * keymap.c (access_keymap): YAILOM.
9654
caf533af
KS
96552005-01-27 Kim F. Storm <storm@cua.dk>
9656
9657 * xdisp.c (get_phys_cursor_geometry): New function to calculate
9658 phys cursor position and size for hollow cursor. Position is
9659 aligned with get_glyph_string_clip_rect and ensures that a hollow
9660 cursor is shown, even when the actual glyph is not visible.
9661
9662 * dispextern.h (get_phys_cursor_geometry): Add prototype.
9663
9664 * xterm.c (x_clip_to_row): Ensure y >= 0.
9665 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9666
9667 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9668
9669 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9670
043f7f73
SM
96712005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
9672
9673 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
9674
889f3641
KS
96752005-01-27 Kim F. Storm <storm@cua.dk>
9676
9677 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
9678 glyph, even when row is only partially visible and actual cursor
9679 position is not visible.
9680
29099c2f
RS
96812005-01-24 Richard M. Stallman <rms@gnu.org>
9682
9683 * xterm.c (x_error_quitter): No longer static, and moved after
9684 x_error_handler.
9685
6adb6f01
KS
96862005-01-24 Kim F. Storm <storm@cua.dk>
9687
9688 * xdisp.c (move_it_by_lines): If we move forward after going too
9689 far back, cancel move if end position is same as start position.
9690
4d904fa0
ST
96912005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9692
9693 * dispextern.h (struct glyph_string): New members clip_head and
9694 clip_tail.
6adb6f01 9695
4d904fa0
ST
9696 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
9697 region to the area between clip_head and clip_tail.
9698 (draw_glyphs): Record the area that need to be actually redrawn to
9699 the new variables clip_head and clip_tail when there are
9700 overhangs. Set values of these variables to the corresponding
9701 members in struct glyph_string. Refine x coordinates for
9702 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 9703
4d904fa0
ST
9704 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
9705
9706 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
9707 QDTextBounds.
9708 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 9709 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 9710 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 9711 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 9712
f2417699
KS
97132005-01-24 Kim F. Storm <storm@cua.dk>
9714
6f67f013
KS
9715 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
9716 direction if window height was smaller than next-screen-context-lines.
9717 Now always scroll at least one line in the requested direction.
9718 Ensure that we actually do scroll backwards when requested to do so.
9719
f2417699
KS
9720 * xdisp.c (redisplay_window): Only try to make cursor line fully
9721 visible once (to avoid redisplay loop).
9722
a354b72c
KS
97232005-01-23 Kim F. Storm <storm@cua.dk>
9724
6b3d88f7 9725 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 9726 partially visible rows.
6b3d88f7
KS
9727 (window_scroll_pixel_based): Adapt to that change.
9728
5c20cae2
KS
9729 * window.c (window_scroll_pixel_based): Force moving to next line
9730 if scrolling doesn't move start point, e.g. if looking at tall image.
9731
a354b72c 9732 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
9733 Clear last_height before calling line_bottom_y to get real height.
9734 Fix calculation of y.
a354b72c 9735
d9e7c622
ST
97362005-01-22 Steven Tamm <steventamm@mac.com>
9737
9738 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 9739 (DARWIN): Define.
7e26f91b 9740
d9e7c622
ST
9741 * process.c (init_process): Default process-connection-type to
9742 nil on darwin 6 or less, t if it is 7 or higher. This way the
9743 broken pty behavior is still allowed on darwin 6 for interactive
9744 processes for people that know what they are doing.
9745
d00e399a
KS
97462005-01-22 Kim F. Storm <storm@cua.dk>
9747
9748 * window.c (auto_window_vscroll_p): New boolean.
9749 (syms_of_window): DEFVAR_BOOL it.
9750 (Fpos_visible_in_window_p): Extend return value to include RTOP
9751 and RBOT values if FULLY is nil.
9752 (window_scroll_pixel_based): Adjust vscroll for partially visible
9753 rows if auto_window_vscroll_p is set.
9754 (Fset_window_vscroll): Do nothing if vscroll is not modified.
9755
9756 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
9757 to return number of partially invisible pixels at top and bottom
9758 of the dislay row at POS.
9759
9760 * lisp.h (pos_visible_p): Fix prototype.
9761
f95a20e7
RS
97622005-01-21 Richard M. Stallman <rms@gnu.org>
9763
9764 * fileio.c (Fcopy_file): Doc fix.
9765
eee141ce
JD
97662005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9767
9768 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
9769 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
9770 start of function for older compilers.
9771
6f771c32
RS
97722005-01-20 Richard M. Stallman <rms@gnu.org>
9773
9774 * editfns.c (Fmessage): If arg is "", return "" (as before).
9775
9776 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
9777
9778 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
9779 variable.
9780
a15252fd
ST
97812005-01-20 Steven Tamm <steventamm@mac.com>
9782
043f7f73 9783 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
9784 (init_editfns): Assign new variable operating-system-release
9785 based on call to uname if available.
043f7f73 9786 (get_operating_system_release): Add function to
d00e399a 9787 allow c-level access to operating system release.
a15252fd
ST
9788
9789 * config.h: Regenerated.
9790
043f7f73
SM
9791 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
9792 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
9793 using ptys as '7'.
9794
3d6a4b2d
KS
97952005-01-20 Kim F. Storm <storm@cua.dk>
9796
62fc9b0f
KS
9797 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
9798
c310aca4
KS
9799 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
9800 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
9801
9802 * macterm.c (x_draw_glyph_string_box): Likewise.
9803
9804 * w32term.c (x_draw_glyph_string_box): Likewise.
9805
3d6a4b2d
KS
9806 * indent.c (Fvertical_motion): Temporarily disable selective display.
9807
27c8be45
KS
98082005-01-19 Kim F. Storm <storm@cua.dk>
9809
77db5cf3
KS
9810 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
9811 image property.
9812
27c8be45
KS
9813 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
9814
81f498dc
KS
98152005-01-18 Kim F. Storm <storm@cua.dk>
9816
9817 * xdisp.c (fast_find_position): Backtrack to find first row if
9818 charpos is inside a display overlay that spans multiple lines.
9819
1cdb0707
KH
98202005-01-18 Kenichi Handa <handa@m17n.org>
9821
9822 * coding.c (decode_coding_iso2022): Translate invalid codes if
9823 translation-table is specified.
9824
677159ce
KS
98252005-01-18 Kim F. Storm <storm@cua.dk>
9826
9827 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
9828 change. If handle_display_prop indicates newline is replaced by
9829 image or text, move back to start of relevant overlay or interval
9830 and continue scan from there. Simplify.
9831
977284cc
KS
98322005-01-17 Kim F. Storm <storm@cua.dk>
9833
043f7f73
SM
9834 * dispnew.c (mode_line_string, marginal_area_string):
9835 Fix off-by-one error in search for glyph.
977284cc 9836
e24531b7
KS
98372005-01-16 Kim F. Storm <storm@cua.dk>
9838
9839 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
9840
5ddd7664
ST
98412005-01-16 Steven Tamm <steventamm@mac.com>
9842
043f7f73 9843 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 9844
fc2ff44b
AS
98452005-01-16 Andreas Schwab <schwab@suse.de>
9846
9847 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
9848
50af5100
JD
98492005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9850
9851 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
9852 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
9853
a2d5fca0
JD
98542005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9855
9856 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
9857 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
9858 New flags for readable_events.
043f7f73 9859 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
9860 (tracking_off): Call readable_events and get_input_pending with
9861 flag READABLE_EVENTS_DO_TIMERS_NOW.
9862 (readable_events): Move code from old readable_filtered_events here,
9863 but check new READABLE_EVENTS_* in argument flags instead of previous
9864 two boolean arguments do_timers_now and filter_events.
9865 If we are doing mouse tracking and the mouse moved, return only if
9866 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
9867 (swallow_events): Call get_input_pending with flag
9868 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 9869 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
9870 here. Replace boolean arguments do_timers_now, filter_events with
9871 flags, and pass flags to readable_events. Document new
9872 READABLE_EVENTS_* flags.
9873 (detect_input_pending_ignore_squeezables): New function.
9874 (detect_input_pending_run_timers): Call get_input_pending with flag
9875 READABLE_EVENTS_DO_TIMERS_NOW.
9876 (Finput_pending_p): Call get_input_pending with flags
9877 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
9878
9879 * dispnew.c (update_window, update_frame_1): Replace calls to
9880 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 9881 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
9882 mouse movements.
9883
9884 * lisp.h: Declare detect_input_pending_ignore_squeezables.
9885
42afbcda
ST
98862005-01-15 Steven Tamm <steventamm@mac.com>
9887
e24531b7
KS
9888 * macterm.c (Vmac_use_core_graphics): Declare variable for
9889 mac-allow-anti-aliasing.
9890 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 9891 (mac_draw_string_common): Use core graphics text rendering if
0530c679 9892 mac-allow-anti-aliasing is enabled.
743d0696 9893
42afbcda
ST
9894 * macfns.c (Fx_file_dialog): Save As dialog includes only the
9895 file name in the text box.
9896
9cdd4884
ST
98972005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9898
043f7f73
SM
9899 * macfns.c (x_set_foreground_color, x_set_background_color):
9900 Sync with xfns.c.
9cdd4884
ST
9901 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
9902 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
9903 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
9904
88948d55
KS
99052005-01-14 Kim F. Storm <storm@cua.dk>
9906
9907 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
9908
20d6de82
RS
99092005-01-13 Richard M. Stallman <rms@gnu.org>
9910
9911 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
9912 if Voverriding_terminal_local_map is non-nil.
9913
9914 * keyboard.c (syms_of_keyboard): Doc fix.
9915
f75a592e
KS
99162005-01-13 Kim F. Storm <storm@cua.dk>
9917
9918 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 9919 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 9920
28f94a34
RS
99212005-01-12 Richard M. Stallman <rms@gnu.org>
9922
9923 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
9924 face property for characters that don't specify one.
9925
9926 * fns.c (Frequire): Record in load-history unconditionally.
9927
57a230b1
KS
99282005-01-10 Kim F. Storm <storm@cua.dk>
9929
9930 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
9931
9932 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
9933 Callers changed.
9934 Add support to merge with lisp face id too (if face_name is t).
9935
9936 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9937 Don't lookup lface_id from display table glyphs here; instead use
9938 merge_faces to merge the lisp face id into current face.
9939
8ab2c119
KS
99402005-01-09 Kim F. Storm <storm@cua.dk>
9941
9942 * dispextern.h (struct it): New member dpvec_face_id.
9943 (merge_into_realized_face): Add prototype.
9944
9945 * xfaces.c (merge_into_realized_face): New function. Used to
9946 merge escape-glyph face or face from display table into current face.
9947
9948 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
9949 (syms_of_xdisp): DEFVAR_LISP it.
9950 (escape_glyph_face): Remove var.
9951 (redisplay_window): Don't initialize it.
9952 (setup_for_ellipsis, get_next_display_element):
9953 Set it->dpvec_face_id to -1.
9954 (get_next_display_element): Test Vshow_nonbreak_escape.
9955 Do not setup escape_glyph_face.
9956 Properly merge escape-glyph face or face from display table with
043f7f73
SM
9957 current face for escape and control characters.
9958 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
9959 element of display vector.
9960 (next_element_from_display_vector): If it->dpvec_face_id is set,
9961 use that instead of lface_id from glyph itself.
9962
e0910857
JD
99632005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9964
9965 * xterm.h (struct x_output): New member, toolbar_detached.
9966
9967 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
9968 38.
9969 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
9970 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
9971 (xg_create_tool_bar): Initialize toolbar_detached.
9972 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
9973 toolbar_detached is zero.
9974
ff59904a
JD
99752005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9976
9b85e63d
JD
9977 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
9978 gtk_menu_popup if not for_click, so callbacks for the menu are called.
9979
ff59904a
JD
9980 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
9981 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 9982 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
9983
9984 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 9985 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
9986 XFLOAT_DATA to get extract number from Lisp object.
9987
f9a23a6f
KS
99882005-01-07 Kim F. Storm <storm@cua.dk>
9989
9990 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
9991 Set stop_charpos to current charpos instead of 0.
9992
28f94a34
RS
99932005-01-06 Nick Roberts <nickrob@snap.net.nz>
9994
9995 * xdisp.c (Fformat_mode_line): First arg now required.
9996
a6fffcdc
ST
99972005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9998
9999 * macterm.c (XLoadQueryFont): Correctly handle 0 size
10000 font widths that are returned from some Japanese fonts.
10001
c35b0c6b
KS
100022005-01-06 Kim F. Storm <storm@cua.dk>
10003
10004 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
10005 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
10006 (destroy_fringe_bitmap): Set fringe_faces element to nil.
10007 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
10008 fringe_faces array and init elements to nil.
10009 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
10010 non-persistent face id.
10011 (mark_fringe_data): New function for GC.
10012
10013 * alloc.c (mark_fringe_data): Declare extern.
10014 (Fgarbage_collect): Call mark_fringe_data.
10015
10016 * alloc.c (overrun_check_free): Invalidate freed memory if
10017 XMALLOC_CLEAR_FREE_MEMORY is defined.
10018
e0e76ab9
ST
100192005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10020
10021 * macfns.c: Include sys/param.h.
10022 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
10023 and function.
10024 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
10025 of filename string. Set event callback function when creating
10026 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 10027 of apple event descriptor record if failed to create it.
e0e76ab9
ST
10028
10029 * macterm.c: Include sys/param.h.
10030 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
10031 kEventWindowUpdate.
10032 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
10033 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
10034 of FSSpec from apple event descriptor record.
10035 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
10036 size of filename string.
10037 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
10038 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
10039 file dialog is in action.
043f7f73
SM
10040 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
10041 Reject only when there are no filename items. Set background color
e0e76ab9 10042 before (un)highlighting the window below the dragged items.
2313f861 10043 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 10044
043bc640
KH
100452005-01-05 Romain Francoise <romain@orebokech.com>
10046
10047 * term.c (encode_terminal_code): Fix buffer size computation.
10048
dd496df6
RS
100492005-01-04 Richard M. Stallman <rms@gnu.org>
10050
10051 * xdisp.c (Fformat_mode_line): Doc fix.
10052
026cdede
SM
100532005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10054
10055 * alloc.c (refill_memory_reserve): Move.
10056 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
10057 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
10058
d57c7572
RS
100592005-01-03 Richard M. Stallman <rms@gnu.org>
10060
10061 * window.c (window_scroll_pixel_based): Don't correct preserve_y
10062 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
10063
b14f868c
JR
100642005-01-03 Jason Rumney <jasonr@gnu.org>
10065
10066 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
10067 fontp->space_width to FONT_WIDTH so they are valid.
10068
10069 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 10070 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
10071 their appropriate values.
10072
10073 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10074 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
10075 fontp->space_width.
10076
e169f939
ST
100772005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10078
10079 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
10080 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
10081 metrics for max and min bounds.
10082 (x_load_font): Correctly calculate average font width metrics.
10083
19996af4
RS
100842005-01-02 Richard M. Stallman <rms@gnu.org>
10085
10086 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
10087
42d02da0
JD
100882004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10089
10090 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
10091
1db7dd46
RS
100922004-12-31 Richard M. Stallman <rms@gnu.org>
10093
b437860a
RS
10094 * xdisp.c (setup_for_ellipsis, get_next_display_element):
10095 Set it->ellipsis_p to 1 or 0.
10096 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 10097 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
10098 (cursor_row_p): If PT's at the end of the ellipsis the row
10099 ends within, don't display cursor on this row.
10100
10101 * dispextern.h (struct it): New element ellipsis_p.
10102 (struct glyph_row): New element ends_in_ellipsis_p.
10103
10104 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
10105 position if we're reading from something other than the buffer.
10106
1db7dd46
RS
10107 * window.c (window_scroll_pixel_based): Only look at
10108 Vscroll_preserve_screen_position if the old PT can't be kept.
10109 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
10110
1225f637
KS
101112004-12-30 Kim F. Storm <storm@cua.dk>
10112
10113 * xdisp.c (get_line_height_property): New function extracted from
10114 original calc_line_height_property.
10115 (calc_line_height_property): Rework. Handle t and (nil . ratio).
10116 (x_produce_glyphs): Use them to handle line-height and
10117 line-spacing according to new height spec.
10118 (Qtotal): Remove.
33b2f4ea 10119 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 10120
c243063e
KH
101212004-12-30 Kenichi Handa <handa@m17n.org>
10122
10123 * fileio.c (Finsert_file_contents): Don't use
10124 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 10125 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
10126
10127 * fontset.h (struct font_info): New members space_width and
10128 average_width.
10129
10130 * frame.h (struct frame): New member space_width.
10131 (FRAME_SPACE_WIDTH): New macro.
10132
10133 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
10134
10135 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10136 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 10137 fontp->space_width.
043f7f73 10138 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
10139 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
10140
10141 * xdisp.c (x_produce_glyphs): Calculate tab width by
10142 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
10143
456e761b
ST
101442004-12-29 Sanghyuk Suh <han9kin@mac.com>
10145
10146 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 10147 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 10148
188577ce
LT
101492004-12-29 Luc Teirlinck <teirllm@auburn.edu>
10150
10151 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
10152
99ec74b9
RS
101532004-12-29 Richard M. Stallman <rms@gnu.org>
10154
10155 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
10156
30c92fab
ST
101572004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10158
10159 * macfns.c (install_window_handler): Modify extern to return OSErr
10160 value.
10161 (mac_window): Handle return value of install_window_handler.
10162
10163 * macterm.c (reflect_byte): Remove function.
10164 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
10165 Lookup table instead.
10166 (mac_do_font_lists): Simplify calculation of the longest
10167 nonspecial string.
10168 (init_mac_drag_n_drop): Remove function and declaration.
10169 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
10170 init_mac_drag_n_drop.
10171 (mac_do_track_drag): New function and declaration.
10172 (install_window_handler): Return OSErr value.
043f7f73
SM
10173 (install_window_handler) [TARGET_API_MAC_CARBON]:
10174 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 10175 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
10176 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
10177 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 10178
4b982924
DN
101792004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
10180
10181 * coding.c (decode_coding): Fix previous change.
10182
93fdf45f
RS
101832004-12-28 Richard M. Stallman <rms@gnu.org>
10184
10185 * xdisp.c (back_to_previous_visible_line_start):
10186 Don't call handle_display_prop.
10187
5bdca8af
DN
101882004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
10189
10190 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
10191 (decode_coding_emacs_mule, encode_coding_emacs_mule)
10192 (decode_coding_iso2022, encode_designation_at_bol)
10193 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
10194 (decode_coding): Constify arguments and local vars.
10195
33385c6f
JD
101962004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10197
10198 * xmenu.c (popup_get_selection): Only pop down dialogs
10199 on C-g and Escape.
95bdef2e 10200 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
10201 (create_and_show_popup_menu, create_and_show_dialog):
10202 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 10203
b15325b2
ST
102042004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10205
10206 * dispextern.h: Change HAVE_CARBON to MAC_OS.
10207 (struct glyph_string): Likewise.
a2c7e69a 10208
b15325b2
ST
10209 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
10210 mac_initialize.
a2c7e69a 10211
b15325b2
ST
10212 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
10213 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 10214
b15325b2 10215 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 10216
b15325b2
ST
10217 * frame.c (x_set_frame_parameters, x_report_frame_params)
10218 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
10219 (x_set_border_width, Vdefault_frame_scroll_bars):
10220 Change HAVE_CARBON to MAC_OS.
a2c7e69a 10221
b15325b2
ST
10222 * image.c [MAC_OS]: Include sys/stat.h.
10223 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
10224 QuickTimeComponents.h.
a2c7e69a 10225
b15325b2
ST
10226 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
10227 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 10228 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
10229 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
10230 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
10231 (mac_clear_font_name_table): Add extern.
10232 (Fmac_clear_font_name_table): New defun.
10233 (syms_of_mac): Defsubr it.
10234 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
10235 [MAC_OSX] (select_and_poll_event): New function.
10236 [MAC_OSX] (sys_select): Use it.
10237 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
10238 [MAC_OSX && SELECT_USE_CFSOCKET]
10239 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
10240 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
10241 RunLoop for simultaneously monitoring two kinds of inputs, window
10242 events and process outputs, without periodically polling.
a2c7e69a 10243
b15325b2
ST
10244 * macfns.c (mac_initialized): Remove extern.
10245 (stricmp): Put in #if 0. All callers changed to use xstricmp in
10246 xfaces.c.
043f7f73
SM
10247 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
10248 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
10249 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
10250 (mac_get_rdb_resource): New function (from w32reg.c).
10251 (x_get_string_resource): Use it.
10252 (install_window_handler): Add extern.
10253 (mac_window): New function.
043f7f73
SM
10254 (Fx_create_frame): Use it instead of make_mac_frame.
10255 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
10256 (Fx_open_connection, Fx_close_connection): New defuns.
10257 (syms_of_macfns): Defsubr them.
043f7f73
SM
10258 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
10259 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
10260 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
10261 (x_create_tip_frame): Don't call ShowWindow.
10262 (Fx_show_tip): Call ShowWindow.
10263 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
10264 TARGET_API_MAC_CARBON'.
10265 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
10266 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 10267
043f7f73 10268 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
10269 (Window): Typedef to WindowPtr and move outside `#if
10270 TARGET_API_MAC_CARBON'.
10271 (XSizeHints): New struct.
a2c7e69a 10272
b15325b2
ST
10273 * macterm.c (x_update_begin, x_update_end)
10274 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
10275 frame.
10276 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
10277 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
10278 (construct_mouse_click): Put in #if 0.
10279 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
10280 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
10281 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
10282 (activate_scroll_bars, deactivate_scroll_bars)
10283 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
10284 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
10285 if the position is neither user-specified nor program-specified.
10286 (x_free_frame_resources): Free size_hints.
043f7f73 10287 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
10288 (mac_clear_font_name_table): New function.
10289 (mac_do_list_fonts): Initialize font_name_table if needed.
10290 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
10291 around mac_do_list_fonts.
10292 (mac_unload_font): New function.
10293 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
10294 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
10295 and definitions with #if TARGET_API_MAC_CARBON.
10296 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
10297 (install_window_handler): Add decl.
10298 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
10299 window. Use UpdateControls. Get the rectangle that should be
10300 updated and restrict the target of expose_frame to it.
043f7f73 10301 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
10302 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
10303 (do_zoom_window): Don't use x_set_window_size.
10304 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
10305 (install_window_handler): New function.
10306 [!USE_CARBON_EVENTS] (mouse_region): New variable.
10307 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
10308 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
10309 GetEventDispatcherTarget inside BLOCK_INPUT.
10310 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
10311 Update mouse_region when mouse is moved.
10312 (make_mac_frame): Remove.
043f7f73
SM
10313 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
10314 Initialize mouse pointer shapes. Change values of f->left_pos and
10315 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
10316 Don't call ShowWindow.
b15325b2
ST
10317 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
10318 Vinvocation_name and Vsystem_name.
10319 (mac_make_rdb): New function (from w32term.c).
10320 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
10321 already been opened. Don't pass argument to
10322 mac_initialize_display_info. Don't set dpyinfo->height/width.
10323 Add entries to x_display_list and x_display_name_list.
10324 (x_delete_display): New function.
10325 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
10326 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
10327
b15325b2
ST
10328 * macterm.h (check_mac): Add extern.
10329 (struct mac_output): New member size_hints.
10330 (FRAME_SIZE_HINTS): New macro.
10331 (mac_unload_font): Add extern.
a2c7e69a 10332
b15325b2 10333 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 10334
1d1c7e75 10335 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 10336
92d2947b
RS
103372004-12-27 Richard M. Stallman <rms@gnu.org>
10338
043f7f73 10339 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
10340 (syms_of_buffer): Don't defsubr it.
10341
10342 * process.c (list_processes_1): Set undo_list instead
10343 of calling Fbuffer_disable_undo.
10344
043f7f73 10345 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 10346 single_display_prop_string_p.
043f7f73 10347 (single_display_spec_intangible_p): Rename from
92d2947b 10348 single_display_prop_intangible_p.
043f7f73 10349 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
10350 Rewritten to be easier to understand.
10351
a2c7e69a 10352 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
10353 and variables get just NAME.
10354
10355 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
10356
10357 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
10358 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
10359 (Qdefvar): Var deleted.
10360 (syms_of_eval): Don't initialze it.
10361
10362 * lread.c (syms_of_lread) <load-history>: Doc fix.
10363
9f6fcdc5
JD
103642004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10365
10366 * xmenu.c (popup_get_selection): Pop down on C-g.
10367 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
10368 pops down menu on C-g.
10369 (xdialog_show): If dialog popped down and no button in the dialog was
10370 pushed, call Fsignal to quit.
10371 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
10372 Fsignal to quit.
10373
1d1c7e75 10374 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
10375
10376 * gtkutil.c (xg_initialize): Install bindings for C-g so that
10377 dialogs and menus pop down.
10378
d8ca23a0
KH
103792004-12-27 Kenichi Handa <handa@m17n.org>
10380
10381 * coding.c (code_convert_region): Fix calculation of `ratio'.
10382
857ae68b
JD
103832004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10384
133c0116
JD
10385 * gtkutil.c (update_frame_tool_bar): Make the value of
10386 tool-bar-button-margin control margins of images in tool bar.
10387
857ae68b
JD
10388 * alloc.c (check_depth): New variable.
10389 (overrun_check_malloc, overrun_check_realloc): Only add
10390 overhead and write check pattern if check_depth is 1 (to handle
10391 recursive calls). Increase/decrease check_depth in entry/exit.
10392 (overrun_check_free): Only check for overhead if check_depth is 1.
10393 Increase/decrease check_depth in entry/exit.
10394
bd55c35c
JD
103952004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10396
10397 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
10398 before touching input_available_clear_time, to avoid accessing it
10399 from multiple threads.
10400
66354420
JR
104012004-12-23 Jason Rumney <jasonr@gnu.org>
10402
10403 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
10404 of JPEG library.
10405
55f4edbc
RS
104062004-12-22 Richard M. Stallman <rms@gnu.org>
10407
10408 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
10409
10410 * lisp.h (Vundo_outer_limit): Fix decl.
10411
10412 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
10413 Uses changed.
10414 (syms_of_undo): Initialize appropriately.
10415 (truncate_undo_list): If it's nil, there's no limit.
10416
7a0ea9e3
KH
104172004-12-22 Kenichi Handa <handa@m17n.org>
10418
10419 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
10420
fda2922a
RS
104212004-12-21 Richard M. Stallman <rms@gnu.org>
10422
10423 * eval.c (unwind_to_catch): Clear immediate_quit.
10424
10425 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
10426 specially as `\ ' and `\-'.
10427
10428 * keyboard.c (kbd_buffer_store_event_hold):
10429 In the code for while-no-input, handle immediate_quit.
10430
10431 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
10432 Call that at the very start.
043f7f73 10433 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
10434 (syms_of_alloc): Don't define undo-limit,
10435 undo-strong-limit and undo-outer-limit here.
10436
10437 * undo.c (truncate_undo_list): Return void.
10438 Take just one argument, the buffer.
10439 Make it current, and inhibit recursive GC.
10440 Access and update the undo list directly; return void.
10441 Refer to the undo...limit variables directly.
10442 Test undo_outer_limit only after counting the whole current command.
10443 When it's exceeded, call the function in undo-outer-limit-function.
10444 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
10445 (Vundo_outer_limit_function): New variable.
10446 (syms_of_undo): Define undo-limit, undo-strong-limit
10447 and undo-outer-limit here, and undo-outer-limit-function.
10448 Doc fixes.
10449
10450 * lisp.h (truncate_undo_list): Update decl.
10451
104522004-12-21 Piet van Oostrum <piet@cs.uu.nl>
10453
10454 * fileio.c (Fread_file_name): Delete duplicates in
10455 file-name-history when history_delete_duplicates is true.
10456
68c69027
ST
104572004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10458
10459 * macterm.c (mac_do_list_fonts): Fix memory leak
10460
134579f2
RS
104612004-12-20 Richard M. Stallman <rms@gnu.org>
10462
10463 * regex.c (re_match_2_internal) <symend, wordend>:
10464 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
10465
fbe6152f
ST
104662004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10467
043f7f73
SM
10468 * macterm.c (endif, x_font_name_to_mac_font_name):
10469 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
10470 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
10471 quickly finding a specific font without needing regexps.
10472
fecad3f6
JD
104732004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10474
333f1b6f
JD
10475 * syssignal.h: Declare main_thread.
10476 (SIGNAL_THREAD_CHECK): New macro.
10477
10478 * keyboard.c (input_available_signal): Move thread checking code
10479 to macro SIGNAL_THREAD_CHECK and call that macro.
10480 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
10481
10482 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
10483
10484 * emacs.c: Define main_thread.
10485 (main): Initialize main_thread.
10486 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
10487 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
10488
10489 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
10490
10491 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
10492
10493 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
10494
043f7f73
SM
10495 * process.c (send_process_trap, sigchld_handler):
10496 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
10497
10498 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
10499
10500 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
10501
fecad3f6
JD
10502 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
10503 returning when xg_ignore_gtk_scrollbar is true.
10504
2a84c6da
KS
105052004-12-14 Kim F. Storm <storm@cua.dk>
10506
10507 * keyboard.c (read_char): Save and restore echo_string when
10508 handling input method.
10509
d9c1ce9d
RS
105102004-12-13 Richard M. Stallman <rms@gnu.org>
10511
10512 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
10513
10514 * keyboard.c (Vthrow_on_input): New variable.
10515 (syms_of_keyboard): Defvar and initialize it.
10516 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
10517
10518 * lisp.h (QUIT): Check for Vthrow_on_input.
10519 (Vthrow_on_input): Declare it.
10520
a6495ed5
KS
105212004-12-13 Kim F. Storm <storm@cua.dk>
10522
10523 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
10524 vector.
10525
24a0e22f
RS
105262004-12-12 Richard M. Stallman <rms@gnu.org>
10527
10528 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
10529
10530 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
10531 (Ftry_completion): Really use outer `zero'; eliminate inner one.
10532
d6d31e57
KH
105332004-12-12 Kenichi Handa <handa@m17n.org>
10534
10535 * term.c (encode_terminal_code): Fix previous change.
10536
6f8ffb88
SM
105372004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
10538
fb6f5cbf
SM
10539 * keyboard.c (handle_async_input): Remove pthread mutex handling.
10540 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
10541
6f8ffb88
SM
10542 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
10543 in macro arguments.
10544
10545 * minibuf.c (Ftry_completion, Fall_completions): Don't use
10546 XFASTINT blindly.
10547
10548 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
10549
c83c9f9d
JD
105502004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10551
2f25767f
JD
10552 * w32term.c (x_calc_absolute_position): Remove calculation of
10553 difference between inner and outer window. Don't subtract difference
10554 for left and top calculations.
10555
c83c9f9d
JD
10556 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
10557 for left and top calculations. Remove call to x_real_positions.
14a56a1b 10558 [Bug report by Drew Adams in November.]
c83c9f9d
JD
10559 (x_check_expected_move): Do not set change_gravity to 1 when calling
10560 x_set_offset.
10561
cc1caa4e
RS
105622004-12-08 Richard M. Stallman <rms@gnu.org>
10563
10564 * xdisp.c (get_next_display_element): Use `escape-glyph' for
10565 control chars and escaped octal codes.
10566 (Qescape_glyph): New variable.
10567 (syms_of_xdisp): Initialize it.
10568 (escape_glyph_face): New variable.
10569 (redisplay_window): Initialize it.
10570
e0e30823
RS
105712004-12-07 Paul Eggert <eggert@cs.ucla.edu>
10572
10573 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
10574 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
10575
f415cacd
JD
105762004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10577
cf435f39
JD
10578 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
10579 reset_malloc_hooks.
10580
6f8ffb88
SM
10581 * keyboard.c (handle_async_input, input_available_signal):
10582 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 10583
f415cacd
JD
10584 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
10585
043f7f73 105862004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
10587
10588 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
10589
10590 * config.in: Regenerate.
10591
ded997c1
JD
105922004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10593
453a4f1b
JD
10594 * xmenu.c (Fx_popup_menu): Correct documentation about position.
10595 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
10596 if not given by a mouse click to correspond with x-popup-menu
10597 documentation.
10598
9a38524c
JD
10599 * config.in: Regenerate.
10600
aa477689
JD
10601 * gtkutil.c: Include signal.h and syssignal.h.
10602 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
10603
10604 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
10605 new variables main_thread and alloc_mutex,
10606 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
10607 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
14a56a1b
JB
10608 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
10609 as (UN)BLOCK_INPUT.
aa477689
JD
10610 (emacs_blocked_free, emacs_blocked_malloc)
10611 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
10612 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
10613 (reset_malloc_hooks): New function.
10614
10615 * lisp.h: Declare reset_malloc_hooks.
10616
10617 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
10618
14a56a1b 10619 * keyboard.c: Conditionally include pthread.h.
6f8ffb88 10620 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
10621 thread, block signal, send signal to main thread and return.
10622
ded997c1 10623 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 10624 Set current folder in file chooser if default_filename is a directory.
ded997c1 10625
c72b0edd
SM
106262004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
10627
10628 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
10629 Remove redundant correctness checks.
10630 (regex_compile): Fix up error codes for \{..\} expressions.
10631
c721eee5
RS
106322004-12-05 Richard M. Stallman <rms@gnu.org>
10633
10634 * regex.c (regex_compile): Fix end-of-pattern case for space.
10635
d8f96db8
ST
106362004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10637
6108209e
KS
10638 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
10639 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 10640 crashes with invalid characters.
6108209e
KS
10641 * macmenu.c (add_menu_item): Use it.
10642 * image.c (image_load_quartz2d): Likewise.
10643 * macfns.c (x_set_name, x_set_title): Likewise.
10644 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
10645 creating them each time for labels.
d8f96db8 10646
ab67e8b6
RS
106472004-12-02 Richard M. Stallman <rms@gnu.org>
10648
10649 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
10650 don't use it here.
10651
10652 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
10653 (interactive_p): Skip Scalled_interactively_p frames
10654 like Sinteractive_p frames.
b8217ea6 10655 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
10656
10657 * data.c (Fmake_variable_buffer_local): Doc fix.
10658 (Fmake_local_variable): Doc fix.
10659
10660 * insdel.c (insert_from_string_before_markers)
10661 (insert_from_string): Don't modify buffer on empty insertion.
10662
10663 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
10664
f86bdc80
ST
106652004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10666
10667 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
10668 menu text as UTF8 fails.
10669
1cae6d39
KS
106702004-12-01 Kim F. Storm <storm@cua.dk>
10671
10672 * alloc.c: Add commentary for last change.
10673 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
10674 sizeof(size_t) != 4.
10675 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
10676 Use them. Also clear header and trailer of freed memory.
10677 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
10678 (string_overrun_cookie): Rename from string_overrun_pattern.
10679 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
10680
77ea0764
AS
106812004-12-01 Andreas Schwab <schwab@suse.de>
10682
10683 * lisp.h: Declare string_to_multibyte.
10684
2d5cd4e6
KH
106852004-12-01 Kenichi Handa <handa@m17n.org>
10686
10687 * w32console.c (w32con_write_glyphs): Decide coding here.
10688 Adjusted for the change of encode_terminal_code.
10689
10690 * term.c (encode_terminal_code): Don't make it "static".
10691
25a0994a
KH
106922004-11-30 Kenichi Handa <handa@m17n.org>
10693
19b1f29a 10694 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 10695 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
10696 characters at once, and return a pointer to the result of encoding.
10697 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
10698 (insert_glyphs): Likewise.
10699 (term_init): Initialize encode_terminal_bufsize to 0.
10700
10701 * coding.c (Vcode_conversion_workbuf_name): New variable.
10702 (syms_of_coding): Initialize and staticpro it.
10703 (set_conversion_work_buffer): New function.
10704 (run_pre_post_conversion_on_str): Use it.
10705 (run_pre_write_conversin_on_c_str): New function.
10706
10707 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
10708
fc7a70cc
ST
107092004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10710
10711 * keyboard.c: Don't undef SIGIO
10712 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
10713 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
10714 (macfns.o): Don't depend on ccl.h.
10715 * macfns.c (mac_frame_parm_handlers): Set handlers for
10716 Qleft_fringe and Qright_fringe.
10717 * macterm.c (mac_fill_rectangle_to_pixmap)
10718 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
10719 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
10720 Put in #if 0.
10721 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
10722 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
10723 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
10724 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
10725 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
10726 XDrawImageString. Always draw background and foreground separately.
10727 (x_draw_image_foreground): Use clipping instead of computing the
10728 intersection rectangle.
10729 (x_draw_image_glyph_string): Don't draw an image with mask to a
10730 pixmap.
10731 (x_redisplay_interface): Set flush_display_optional member to 0.
10732 (XTread_socket): Correctly reset the TEConverter
10733 object.
10734
fc368889
KS
107352004-11-30 Kim F. Storm <storm@cua.dk>
10736
10737 * lisp.h: New defines to enable buffer overrun checking.
10738 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
10739 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
10740
10741 * alloc.c: Add more checks for buffer overruns.
10742 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
10743 xmalloc_overrun_check_trailer, overrun_check_malloc)
10744 overrun_check_realloc, overrun_check_free): Add.
10745 (GC_STRING_EXTRA, string_overrun_pattern): Add.
10746 (check_sblock, allocate_string_data, compact_small_strings):
10747 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
10748 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
10749 (check_string_free_list): Add.
10750 (allocate_string, sweep_strings): Call check_string_free_list.
10751
10752 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
10753 XMALLOC_OVERRUN_CHECK to avoid crash during load.
10754
0af8cfe1
KS
107552004-11-29 Kim F. Storm <storm@cua.dk>
10756
10757 * fns.c (concat): Use SAFE_ALLOCA.
10758
77220eeb
SM
107592004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
10760
10761 * sysdep.c (emacs_write): Don't use QUIT.
10762
a778cf63
KH
107632004-11-29 Kenichi Handa <handa@m17n.org>
10764
10765 * buffer.c (init_buffer): Set current_buffer->directory to a
10766 multibyte string made by string_to_multibyte.
10767
77220eeb 10768 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 10769
e3177e43
AS
107702004-11-27 Andreas Schwab <schwab@suse.de>
10771
10772 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
10773
10774 * s/gnu-linux.h: Enable no-op gcpros on ia64.
10775 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
10776
77220eeb
SM
10777 * filelock.c (lock_file_1): Call get_boot_time early.
10778 Increase buffer size.
e3177e43 10779
ca5e6fef
EZ
107802004-11-27 Eli Zaretskii <eliz@gnu.org>
10781
10782 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
10783 is not defined.
10784
e2811828
KS
107852004-11-27 Kim F. Storm <storm@cua.dk>
10786
10787 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
10788 marker out of doc string.
10789
7a262394
SM
107902004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
10791
10792 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
10793 which was not mentioned in the log.
10794
f33cc5a9
KS
107952004-11-26 Kim F. Storm <storm@cua.dk>
10796
048bb03f
KS
10797 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
10798 angle bitmaps at top/bottom line.
10799
52eb0373 10800 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
10801 set it when it->method is set to next_element_from_display_vector.
10802 (setup_for_ellipsis): Add LEN argument. Callers changed.
10803 Set it->saved_face_id.
10804 (get_next_display_element): Use loop instead of recursion.
10805 Set it->saved_face_id. Combine duplicate code for ctr chars.
10806 (next_element_from_display_vector): Do not set it->saved_face_id.
10807 (next_element_from_ellipsis): Use setup_for_ellipsis.
10808
670e8906
EZ
108092004-11-26 Eli Zaretskii <eliz@gnu.org>
10810
10811 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
10812 prevent compiler warnings.
10813
275464e7
SM
108142004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
10815
1bf0e604
SM
10816 * keyboard.c (command_loop_1): Print a message describing the key
10817 the user just pressed when this key has no binding.
10818
275464e7
SM
10819 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
10820 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
10821
10822 * lread.c (readchar): Check QUIT when `getc' is interrupted.
10823
261b01c6
RS
108242004-11-24 Richard M. Stallman <rms@gnu.org>
10825
10826 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
10827
10828 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
10829
a5bd504e
KS
108302004-11-24 Kim F. Storm <storm@cua.dk>
10831
10832 * xdisp.c (move_it_in_display_line_to, display_line):
10833 Restore saved_face_id also when truncate-lines or hscrolled.
10834
255e4140
JD
108352004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10836
10837 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
10838 x-use-old-gtk-file-dialog.
10839
10840 * xfns.c: Define x_use_old_gtk_file_dialog.
10841 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
10842 outside ifdef USE_GTK.
10843
cab27d04
SM
108442004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
10845
10846 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
10847 Don't use XFASTINT blindly.
10848
10849 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
10850
10851 * indent.c (skip_invisible): Avoid non-idempotent side-effects
10852 in macro arguments.
10853
10854 * keymap.c (Flookup_key): Check INTEGERP before XINT.
10855
10856 * lread.c (oblookup): Don't use XFASTINT blindly.
10857
10858 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
10859 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
10860
11e0be49
KS
108612004-11-23 Kim F. Storm <storm@cua.dk>
10862
4d721114
KS
10863 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
10864 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
10865
11e0be49
KS
10866 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
10867 signal_p is zero and face name is unknown.
10868 (Fx_list_fonts): Don't signal error in lookup_named_face.
10869 (Fface_font): Signal error in lookup_named_face.
10870 (ascii_face_of_lisp_face): Likewise.
10871
10872 * dispextern.h (lookup_named_face): Fix prototype.
10873
10874 * xdisp.c (handle_single_display_prop): Don't signal error in
10875 lookup_named_face for unknown fringe face name.
10876 (highlight_trailing_whitespace): Don't signal error in
10877 lookup_named_face if trailing-whitespace face unknown.
10878 (calc_line_height_property): Don't signal error in
10879 lookup_named_face if specified face name is unknown.
10880
10881 * fringe.c (update_window_fringes): Show top row indicator if
10882 window has header-line. Don't show arrow at bob and eob
10883 if the boundary indicators are not used.
10884 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
10885
10886 * window.c (set_window_buffer): Clear display_error_modiff.
10887
0960a582
KS
108882004-11-22 Kim F. Storm <storm@cua.dk>
10889
10890 * fringe.c (update_window_fringes): Provide sensible fall-back
10891 value for non-nil indicate-buffer-boundaries setting.
10892
b0e9bb28
MR
108932004-11-22 Markus Rost <rost@ias.edu>
10894
10895 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
10896
d0bce91e
SM
108972004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
10898
10899 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
10900
e1814672
KS
109012004-11-21 Kim F. Storm <storm@cua.dk>
10902
b7fd3518
KS
10903 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
10904
10905 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
10906 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10907
10908 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
10909 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10910
10911 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
10912 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10913
d0bce91e
SM
10914 * xdisp.c (move_it_in_display_line_to, display_line):
10915 Restore saved_face_id if overflow-newline-into-fringe is enabled and
10916 line is continued before or in middle of element from display vector.
f01d4d05 10917
f1a61389
KS
10918 * indent.c (Fvertical_motion): Fix last change. Use another
10919 method to detect if iterator moved too far ahead after reseat.
10920
e1814672
KS
10921 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
10922 expand matrix width for overflow in zero-width area.
10923 (append_glyph, append_composite_glyph, produce_image_glyph)
10924 (append_stretch_glyph): Use it to avoid loop in redisplay.
10925 (note_mode_line_or_margin_highlight): Don't let help-echo from
10926 string override help-echo from image map.
10927
2dafe1c9
LT
109282004-11-20 Luc Teirlinck <teirllm@auburn.edu>
10929
d0bce91e 10930 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
10931 * callint.c (Fcall_interactively): Ditto.
10932
fd6866c8 109332004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
10934
10935 * minibuf.c (Fminibuffer_complete_and_exit):
10936 Fixup the case of the completed value, for case-indep completion.
10937
dedbac89
RS
109382004-11-20 Richard M. Stallman <rms@gnu.org>
10939
fd6866c8
RS
10940 * lisp.h (Fread_from_minibuffer): Add arg in decl.
10941
9d00469f 10942 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 10943 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 10944
dedbac89 10945 * search.c (Vsearch_spaces_regexp):
d0bce91e 10946 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 10947
2f672bb5
TTN
109482004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
10949
10950 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
10951
f31a9a68
RS
109522004-11-19 Richard M. Stallman <rms@gnu.org>
10953
10954 * search.c (Vsearch_whitespace_regexp): New variable.
10955 (syms_of_search): Defvar it.
10956 (compile_pattern_1): Call re_set_whitespace_regexp with it.
10957 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
10958 is non-nil.
6de891db
RS
10959 (struct regexp_cache): New element whitespace_regexp.
10960 (syms_of_search): Initialize whitespace_regexp elements.
10961 (compile_pattern): Compare whitespace_regexp elements.
10962 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
10963
10964 * regex.c (regex_compile): Substitute whitespace_regexp
10965 for spaces, if it is nonzero.
10966 (whitespace_regexp): New variable.
10967 (re_set_whitespace_regexp): New function.
10968
cbc34cb3
KS
109692004-11-19 Kim F. Storm <storm@cua.dk>
10970
10971 * indent.c (Fvertical_motion): Fix last change.
10972
b54a7539
KS
109732004-11-18 Kim F. Storm <storm@cua.dk>
10974
10975 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
10976 Instead, move back again if reseating moves too far ahead.
10977
109782004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
10979
10980 * xdisp.c (message3): Call clear_message.
10981
5ff504fe
KS
109822004-11-17 Kim F. Storm <storm@cua.dk>
10983
10984 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
10985
5ae53dcf
JD
109862004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10987
d0bce91e 10988 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 10989
6abf3a27 10990 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
10991 (x_menu_set_in_use): Also set popup_activated_flag.
10992
5ff504fe 10993 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
10994 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
10995
52eb0373 10996 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 10997
ee31cd78
RS
109982004-11-16 Richard M. Stallman <rms@gnu.org>
10999
6abf3a27
SM
11000 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
11001 Use map-keymap-internal to implement that.
ee31cd78
RS
11002
11003 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
11004
6abf3a27
SM
110052004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11006
11007 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
11008 a window before using XWINDOW.
11009
11010 * window.c (make_window, Fselect_window, make_dummy_parent)
11011 (save_window_save):
11012 * frame.c (make_frame):
11013 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
11014
11015 * lisp.h (NILP): Use EQ rather than XFASTINT.
11016
b4d61105
KS
110172004-11-16 Kim F. Storm <storm@cua.dk>
11018
6abf3a27 11019 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 11020
b4d61105
KS
11021 * indent.c (Fvertical_motion): Fix last change. Only reseat when
11022 moving backwards.
11023
110242004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
11025
11026 * dispextern.h: Extern reseat_at_previous_visible_line_start.
11027
ab5b02b0
KH
110282004-11-16 Kenichi Handa <handa@m17n.org>
11029
11030 * xdisp.c (display_mode_element): Fix previous change (calculate
11031 end position of substring to display correctly).
11032
c482cf97
KS
110332004-11-16 Kim F. Storm <storm@cua.dk>
11034
11035 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
11036 Reported by Andrew M. Scott.
11037
9f89426b
KS
110382004-11-15 Kim F. Storm <storm@cua.dk>
11039
11040 * fns.c (Fsafe_plist_get): New defun.
11041 (syms_of_fns): Defsubr it.
11042
11043 * lisp.h (Fsafe_plist_get): Add EXFUN.
11044
11045 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
11046 Use Fsafe_plist_get.
11047 (note_mode_line_or_margin_highlight, note_mouse_highlight):
11048 Fix image map element parsing. Use Fsafe_plist_get.
11049
27418463
RS
110502004-11-15 Richard M. Stallman <rms@gnu.org>
11051
11052 * xdisp.c (get_next_display_element): Fix previous change.
11053
a130b901
JD
110542004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11055
ef614e04
JD
11056 * window.c (shrink_windows): Handle special case of one window left
11057 when trying to shrink the final reminder. Grow windows if
11058 total_removed is less than total_shrink.
11059
a130b901
JD
11060 * xmenu.c (pop_down_menu): Remove global variable current_menu,
11061 extract pointer from arg with XSAVE_VALUE.
46303896
KS
11062 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
11063 Construct arg to record_unwind_protect with make_save_value.
a130b901 11064
d9a03ad2
RS
110652004-11-13 Richard M. Stallman <rms@gnu.org>
11066
11067 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
11068 (get_next_display_element): Fix previous change to apply only to \n.
11069
11070 * indent.c (Fvertical_motion): Scan to PT from start of line to
11071 make iterator consistent.
11072
11073 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
11074
b3935289
JD
110752004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11076
11077 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
11078
11079 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
11080 Record unwind with clean_up_file_dialog.
11081
78819ebb
KS
11082 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
11083 Declare.
b3935289
JD
11084
11085 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
11086
af89e871
JD
110872004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11088
457a8155 11089 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 11090 (xg_file_sel_destroy): Remove.
46303896
KS
11091 (xg_file_response_cb, pop_down_file_dialog)
11092 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 11093 New functions.
6abf3a27
SM
11094 (xg_get_file_with_chooser, xg_get_file_with_selection):
11095 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
11096 Move common code to xg_get_file_name. Return widget created.
11097 (xg_get_file_name): Set name, transient for, modal and destroy
11098 with parent here. Connect response signal to xg_file_response_cb,
11099 connect delete-event to gtk_true. Record pop_down_file_dialog
11100 for unwind. Do event loop and call x_menu_wait_for_event in loop.
11101 (xg_create_widget): Make dialogs modal.
11102
af89e871
JD
11103 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
11104 Lisp_Object.
11105 (popup_get_selection): Move unwind protect ...
11106 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11107 Move destroy of widget to pop_down_menu.
11108 (popup_widget_loop): Move unwind protect ...
11109 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11110 Move destroy of widget to pop_down_menu.
11111 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 11112 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
11113 x_mouse_leave and grabbed = 0 to pop_down_menu.
11114
5596fbf1
KS
111152004-11-13 Kim F. Storm <storm@cua.dk>
11116
11117 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
11118 (syms_of_xdisp): DEFVAR_BOOL it.
11119 (make_cursor_line_fully_visible, try_cursor_movement)
11120 (try_window_id): Use it.
11121
b9de078a
KS
111222004-11-12 Kim F. Storm <storm@cua.dk>
11123
381f7091
KS
11124 * dispextern.h (struct glyph_row): New member extra_line_spacing.
11125 (struct it): New member max_extra_line_spacing.
11126 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
11127 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
11128 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
11129 part of last line is only extra line spacing (so the text on the
52eb0373 11130 line is fully visible). Use helper macros.
381f7091
KS
11131 Add W arg (to use them). All callers changed.
11132 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
11133 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
11134
6abf3a27
SM
11135 * window.c (window_scroll_pixel_based, Frecenter):
11136 Use move_it_vertically_backward directly.
381f7091
KS
11137 (Frecenter): Fix calculation of new start pos for negative arg.
11138 Before, the new start pos was sometimes chosen too far back, so
11139 the last line became only partially visible, and thus would be
11140 either only semi-visible or automatically scrolled to the middle
11141 of the window by redisplay.
11142
11143 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
11144 (move_it_vertically_backward): Don't recure to move further back.
11145 (move_it_vertically): Remove superfluous condition.
11146 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 11147 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
11148 (display_tool_bar_line): Clear row->extra_line_spacing.
11149 (try_scrolling): Use move_it_vertically_backward directly.
11150 (redisplay_window): Likewise.
11151 (compute_line_metrics): Set row->extra_line_spacing.
11152 (display_line, display_string): Likewise.
11153 (x_produce_glyphs): Update it->max_extra_line_spacing.
11154
b9de078a
KS
11155 * xmenu.c (pop_down_menu): Return nil.
11156
c3438661
JD
111572004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11158
11159 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 11160 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 11161 to handle timers.
df00f436
JD
11162 (popup_widget_loop): Add argument do_timers.
11163 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
11164 do_timers to popup_widget_loop.
c3438661
JD
11165 (xmenu_show): Call XMenuActivateSetWaitFunction so that
11166 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 11167 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 11168 popup_get_selection.
f1d1cd24
JD
11169 (pop_down_menu): New function.
11170 (popup_get_selection, popup_widget_loop): Unwind protect to
11171 pop_down_menu.
11172 (popup_widget_loop): Add argument widget.
11173 (create_and_show_popup_menu, create_and_show_dialog): Pass new
11174 argument widget to popup_widget_loop.
c3438661 11175
32e2fb04
SM
111762004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11177
11178 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
11179
0faf6806
KS
111802004-11-09 Kim F. Storm <storm@cua.dk>
11181
11182 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
11183 Fix various comments referring to XEvents instead of input events.
11184 (x_queue_event): Fix format strings.
11185 (x_stop_queuing_selection_requests): Likewise.
11186
11187 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
11188 (pint2hrstr): Add extra braces to silence compiler.
11189
11190 * print.c (print_object): Fix format string.
11191
11192 * lread.c (read1): Fix next_char matching.
11193
11194 * lisp.h (Fdelete): Add EXFUN.
11195 (replace_range_2): Add prototype.
11196
11197 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
11198
11199 * intervals.h (NULL_INTERVAL_P): Add separate version when
11200 ENABLE_CHECKING is not defined to silence compiler.
11201 (compare_string_intervals): Add prototype.
11202
11203 * fringe.c (destroy_fringe_bitmap): Fix return type.
11204 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
11205
11206 * emacs.c (Fdump_emacs): Fix format string.
11207
11208 * doc.c: Include <ctype.h>.
11209 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
11210
11211 * data.c (store_symval_forwarding): Remove unused variables.
11212
11213 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
11214
16bf4e32
JD
112152004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11216
11217 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
11218 to ${OLDXMENU}.
11219
cdb805a9
KS
112202004-11-09 Kim F. Storm <storm@cua.dk>
11221
11222 * process.c (Fmake_network_process): Remove kludge for interrupted
11223 connects on BSD. If connect is interrupted, just close socket and
11224 start over rather than sleeping and retry with same socket.
11225
d87a9ab8 112262004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 11227
a8b16c80
JD
11228 * .cvsignore: Add buildobj.lst.
11229
d87a9ab8
JD
11230 * doc.c: New variable Vbuild_files.
11231 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 11232 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
11233 that are in Vbuild_files.
11234 (syms_of_doc): Defvar Vbuild_files.
11235
11236 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
11237 and w32*.o.
11238 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 11239 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
11240
11241 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
11242 is linked.
11243
b6709e77
KS
112442004-11-09 Kim F. Storm <storm@cua.dk>
11245
11246 * fringe.c (update_window_fringes): Update fringe bitmaps if
11247 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
11248 also update previous row to get rid of misc. artifacts.
11249
bae9677d
KS
112502004-11-08 Kim F. Storm <storm@cua.dk>
11251
11252 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 11253 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 11254
3f8ea68c
EZ
112552004-11-08 Eli Zaretskii <eliz@gnu.org>
11256
11257 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
11258 Don't include <sys/time.h> explicitly.
11259 Include <stdio.h> unconditionally, not just on MacOS.
11260
a653f812
KH
112612004-11-08 Kenichi Handa <handa@m17n.org>
11262
11263 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
11264 don't pay attention to '\' before '*'.
11265 (fontset_pattern_regexp): Change the meaning of the second arg.
11266 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
11267 (check_fontset_name): Try NAME as literal at first, and if it
11268 failes, try NAME as pattern.
11269
c37caf9d
JD
112702004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11271
11272 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
11273
b72915a7
AS
112742004-11-07 Andreas Schwab <schwab@suse.de>
11275
78819ebb
KS
11276 * lisp.h (Fmsdos_downcase_filename): Declare.
11277 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
11278 * fileio.c: Likewise.
11279
238a44a8
JD
112802004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11281
11282 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
11283 comparisons with integers instead of Lisp_Object address.
11284 (Fmsdos_set_keyboard): Declare argument allkeys.
11285
11286 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
11287
78819ebb 11288 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
11289 int/Lisp_Object mixup.
11290
11291 * fileio.c: Ditto.
11292
31141c13
ST
112932004-11-06 Steven Tamm <steventamm@mac.com>
11294
11295 * editfns.c: Need to include sys/time.h before resource.h on darwin.
11296
f28c1bd9
RS
112972004-11-06 Richard M. Stallman <rms@gnu.org>
11298
11299 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
11300
11301 * xfaces.c (merge_named_face): GCPRO the face_name in the
11302 named_merge_point struct that we make.
11303 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
11304
11305 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
11306 before deciding whether to inactivate mark.
11307
59dede22
EZ
113082004-11-06 Lars Brinkhoff <lars@nocrew.org>
11309
11310 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
11311 * editfns.c (Fget_internal_run_time): New function.
11312 (syms_of_data): Defsubr it.
11313 * fns.c (sxhash): As far as possible, merge calculation of
11314 hash code for symbols and strings.
59dede22 11315
27540e81
EZ
113162004-11-06 Eli Zaretskii <eliz@gnu.org>
11317
11318 * frame.c (syms_of_frame): Fix the example in the doc string.
11319
df470e3b
JD
113202004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11321
11322 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
11323
11324 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
11325 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 11326
4cc8522c
LT
113272004-11-05 Luc Teirlinck <teirllm@auburn.edu>
11328
11329 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
11330
d4a42098
KS
113312004-11-05 Kim F. Storm <storm@cua.dk>
11332
a8490886
KS
11333 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
11334
d4a42098
KS
11335 * fileio.c (Ffile_modes): Doc fix.
11336 (auto_save_1): Check for Ffile_modes nil value.
11337
36a2b04c
KS
113382004-11-05 Kim F. Storm <storm@cua.dk>
11339
11340 * xselect.c (struct selection_event_queue, selection_queue)
11341 (x_queue_selection_requests, x_queue_event)
11342 (x_start_queuing_selection_requests)
11343 (x_stop_queuing_selection_requests): Add new queue for selection
11344 input events to replace previous XEvent queue in xterm.c.
11345 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
11346 (x_reply_selection_request): Adapt to new queue.
11347 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
11348 (x_handle_selection_request, x_handle_selection_clear): Make static.
11349 (x_handle_selection_event): New function. May queue selection events.
11350 (wait_for_property_change_unwind): Use save_value instead of cons.
11351 Clear property_change_reply_object.
11352 (wait_for_property_change): Abort if already waiting.
11353 Use save_value instead of cons for unwind data.
11354 (x_handle_property_notify): Skip events already arrived, but don't
11355 free them, as "arrived" field is checked by wait_for_property_change,
11356 and it will be freed by unwind or explicit unexpect_property_change.
11357 (x_get_foreign_selection): Add to new queue.
11358 (receive_incremental_selection): Don't unexpect wait_object when done
11359 as it has already been freed by previous wait_for_property_change.
11360
11361 * xterm.h (x_start_queuing_selection_requests)
11362 (x_stop_queuing_selection_requests, x_handle_selection_request)
11363 (x_handle_selection_clear): Remove prototypes.
11364 (x_handle_selection_event): Add prototype.
11365
11366 * xterm.c (handle_one_xevent): Don't queue X selection events
11367 here, it may be too late if we start queuing after we have already
11368 stored some selection events into the kbd buffer.
11369 (struct selection_event_queue, queue, x_queue_selection_requests)
11370 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
11371 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
11372 (x_catch_errors_unwind): Block input around final XSync.
11373
11374 * keyboard.h (kbd_buffer_unget_event): Add prototype.
11375
11376 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
11377 (kbd_buffer_unget_event): New function.
11378 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
11379 and use x_handle_selection_event.
11380 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
11381
9c3ad9e1
JD
113822004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11383
11384 * xselect.c (TRACE3): New debug macro.
11385 (x_reply_selection_request): Use it.
11386 (receive_incremental_selection): In call to TRACE0, the name of
11387 a symbol is in xname.
11388
a33b89de
KS
113892004-11-05 Kim F. Storm <storm@cua.dk>
11390
11391 * fontset.c (fontset_pattern_regexp): Use unsigned char.
11392
a872928c
JD
113932004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11394
88208bb8
JD
11395 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
11396
78819ebb 11397 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
11398
11399 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 11400 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
11401 * xfns.c (syms_of_xfns): ... to here.
11402
a872928c
JD
11403 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
11404 it doesn't start with /.
11405
b912921c
KH
114062004-11-04 Kenichi Handa <handa@m17n.org>
11407
11408 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
11409 treat it as a literal character.
11410
c524d9a6
KS
114112004-11-03 Kim F. Storm <storm@cua.dk>
11412
11413 * .gdbinit (ppt): New function.
11414
8cfd0f36
JD
114152004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11416
a11e1dce
JD
11417 * xterm.c (x_window_to_scroll_bar): Only call
11418 xg_get_scroll_id_for_window if toolkit scroll bars are used.
11419
8cfd0f36
JD
11420 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
11421 of save.
11422
a93563fd
AS
114232004-11-02 Andreas Schwab <schwab@suse.de>
11424
11425 * window.c (Fscroll_right): Fix last change.
11426
2b2d59d8
KS
114272004-11-02 Kim F. Storm <storm@cua.dk>
11428
14a56a1b 11429 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
2b2d59d8
KS
11430
114312004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11432
11433 * callproc.c (Fcall_process): Block input around vfork.
11434
ca28104d
KS
114352004-11-02 Kim F. Storm <storm@cua.dk>
11436
11437 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
11438 (syms_of_eval): Defsubr it.
11439
29bb7127
RS
114402004-11-02 Richard M. Stallman <rms@gnu.org>
11441
11442 * insdel.c (replace_range_2): New function.
11443
11444 * casefiddle.c (casify_region): Handle changes in byte-length
11445 using replace_range_2.
11446
11447 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
11448
b6189c3b 11449 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
11450 Subtract 1 from pos when checking previous newline for invisibility.
11451
11452 * window.c (window_scroll_pixel_based): Update preserve_y
11453 for header line if any.
11454 (Fscroll_left, Fscroll_right): Don't call interactive_p;
11455 use a new second argument instead.
11456
11457 * eval.c (Fcall_interactive_p): New function.
11458 (interactive_p): Don't test INTERACTIVE here.
11459 (Finteractive_p): Doc fix.
11460
11461 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
11462
b6189c3b 114632004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
11464
11465 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 11466 comparing font names.
a3fe4aaf 11467
2a00cdb4
JD
114682004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11469
f9d64bb3
JD
11470 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
11471 Fx_file_dialog if only directories should be read.
11472
11473 * lisp.h: Fx_file_dialog takes 5 parameters.
11474
32e2fb04
SM
11475 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
11476 Add parameter only_dir_p.
f9d64bb3
JD
11477 In Motif version, don't put DEFAULT_FILENAME in filter part of the
11478 dialog, just text field part. Do not add DEFAULT_FILENAME
11479 to list of files if it isn't there.
11480 In GTK version, pass only_dir_p parameter to xg_get_file_name.
11481
32e2fb04
SM
11482 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
11483 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
11484 a save dialog, add option kNavDontConfirmReplacement, change title
11485 to "Enter name", change text for save button to "Ok".
11486
32e2fb04
SM
11487 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
11488 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3 11489
14a56a1b
JB
11490 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
11491 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
11492 and HAVE_GTK_FILE_SELECTION_NEW respectively.
f9d64bb3
JD
11493 (xg_get_file_name): Add parameter only_dir_p.
11494 Call xg_get_file_with_chooser or xg_get_file_with_selection
11495 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
11496 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
11497
11498 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
11499
2a00cdb4
JD
11500 * config.in: Rebuild (added HAVE_GTK_FILE_*).
11501
f6749d5d
KS
115022004-11-01 Kim F. Storm <storm@cua.dk>
11503
32e2fb04
SM
11504 * process.c (connect_wait_mask, num_pending_connects):
11505 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 11506 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
11507 (IF_NON_BLOCKING_CONNECT): New helper macro.
11508 (wait_reading_process_output): Only declare and use local vars
11509 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 11510
1a99fe1a
JR
115112004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
11512
11513 * w32term.c (x_scroll_run): Delete region objects after use.
11514
fcdb28b4
JD
115152004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11516
495ef86b
JD
11517 * xmenu.c: Add prototypes for forward function declarations.
11518 (popup_get_selection): Remove parameter do_timers, remove call to
11519 timer_check.
32e2fb04
SM
11520 (create_and_show_popup_menu, create_and_show_dialog):
11521 Remove parameter do_timers from call to popup_get_selection.
495ef86b 11522
12e6566a
JD
11523 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
11524 tool_bar_items and assign the result to f->tool_bar_items if
11525 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
11526 tool_bar_items to assignment of result.
11527
fcdb28b4 11528 * atimer.c (alarm_signal_handler): Do not call set_alarm if
14a56a1b 11529 pending_atimers is non-zero.
fcdb28b4 11530
1a1a0c4c
KS
115312004-10-31 Kim F. Storm <storm@cua.dk>
11532
11533 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
11534
a36f1680
JW
115352004-10-28 Will <will@glozer.net>
11536
1d1c7e75 11537 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
11538 key via a 'mac-option-modifier' variable.
11539
32e2fb04 115402004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
11541
11542 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
11543 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
11544 (x_handle_selection_request, x_handle_selection_clear)
11545 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
11546
4f71c13f
RS
115472004-10-28 Richard M. Stallman <rms@gnu.org>
11548
11549 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
11550
11551 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
11552
068f3848
SM
115532004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
11554
11555 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
11556 comment-starter over a 1-char one.
11557
4660a9e3
RS
115582004-10-27 Richard M. Stallman <rms@gnu.org>
11559
11560 * xdisp.c (get_next_display_element): In mode lines,
11561 treat newline and tab like other control characters.
11562
11563 * editfns.c (Fmessage): Doc fix.
11564
11565 * indent.c (vmotion): When moving up, check the newline before.
11566 Make prevline an int, not a Lisp_Object.
11567
233f3db6
KS
115682004-10-27 Kim F. Storm <storm@cua.dk>
11569
11570 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
11571 Only allocate info and discarded tables once.
11572
11573 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
11574 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
11575 (SAFE_FREE): Test it to determine if we need to unwind to free.
11576 Remove size arg. All users changed.
11577 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
11578
1442465d
JD
115792004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11580
11581 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
11582 (xg_destroy_widgets): Rename from remove_from_container.
11583 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
11584 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
11585 instead of remove_from_container.
11586 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
11587 (free_frame_tool_bar): Add comment.
11588
11589 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
11590 is not NULL before strcmp.
11591
c8636435
KS
115922004-10-26 Kim F. Storm <storm@cua.dk>
11593
11594 * callint.c (Fcall_interactively): Add 'U' code to get the
11595 up-event discarded by a previous 'k' or 'K' argument.
11596
5629f29b
DK
115972004-10-26 David Kastrup <dak@gnu.org>
11598
11599 * buffer.c (syms_of_buffer): Fix a few typos.
11600
4f2f546e
JD
116012004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11602
11603 * xsmfns.c: Put empty line between comment and function body.
11604 Use two spaces before comment end.
11605
fc1062f5
KH
116062004-10-25 Kenichi Handa <handa@m17n.org>
11607
11608 * fontset.c (fontset_pattern_regexp): Optimize for the case that
11609 PATTERN is full XLFD.
11610
be13f5e5
KH
116112004-10-24 Kenichi Handa <handa@m17n.org>
11612
11613 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
11614
11615 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
11616 (regex_compile): Return REG_ERANGEX if appropriate.
11617
d0ee2ed3
KH
116182004-10-22 Kenichi Handa <handa@m17n.org>
11619
11620 * editfns.c (Ftranslate_region_internal): New function.
11621 (syms_of_editfns): Defsubr it.
11622
63ea8ea5
JD
116232004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11624
11625 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
11626
d495ccfc 116272004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
c27ed90a 11628
068f3848
SM
11629 * xterm.h (x_output): New member `xic_base_fontname'.
11630 (FRAME_XIC_BASE_FONTNAME): New macro.
11631 (xic_free_xfontset): Declare.
c27ed90a 11632
068f3848
SM
11633 * xfns.c (xic_create_xfontset): Share fontsets between frames
11634 based on base_fontname.
11635 (xic_free_xfontset): New function.
11636 (free_frame_xic): Use it.
11637 (xic_set_xfontset): Ditto.
c27ed90a 11638
068f3848 11639 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a 11640
59508699
JR
116412004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
11642
11643 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
11644
dede2792
JD
116452004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11646
3aca2078
JD
11647 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
11648 XSync.
11649
dede2792
JD
11650 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
11651 New variables and constant.
11652 (main): Calculate heap_bss_diff. If we are dumping and the
11653 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
11654 and exec ourself again.
11655 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
11656 print a warning.
11657
11658 * lastfile.c: Make my_endbss and my_endbss_static available on all
11659 platforms.
11660
11661 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
11662 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
11663
1dc5ba01
LT
116642004-10-19 Luc Teirlinck <teirllm@auburn.edu>
11665
11666 * data.c (Flocal_variable_if_set_p): Doc fix.
11667
950090be
JR
116682004-10-19 Jason Rumney <jasonr@gnu.org>
11669
11670 * w32.c (init_environment): Set emacs_dir correctly when running
11671 emacs from the build directory.
11672
8550b998
RS
116732004-10-19 Richard M. Stallman <rms@gnu.org>
11674
11675 * editfns.c (Fdelete_and_extract_region):
11676 If region is empty, return null string.
11677
08dedea6
JD
116782004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11679
1dc5ba01 11680 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 11681 and canon_width.
068f3848 11682 (xg_frame_cleared): Remove.
08dedea6 11683
068f3848
SM
11684 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
11685 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
11686 (xg_create_scroll_bar): Put an event box widget between
11687 the scroll bar widget and the edit widget.
11688 (xg_show_scroll_bar): Show the parent widget (the event box).
11689 (xg_remove_scroll_bar): Destroy parent (the event box) also.
11690 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
11691 Move the parent (the event box) widget inside the fixed widget.
11692 Move window clear to xterm.c.
11693
068f3848 11694 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 11695
08dedea6 11696 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
11697 (x_scroll_bar_create, XTset_vertical_scroll_bar):
11698 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
11699 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
11700
8550b998 117012004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
11702
11703 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 11704
84338890
JD
117052004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11706
11707 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
11708 gdk_window_clear and move gdk_window_process_all_updates after
11709 clear so events are sent to the X server in correct order.
11710
6e1b0d8c
KH
117112004-10-18 Kenichi Handa <handa@m17n.org>
11712
11713 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
11714 comparing font names.
8550b998 11715 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
11716 (list_fontsets): Likewise.
11717
11718 * search.c (fast_string_match_ignore_case): New function.
11719
11720 * lisp.h (fast_string_match_ignore_case): Extern it.
11721
345e75a8
KS
117222004-10-17 Kim F. Storm <storm@cua.dk>
11723
11724 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
11725 than bitmap if there is not left fringe.
11726 (get_overlay_arrow_glyph_row): Also used on windows system.
11727 (display_line): Display overlay string if no left fringe.
11728
be13cbb7
JR
117292004-10-16 Jason Rumney <jasonr@gnu.org>
11730
11731 * w32fns.c (w32_font_match): Encode font name being matched.
11732
c2e2ede7
RS
117332004-10-16 Richard M. Stallman <rms@gnu.org>
11734
11735 * window.c (Fspecial_display_p): Doc fix.
11736
043f7f73 117372004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
11738
11739 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
11740 Don't ignore menus, because where-is-internal already does it for us.
11741
699a0392
KS
117422004-10-15 Kim F. Storm <storm@cua.dk>
11743
b3c7a89b
KS
11744 * xdisp.c (redisplay_window): Only update fringes and vertical
11745 border on window frames.
699a0392 11746
4e382b0f
AS
117472004-10-14 Andreas Schwab <schwab@suse.de>
11748
11749 * m/ia64.h (DATA_SEG_BITS): Don't define.
11750
329a7be2
KS
117512004-10-14 Kim F. Storm <storm@cua.dk>
11752
11753 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 11754 in some X versions.
329a7be2 11755
982241b1
SM
117562004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
11757
11758 * fns.c (map_char_table): Add missing gcpros.
11759
9238467d
SM
117602004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
11761
11762 * keymap.c (get_keymap): An autoload form is not a keymap.
11763
11764 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
11765
4440e3ca
KS
117662004-10-13 Kim F. Storm <storm@cua.dk>
11767
7cfdabde
KS
11768 * callproc.c (Fcall_process): Simplify handling of display arg.
11769 Resume `display_on_the_fly' once a coding system is determined.
11770
4440e3ca
KS
11771 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
11772
1c8dec6a
KS
117732004-10-12 Kim F. Storm <storm@cua.dk>
11774
11775 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
11776 caller, such as call-process, is not going to poll for input.
11777 (calc_line_height_property): Handle case where it->object is nil.
11778
11779 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
11780
170b174c
KH
117812004-10-12 Kenichi Handa <handa@m17n.org>
11782
9238467d
SM
11783 * xdisp.c (get_next_display_element):
11784 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
11785 chars in octal in unibyte buffer.
11786
b583964c
KS
117872004-10-12 Kim F. Storm <storm@cua.dk>
11788
11789 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
11790 are no ordinary bindings.
11791
29fabd8c
JD
117922004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11793
9238467d 11794 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 11795
c3f4c690
ST
117962004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11797
9238467d
SM
11798 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
11799 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 11800 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
11801 terminal frame.
11802 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
11803 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
11804 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
11805 Make a cancel file-open dialog be like C-g.
9238467d
SM
11806 * mac.c (mktime): Use emacs_mktime.
11807 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
11808 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 11809
9688f9eb
KS
118102004-10-10 Kim F. Storm <storm@cua.dk>
11811
11812 * keyboard.c (timer_resume_idle): New function to resume idle
11813 timer without resetting timers on the idle list.
52eb0373 11814 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
11815 (timer_start_idle, timer_stop_idle): Declare static.
11816 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
11817
11818 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
11819
f7f3a65f
ST
118202004-10-08 Steven Tamm <steventamm@mac.com>
11821
9238467d 11822 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 11823 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 11824 NULL where 0 should be used.
f7f3a65f
ST
11825 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
11826 objc/malloc.h
9238467d 11827 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 11828
3c7d999a
KS
118292004-10-07 Kim F. Storm <storm@cua.dk>
11830
11831 * xdisp.c (redisplay_window): Fix flicker on vertical line between
11832 windows. Update vertical line after drawing window fringes, but
11833 only if actually drawing any bitmaps--or there is no fringe.
11834
11835 * xterm.c (x_update_window_end): Likewise.
11836 * macterm.c (x_update_window_end): Likewise.
11837 * w32term.c (x_update_window_end): Likewise.
11838
11839 * fringe.c (draw_window_fringes): Return value now indicates if
11840 any fringe bitmaps were redrawn (or there are no fringes).
11841
11842 * dispextern.h (draw_window_fringes): Update prototype.
11843
bf06c82f
ST
118442004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11845
11846 * macfns.c (mac_get_window_bounds): Add extern.
11847 (x_real_positions): Use mac_get_window_bounds.
11848
11849 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
11850 xmenu.c (YAILOM).
3c7d999a 11851
bf06c82f
ST
11852 * macterm.c [!MAC_OSX]: Include Windows.h.
11853 (front_emacs_window): Rename from mac_front_window. All uses
11854 changed. Return the frontmost non-tooltip emacs window.
11855 (mac_get_window_bounds): New function.
11856 (x_calc_absolute_position): Use the difference of width and height
11857 between the inner and outer window.
11858 (x_set_offset): Specify window position by the coordinae of the
11859 outer window. Adjust the position if the title bar is completely
11860 outside the screen.
11861 (app_is_suspended, app_sleep_time): Remove unused variables.
11862 (do_app_resume, do_app_suspend): Remove their contents because
11863 window-activate/deactivate events will do the job.
11864 (do_zoom_window): Remove unused variables. Make compliant to the
11865 standard way of zooming. Set f->left_pos and f->top_pos.
11866 (XTread_socket): Don't use argument `expected'. Don't use
11867 FrontWindow to determine the clicked window. Exclude unprocessed
11868 mouseUp cases in the early stage. Add parentheses to fix operator
11869 precedence.
11870 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
11871
c6605d63 118722004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
d8b43276
JD
11873
11874 * config.in: Regenerate.
11875
11876 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
11877 HAVE_EXECSHIELD.
11878
b90ee8b5
JD
118792004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11880
11881 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
11882 a row if Alt or Meta has been found for that row. Also stop scanning
11883 for Keysyms for that row.
11884
904db1a2
KS
118852004-10-04 Kim F. Storm <storm@cua.dk>
11886
0207b8ad
KS
11887 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
11888 to list. Include overlay arrow bitmap in return value.
11889
25f7220c
KS
11890 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
11891 bars with fractional column width. If scroll bar separates two
11892 windows, move it towards the window it belongs to. Only update
11893 the padding area below the scroll bar widget when necessary,
11894 i.e. when scroll bar widget is created, moved, or resized.
11895
562020fe
KS
11896 * xdisp.c (define_frame_cursor1): Do not change frame cursor
11897 while tracking/dragging mouse.
11898 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
11899
37e34af7
KS
11900 * window.c (coordinates_in_window): Relax check for cursor
11901 on vertial border between mode lines.
11902 (Fset_window_fringes): Do not allow negative widths.
11903 (Fset_window_scroll_bars): Likewise.
11904
904db1a2
KS
11905 * .gdbinit (pp): Shorthand for p ARG + pr.
11906 (ff): New command: flush frame updates (X only).
11907
38fe4f64
MA
119082004-10-03 Michael Albinus <michael.albinus@gmx.de>
11909
11910 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
11911
9de36315
KH
119122004-09-30 Kenichi Handa <handa@m17n.org>
11913
07c381ad 11914 * process.c (send_process): Free composition data.
9de36315 11915
07c381ad 11916 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
11917
11918 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
11919 compositions to encode.
11920 (encode_coding_string): Likewise. Free composition data.
11921
d5fb8dab 119222004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
11923
11924 * coding.c (code_convert_region): Free composition data.
9de36315 11925
f2a54fbc
KS
119262004-09-29 Kim F. Storm <storm@cua.dk>
11927
dc5d6435
KS
11928 * fringe.c: Remove limit on number of bitmaps.
11929 (fringe_bitmaps, fringe_faces): Change to pointers.
11930 (max_fringe_bitmaps): New var.
11931 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
11932 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
11933
11934 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
11935 (struct glyph_row): Reorder fringe_bitmap related fields.
11936 (struct it): Likewise.
11937
11938 * w32term.c (fringe_bmp): Change to pointer.
11939 (max_fringe_bmp): New var.
11940 (w32_define_fringe_bitmap): Expand fringe_bmp.
11941 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
11942 (w32_destroy_fringe_bitmap): Likewise.
11943
119442004-09-29 Kim F. Storm <storm@cua.dk>
11945
11946 * fringe.c: Simplify last change.
f2a54fbc
KS
11947 (lookup_fringe_bitmap): New function.
11948 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
11949 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
11950 Keep standard bitmaps in Vfringe_bitmaps.
11951 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
11952 (Fset_fringe_bitmap_face): Likewise.
11953
11954 * dispextern.h (lookup_fringe_bitmap): Add prototype.
11955 (valid_fringe_bitmap_p): Remove prototype.
11956
11957 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
11958
841a8bca
KS
119592004-09-29 Kim F. Storm <storm@cua.dk>
11960
1f2da365
KS
11961 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
11962 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
11963
841a8bca
KS
11964 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
11965
11966 * fringe.c (Vfringe_bitmaps): New variable.
11967 (syms_of_fringe): DEFVAR_LISP it.
11968 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
11969 Change arg to Lisp_Object and fail if not an integer.
11970 (get_fringe_bitmap_name, resolve_fringe_bitmap)
11971 (destroy_fringe_bitmap): New functions.
9238467d
SM
11972 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
11973 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
11974 clear its fringe property.
11975 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
11976 Fdestroy_fringe_bitmap.
11977 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
11978 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
11979 and set fringe property. Signal error if no free slots.
11980 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
11981 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
11982
11983 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
11984 symbols with a fringe property.
11985
4d965590
KS
119862004-09-27 Kim F. Storm <storm@cua.dk>
11987
11988 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
11989 Doc fix. Format may now be a symbol or alist, not a cons.
11990
11991 * fringe.c (update_window_fringes): Handle new formats of
11992 indicate-buffer-boundaries (symbol or alist). No longer
11993 allow a simple cons.
11994 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
11995
e888c2b3
JD
119962004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11997
9238467d 11998 * config.in: Rebuild.
e888c2b3 11999
83f1cb94
JD
120002004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12001
12002 * config.in: Rebuild.
12003
9dd28cae 12004 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 12005
2c51754c
SM
120062004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
12007
12008 * xterm.c (x_term_init): Work around a bug in some X servers.
12009
3df5f8aa
RS
120102004-09-18 Richard M. Stallman <rms@gnu.org>
12011
557ca2c1
RS
12012 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
12013
3df5f8aa
RS
12014 * xdisp.c (try_window_reusing_current_matrix):
12015 Handle the case where we reach the old displayed text,
12016 out of sync with the old line boundary.
12017
9238467d 120182004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
12019
12020 * fileio.c (Finsert_file_contents): Fix case of replacement in a
12021 narrowed buffer.
12022
bfa02563
KS
120232004-09-14 Kim F. Storm <storm@cua.dk>
12024
a25fe164
KS
12025 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
12026
bfa02563
KS
12027 * xfaces.c (Qface_no_inherit): New var.
12028 (syms_of_xfaces): Intern and staticpro it.
12029 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
12030 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
12031 Don't increment face_change_count when face has non-nil
12032 face-no-inherit property.
12033
126f9c02
SM
120342004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
12035
892a8eb5
SM
12036 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
12037 (Fbyte_code): Remove dead code after `wrong_type_argument'.
12038
126f9c02 12039 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 12040 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 12041
c0ad3b38
KS
120422004-09-12 Kim F. Storm <storm@cua.dk>
12043
12044 * editfns.c (Fformat): Handle format strings with multiple text
12045 properties. Reverse text property list from the format string,
12046 so the positions are in increasing order.
12047
844fc085
JD
120482004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12049
12050 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
12051 x_uncatch_errors so that possible protocol errors are delivered.
12052
b106731c
EZ
120532004-09-10 Eli Zaretskii <eliz@gnu.org>
12054
21065c92
EZ
12055 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
12056 blockinput.h.
12057 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
12058 charset.h, and coding.h
9238467d 12059 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
12060 (term.o): Depend on window.h and keymap.h.
12061 (abbrev.o): Depend on syntax.h.
12062 (callint.o): Depend on keymap.h.
12063 (casefiddle.o): Depend on charset.h and keymap.h.
12064 (category.o): Depend on keymap.h.
12065 (coding.o): Depend on dispextern.h.
12066 (cmds.o): Depend on keyboard.h and keymap.h.
12067 (dispnew.o): Depend on indent.h and intervals.h.
12068 (doc.o): Depend on keymap.h.
12069 (editfns.o): Depend on frame.h.
12070 (emacs.o): Depend on dispextern.h.
12071 (fileio.o): Don't depend on ccl.h.
12072 (filelock.o): Depend on charset.h and coding.h.
12073 (frame.o): Depend on w32term.h and macterm.h.
12074 (insdel.o): Depend on region-cache.h.
12075 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
12076 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
12077 (search.o): Depend on $(INTERVALS_SRC).
12078 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
12079 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
12080 xterm.h, w32term.h, and macterm.h.
12081 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
12082 w32term.h, and macterm.h.
12083 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
12084 region-cache.h, xterm.h, w32term.h, and macterm.h.
12085 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
12086 (data.o): Depend on frame.h.
12087 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
12088 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
12089 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
12090 (intervals.o): Depend on keymap.h.
12091
9238467d
SM
12092 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
12093 Add debugging print-out to termscript.
b106731c 12094
64b7122d
RS
120952004-09-09 Richard M. Stallman <rms@gnu.org>
12096
12097 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
12098
5670531e
RS
120992004-09-08 Richard M. Stallman <rms@gnu.org>
12100
6cb4a892
RS
12101 * window.c (Fset_window_buffer): Doc fix.
12102
5670531e
RS
12103 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
12104
7e388eb7
JL
121052004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
12106
12107 * minibuf.c (history_delete_duplicates): New variable.
12108 (read_minibuf): Use it.
12109 (syms_of_minibuf): Create the corresponding lisp variable.
12110
370e3587
KS
121112004-09-08 Kim F. Storm <storm@cua.dk>
12112
12113 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
12114 overlay just before point.
12115
f844ba4e
LT
121162004-09-07 Luc Teirlinck <teirllm@auburn.edu>
12117
12118 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
12119 * buffer.c (reset_buffer, init_buffer_once):
12120 Handle auto_save_file_format field.
f844ba4e
LT
12121 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
12122 `buffer-auto-save-file-format'.
f844ba4e
LT
12123 * fileio.c: Delete declaration for removed Vauto_save_file_format.
12124 (build_annotations): Adapt to replacement of
12125 `auto-save-file-format' with the new buffer-local variable
12126 `buffer-auto-save-file-format'.
12127 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
12128
f0f90717
JR
121292004-09-07 Jason Rumney <jasonr@gnu.org>
12130
12131 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
12132
9238467d
SM
12133 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
12134 Handle Unicode menu titles.
f0f90717 12135
4e14f66c
KS
121362004-09-07 Kim F. Storm <storm@cua.dk>
12137
12138 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
12139 property from text property or overlay strings at point.
12140
9238467d 121412004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
12142
12143 * xmenu.c (update_submenu_strings): YAILOM.
12144 (set_frame_menubar): Make sure last_i is initialized.
12145
1f06d367
JR
121462004-09-03 Jason Rumney <jasonr@gnu.org>
12147
1806714a 12148 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
12149 (digest_single_submenu): Set lname and lkey in widget_value
12150 instead of name and key.
12151 (update_submenu_strings): New function.
12152 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12153 call update_submenu_strings.
12154
12155 * w32menu.c (globals_of_w32menu): Check for Unicode API.
12156 (digest_single_submenu, w32_menu_show): Encode menu strings as
12157 UTF-8 if Unicode API is available.
12158 (utf8to16): New function.
12159 (add_menu_item): Use it when calling Unicode API.
1806714a 12160
46540080
KS
121612004-09-03 Kim F. Storm <storm@cua.dk>
12162
12163 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
12164 in overlay or text-property strings; set cursor on corresponding
12165 glyph rather than at end of the string.
12166
9277ba61 121672004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 12168
9277ba61 12169 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
12170 set a new one before obtaining the global coordinate.
12171 Use FRAME_MAC_WINDOW.
12172 (x_set_name, x_set_title): Encode title to UTF8.
12173 Use SetWindowTitleWithCFString.
9277ba61
ST
12174 (Fx_server_version): Get correct OS version.
12175
1806714a
SM
12176 * macmenu.c (add_menu_item): Remove unused variable `i'.
12177 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
12178
12179 * macterm.c (x_update_end): Move SetPortWindowPort to inside
12180 BLOCK_INPUT.
12181 (x_set_offset): Use FRAME_MAC_WINDOW.
12182
12183 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
12184 nontext_cursor if it is on a scroll bar.
12185
12186 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
12187 Carbon support.
1806714a
SM
12188 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
12189 Use LIBS_CARBON.
9277ba61 12190
b10daec7
JD
121912004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12192
12193 * xfns.c (x_set_name_internal): New function. Check if we shall call
12194 xfree before ENCODE_UTF_8.
12195 (x_set_name, x_set_title): Call x_set_name_internal.
12196
f7e22385
JR
121972004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
12198
12199 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
12200 reload it.
12201
2bf436c3
JD
122022004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12203
1806714a 12204 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
12205 (single_submenu): Set lname and lkey in widget_value
12206 instead of name and key.
12207 (update_submenu_strings): New function.
12208 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12209 call update_submenu_strings.
12210
2bf436c3
JD
12211 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
12212 instead of name and key.
12213 (update_submenu_strings): New function.
12214 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 12215 call update_submenu_strings.
2bf436c3
JD
12216
12217 * gtkutil.h (_widget_value): Added lname and lkey.
12218
11715f92
ST
122192004-08-30 Steven Tamm <steventamm@mac.com>
12220
12221 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
12222 by using different names for inner loop variables.
12223
5500be54
JD
122242004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12225
059cd329
JD
12226 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
12227 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
12228
5500be54
JD
12229 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
12230 tool bar items is 0.
12231
383418e5
ST
122322004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12233
12234 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
12235 strings in menu items.
12236 (single_submenu): Use ENCODE_MENU_STRING
12237 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
12238 button release isn't passed to event loop
12239 (add_menu_item): Use SetMenuItemWithCFString
12240
6eb3ee72
ST
122412004-08-26 Steven Tamm <steventamm@mac.com>
12242
12243 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
12244 tool-bar/menu click.
12245 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 12246
10b43ac3
JD
122472004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12248
2728b5d0
JD
12249 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
12250
10b43ac3
JD
12251 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12252 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12253 (x_top_window_to_frame): Return 0 if wdesc is None.
12254
2ee3b79e
RS
122552004-08-22 Richard M. Stallman <rms@gnu.org>
12256
12257 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
12258 HAVE_TERMIOS]: If there's no char for this signal, drop through
12259 and use system calls.
12260
12261 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
12262
9a1ba2ea
KS
122632004-08-20 Kim F. Storm <storm@cua.dk>
12264
12265 * process.c (wait_reading_process_output): Rename from
12266 wait_reading_process_input. All uses changed.
12267 (wait_reading_process_output_1): Rename from
12268 wait_reading_process_input_1. All uses changed.
12269
12270 * dispnew.c (Fsleep_for): Remove obsolete code.
12271
295f3b30
KH
122722004-08-20 Kenichi Handa <handa@m17n.org>
12273
12274 * syntax.c (skip_chars): Fix for unibyte case.
12275
27615979
SM
122762004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12277
12278 * syntax.c (char_quoted): Mixup byte/char pos.
12279 (back_comment): Fixup globals in all cases.
12280
00267f94
JD
122812004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12282
12283 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
12284 passing it to gtk_window_set_title.
12285
2439909e
KS
122862004-08-19 Kim F. Storm <storm@cua.dk>
12287
6ba0f14c
KS
12288 * process.c (wait_reading_process_input): Clean up.
12289 Add wait_for_cell, wait_proc, and just_wait_proc args
12290 to avoid overloading `read_kbd' and `do_display' args.
12291 Change read_kbd arg to int. All callers changed.
12292
2439909e
KS
12293 * process.c (process_send_signal): Use CDISABLE.
12294
12295 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
12296
101c421e
KS
122972004-08-18 Kim F. Storm <storm@cua.dk>
12298
12299 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
12300 forward to wait_reading_process_input via DO_DISPLAY arg.
12301 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
12302 object, only process output from that process; also inhibit
12303 running timers if DO_DISPLAY==-2.
12304
c438dc33
KS
123052004-08-17 Kim F. Storm <storm@cua.dk>
12306
12307 * process.c (process_send_signal): Fix last change--use
12308 _POSIX_VDISABLE instead of CVDISABLE when available.
12309
8afc13c6
RS
123102004-08-16 Richard M. Stallman <rms@gnu.org>
12311
12312 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
12313 Set VQUIT and VINTR chars to the standard ones if they are unset.
12314 [AIX]: Don't do that here. And don't force VINTR to standard
12315 when SIGNALS_VIA_CHARACTERS.
12316
c438dc33 12317 * process.c (process_send_signal)
8afc13c6
RS
12318 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
12319 Do nothing if the character is CVDISABLE.
12320
12321 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
12322
c438dc33 12323 * intervals.c (move_if_not_intangible):
8afc13c6
RS
12324 Force POSITION to be between BEGV and ZV.
12325
6dad1714
JPW
123262004-08-14 John Paul Wallington <jpw@gnu.org>
12327
12328 * buffer.c (Frestore_buffer_modified_p): Doc fix.
12329
12330 * fileio.c (Fread_file_name): Doc fix.
12331
12332 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
12333
2bd77330
LT
123342004-08-09 Luc Teirlinck <teirllm@auburn.edu>
12335
12336 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
12337
c90e7e43
LT
123382004-08-08 Luc Teirlinck <teirllm@auburn.edu>
12339
12340 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 12341 Qdisabled_command_hook.
c90e7e43 12342 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 12343 Qdisabled_command_hook.
c90e7e43
LT
12344 (syms_of_keyboard): Ditto.
12345
81909a1a
LT
123462004-08-07 Luc Teirlinck <teirllm@auburn.edu>
12347
12348 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
12349 (syms_of_keymap) <key-translation-map>: Doc fixes.
12350
0cedd530
SM
123512004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
12352
1725a7c9
SM
12353 * window.c (window_list_1): YAILOM.
12354
0cedd530
SM
12355 * fileio.c (make_temp_name): Handle multibyte prefixes.
12356
2515a131
LT
123572004-08-06 Luc Teirlinck <teirllm@auburn.edu>
12358
12359 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
12360 Doc fix.
12361
c8b20fb7
KH
123622004-08-03 Kenichi Handa <handa@m17n.org>
12363
12364 * coding.c (decode_coding_string): Adjust coding->consumed, and
12365 etc. with shrinked_bytes.
12366
fb8b092b
KS
123672004-08-03 Kim F. Storm <storm@cua.dk>
12368
12369 * indent.c (compute_motion): Fix check for full width window
12370 in non-window case. Do not count left truncation glyph on
12371 window systems.
12372
df133612
LT
123732004-08-02 Luc Teirlinck <teirllm@auburn.edu>
12374
12375 * data.c (Finteractive_form): Doc fix.
12376
0f7a93c1
KS
123772004-08-02 Kim F. Storm <storm@cua.dk>
12378
12379 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
12380 properly accounting for continuation glyph on non-window systems.
12381 (Fcompute_motion): Use actual window width if WIDTH is nil, and
12382 actual window width/height if TOPOS is nil, properly accounting for
12383 continuation glyphs on non-window systems, and optional header lines.
12384 (vmotion): Let compute_motion calculate actual window width.
12385
12386 * window.c (window_scroll_line_based): Let compute_motion
12387 calculate actual window width.
12388
f491e1ed
KS
123892004-08-02 Kim F. Storm <storm@cua.dk>
12390
12391 * process.c (read_process_output): Use whole read buffer.
12392 Don't trigger adaptive read buffering on errors.
12393
83f64226
LT
123942004-07-31 Luc Teirlinck <teirllm@auburn.edu>
12395
12396 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
12397
1d1c7e75 12398 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
12399
12400 * callint.c (Fcall_interactively): Doc fix.
12401
8afc13c6
RS
124022004-07-30 Richard M. Stallman <rms@gnu.org>
12403
12404 * abbrev.c (Fexpand_abbrev): Undo previous change.
12405
7c111482
KS
124062004-07-30 Kim F. Storm <storm@cua.dk>
12407
12408 * editfns.c (Fformat): Allocate extra (dummy) element in info.
12409
ee945d08
LT
124102004-07-28 Luc Teirlinck <teirllm@auburn.edu>
12411
12412 * eval.c (Fdefvar, Fdefconst): Doc fixes.
12413
3f911c94
KS
124142004-07-27 Kim F. Storm <storm@cua.dk>
12415
12416 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
12417 we have ensured that the glyph fits on the current line (or returned
12418 MOVE_LINE_CONTINUED otherwise).
12419
f29ff8c7
KS
124202004-07-26 Kim F. Storm <storm@cua.dk>
12421
12422 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
12423 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
12424 if target position is at end of display line but char is not a newline.
12425
81159bb9
RS
124262004-07-25 Richard M. Stallman <rms@gnu.org>
12427
ab431b61
RS
12428 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
12429 instead of ON_VERTICAL_BORDER, when on scroll bar.
12430 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
12431
12432 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
12433
f29ff8c7 12434 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
12435 Take account of FRAME_INTERNAL_BORDER_WIDTH.
12436
12437 * alloc.c (check_cons_list): New function (contents commented out).
12438
fc820cc5
LT
124392004-07-24 Luc Teirlinck <teirllm@auburn.edu>
12440
12441 * xfaces.c (Fcolor_supported_p): Doc fix.
12442
12443 * frame.c (Fselect_frame, Fset_frame_selected_window)
12444 (Fframe_visible_p, Fraise_frame): Doc fixes.
12445
289978b5
LT
124462004-07-24 Richard M. Stallman <rms@gnu.org>
12447
78819ebb 12448 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
12449
12450 * fileio.c (Fwrite_region): Doc fix.
12451
12452 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
12453
12454 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
12455 only when a real abbrev is present.
12456
289978b5
LT
12457 * xfns.c (x_icon_verify): New function.
12458 (Fx_create_frame): Use it.
12459
d5fb8dab 124602004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
12461
12462 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
12463
36f826d4
KS
124642004-07-21 Kim F. Storm <storm@cua.dk>
12465
12466 * window.h (struct glyph_matrix): New members nrows_scale_factor
12467 and ncols_scale_factor.
12468
12469 * window.c (make_window): Initialize nrows_scale_factor and
12470 ncols_scale_factor members.
12471
12472 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
12473 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
12474 (required_matrix_height): Apply nrows_scale_factor.
12475 (required_matrix_width): Apply ncols_scale_factor.
12476
12477 * xdisp.c (display_line): Increment nrows_scale_factor and set
12478 fonts_changed_p if past last allocated row.
12479 (append_glyph, append_composite_glyph, produce_image_glyph)
12480 (append_stretch_glyph): Increment ncols_scale_factor and set
12481 fonts_changed_p if current area is full.
12482
5fc1c546
JD
124832004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12484
12485 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
12486
cb7516e5
LT
124872004-07-19 Luc Teirlinck <teirllm@auburn.edu>
12488
12489 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
12490 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
12491 (Fset_window_start, Fscroll_up, Fscroll_down)
12492 (Fother_window_for_scrolling, Fscroll_other_window)
12493 (Fsave_window_excursion, Fset_window_vscroll)
12494 (syms_of_window) <window-size-fixed>: Doc fixes.
12495
b6189c3b 124962004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
12497
12498 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
12499 ENCODE_SYSTEM for filenames.
12500
bfcf6608
ST
125012004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12502
12503 * mac.c (sys_select): Block input around call to
12504 ReceiveNextEvent to prevent breakage. Correctly handle
12505 blocking on event queue only by calling ReceiveNextEvent
12506 instead of select (since GUI events aren't on an fd).
12507 (sys_read): Remove function
12508 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
12509
e082ac9d
ST
125102004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12511
12512 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 12513 polling instead of 1 sec timeouts (like solaris).
e082ac9d 12514
cb7516e5 12515 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
12516 frame creation.
12517
12518 * keyboard.c: Undef SIGIO on Carbon
12519
12520 * atimer.c (alarm_signal_handler): Call alarm handlers after
12521 scheduling.
12522
12523 * eval.c (Feval): Remove quit_char test
12524
12525 * process.c (wait_reading_process_input): Remove clearing
12526 stdin for select call on process input.
12527
4b9da0fb
LT
125282004-07-18 Luc Teirlinck <teirllm@auburn.edu>
12529
1204e81c
LT
12530 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
12531 capitalization error in docstring.
4b9da0fb 12532
26503ad2
JB
125332004-07-17 Juanma Barranquero <lektu@terra.es>
12534
12535 * keyboard.c (not_single_kboard_state): Do nothing unless
12536 MULTI_KBOARD is defined.
12537
3751eb00
RS
125382004-07-17 Richard M. Stallman <rms@gnu.org>
12539
12540 * window.c (coordinates_in_window): Inside the window but outside
12541 its box to the L or R, return ON_VERTICAL_BORDER.
12542 (window_list_1): Rotate the list to start with WINDOW.
12543
12544 * print.c (print_preprocess): Test for print_depth at limit
12545 before entering in being_printed.
12546
12547 * keyboard.c (not_single_kboard_state): New function.
12548 (stuff_buffered_input): Now no-op only if no SIGTSTP.
12549
12550 * frame.c (Fdelete_frame): If we're in single_bboard_state on
12551 this kboard, and we delete its last frame, go to any_kboard_state.
12552
12553 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
12554
b6189c3b 125552004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
12556
12557 * w32fns.c (Fx_file_dialog): Encode strings in system coding
12558 system before passing them to OS functions for display.
12559
0f6af254
DK
125602004-07-15 David Kastrup <dak@gnu.org>
12561
f9253326
KS
12562 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
12563 Apparently fixes an abort condition.
0f6af254 12564
386c8f42
LT
125652004-07-14 Luc Teirlinck <teirllm@auburn.edu>
12566
12567 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
12568 instead of a cons.
12569
d495ccfc 125702004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
366511da
MB
12571
12572 * keyboard.c (echo_dash): Do nothing if there already is a dash
12573 at the end of the echo string.
12574
f85409d3
KS
125752004-07-12 Kim F. Storm <storm@cua.dk>
12576
12577 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
12578 if GC_MARK_STACK.
12579
0ba2e87b
LT
125802004-07-10 Luc Teirlinck <teirllm@auburn.edu>
12581
da38045d
LT
12582 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
12583
9dd28cae 12584 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
0ba2e87b
LT
12585 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
12586 (Freplace_buffer_in_windows, Fset_window_buffer)
12587 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
12588 (syms_of_window): Expand docstring of `display-buffer-function'.
12589
5668fbb8
LT
125902004-07-09 Luc Teirlinck <teirllm@auburn.edu>
12591
12592 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
12593 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
12594 that time values of the type (HIGH . LOW) are considered obsolete.
12595
a085bf9d
LT
125962004-07-06 Luc Teirlinck <teirllm@auburn.edu>
12597
669de2fb
LT
12598 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
12599 docstring.
12600
bac66325 12601 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 12602
8e975df9
JPW
126032004-07-06 John Paul Wallington <jpw@gnu.org>
12604
12605 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
12606
fa164e6a
JPW
12607 * fns.c (Fclear_string): Signal an error if STRING is not a string.
12608
2bac9bb1
JD
126092004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12610
12611 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
12612 instead of CGMainDisplayID (only in OSX 10.2 and later).
12613
316ef0dc
JPW
126142004-07-04 John Paul Wallington <jpw@gnu.org>
12615
12616 * fileio.c (read_file_name_completion_ignore_case): New variable.
12617 (syms_of_fileio): Declare and initialise it.
12618 (Fread_file_name): Bind `completion-ignore-case' to respect it.
12619
2a1a35c6
EZ
126202004-07-03 Eli Zaretskii <eliz@gnu.org>
12621
12622 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
12623 for event.x and event.y.
12624
33a72331
KH
126252004-07-01 Kenichi Handa <handa@m17n.org>
12626
12627 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
12628 after getting a new string by pre-write-conversion.
12629
9238467d 126302004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
12631
12632 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
12633 (x_calc_absolute_position): Remove unused var `child'.
12634
12635 * xfaces.c (x_supports_face_attributes_p)
12636 (Fdisplay_supports_face_attributes_p): YAILOM.
12637 (tty_supports_face_attributes_p): Remove unused var `i'.
12638
12639 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
12640 back_unibyte_ok.
12641
12642 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
12643
647b07d1
AS
12644 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
12645 `registry'.
07a6ab76
SM
12646
12647 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
12648
f96ec754
AS
126492004-06-30 Andreas Schwab <schwab@suse.de>
12650
12651 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
12652 (Finit_image_library): Pass LIBRARIES through to
12653 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
12654 (lookup_image_type): Pass Qnil as second argument to
12655 Finit_image_library.
12656
78819ebb 12657 * lisp.h (Finit_image_library): Declare.
f96ec754 12658
59feca74 126592004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 12660
31983645
AS
12661 * macterm.c (do_window_activate, do_window_deactivate): Remove.
12662 (XTread_socket): Send mouse button events to the toolbox
12663 dispatcher even when the mouse is grabbed. Don't process window
12664 activate events for non-Emacs windows. Replace function calls to
12665 do_window_activate and do_window_deactivate with their contents.
12666 Reset mouse grabbing status when a window is deactivated.
59feca74 12667
c61278bb
ST
126682004-06-29 Steven Tamm <steventamm@mac.com>
12669
12670 * macterm.c (mac_get_emulated_btn)
12671 (mac_event_to_emacs_modifiers): Fix emulated mouse button
12672 support to correctly mask out modifiers.
12673
c3762cbd
DK
126742004-06-29 David Kastrup <dak@gnu.org>
12675
12676 * search.c (Fset_match_data): Allow buffer before end of list
12677 which can happen if set-match-data is using a pre-consed list.
12678
c61278bb 126792004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
12680
12681 * macterm.c (XTread_socket): Correctly set the frame position
12682 after the window is moved.
12683
74cdfe05
JD
126842004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12685
12686 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
12687 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
12688 (xg_get_image_for_pixmap): Add workaround for monochrome displays
12689 so insensitive and activated icons look ok.
74cdfe05 12690
ef544dc8
JR
126912004-06-27 Jason Rumney <jasonr@gnu.org>
12692
12693 * w32fns.c (file_dialog_callback): Disable edit control if set
12694 to directories only on CDN_INITDONE message.
12695 (Fx_file_dialog): Default to directories only when prompt starts
12696 with "Dired".
12697
7b7990cc
KS
126982004-06-25 Kim F. Storm <storm@cua.dk>
12699
12700 * alloc.c (allocate_misc): Update total_free_markers.
12701 (free_misc): New function.
12702 (safe_alloca_unwind, free_marker): Use it.
12703
12704 * lisp.h (free_misc): Add prototype.
12705
12706 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
12707
d8c379f8
RS
127082004-06-24 Richard M. Stallman <rms@gnu.org>
12709
12710 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
12711 (syms_of_emacs): Lisp variables deleted.
12712
559cdd07
DK
127132004-06-23 David Kastrup <dak@gnu.org>
12714
94939b84
DK
12715 * search.c (Freplace_match): Adjust the match-data more thoroughly
12716 when replacing strings in the buffer.
12717 (Fmatch_data): When INTEGERS is non-nil and the last match was in
12718 a buffer, add the buffer as last element to the match data.
12719 (Fset_match_data): If an additional element of the match-data is a
12720 buffer, restore it to last_thing_searched.
c8d09ad8 12721 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
12722 (restore_match_data): Restore it again.
12723
dce417e7
LT
127242004-06-23 Luc Teirlinck <teirllm@auburn.edu>
12725
12726 * keymap.c (Ftext_char_description): Doc fix.
12727 * doc.c (Fsnarf_documentation): Doc fix.
12728
ef54b2d0
KS
127292004-06-22 Kim F. Storm <storm@cua.dk>
12730
b5bc4d05
KS
12731 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
12732
ef54b2d0
KS
12733 * lisp.h (struct Lisp_Save_Value): New member dogc.
12734 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
12735 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
12736 (SAFE_FREE_LISP): New macro.
12737
12738 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
12739 (make_save_value): Init new dogc member.
12740 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
12741
12742 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
12743 SAFE_FREE_LISP macros.
12744
3d33d993
KS
127452004-06-22 Kim F. Storm <storm@cua.dk>
12746
12747 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
12748 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
12749 in that memory area are unknown to GC. Add comments.
12750
12751 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
12752
5c917f98
KS
127532004-06-21 Kim F. Storm <storm@cua.dk>
12754
12755 * lisp.h (MAX_ALLOCA): Define here.
12756 (safe_alloca_unwind): Add prototype.
12757 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
12758
12759 * alloc.c (safe_alloca_unwind): New function.
12760
12761 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
12762
12763 * charset.c (Fstring): Use SAFE_ALLOCA.
12764
12765 * coding.c (MAX_ALLOCA): Remove define.
12766
12767 * data.c (MAX_ALLOCA): Remove define.
12768 (Faset): Use SAFE_ALLOCA.
12769
12770 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
12771
12772 * fns.c (string_make_multibyte, string_to_multibyte)
12773 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
12774 (MAX_ALLOCA): Remove define.
12775 (Fbase64_encode_region, Fbase64_encode_string)
12776 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
12777 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
12778 memory leak if encoding fails.
12779
12780 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
12781
9a09408e
EZ
127822004-06-21 Eli Zaretskii <eliz@gnu.org>
12783
12784 * print.c (Fwith_output_to_temp_buffer): Doc fix.
12785
376de739
RS
127862004-06-20 Richard M. Stallman <rms@gnu.org>
12787
12788 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
12789
12790 * search.c (match_limit): Cleaner err msg when no match data available.
12791
12792 * window.c (syms_of_window): Doc fix.
12793
12794 * keyboard.c (command_loop_1): Handle values `only' and `identity'
12795 for Vtransient_mark_mode.
12796
12797 * buffer.c (syms_of_buffer): Doc fix.
12798
acd81db9
DK
127992004-06-21 David Kastrup <dak@gnu.org>
12800
12801 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
12802 and unbinding of `case-fold-search' according to
12803 `completion-ignore-case' around calls of string-match and
12804 predicates, respectively. Should give satisfactory performance
12805 in all relevant cases.
12806
f303762d
JD
128072004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12808
95911c74
JD
12809 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
12810 clip_x/y_origin.
12811
a6cb6b78
JD
12812 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
12813
f303762d
JD
12814 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
12815
12816 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
12817 on Mac OSX.
12818
bbdb2684
LT
128192004-06-16 Luc Teirlinck <teirllm@auburn.edu>
12820
12821 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
12822
5ea48b1c
KS
128232004-06-16 Kim F. Storm <storm@cua.dk>
12824
12825 * dispextern.h (Vimage_types): Remove extern.
12826
803aac3e
MB
128272004-06-16 Miles Bader <miles@gnu.org>
12828
12829 * image.c (lookup_image_type): Initialize image type if necessary.
12830
cdc97764
KS
128312004-06-15 Kim F. Storm <storm@cua.dk>
12832
c4a5739c
KS
12833 * xdisp.c (try_cursor_movement): Exclude header line from scroll
12834 margin at top of window.
12835 (try_window_reusing_current_matrix): Calculate proper cursor position
12836 after scrolling up with non-zero scroll margin, as the old cursor
12837 position corresponds to value of PT before executing this command.
12838 (try_window_id): Consider scroll margin at bottom of window too;
12839 otherwise we fail to scroll when hl-line-mode is enabled.
12840
cdc97764
KS
12841 * syntax.c (skip_chars): Only recognize [:class:] when it has the
12842 proper format and class is a lower-case word.
12843
5b166323
JD
128442004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12845
12846 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 12847 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
12848 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
12849 xg_get_gdk_pixmap_and_mask.
cdc97764 12850
5b166323
JD
12851 * xterm.h (struct x_display_info): Typo in comment fixed.
12852
1ebd4f78
JB
128532004-06-14 Juanma Barranquero <lektu@terra.es>
12854
12855 * dispextern.h (Vimage_types): Make it conditional on
12856 HAVE_WINDOW_SYSTEM.
12857
12858 * image.c (Vimage_types): Move from xdisp.c.
12859 (Vimage_type_cache): New variable.
12860 (define_image_type): New argument indicating whether an image
12861 library was loaded; cache loaded status and return t on success,
12862 nil otherwise.
12863 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
12864 (w32_delayed_load): New function to load an image library from a
12865 list of possible filenames.
12866 (init_xpm_functions, init_png_functions, init_jpeg_functions)
12867 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 12868 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
12869 (Finit_image_library): New function, extracted from `init_image'.
12870 Try to initialize an image library on demand and cache whether we
12871 were successful or not.
12872 (syms_of_image): Initialize `Vimage_types' and
12873 `Vimage_type_cache'. Add recognized image types to Vimage_types.
12874 Export `init-image-library'.
12875 (init_image): Remove initialization of all image types, except xbm
12876 and pbm.
12877
12878 * xdisp.c (Vimage_types): Delete (moved to image.c).
12879
904ee128
AS
128802004-06-14 Andreas Schwab <schwab@suse.de>
12881
12882 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12883 Avoid calling specbind when completion-regexp-list is empty.
12884
092de21d
RS
128852004-06-13 Richard M. Stallman <rms@gnu.org>
12886
12887 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
12888 (re_wctype, re_iswctype, re_wctype_to_bit):
12889 Non-function definitions moved here from regex.c.
1ebd4f78 12890
092de21d
RS
12891 * regex.c (re_wctype, re_iswctype): Function defs longer static.
12892 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
12893 (re_wctype, re_iswctype, re_wctype_to_bit):
12894 Non-function definitions moved to regex.h.
12895
12896 * window.c (Fselect_window): Doc fix.
12897
12898 * syntax.c: Include regex.h.
12899 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
12900 If requested, make a list of classes, then check the scanned
12901 chars for membership in them.
12902 (in_classes): New function.
12903 Doc fix.
12904
12905 * keyboard.c (cmd_error): Don't call any_kboard_state
12906 if inside a recursive edit level.
12907
d495ccfc 129082004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
092de21d
RS
12909
12910 * keyboard.c (command_loop): Call any_kboard_state before
12911 command_loop_2 when at top level.
12912
3ebc0939
AS
129132004-06-13 Andreas Schwab <schwab@suse.de>
12914
cea5d0d4
AS
12915 * print.c (print_object): Always use %ld for printing EMACS_INT.
12916
12917 * keyboard.c (cancel_hourglass_unwind): Return a value.
12918 (modify_event_symbol): Always use %ld for printing EMACS_INT.
12919 (Fexecute_extended_command): Likewise.
12920
12921 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
12922 avoid clashes.
12923 (SYNTAX): Likewise.
12924 (SYNTAX_WITH_FLAGS): Likewise.
12925 (SYNTAX_MATCH): Likewise.
12926
12927 * syntax.c (char_quoted): Avoid warning about undefined operation.
12928 (find_defun_start): Likewise.
12929 (scan_lists): Likewise.
12930 (INC_FROM): Likewise.
12931 (scan_sexps_forward): Likewise.
12932
be8c4ce4
AS
12933 * image.c: Include <ctype.h>.
12934
3ebc0939
AS
12935 * xfaces.c (face_attr_equal_p): Declare parameters.
12936
6fb41b5b
KH
129372004-06-13 Kenichi Handa <handa@m17n.org>
12938
12939 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
12940
fc3095ce
EZ
129412004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
12942
12943 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
12944
66189a40
KH
129452004-06-12 Kenichi Handa <handa@m17n.org>
12946
12947 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
12948 ccl_prog_stack_struct and update it.
12949 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
12950 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
12951 ccl->eof_ic on EOF.
12952 (ccl_debug_hook): New function.
12953 (struct ccl_prog_stack): New member eof_ic.
12954 (ccl_driver): Handle EOF in subrountine call correctly.
12955
129562004-06-11 Kenichi Handa <handa@m17n.org>
12957
a9b43336 12958 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 12959
1da71023
KS
129602004-06-11 Kim F. Storm <storm@cua.dk>
12961
12962 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
12963
e9efcef4
JB
129642004-06-11 Juanma Barranquero <lektu@terra.es>
12965
12966 * keyboard.c (Fposn_at_point): Doc fix.
12967
9b9ceb61
DK
129682004-06-11 David Kastrup <dak@gnu.org>
12969
12970 * search.c (match_limit): Don't flag an error if match-data
12971 exceeding the allocated search_regs.num_regs gets requested, just
12972 return Qnil.
12973
6e87ac8f
MB
129742004-06-08 Miles Bader <miles@gnu.org>
12975
12976 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
12977
0b0dea7b
JB
129782004-06-07 Juanma Barranquero <lektu@terra.es>
12979
12980 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
12981 (Fcurrent_time_string, Fcurrent_time_zone)
12982 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
12983
a0a23346
MB
129842004-06-07 Miles Bader <miles@gnu.org>
12985
08384afd 12986 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
12987 (push_named_merge_point): New function.
12988 (merge_named_face): New function.
12989 (merge_face_ref, face_at_buffer_position, face_at_string_position):
12990 Use `merge_named_face'.
12991 (merge_face_inheritance): Function removed.
c8d09ad8 12992 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
12993 Add new `err_msgs' and `named_merge_points' args. Return error
12994 status. Only print error messages if ERR_MSGS is true. Don't try to
12995 do :inherit attribute validation.
12996 (merge_face_heights): Handle `unspecified' in both directions.
12997 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
12998 Call `merge_face_ref' instead of `merge_face_inheritance'.
12999 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
13000 (compute_char_face, face_at_buffer_position)
13001 (face_at_string_position): Call `merge_face_ref' instead of
13002 `merge_face_vector_with_property'.
13003
12d5b185
KH
130042004-06-07 Kenichi Handa <handa@m17n.org>
13005
13006 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
13007 the necessary places.
13008
2e2d7ee6
KS
130092004-06-07 Kim F. Storm <storm@cua.dk>
13010
13011 * process.c (Fdelete_process): Undo 2004-05-28 change.
13012 Instead, call status_notify also for network process.
13013 (status_message): Use process instead of status as arg.
13014 Give messages "deleted" or "connection broken by remote peer" for
13015 an exited network process.
13016 (status_notify): Change call to status_message.
13017 (read_process_output): Increase readmax to 4096. Do not increase
13018 buffer size for datagram channels (default is now large enough).
13019
fcf0d299
ST
130202004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
13021
13022 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
13023 problem due to newly defined variable.
13024
0722292b
MB
130252004-06-06 Miles Bader <miles@gnu.org>
13026
13027 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
13028 immediately if non-interactive or not initialized.
13029
ddfb8369
RS
130302004-06-05 Richard M. Stallman <rms@gnu.org>
13031
13032 * minibuf.c (Fcompleting_read): Doc fix.
13033
57015754
AS
130342004-06-05 Andreas Schwab <schwab@suse.de>
13035
13036 * macfns.c (x_create_tip_frame): Fix declaration after statement.
13037
23715ea6
JB
130382004-06-05 Juanma Barranquero <lektu@terra.es>
13039
13040 * keymap.c (Fdescribe_vector): Fix docstring.
13041 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
13042
8e330b22
MB
130432004-06-05 Miles Bader <miles@gnu.org>
13044
13045 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
13046 attributes have different values than the default face.
13047
9742a3a6
EZ
130482004-06-04 Eli Zaretskii <eliz@gnu.org>
13049
13050 * xfaces.c (x_supports_face_attributes_p): Make this function
13051 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
13052 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
13053 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 13054
9717e36c
MB
130552004-06-04 Miles Bader <miles@gnu.org>
13056
13057 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
13058 from Ftty_supports_face_attributes_p.
13059 (x_supports_face_attributes_p): New function.
13060 (Ftty_supports_face_attributes_p): Function deleted.
13061 (Fdisplay_supports_face_attributes_p): New function.
13062 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 13063 (face_attr_equal_p): New function.
9717e36c
MB
13064 (lface_equal_p): Use it.
13065
52deb19f
JB
130662004-06-03 Juanma Barranquero <lektu@terra.es>
13067
13068 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
13069 (Vw32_color_map): Fix typo in docstring.
13070 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
13071 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
13072 Make argument names match their use in docstring.
13073
86d373e6
JB
130742004-06-02 Juanma Barranquero <lektu@terra.es>
13075
13076 Work around bugs/problems with MinGW builds of graphics libraries
13077 called from MSVC builds of Emacs.
13078
13079 * image.c (lookup_image): Make pointer to img static.
13080 (png_read_from_memory): Disable "global" optimization.
13081
2fb0ce67
SM
130822004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
13083
c8d09ad8
SM
13084 * eval.c (Fcondition_case): Fix usage. Simplify.
13085
2fb0ce67
SM
13086 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
13087
50bf7673
ST
130882004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13089
13090 * macfns.c: Don't include ccl.h.
13091 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
13092 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
13093 TextUtils.h.
c8d09ad8 13094 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
13095 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
13096 display height/width.
13097 (compute_tip_xy, Vx_max_tooltip_size): Declare.
13098 (unwind_create_tip_frame, compute_tip_xy): New functions.
13099 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
13100 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
13101 and last_show_tip_args.
2fb0ce67 13102
50bf7673
ST
13103 * macgui.h [!MAC_OSX]: Include Gestalt.h.
13104 (Cursor, No_Cursor): New defines.
c8d09ad8 13105 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
13106 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
13107
13108 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
13109
13110 * macterm.c: Don't include Gestalt.h.
13111 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
13112 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
13113 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
13114 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
13115 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
13116 (construct_mouse_click, XTmouse_position)
13117 (x_scroll_bar_report_motion, x_calc_absolute_position)
13118 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
13119 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
13120 (note_mouse_movement): Clear the mouse face and reset the pointer
13121 shape when the pointer goes outside the frame without grabbing.
13122 (mac_front_window): New function.
13123 (mac_window_to_frame): New macro.
13124 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
13125 (do_window_activate, do_window_deactivate, do_app_resume)
13126 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
13127 (do_zoom_window, mac_do_receive_drag, XTread_socket)
13128 (mac_check_for_quit_char): Use mac_front_window and/or
13129 mac_window_to_frame.
13130 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
13131 scroll-bar click event.
13132 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
13133 (x_free_frame_resources): Reset tip_window to NULL when it is
13134 disposed of.
50bf7673 13135 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 13136 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
13137 (do_window_update): Don't do anything if the updated window is the
13138 tooltip window.
13139 (do_mouse_moved): Handle mouse movement events here (previously in
13140 XTread_socket). Clear the mouse face if
13141 dpyinfo->mouse_face_hidden is set.
13142 (do_os_event, do_events): Remove (now in XTread_socket).
13143 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
13144 Loop until all the events in the queue are processed.
13145 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
13146 contents of do_os_event and do_events. Remove mouse movement
13147 handling (now in do_mouse_moved). Add the case where
13148 Vmouse_highlight has an integer value.
13149 (NewMacWindow): Remove.
13150 (make_mac_frame): Do what NewMacWindow previously did. Don't do
13151 excess initializations.
13152 (make_mac_terminal_frame): Previous initializations in
13153 make_mac_frame are moved here.
c8d09ad8
SM
13154 (mac_initialize_display_info):
13155 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
13156
13157 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
13158 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
13159
08fd1251
RS
131602004-05-29 Richard M. Stallman <rms@gnu.org>
13161
13162 * lisp.h (truncate_undo_list): Update decl.
13163
13164 * alloc.c (undo_outer_limit): New variable.
13165 (syms_of_alloc): Defvar it.
13166 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
13167
13168 * undo.c (truncate_undo_list): New arg LIMITSIZE.
13169
13170 * alloc.c (lisp_align_malloc): Check for base == 0
13171 regardless of HAVE_POSIX_MEMALIGN.
13172 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
13173
227ef0ff
SM
131742004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13175
13176 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
13177 (marker_blocks_pending_free): Remove.
13178 (Fgarbage_collect): Sweep after cleaning up undo-lists.
13179 Mark the undo lists after claning them up.
13180 Don't free block in marker_blocks_pending_free.
13181 (mark_buffer): Don't mark undo_list.
13182 (gc_sweep): Sweep hash-tables and strings first.
13183 Do free marker blocks that are empty.
13184
034a6113
SM
131852004-05-28 Jim Blandy <jimb@redhat.com>
13186
13187 * regex.c (print_partial_compiled_pattern): Add missing 'break'
13188 after 'case wordend'. For symbeg and symend, print to stderr,
13189 like the other cases.
13190
33594a8d
NF
131912004-05-28 Noah Friedman <friedman@splode.com>
13192
13193 * process.c (Fdelete_process): Do not call remove_process.
13194
ce50a847
SM
131952004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13196
13197 * alloc.c (struct backtrace): Remove.
13198 (Fgarbage_collect): Use the new mark_backtrace.
13199
13200 * eval.c (mark_backtrace): New function.
13201
13202 * minibuf.c (run_exit_minibuf_hook): New function.
13203 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
13204 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
13205
1e8dae36
KS
132062004-05-27 Kim F. Storm <storm@cua.dk>
13207
13208 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
13209 over display properties, e.g. images, that replace buffer text.
13210
846faa3b
KS
132112004-05-25 Kim F. Storm <storm@cua.dk>
13212
13213 * alloc.c (marker_blocks_pending_free): New var.
13214 (gc_sweep): Store free marker blocks on that list.
13215 (Fgarbage_collect): Free them after undo-list cleanup.
13216
13217 * process.c (wait_reading_process_input): Check connect_wait_mask
13218 before actually accepting connection in case it has already been
13219 accepted due to recursion.
13220
d495ccfc 132212004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
6239a668 13222
ce50a847
SM
13223 * coding.c (Fset_safe_terminal_coding_system_internal):
13224 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 13225
71d5a208
RS
132262004-05-22 Richard M. Stallman <rms@gnu.org>
13227
13228 * alloc.c (Fmake_string): Doc fix.
13229
13230 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
13231 and the alist pairs too.
13232
13233 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
13234
51391fb9
RF
13235 * emacs.c (main): Update copyright year.
13236
71d5a208
RS
13237 * fileio.c (Fread_file_name): Expand DIR if not absolute.
13238
13239 * insdel.c (del_range_2, replace_range): Don't write an anchor
13240 if the gap is empty.
13241
13242 * xdisp.c (try_scrolling): If scroll-up-aggressively or
13243 scroll-down-aggressively is small but positive, put point
13244 near the screen edge.
13245
f63fd14e
JB
132462004-05-22 Juanma Barranquero <lektu@terra.es>
13247
13248 * keymap.c (Fdefine_key): Doc fix.
13249
4d12067c
KS
132502004-05-22 Kim F. Storm <storm@cua.dk>
13251
13252 * alloc.c (struct backtrace): Add debug_on_exit member.
13253 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
13254 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
13255 the removed cons cells.
13256 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
13257 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
13258 any cons cells pointing to unallocated stings.
13259 Do not lisp_free any marker blocks, as there may still be pointers
13260 to them from buffer undo lists at this stage of GC.
13261
13262 * keyboard.c (struct backtrace): Add debug_on_exit member.
13263 (Fcommand_execute): Clear it.
13264
931285e2
LT
132652004-05-20 Luc Teirlinck <teirllm@auburn.edu>
13266
13267 * intervals.c (lookup_char_property): Do not prematurely return nil.
13268
669fa600
SM
132692004-05-19 Jim Blandy <jimb@redhat.com>
13270
13271 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 13272 beginning and end of symbols.
4d12067c 13273
669fa600
SM
13274 * regex.c (enum syntaxcode): Add Ssymbol.
13275 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
13276 (re_opcode_t): New opcodes `symbeg' and `symend'.
13277 (print_partial_compiled_pattern): Print the new opcodes properly.
13278 (regex_compile): Parse the new operators.
ce50a847 13279 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
13280 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
13281 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
13282 (re_match_2_internal): Match symbeg and symend.
13283
13284 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
13285
0d8c2e5c
KS
132862004-05-19 Kim F. Storm <storm@cua.dk>
13287
13288 * .gdbinit (xsymbol): Fix last change.
13289
669fa600
SM
132902004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
13291
13292 * .gdbinit (xprintstr): New fun.
13293 (xstring, xprintsym): Use it.
13294
13295 * w32proc.c (create_child): Use INTMASK.
13296
13297 * alloc.c (Fgarbage_collect): Do all the marking before flushing
13298 unmarked elements of the undo list.
13299
9a6a4c40
DP
133002004-05-18 David Ponce <david@dponce.com>
13301
13302 * print.c (print): Reset print_depth before to call print_object.
13303
f3c4ec74
JR
133042004-05-18 Jason Rumney <jasonr@gnu.org>
13305
13306 * w32console.c: Prefix RIF functions with w32con_ to avoid
13307 namespace clash with functions in term.c and w32term.c.
13308
13309 * w32menu.c (add_menu_item, w32_menu_display_help)
13310 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
13311
0d8c2e5c 13312 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 13313
6be49c3a
EZ
133142004-05-18 Eli Zaretskii <eliz@gnu.org>
13315
4d0b9a0a
EZ
13316 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
13317
6be49c3a
EZ
13318 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
13319 with make_number.
13320 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
13321 with XINT.
13322
0bc90bba
KS
133232004-05-18 Kim F. Storm <storm@cua.dk>
13324
89d19988
KS
13325 * blockinput.h (INPUT_BLOCKED_P): New macros.
13326
13327 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
13328 (Ftop_level): Unblock input if blocked.
13329
0bc90bba
KS
13330 * buffer.h (GET_OVERLAYS_AT): New macro.
13331 * msdos.c (IT_note_mouse_highlight): Use it.
13332 * textprop.c (get_char_property_and_overlay): Use it.
13333 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
13334 * xfaces.c (face_at_buffer_position): Use it.
13335
13336 * print.c (print_object): Increase buf size.
13337
653bd0f6
JR
133382004-05-17 Jason Rumney <jasonr@gnu.org>
13339
13340 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
13341 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
13342 Lisp_Object using i member.
13343 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
13344 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
13345 consistently.
13346
13347 * w32proc.c (create_child): Use make_number instead of masking pid.
13348
13349 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
13350 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
13351 Use EQ to compare Lisp_Objects.
13352 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
13353
13354 * w32term.c (w32_num_mouse_buttons): Rename from
13355 Vw32_num_mouse_buttons and make it an int.
13356
13357 * w32.c (init_environment): Use it.
13358
13359 * w32fns.c (w32_wnd_proc): Likewise.
13360
13361 * w32proc.c (w32_pipe_read_delay): Rename from
13362 Vw32_pipe_read_delay and make it an int.
13363
13364 * w32.c (_sys_read_ahead): Use it.
13365
13366 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
13367
13368 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
13369
13370 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
13371 (key_event): Don't mix Lisp_Object and int.
13372
13373 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
13374
13375 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
13376 modifiers in language change event.
13377
54b53ba7
KS
133782004-05-17 Kim F. Storm <storm@cua.dk>
13379
13380 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
13381 Such objects may be freed markers which still exist on an undo list.
13382
6e86a75d
JB
133832004-05-16 Juanma Barranquero <lektu@terra.es>
13384
13385 * data.c (Fset_default): Make argument names match their use in
13386 docstring.
13387
fc80da24
AS
133882004-05-15 Andreas Schwab <schwab@suse.de>
13389
13390 * emacs.c (gdb_array_mark_flag): Define.
13391 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
13392
c1380aa6
EZ
133932004-05-15 Eli Zaretskii <eliz@gnu.org>
13394
13395 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
13396 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
13397 defined for the MS-DOS build.
13398
89458937
SM
133992004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
13400
13401 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
13402
08020f9a
KH
134032004-05-14 Kenichi Handa <handa@m17n.org>
13404
13405 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
13406
a433994a
ST
134072004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13408
13409 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
13410 section to frame.c section.
13411 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 13412 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 13413
a433994a 13414 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 13415
a433994a 13416 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 13417
a433994a
ST
13418 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
13419 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
13420 (XTread_socket): Fix int/Lisp_Object mixup.
13421 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 13422
a433994a
ST
13423 * macterm.h (struct frame, struct face, struct image)
13424 (display_x_get_resource, Fx_display_color_p)
89458937
SM
13425 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
13426 Add prototypes.
a433994a 13427
b51a51b9
KS
134282004-05-14 Kim F. Storm <storm@cua.dk>
13429
13430 * process.c (wait_reading_process_input): Make reentrant.
13431 Make Available and Connecting non-static. Save and restore value
13432 of waiting_for_user_input_p.
13433
2bde1dd8
KS
134342004-05-13 Kim F. Storm <storm@cua.dk>
13435
13436 * keyboard.c (mark_kboards): Don't mark x and y members
13437 that are overloaded in selection request events.
13438
a267ab4d
SM
134392004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13440
13441 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
13442
eb15ce9e
GM
134432004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
13444
13445 * window.c (Fdisplay_buffer, Fsplit_window)
13446 (split-height-threshold): Doc fix.
13447
7fc92635
JB
134482004-05-13 Juanma Barranquero <lektu@terra.es>
13449
13450 * xfaces.c (Ftty_supports_face_attributes_p)
13451 (Finternal_copy_lisp_face): Fix typo in docstring.
13452 (Finternal_get_lisp_face_attribute): Fix docstring.
13453
1ec2a572
JD
134542004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13455
13456 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
13457
ae9292e0
ST
134582004-05-11 Steven Tamm <steventamm@mac.com>
13459
13460 * macfns.c (Fx_create_frame): Default to using tool-bar by
13461 setting tool-bar-lines to 1 in default-frame-alist.
13462
134632004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
13464
13465 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
13466 (xpm_get_color_table_v, xpm_make_color_table_h)
13467 (xpm_put_color_table_h, xpm_get_color_table_h)
13468 (xpm_str_to_color_key, xpm_load_image, xpm_load)
13469 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 13470 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 13471
fe97e8df
ST
134722004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13473
a267ab4d 13474 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
13475 instead of FRAME_X_P
13476
b47e779e
KS
134772004-05-11 Kim F. Storm <storm@cua.dk>
13478
13479 * process.c (read_process_output): Grow decoding_buf when needed;
13480 this could cause a crash in allocate_string and compact_small_strings.
13481
cdc9b845
EZ
134822004-04-29 Jim Blandy <jimb@redhat.com>
13483
13484 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
13485 against proper opcode.
13486
aa7094ba
JB
134872004-05-10 Juanma Barranquero <lektu@terra.es>
13488
13489 * process.c (Fstart_process): Fix docstring.
13490
13491 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
13492 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
13493 (Fsplit_char, Fchar_charset): Make argument names match their use
13494 in docstring.
13495
e109331a
RS
134962004-05-10 Richard M. Stallman <rms@gnu.org>
13497
13498 * print.c (print_preprocess): Use being_printed, loop_count and
13499 halftail to detect overdeep nesting and cyclic cdr chains.
13500
9a28b921
AS
135012004-05-10 Andreas Schwab <schwab@suse.de>
13502
78819ebb 13503 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
13504
13505 * fileio.c (Frename_file): Remove extra argument in call to
13506 Fmake_symbolic_link.
13507
e2c02c1a
KS
135082004-05-10 Kim F. Storm <storm@cua.dk>
13509
13510 * xdisp.c (calc_line_height_property): Use string position when
13511 object is a string.
13512
cfe9d13e
KH
135132004-05-10 Kenichi Handa <handa@m17n.org>
13514
a57e8159
KH
13515 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
13516 inhibit-modification-hooks to t temporarily before calling
13517 Ferase_buffer.
13518
13519 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
13520 inhibit-modification-hooks to t temporarily before calling
13521 Ferase_buffer.
13522
13523 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
13524 inhibit-modification-hooks to t temporarily before calling
13525 Ferase_buffer.
13526
cfe9d13e
KH
13527 * fns.c (count_combining): Delete it.
13528 (concat): Don't check combining bytes.
13529
ceb96489
JR
135302004-05-09 Jason Rumney <jasonr@gnu.org>
13531
13532 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
13533 (globals_of_w32fns): Set it.
13534
b6189c3b 135352004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
13536
13537 * data.c (Fquo): Simplify.
13538
28712a21
JB
135392004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
13540
13541 * data.c (Fquo): If any argument is float, do the computation in
13542 floating point.
13543
0f0af7a8
JB
135442004-05-08 Juanma Barranquero <lektu@terra.es>
13545
88214ef6
JB
13546 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
13547 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
13548 Fix spelling of Emacs on docstring.
13549 (Fset_process_coding_system, Fprocess_coding_system)
13550 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
13551 Make argument names match their use in docstring.
13552 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
13553 Fix docstring.
13554
0f0af7a8
JB
13555 * editfns.c (Finsert_buffer_substring): Make argument names match their
13556 use in docstring.
13557
13558 * syntax.c (Fmodify_syntax_entry): Fix docstring.
13559
2a316a84
ST
135602004-05-07 Steven Tamm <steventamm@mac.com>
13561
13562 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
13563 around call to ReceiveEvent to avoid certain crashes.
13564
135652004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 13566
2a316a84
ST
13567 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
13568 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
13569 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
13570 Save/restore the current graphics port and device handle when
13571 drawing into an offscreen graphics world.
13572
13573 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
13574 (gif_load): Likewise.
13575
ab80314b
JB
135762004-05-07 Juanma Barranquero <lektu@terra.es>
13577
13578 * window.c (Fset_window_buffer): Fix docstring.
13579
70646bb5
TTN
135802004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
13581
13582 * emacs.c (main) [VMS]: Fix var ref.
13583
b6189c3b 135842004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
13585
13586 * data.c (Fsetq_default): Fix docstring.
13587
279d3293
JR
135882004-05-06 Jason Rumney <jasonr@gnu.org>
13589
13590 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
13591 to avoid name clash.
13592
f72b5416
JD
135932004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13594
13595 * fileio.c (barf_or_query_if_file_exists): Use lstat.
13596 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 13597 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 13598
6ab66799
KS
135992004-05-04 Kim F. Storm <storm@cua.dk>
13600
13601 * xdisp.c (Qtotal): New var.
13602 (syms_of_xdisp): Intern and staticpro it.
13603 (calc_line_height_property): New arg total. Set it if
13604 line-spacing property has format (total . VALUE).
13605 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
13606 Handle total line-spacing property.
13607
ab2d724b
JD
136082004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13609
13610 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
13611 "under" scroll bar when size/position changes.
13612
238add5e
JR
136132004-05-03 Jason Rumney <jasonr@gnu.org>
13614
13615 * makefile.nt: Remove.
13616
1644f4e4
EZ
136172004-05-02 Eli Zaretskii <eliz@gnu.org>
13618
a267ab4d
SM
13619 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
13620 Avoid compiler warnings.
05fdbeb8 13621
1644f4e4
EZ
13622 * Makefile.in (region-cache.o): Depend on config.h.
13623
b6189c3b 136242004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
13625
13626 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
13627 with continuation lines, too.
13628
2b98b088
TTN
136292004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
13630
13631 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
13632
d9bf7950
SM
136332004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
13634
13635 * xdisp.c (calc_line_height_property): YAILOM (yet another
13636 int/Lisp_Object mixup).
13637
affa509c
EZ
136382004-05-01 Eli Zaretskii <eliz@gnu.org>
13639
13640 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
13641 undo bad effect of pack(4) in some versions of system headers.
13642
07c07cfe
JR
136432004-05-01 Jason Rumney <jasonr@gnu.org>
13644
13645 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
13646
e71caa4e
KS
136472004-04-30 Kim F. Storm <storm@cua.dk>
13648
13649 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 13650 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
13651
13652 * dispextern.h (struct it): Remove member use_default_face.
13653 Add members override_ascent, override_descent, override_boff.
13654
13655 * xdisp.c (init_iterator): Handle line-spacing float value.
13656 Initialize override_ascent member.
13657 (append_space_for_newline): Reset override_ascent.
13658 Remove use_default_face.
13659 (calc_line_height_property): New function to calculate value of
13660 line-height and line-spacing properties. Look at overlays, too.
13661 Set override_ascent, override_descent, override_boff members when
13662 using another face than the current face. Float values are now
13663 relative to the frame default font, by default; accept a cons
13664 of ratio and face name to specify value relative to a specific face.
13665 (x_produce_glyphs): Use calc_line_height_property.
13666 Use override_ascent etc. when set to handle different face heights.
13667 A negative line-spacing property value is interpreted as a total
13668 line height, rather than inter-line spacing.
13669 (note_mouse_highlight): Allocate room for 40 overlays initially.
13670
0fddae66
SM
136712004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
13672
13673 * data.c (Fsubr_name): New fun.
13674 (syms_of_data): Defsubr it.
13675
712d23dc
KS
136762004-04-29 Kim F. Storm <storm@cua.dk>
13677
13678 * xdisp.c (null_glyph_slice): New var.
13679 (append_glyph, append_composite_glyph, append_stretch_glyph):
13680 Use it to initialize glyph slice.
13681
033ad8c6
SM
136822004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
13683
13684 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
13685 (on_hot_spot_p): Make sure we always return a value.
13686 (Flookup_image_map): Remove unused var ix and iy.
13687 (note_mode_line_or_margin_highlight): Remove unused var `image'.
13688
93397360
EZ
136892004-04-27 Eli Zaretskii <eliz@gnu.org>
13690
13691 * msdos.c (init_environment): If one of the TMP... environment
13692 variables is set to a drive letter without a trailing slash,
13693 append a slash.
13694
0c54865e
EZ
136952004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
13696
13697 * editfns.c (lisp_time_argument): Provide externally.
13698
13699 * fileio.c (Fset_file_times): New function.
13700 (syms_of_fileio): Intern and staticpro it.
13701
d3b111bd
KS
137022004-04-27 Kim F. Storm <storm@cua.dk>
13703
07dc1231
KS
13704 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
13705 header line strings.
13706
360fe9d2
KS
13707 * dispextern.h (struct it): New member use_default_face.
13708
d3b111bd
KS
13709 * xdisp.c (Qline_height): New variable.
13710 (syms_of_xdisp): Intern and staticpro it.
13711 (append_space_for_newline): Partially undo 2004-04-25 change;
13712 add default_face_p arg, and restore callers.
13713 Clear it->use_default_face after use.
13714 (x_produce_glyphs): Set default font for ascii char if
13715 it->use_default_font is set. Change line-spacing property to set
13716 just extra line spacing. Handle new line-height property.
13717
0448588b
AS
137182004-04-26 Andreas Schwab <schwab@suse.de>
13719
13720 * print.c (print_object): Print non-ascii characters in bool
13721 vector representation as octal escapes.
13722
13723 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
13724 * print.c (print_object): Use it instead of BITS_PER_CHAR for
13725 bool vectors.
13726 * lread.c (read1): Likewise.
13727 * alloc.c (Fmake_bool_vector): Likewise.
13728 * data.c (Faref, Faset): Likewise.
13729 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
13730 (mapcar1): Likewise.
d3b111bd 13731
536d6baa
ST
137322004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
13733
7e26f91b 13734 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 13735
ae11577a
MB
137362004-04-26 Miles Bader <miles@gnu.org>
13737
13738 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
13739
e198ba87
JB
137402004-04-26 Juanma Barranquero <lektu@terra.es>
13741
13742 * buffer.c (Fpop_to_buffer): Fix docstring.
13743
f3d5f92d 137442004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 13745
f3d5f92d
ST
13746 * lread.c (init_lread): Don't display missing lisp directory
13747 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 13748 may be built without correct installation path.
f3d5f92d 13749
03e35edc
KS
137502004-04-25 Kim F. Storm <storm@cua.dk>
13751
9ff3aa31
KS
13752 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
13753
13754 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
13755
03e35edc
KS
13756 * xdisp.c (append_space_for_newline): Rename from append_space.
13757 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
13758 (x_produce_glyphs): Handle line-spacing property on newline char.
13759 If value is t, adjust ascent and descent to fit current row height.
13760 If value is an integer or float, set extra_line_spacing to integer
13761 value, or to float value x current line height.
13762
f24814e0
KH
137632004-04-23 Kenichi Handa <handa@m17n.org>
13764
13765 * fontset.c (Finternal_char_font): If POSITION is nil, return
13766 font for displaying CH with the default face.
13767
d814862a
JB
137682004-04-23 Juanma Barranquero <lektu@terra.es>
13769
13770 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
13771
063a45c5
SM
137722004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13773
13774 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
13775 Don't make assumptions about the relative place of i and val.
13776 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
13777
ae7ab2d3
KS
137782004-04-21 Kim F. Storm <storm@cua.dk>
13779
13780 * dispextern.h (struct glyph_slice): New struct.
13781 (struct glyph): New member slice.
13782 (GLYPH_SLICE_EQUAL_P): New macro.
13783 (GLYPH_EQUAL_P): Use it.
13784 (struct glyph_string): New member slice.
13785 (struct it_slice): New struct.
13786 (struct it): New member slice, add member to stack too.
13787 New member constrain_row_ascent_descent_p.
13788 (image_ascent): Add prototype.
13789
13790 * dispnew.c (buffer_posn_from_coords): Return full image width
13791 and height even for image slices (posn is relative to full image).
13792 (marginal_area_string): Adjust x0,y0 for image slice.
13793
13794 * image.c (image_ascent): Add slice arg; calculate ascent for
13795 image slice (or full image).
13796
13797 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
13798 (syms_of_keyboard): Defsubr them.
13799
13800 * lisp.h (pos_visible_p): Fix prototype.
13801
c62aec78 13802 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
13803 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
13804 (x_draw_image_foreground, x_draw_image_relief)
13805 (x_draw_image_foreground_1, x_draw_image_glyph_string):
13806 Draw sliced images.
13807
13808 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
13809 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
13810 (x_draw_image_foreground, x_draw_image_relief)
13811 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
13812 Draw sliced images.
13813
13814 * w32term.h (image_ascent): Remove prototype.
13815
13816 * window.c (Fpos_visible_in_window_p): Return pixel position if
13817 PARTIALLY arg is non-nil. Simplify. Doc fix.
13818 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
13819 to return/set vscroll in pixels.
13820
13821 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
13822
13823 * xdisp.c (Qslice): New variable.
13824 (syms_of_xdisp): Intern and staticpro it.
13825 (pos_visible_p): Return pixel position in new x and y args.
13826 (init_iterator): Reset it->slice info.
13827 (handle_display_prop): Parse (slice ...) property.
13828 (push_it, pop_it): Save/restore slice info.
13829 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
13830 force repositioning of tall row if window is vscrolled, as that
13831 would reset vscroll.
13832 (append_space): Set it->constrain_row_ascent_descent_p to avoid
13833 increasing row height if row is non-empty.
13834 (fill_image_glyph_string): Copy slice info.
13835 (take_vertical_position_into_account): Simplify.
13836 (produce_image_glyph): Handle iterator slice info, setup glyph
13837 slice info. Do not force minimum line height.
13838 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
13839 do not increase height (ascent/descent) of non-empty row when
13840 adding normal character glyph; instead reduce glyph ascent/descent
13841 appropriately; if row is higher than current glyph, adjust glyph
13842 descent/ascent to reposition glyph within the existing row.
13843 Likewise, when char is newline, only set ascent/descent if row is
13844 currently empty.
13845 (note_mouse_highlight): Handle hotspots with sliced image.
13846
13847 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
13848 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
13849 (x_draw_image_foreground, x_draw_image_relief)
13850 (x_draw_image_foreground_1, x_draw_image_glyph_string):
13851 Draw sliced images.
13852
13853 * xterm.h (image_ascent): Remove prototype.
13854
d58f8753
SM
138552004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
13856
13857 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
13858
4ce2719d
JPW
138592004-04-20 John Paul Wallington <jpw@gnu.org>
13860
13861 * fns.c (Fassoc, Feql): Fix indentation.
13862
d58f8753 13863 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 13864
95f8c3b9
JPW
138652004-04-19 John Paul Wallington <jpw@gnu.org>
13866
13867 * fns.c (Feql): New function.
d58f8753 13868 (syms_of_fns): Defsubr it.
95f8c3b9 13869
b7e85537
JR
138702004-04-18 Jason Rumney <jasonr@gnu.org>
13871
13872 * w32select.c (Fw32_set_clipboard_data): Get sequence number
13873 after closing the clipboard.
13874
5a72efd4
LT
138752004-04-16 Luc Teirlinck <teirllm@auburn.edu>
13876
13877 * buffer.c (Fbuffer_base_buffer): Doc fix.
13878
20dc8583
KS
138792004-04-17 Kim F. Storm <storm@cua.dk>
13880
60962ec4
KS
13881 * keymap.c (Fkey_description): Add optional PREFIX arg.
13882 Combine prefix with KEYS to make up the full key sequence to describe.
13883 Correlate meta_prefix_char and following (simple) key to describe
13884 as meta modifier. All callers changed.
13885 (describe_map): Rename arg `keys' to `prefix'. Remove local
13886 `elt_prefix' var. Use Fkey_description with prefix instead of
13887 elt_prefix combined with Fsingle_key_description.
13888 (describe_vector): Declare static. Replace arg `elt_prefix' with
13889 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 13890 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
13891 Fsingle_key_description.
13892
13893 * keymap.h (Fkey_description): Fix prototype.
13894 (describe_vector): Remove prototype.
13895
409368b9
KS
13896 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
13897
20dc8583
KS
13898 * image.c (PNG_BG_COLOR_SHIFT): Remove.
13899 (png_load): Fix calculation of transparent background color on X
13900 and W32 platforms.
13901
75c5501b
JB
139022004-04-16 Juanma Barranquero <lektu@terra.es>
13903
13904 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
13905 not too large before computing how much to scroll.
13906
da879ae8
SM
139072004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
13908
13909 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
13910
d01ca4a8
LT
139112004-04-14 Luc Teirlinck <teirllm@auburn.edu>
13912
13913 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
13914 Add hyperlink to Elisp manual to the docstring.
13915
572943b3
SM
139162004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
13917
13918 * callint.c (fix_command): Use XDCR.
13919
5e30a0fb
NR
139202004-04-14 Nick Roberts <nick@nick.uklinux.net>
13921
13922 * window.c (Fget_lru_window): Doc fix.
13923
a27ddfaf
KS
139242004-04-14 Kim F. Storm <storm@cua.dk>
13925
13926 * editfns.c (Fformat): Fix allocation size of precision array.
13927
13928 * dispnew.c (update_window): Only set changed_p if
13929 scrolling_window actually did scroll.
13930 (scrolling_window): Only return 1 if we actually did scroll.
13931
13932 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
13933 height to glyph height when cursor row is not fully visible.
13934 (make_cursor_line_fully_visible): Add FORCE_P arg to return
13935 failure in case row is higher than window. Callers changed.
13936 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
13937 Try to scroll partially visible, higher-than-window cursor row.
13938 (redisplay_window): Always try to scroll partially visible,
13939 higher-than-window cursor row - both initially and again with
13940 centering_position = 0.
13941 Clear desired matrix before retrying with centering_position = 0.
13942
da879ae8
SM
139432004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13944
13945 * syntax.c (scan_lists): Simplify backward string scan.
13946 Fix off-by-one boundary check for string and comment fences.
13947
5fc16e8e
SM
139482004-04-13 Joe Buehler <jbuehler@hekimian.com>
13949
13950 * sheap.c, unexcw.c: New files.
13951
c9aac8e6
LT
139522004-04-12 Luc Teirlinck <teirllm@auburn.edu>
13953
13954 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
13955 base buffer has been killed. Correct the error message if the
13956 base buffer does not exist.
13957
1e88a355
SM
139582004-04-12 Joe Buehler <jbuehler@hekimian.com>
13959
13960 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
13961 Cygwin itself. Add support for Xaw3d scrollbars.
13962
13963 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
13964
13965 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
13966
13967 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
13968 before Cygwin unexec.
13969
13970 * Makefile.in: Link changes for Cygwin unexec() support.
13971
8dbff9a0
AS
139722004-04-12 Andreas Schwab <schwab@suse.de>
13973
13974 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
13975
54dffe35
LT
139762004-04-11 Luc Teirlinck <teirllm@auburn.edu>
13977
13978 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
13979 IGNORE argument equals NAME. Doc fix.
13980
99a72bdf
MY
139812004-04-11 Masatake YAMATO <jet@gyve.org>
13982
1e88a355 13983 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
13984 empty if they are backwards.
13985
40899d7b
SM
139862004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13987
13988 * xfaces.c (face_color_supported_p): Fix compilation without X11.
13989
f8f853de
SM
139902004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
13991
13992 * doc.c (Fsnarf_documentation): Ignore new file name entries.
13993
c953fe1b
KS
139942004-04-06 Kim F. Storm <storm@cua.dk>
13995
661e85c1
KS
13996 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
13997 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
13998
13999 * w32term.c (w32_read_socket): Set mouse_face_hidden after
14000 clearing highlight.
14001
14002 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
14003
14004 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
14005 clearing highlight.
14006
c953fe1b
KS
14007 * indent.c (vmotion): Do not reserve one column for continuation
14008 marks on window frames.
14009
c1994268
EZ
140102004-04-04 Eli Zaretskii <eliz@gnu.org>
14011
14012 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
14013 from GCC.
14014
9f691b0d
SM
140152004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14016
14017 * .gdbinit-union: Remove.
14018
14019 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
14020 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
14021 ($nonvalbits): Remove.
14022 ($valmask): Set it by calling xreload to avoid redundancy.
14023
14024 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
14025 (gdb_emacs_intbits): Remove.
14026
7a8560d7
JD
140272004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14028
9f691b0d 14029 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 14030
3c8111fc
KH
140312004-03-30 Kenichi Handa <handa@m17n.org>
14032
14033 * editfns.c (Fformat): Fix initialization of the array info.
14034
48a0bce4
KS
140352004-03-30 Kim F. Storm <storm@cua.dk>
14036
14037 * xterm.c (x_mouse_click_focus_ignore_position): New var.
14038 (syms_of_xterm): DEFVAR_BOOL it.
14039 (ignore_next_mouse_click_timeout): New var.
14040 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
14041 Use it to filter mouse clicks following focus event.
14042
1cd0066c
KS
140432004-03-29 David Ponce <david@dponce.com>
14044
14045 * callint.c (Fcall_interactively): Fix last change.
14046
adb3b353
SM
140472004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14048
14049 * eval.c (Fcommandp): Simplify.
14050
14051 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
14052 Extend to handle all kinds of functions.
14053
14054 * lisp.h (Finteractive_form): Declare.
14055
14056 * callint.c (Fcall_interactively): Use it.
14057
6fc4c9c9
KS
140582004-03-26 Kim F. Storm <storm@cua.dk>
14059
14060 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
14061 to catch errors in calc_pixel_width_or_height during redisplay.
14062
abdb9b83
MY
140632004-03-26 Masatake YAMATO <jet@gyve.org>
14064
b17856dd 14065 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 14066
b17856dd 14067 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 14068
b17856dd 14069 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 14070
b17856dd 14071 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 14072
e8a84b6c
JD
140732004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14074
b17856dd 14075 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 14076
36a3fd05
RS
140772004-03-19 Richard M. Stallman <rms@gnu.org>
14078
14079 * s/sol2-6.h: Delete previous change.
14080
ab24c127
KS
140812004-03-19 Kim F. Storm <storm@cua.dk>
14082
14083 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
14084 to_charpos corresponds to newline in right fringe. Use local
14085 BUFFER_POS_REACHED_P macro.
14086
992126de
JD
140872004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14088
14089 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
14090 to compile on non-window system.
14091
45dbfc84
KS
140922004-03-19 Kim F. Storm <storm@cua.dk>
14093
14094 * dispextern.h (calc_pixel_width_or_height): Add prototype.
14095
14096 * image.c (Qcenter): Move to xdisp.c.
14097
14098 * xdisp.c (Qcenter): Declare here.
adb3b353 14099 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
14100 (handle_single_display_prop): Allow space display property on all
14101 platforms.
14102 (display_mode_line): Set mode_line_p before displaying line.
14103 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
14104 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 14105 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
14106 width/height. Return width or height for image specs.
14107 (produce_stretch_glyph): Improve handling of :align-to. Is now
14108 relative to left of text area by default, but other base offsets
14109 can be specified -- also for text lines.
14110
14111 * term.c (produce_glyphs): Handle IT_STRETCH.
14112 (produce_stretch_glyph): New function to handle space width and
14113 align-to display properties on non-window systems.
14114
37264101
SM
141152004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14116
14117 * fileio.c (Fread_file_name): Set completion-ignore-case for
14118 case-insensitive systems.
14119
73bc43da
MY
141202004-03-14 Masatake YAMATO <jet@gyve.org>
14121
14122 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
14123 when keymap and cursor are setup.
14124
d5fb8dab 141252004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 14126
b17856dd 14127 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 14128
e4b1b5ab
KS
141292004-03-14 Kim F. Storm <storm@cua.dk>
14130
14131 * dispextern.h (x_find_image_file): Add prototype.
14132
14133 * image.c (x_find_image_file): Make extern.
14134
14135 * xfns.c (x_find_image_file): Remove prototype.
14136
a6eeaa81 141372004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 14138
37264101 14139 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 14140
37264101 14141 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 14142
e69cfac2
RS
141432004-03-12 Richard M. Stallman <rms@gnu.org>
14144
14145 * fns.c (internal_equal): New arg PROPS controls comparing
14146 text properties. All callers changed.
14147 (Fequal_including_properties): New function.
14148 (syms_of_fns): defsubr it.
14149
45034953
KS
141502004-03-12 Kim F. Storm <storm@cua.dk>
14151
14152 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 14153
45034953
KS
14154 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
14155 (image_background, image_background_transparent): Fix prototypes.
14156
37264101 14157 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
14158
14159 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
14160 (x_query_font, x_find_ccl_program, x_set_window_size)
14161 (x_make_frame_visible, mac_initialize, XCreatePixmap)
14162 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14163 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
14164
14165 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
14166 (x_query_font, x_find_ccl_program, x_set_window_size)
14167 (x_make_frame_visible, mac_initialize, XCreatePixmap)
14168 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14169 (mac_draw_line_to_pixmap): Add prototypes.
14170
141712004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14172
14173 * macterm.c (XTread_socket): Fix mouse click on tool bar.
14174
a12d3d87
KS
141752004-03-11 Kim F. Storm <storm@cua.dk>
14176
d3ab1cf1
KS
14177 * dispextern.h: Move image related prototypes from xfns.c section
14178 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
14179 HAVE_X_WINDOWS.
37264101 14180
37de9f51 14181 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 14182 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
14183 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
14184 (GTK_OBJ) [USE_GTK]: New declaration.
14185 (obj): Add $(GTK_OBJ) to list.
14186
d5fb8dab 141872004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 14188
7e26f91b 14189 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
14190
14191 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 14192 defined in image.c.
5243c06a 14193
c0f97789
KS
141942004-03-11 Kim F. Storm <storm@cua.dk>
14195
14196 The following changes consolidates the identical/similar image
14197 support code previously found in xfns.c, w32fns.c, and macfns.c
14198 into a new file image.c.
14199
14200 * makefile.w32-in (OBJ1): Add image.o.
14201 ($(BLD)/image.$(O)): Add dependencies.
14202
14203 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
14204 (image.o): Add dependencies.
37264101 14205
c0f97789
KS
14206 * image.c: New file with consolidated image support code.
14207 (COLOR_TABLE_SUPPORT): New define to control whether
14208 color table support is available (X only).
14209 (Bitmap_Record): Common name for x_bitmap_record,
14210 w32_bitmap_record, and mac_bitmap_record.
14211 (XImagePtr): Common name for pointer to XImage or equivalent.
14212 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
14213 to XImagePtr on X+MAC, and to HDC on W32.
14214 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
14215 (NO_PIXMAP): Common name for "None" or equivalent.
14216 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
14217 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
14218 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
14219 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
14220 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
14221 (XDrawLine): Define on MAC for code sharing.
14222 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
14223 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
14224 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14225 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14226 (x_reference_bitmap, x_create_bitmap_from_data)
14227 (x_create_bitmap_from_file, x_destroy_bitmap)
14228 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14229 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14230 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14231 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14232 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14233 (define_image_type, lookup_image_type, valid_image_p)
14234 (image_error, enum image_value_type, struct image_keyword)
14235 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14236 (make_image, free_image, prepare_image_for_display, image_ascent)
14237 (four_corners_best, image_background, image_background_transparent)
9dd28cae 14238 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
14239 (make_image_cache, free_image_cache, clear_image_cache)
14240 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14241 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14242 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14243 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
14244 (init_image_func_pointer, image_load_quartz2d)
14245 (struct ct_color, init_color_table, free_color_table)
14246 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14247 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14248 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14249 (x_disable_image, x_build_heuristic_mask)
14250 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14251 (TIFF support, GIF support, Ghostscript support): Consolidate image
14252 code from xfns.c, w32fns.c, and macfns.c.
14253 (syms_of_image): Consolidate image related symbol setup here.
14254 (init_image): Consolidate image related initializations here.
37264101 14255
c0f97789
KS
14256 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
14257 and init_image. Remove call to init_xfns.
14258
37264101
SM
14259 * macterm.h (struct mac_bitmap_record): Add file member.
14260 Not currently used, but simplifies code sharing.
c0f97789
KS
14261
14262 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14263 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14264 (x_reference_bitmap, x_create_bitmap_from_data)
14265 (x_create_bitmap_from_file, x_destroy_bitmap)
14266 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14267 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14268 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14269 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14270 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14271 (define_image_type, lookup_image_type, valid_image_p)
14272 (image_error, enum image_value_type, struct image_keyword)
14273 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14274 (make_image, free_image, prepare_image_for_display, image_ascent)
14275 (four_corners_best, image_background, image_background_transparent)
9dd28cae 14276 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
14277 (make_image_cache, free_image_cache, clear_image_cache)
14278 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14279 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14280 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14281 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
14282 (init_image_func_pointer, image_load_quartz2d)
14283 (struct ct_color, init_color_table, free_color_table)
14284 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14285 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14286 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14287 (x_disable_image, x_build_heuristic_mask)
14288 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14289 (TIFF support, GIF support, Ghostscript support): Merge with image
14290 code from xfns.c and macfns.c into image.c.
14291 (syms_of_xfns): Move image related symbols to image.c.
14292 (init_external_image_libraries, init_xfns): Remove; initialization
14293 moved to init_image in image.c.
14294
14295 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14296 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14297 (x_reference_bitmap, x_create_bitmap_from_data)
14298 (x_create_bitmap_from_file, x_destroy_bitmap)
14299 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14300 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14301 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14302 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14303 (define_image_type, lookup_image_type, valid_image_p)
14304 (image_error, enum image_value_type, struct image_keyword)
14305 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14306 (make_image, free_image, prepare_image_for_display, image_ascent)
14307 (four_corners_best, image_background, image_background_transparent)
9dd28cae 14308 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
14309 (make_image_cache, free_image_cache, clear_image_cache)
14310 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14311 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14312 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14313 (struct ct_color, init_color_table, free_color_table)
14314 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14315 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14316 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14317 (x_disable_image, x_build_heuristic_mask)
14318 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14319 (TIFF support, GIF support, Ghostscript support): Merge with image
14320 code from xfns.c and macfns.c into image.c.
14321 (syms_of_xfns): Move image related symbols to image.c.
14322 (init_external_image_libraries, init_xfns): Remove; initialization
14323 moved to init_image in image.c.
14324
14325 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14326 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14327 (x_reference_bitmap, x_create_bitmap_from_data)
14328 (x_create_bitmap_from_file, x_destroy_bitmap)
14329 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14330 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14331 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14332 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14333 (define_image_type, lookup_image_type, valid_image_p)
14334 (image_error, enum image_value_type, struct image_keyword)
14335 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14336 (make_image, free_image, prepare_image_for_display, image_ascent)
14337 (four_corners_best, image_background, image_background_transparent)
9dd28cae 14338 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
14339 (make_image_cache, free_image_cache, clear_image_cache)
14340 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14341 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14342 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14343 (struct ct_color, init_color_table, free_color_table)
14344 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14345 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14346 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14347 (x_disable_image, x_build_heuristic_mask)
14348 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14349 (TIFF support, GIF support, Ghostscript support): Merge with
14350 w32fns.c and macfns.c image code into image.c.
14351 (syms_of_xfns): Move image related symbols to image.c.
14352 (init_xfns): Remove; initialization moved to init_image in image.c.
14353
14354 * lisp.h (syms_of_image, init_image): Add protoypes.
14355 (init_xfns): Remove prototype.
14356
14357 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14358 (x_reference_bitmap, x_create_bitmap_from_data)
14359 (x_create_bitmap_from_file, x_destroy_bitmap)
14360 (x_create_bitmap_mask): Move prototypes from dispextern.h.
14361 (gamma_correct) [MAC_OS]: Add prototype.
14362
14363 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14364 (x_reference_bitmap, x_create_bitmap_from_data)
14365 (x_create_bitmap_from_file, x_destroy_bitmap)
14366 (x_create_bitmap_mask): Move prototypes to dispextern.h.
14367
6eced09c
KH
143682004-03-09 Kenichi Handa <handa@etlken2>
14369
14370 * coding.c (decode_coding_emacs_mule): Handle insufficent source
14371 correctly.
14372
9a7e95f3
RS
143732004-03-04 Richard M. Stallman <rms@gnu.org>
14374
04a6e76b
RS
14375 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
14376
9a7e95f3
RS
14377 * window.c (Fdisplay_buffer): Doc fix.
14378
14379 * buffer.c (Fpop_to_buffer): Doc fix.
14380
6c2488df
KS
143812004-03-03 Kim F. Storm <storm@cua.dk>
14382
14383 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
14384
d8d95bc7
SM
143852004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
14386
14387 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
14388
357589bf
RS
143892004-03-02 Richard M. Stallman <rms@gnu.org>
14390
14391 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
14392
409949b5
KH
143932004-03-02 Kenichi Handa <handa@m17n.org>
14394
14395 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
14396
d24bc50f
KS
143972004-03-02 Kim F. Storm <storm@cua.dk>
14398
14399 * window.h (struct window): New member overlay_arrow_bitmap.
14400
14401 * window.c (make_window): Initialize overlay_arrow_bitmap.
14402
14403 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
14404 implement and integrate multiple overlay arrows with redisplay.
14405 (syms_of_xdisp): DEFVAR_LISP and initialize it.
14406 (last_arrow_position, last_arrow_string): Replace by properties.
14407 (Qlast_arrow_position, Qlast_arrow_string)
14408 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
14409 (syms_of_xdisp): Intern and staticpro them.
14410 (overlay_arrow_string_or_property, update_overlay_arrows)
14411 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
14412 (overlay_arrow_at_row): New functions for multiple overlay arrows.
14413 (redisplay_internal): Use them instead of directly accessing
14414 Voverlay_arrow_position etc. for multiple overlay arrows.
14415 (mark_window_display_accurate): Use update_overlay_arrows.
14416 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
14417 (try_window_id): Use overlay_arrows_changed_p.
14418 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
14419 (display_line): Use overlay_arrow_at_row to check multiple
14420 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 14421 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
14422 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
14423 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
14424
14425 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
14426 (update_window_fringes): Remove unused code.
14427
c1464661
JR
144282004-03-01 Jason Rumney <jasonr@gnu.org>
14429
14430 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
14431
a64387ee
JB
144322004-03-01 Juanma Barranquero <lektu@terra.es>
14433
14434 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
14435
14436 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
14437
334faa08
JD
144382004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14439
14440 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
14441 how many colors can be displayed.
14442
bb62616f
KH
144432004-03-01 Kenichi Handa <handa@m17n.org>
14444
14445 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
14446 correctly.
14447
0fd16104
KS
144482004-02-28 Kim F. Storm <storm@cua.dk>
14449
14450 * dispnew.c (update_window): Update header line also if there are
14451 no other changes in window (move code after set_cursor label).
14452
14453 * lisp.h (mark_window_display_accurate): Remove prototype.
14454
14455 * window.c (window_loop, Fforce_window_update): Force mode line
14456 updates by setting prevent_redisplay_optimizations_p and
14457 update_mode_lines.
14458
b59dd9c8
JD
144592004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14460
d8d95bc7 14461 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
14462
14463 * xterm.c (x_calc_absolute_position): Call x_real_positions
14464 to get WM window sizes and use those to calculate position.
d8d95bc7 14465 (x_set_offset): Remove code commented out.
b59dd9c8 14466
a874691c
MB
144672004-02-28 Miles Bader <miles@gnu.org>
14468
14469 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
14470
3e0c6482
KS
144712004-02-28 Kim F. Storm <storm@cua.dk>
14472
14473 * keyboard.c (kbd_buffer_store_event_hold): New function to store
14474 an event into kbd fifo, but with special handling of quit event;
14475 a quit event is saved for later, and further events are discarded
14476 until the saved quit event has been processed.
14477 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
14478 (gen_help_event): Store help event in kbd fifo.
14479 (NREAD_INPUT_EVENTS): Remove.
14480 (read_avail_input): Adapt to new read_socket_hook interface.
14481 Remove allocation and initialization of local input_event buffer,
14482 as read_socket_hook stores events directly in fifo. Allocate and
14483 initialize local hold_quit event to handle postponed quit event
14484 (and store it if set by kbd_buffer_store_event_hold).
14485
14486 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
14487 (gen_help_event): Fix prototype.
14488
a64387ee 14489 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 14490 numcharsp args. Add hold_quit arg.
f63fd14e 14491 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
14492 directly in fifo using kbd_buffer_store_event_hold.
14493
14494 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
14495 (read_input_waiting): Adapt to new read_socket_hook interface.
14496 Remove allocation and initialization of local input_event buffer,
14497 as read_socket_hook stores events directly in fifo. Allocate and
14498 initialize local hold_quit event to handle postponed quit event
14499 (and store it if set by kbd_buffer_store_event_hold).
14500
a64387ee 14501 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
14502
14503 * termhooks.h (read_socket_hook): Fix prototype.
14504
14505 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
14506 numcharsp args. Add hold_quit arg.
f63fd14e 14507 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
14508 directly in fifo using kbd_buffer_store_event_hold.
14509
14510 * w32inevt.h (w32_console_mouse_position): Fix prototype.
14511
14512 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
14513 Add hold_quit arg. Rework to use just one, local, inev
14514 input_event. Store inev directly in fifo using
3e0c6482
KS
14515 kbd_buffer_store_event_hold. Update count in one place.
14516 Postpone call to gen_help_event until inev is stored; use new
14517 local do_help for this.
14518 Remove local emacs_event in handing of ButtonPress event; just use
14519 inev instead (so no reason to copy it later).
14520
14521 * xsmfns.c (x_session_check_input): Remove numchars arg.
14522
d8d95bc7
SM
14523 * xterm.c (x_focus_changed, x_detect_focus_change):
14524 Remove numchars arg. Always store event into bufp arg.
14525 Return nothing. Callers changed accordingly.
3e0c6482
KS
14526 (glyph_rect): Simplify.
14527 (STORE_KEYSYM_FOR_DEBUG): New macro.
14528 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
14529 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
14530 (current_hold_quit) [USE_GTK]: Add.
14531 (event_handler_gdk): Adapt to new handle_one_xevent.
14532 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
14533 Add hold_quit arg. Rework to use just one, local, inev
14534 input_event. Store inev directly in fifo using
3e0c6482
KS
14535 kbd_buffer_store_event_hold. Update count in one place.
14536 Postpone call to gen_help_event until inev is stored; use new
14537 local do_help for this.
14538 Simplify handling of keysyms (consolidate common code). Fix bug
14539 where count was updated with nchars instead of nbytes.
14540 Remove local emacs_event in handing of ButtonPress event; just use
14541 inev instead (so no reason to copy it later).
14542 Remove `out' label. Rename label `ret' to `done'; add various
14543 `goto done' to clarify code flow in deeply nested blocks.
14544 (x_dispatch_event): Simplify as handle_one_xevent now calls
14545 kbd_buffer_store_event itself.
f63fd14e 14546 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
14547 arg. Call handle_one_xevent with new arglist. Store event from
14548 x_session_check_input in fifo.
14549 [USE_GTK]: Setup current_hold_quit.
14550 Decrement handling_signal before unblocking input.
14551 (x_initialize) [USE_GTK]: Initialize current_count.
14552
14553 * xterm.h (x_session_check_input): Fix prototype.
14554
e3564461 145552004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 14556
d8d95bc7 14557 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 14558
e3564461
ST
14559 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
14560 macgui.h).
a64387ee 14561
e3564461 14562 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 14563
e3564461
ST
14564 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
14565 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
14566 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
14567 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
14568 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
14569 (Bitmap): Remove typedef.
14570 (Pixmap): Change int to GWorldPtr.
14571
d8d95bc7 14572 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 14573
d8d95bc7
SM
14574 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
14575 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
14576 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
14577 long representation.
14578 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
14579 colors used for masks.
14580 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 14581
e3564461
ST
14582 * macfns.c: Include sys/types.h and sys/stat.h.
14583 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
14584 Include QuickTime/QuickTime.h.
14585 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14586 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
14587 functions defined in macterm.c.
14588 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
14589 (ZPixmap): New #define for compatibility with xfns.c.
14590 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14591 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
14592 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
14593 New functions.
e3564461 14594 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
14595 (x_destroy_x_image, unwind_create_frame, x_disable_image)
14596 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
14597 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
14598 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
14599 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
14600 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
14601 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
14602 long mixup.
14603 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
14604 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
14605 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
14606 (x_set_cursor_type, Fxw_color_values, valid_image_p)
14607 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
14608 (x_alloc_image_color, clear_image_cache, lookup_image)
14609 (x_find_image_file, xbm_read_bitmap_file_data)
14610 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
14611 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
14612 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
14613 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
14614 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 14615 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
14616 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
14617 #if 0.
14618 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
14619 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
14620 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
14621 New functions (from xfns.c).
e3564461
ST
14622 (Fx_create_frame): Record unwind_create_frame.
14623 (Fxw_display_color_p): Use dpyinfo->color_p.
14624 (Fx_display_grayscale_p, Fx_display_planes): Don't use
14625 dpyinfo->n_cbits.
14626 (Fx_display_color_cells): Use dpyinfo->n_planes;
14627 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
14628 (Qheuristic, cross_disabled_images, emboss_matrix)
14629 (laplace_matrix): New variables (from xfns.c).
14630 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
14631 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
14632 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
14633 (image_background_transparent): New function (from xfns.c).
14634 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
14635 (image_load_quicktime): Add declaration.
14636 [MAC_OSX] (image_load_quartz2d): Likewise.
14637 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
14638 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 14639 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
14640 (xbm_load_image_from_file, x_laplace_read_row)
14641 (x_laplace_write_row, pbm_read_file): Remove functions.
14642 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
14643 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
14644 (colors_in_color_table): Sync with xfns.c (although not used).
14645 (lookup_rgb_color): Don't lookup color table. Just do gamma
14646 correction.
14647 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
14648 (x_disable_image): New function (from xfns.c).
14649 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
14650 (x_build_heuristic_mask): Sync with xfns.c.
14651 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
14652 (HAVE_PBM): Remove #ifdef.
14653 (pbm_load): Sync with xfns.c. Set img->width and img->height
14654 before IMAGE_BACKGROUND.
d8d95bc7 14655 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
14656 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
14657 Don't enclose with #if HAVE_PNG.
14658 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
14659 symbol _CGImageCreateWithPNGDataProvider is defined.
14660 Otherwise use image_load_quicktime.
e3564461 14661 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
14662 [HAVE_PNG] (png_load): Sync with xfns.c.
14663 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
14664 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
14665 HAVE_JPEG.
14666 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
14667 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
14668 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
14669 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
14670 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
14671 (tiff_image_p, tiff_load): Don't enclose declarations with #if
14672 HAVE_TIFF.
14673 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
14674 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
14675 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
14676 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
14677 New functions (from xfns.c).
e3564461 14678 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 14679 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
14680 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
14681 Don't enclose with #if HAVE_GIF.
14682 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
14683 animated gif. Otherwise use image_load_quicktime.
14684 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
14685 gif_DrawText to avoid conflict with QuickdrawText.h.
14686 [HAVE_GIF] (gif_load): Sync with xfns.c.
14687 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
14688 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
14689 Ghostscript is not supported yet).
14690 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
14691 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
14692 cross_disabled_images (from xfns.c). Remove #if 0 for supported
14693 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
14694 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
14695 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
14696 HAVE_PNG. Call EnterMovies to support animated gifs.
14697 Call init_image_func_pointer to bind a symbol
e3564461 14698 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 14699
d8d95bc7 14700 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
14701 (x_draw_bar_cursor): Sync declaration with xterm.c.
14702 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
14703 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
14704 graphics).
14705 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
14706 (mac_draw_line_to_pixmap, XCreatePixmap)
14707 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
14708 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
14709 New functions.
14710 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
14711 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
14712 Cast bits to char *.
e3564461
ST
14713 (reflect_byte): New function (from w32fns.c).
14714 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
14715 due to byte alignment.
d8d95bc7
SM
14716 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
14717 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
14718 (XSetForeground): Remove static (now used in macfns.c).
14719 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
14720 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
14721 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
14722 (x_draw_glyph_string_box, x_draw_image_foreground)
14723 (x_draw_image_foreground_1, x_draw_image_glyph_string)
14724 (x_draw_stretch_glyph_string, x_draw_glyph_string)
14725 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
14726 Sync with xterm.c.
14727 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
14728 than the xterm.c version when a strictly horizontal or vertical
14729 line is drawn.
14730 (XTset_terminal_window): Add static.
14731 (x_make_frame_visible): Add UNBLOCK_INPUT.
14732 (x_free_frame_resources): New funcion (from xterm.c).
14733 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
14734 occurs in tool bar area.
d8d95bc7
SM
14735 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
14736 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
14737 Initialize image cache.
14738 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
14739 Enclose unused functions with #if 0.
14740 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
14741 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 14742 from a mac font name to an XLFD font name according to its script code.
e3564461 14743 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 14744 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
14745 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
14746 whose name starts with `.'.
14747 (init_font_name_table): Use decode_mac_font_name. Add both
14748 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
14749 of a font is smJapanese.
14750 (mac_do_list_fonts): New function to list fonts that match a given
14751 pattern.
14752 (x_list_fonts, XLoadQueryFont): Use it.
14753 (XLoadQueryFont): Set rbearing field for each variable width
14754 character to avoid needless redraw.
14755 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
14756
446f5f3d
KS
147572004-02-26 Kim F. Storm <storm@cua.dk>
14758
af617d0f
KS
14759 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
14760 as read_socket_hook handler on X aborts if buffer is too small
14761 and W32 handler doesn't always check buffer limit.
14762
446f5f3d
KS
14763 * xdisp.c (handle_single_display_prop): Handle left-fringe and
14764 right-fringe similar to a display margin image. Specifically,
14765 the characters having the fringe prop are no longer shown, and
14766 we use IT_IMAGE/next_element_from_image with image_id = -1 to
14767 do this. Set fringe bitmap face_id in it->face_id.
14768 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
14769 still realize it->face (i.e. the fringe bitmap face).
14770
7d8a0b55
MB
147712004-02-25 Miles Bader <miles@gnu.org>
14772
14773 * xdisp.c (check_it): Check string/string_pos consistency.
14774 (init_iterator): Initialize string-related fields properly.
14775
147762004-02-11 Miles Bader <miles@gnu.org>
14777
14778 * xdisp.c (produce_image_glyph): Force negative descents to zero.
14779
147802004-02-10 Miles Bader <miles@gnu.org>
14781
14782 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
14783 BLOCK_INPUT can be nested, so it doesn't make much sense.
14784
a64387ee 147852004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
14786
14787 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
14788 (xbm_read_bitmap_data): Use unsigned char for image data.
14789
92f5fba2
LT
147902004-02-23 Luc Teirlinck <teirllm@auburn.edu>
14791
14792 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
14793
8565fb3d
JR
147942004-02-22 Jason Rumney <jasonr@gnu.org>
14795
14796 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
14797 correctly over other bitmaps.
14798
a6eeaa81 147992004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
14800
14801 * emacs.c (USAGE1): Split into two halves.
14802 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
14803 (USAGE3): Rename from USAGE2.
14804 (USAGE4): Rename from USAGE3.
f8125c39 14805
4effffca
EZ
148062004-02-21 Juri Linkov <juri@jurta.org>
14807
14808 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
14809 Fix --multibyte. Move --help, --version to USAGE2. Add alias
14810 --file. Fix -f, -l. Sort options. Untabify.
14811 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
14812
923c1e6f
LT
148132004-02-19 Luc Teirlinck <teirllm@auburn.edu>
14814
14815 * category.c (Fdefine_category, Fcategory_docstring)
14816 (Fget_unused_category, Fset_category_table)
14817 (Fcategory_set_mnemonics): Doc fixes.
14818
b0e225fd
KS
148192004-02-20 Kim F. Storm <storm@cua.dk>
14820
14821 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
14822 The following changes are relative to the 2004-01-21 revision.
14823 (NREAD_INPUT_EVENTS): Define as max number of input events to read
14824 in one call to read_socket_hook. Value is 8.
14825 (read_avail_input): Separate and rework handling of read_socket_hook
14826 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
14827 in read_socket_hook case, and repeat if full buffer is read.
14828 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
14829 In non-read_socket_hook case, just use a single input_event, and
14830 call kbd_buffer_store_event on the fly for each character.
14831
b15aa9f9
SM
148322004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14833
14834 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
14835 Remove unused `gu' alternative.
14836
83c9aa95
AS
148372004-02-19 Andreas Schwab <schwab@suse.de>
14838
14839 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
14840 warning.
14841
cc808173
KS
148422004-02-18 Kim F. Storm <storm@cua.dk>
14843
14844 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
14845 Fix last change.
14846
ab90a54d
KS
148472004-02-17 Kim F. Storm <storm@cua.dk>
14848
b26f249f
KS
14849 * xdisp.c (fast_find_position): Fix return value of new version;
14850 it was inverted compared to the 21.1 version.
14851 (get_window_cursor_type): Don't look at glyph if NULL.
14852 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 14853
ab90a54d
KS
14854 * keyboard.c: Rework previous change; it didn't consider that the
14855 buf array was allocated on the stack.
14856 (prev_read): Remove variable.
14857 (read_avail_input_buf): New static event buffer array.
b9568dfc 14858 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 14859 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
14860 Use in_read_avail_input to handle re-entrance; when re-entered,
14861 fully initialize and use tmp_buf array instead of read_avail_input_buf.
14862 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
14863 is always cleared on entry. To ensure that, we clear (just) the
14864 entries that were used before we return.
14865 (init_keyboard): Initialize read_avail_input_buf here.
14866
b6189c3b 148672004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
14868
14869 * cmds.c (Fend_of_line): Doc fix.
14870
7b5368c1
EZ
148712004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
14872
14873 * keyboard.c (prev_read): New static variable.
14874 (read_avail_input): Use it to zero out only those slots in buf[]
14875 that were used last time we were called.
14876
a6eeaa81 148772004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
14878
14879 * Makefile.in (obj): Move fringe.o from here...
14880 (XOBJ, MAC_OBJ): ...to here.
14881
159c348e
SE
148822004-02-16 Stephen Eglen <stephen@gnu.org>
14883
14884 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
14885
d2f14999
SM
148862004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
14887
b15aa9f9
SM
14888 * data.c (Fbyteorder):
14889 * fringe.c (Fdefine_fringe_bitmap):
14890 * xdisp.c (handle_single_display_prop):
d2f14999
SM
14891 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
14892
8d50508a
JR
148932004-02-16 Jason Rumney <jasonr@gnu.org>
14894
14895 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
14896
dd4497dc
ST
148972004-02-15 Steven Tamm <steventamm@mac.com>
14898
14899 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
14900 controlling emulation of a three button mouse with option and
14901 command keys.
7e26f91b 14902 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 14903 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 14904
c9159cb3
KS
149052004-02-15 Kim F. Storm <storm@cua.dk>
14906
2cc52658
KS
14907 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
14908
c9159cb3
KS
14909 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
14910 Perform byte-swapping.
14911
12fde2dc
KS
149122004-02-14 Kim F. Storm <storm@cua.dk>
14913
14914 * dispextern.h (struct draw_fringe_bitmap_params): Change member
14915 bits from char to short to facilitate wider bitmaps.
14916 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
14917 member.
14918
14919 * fringe.c (struct fringe_bitmap): Change member bits from char to
14920 short to facilitate 16 bits wide bitmaps. Modify all standard
14921 bitmaps accordingly.
14922 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
14923 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
14924 (draw_fringe_bitmap): Ditto.
14925 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
14926 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
14927 handle up to 16 bits wide bitmaps.
14928 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 14929 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
14930
14931 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
14932 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
14933 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
14934
14935 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
14936 so it is no longer necessary to expand them here.
14937
14938 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
14939
9d7271e8
KS
149402004-02-12 Kim F. Storm <storm@cua.dk>
14941
14942 * window.c (Fwindow_fringes): Doc fix.
14943
706c1e4f
JD
149442004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14945
14946 * xselect.c (x_get_foreign_selection): Add new optional parameter
14947 time_stamp.
14948 (Fx_get_selection_internal): Ditto, pass time_stamp to
14949 x_get_foreign_selection.
14950
14951 * data.c (Fbyteorder): New function.
14952
c2d12b5d
JD
149532004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14954
14955 * atimer.c: Move include stdio.h to same place as in other files.
14956
14957 * region-cache.c: Ditto.
14958
14959 * sysdep.c: Ditto.
14960
14961 * xfaces.c: Ditto.
14962
4c1947b9
SS
149632004-02-09 Sam Steingold <sds@gnu.org>
14964
89458937 14965 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 14966
82722af3
KS
149672004-02-09 Kim F. Storm <storm@cua.dk>
14968
14969 * fringe.c: New file. Move original fringe related declarations
14970 and code from dispextern.h and xdisp.c here.
14971 Rework code to support user defined fringe bitmaps, redefining
14972 standard bitmaps, ability to overlay user defined bitmap with
14973 overlay arrow bitmap, and add faces to bitmaps.
14974 (Voverflow_newline_into_fringe): Declare here.
14975 (enum fringe_bitmap_align): New enum.
14976 (..._bits): All bitmaps are now defined without bitswapping; that
14977 is now done in init_fringe_once (if necessary).
14978 (standard_bitmaps): New array with specifications for the
14979 standard fringe bitmaps.
14980 (fringe_faces): New array.
14981 (valid_fringe_bitmap_id_p): New function.
14982 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
14983 (draw_fringe_bitmap): New function which draws fringe bitmap,
14984 possibly overlaying bitmap with cursor in right fringe or the
14985 overlay arrow in the left fringe.
14986 (update_window_fringes): Do not handle overlay arrow here.
14987 Compare and copy fringe bitmap faces.
14988 (init_fringe_bitmap): New function.
14989 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
14990 define and destroy user defined fringe bitmaps.
14991 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
14992 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
14993 (syms_of_fringe): New function. Defsubr new DEFUNs.
14994 DEFVAR_LISP Voverflow_newline_into_fringe.
14995 (init_fringe_once, init_fringe): New functions.
14996 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 14997
82722af3
KS
14998 * Makefile.in (obj): Add fringe.o.
14999 (fringe.o): New dependencies.
15000
15001 * dispextern.h (FRINGE_ID_BITS): New definition for number of
15002 bits allocated to hold a fringe number. Increase number of bits
15003 from 4 to 8 to allow user defined fringe bitmaps.
15004 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
15005 left_user_fringe_face_id, right_user_fringe_bitmap,
15006 right_user_fringe_face_id.
15007 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
15008 Move to new file fringe.c.
15009 (MAX_FRINGE_BITMAPS): Define here.
15010 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
15011 and overlay_p. Change member which to int.
15012 (struct redisplay_interface): New members define_fringe_bitmap
15013 and destroy_fringe_bitmap.
15014 (valid_fringe_bitmap_id_p): Add prototype.
15015 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
15016
15017 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
15018 arrows.
15019 (update_frame): Do flush_display if force_flush_display_p to
15020 ensure display (specifically fringes) are updated in a timely
15021 manner when resizing the frame by dragging the mouse.
15022 (update_window_line): Update row if overlay arrow changed.
15023 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
15024 or overlay arrow changed.
15025
15026 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
15027 syms_of_fringe, and init_fringe.
15028
15029 * frame.h (struct frame): New member force_flush_display_p.
15030
15031 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
15032 Add prototypes.
15033
a3993cc8 15034 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 15035 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
15036 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
15037 Use cursor color for displaying cursor in fringe.
82722af3
KS
15038 (x_redisplay_interface): Add null handlers for
15039 define_fringe_bitmap and destroy_fringe_bitmap functions.
15040
15041 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
15042 xterm.c to handle overlayed fringe bitmaps and to use cursor color
15043 for displaying cursor in fringe.
15044 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
15045 specific functions to define and destroy fringe bitmaps in fringe_bmp.
15046 (w32_redisplay_interface): Add them to redisplay_interface.
15047 (w32_term_init): Call w32_init_fringe instead of explicitly
15048 defining fringe bitmaps in fringe_bmp array.
15049 (x_delete_display): Call w32_reset_fringes instead of explicitly
15050 destroying fringe bitmaps in fringe_bmp array.
15051
15052 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
15053 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
15054 (continued_bits, continuation_bits, ov_bits, first_line_bits)
15055 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
15056 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
15057 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
15058 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
15059 Move fringe handling vars and code to new file fringe.c.
15060 (handle_display_prop): Handle left-fringe and right-fringe
15061 display properties; store user fringe bitmaps in iterator.
15062 (move_it_in_display_line_to): Handle cursor in fringe at eob.
15063 (clear_garbaged_frames): Set force_flush_display_p if resized.
15064 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
15065 (display_line): Handle cursor in fringe at eob.
15066 (display_line): Set row user fringe bitmaps from iterator.
15067
15068 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
15069 Use cursor color for displaying cursor in fringe.
15070 (x_redisplay_interface): Add null handlers for
15071 define_fringe_bitmap and destroy_fringe_bitmap functions.
15072
030400eb
JD
150732004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15074
15075 * macfns.c (Fx_change_window_property): Make doc string and
15076 parameters same as for X version.
15077
15078 * w32fns.c (Fx_change_window_property): Ditto.
15079
3af55251
KS
150802004-02-07 Kim F. Storm <storm@cua.dk>
15081
ec110e9e
KS
15082 * xdisp.c (hscroll_window_tree): Position cursor near to right
15083 margin in hscrolled window when jumping to end of line (rather
15084 than centering cursor).
15085
3af55251
KS
15086 * process.c (wait_reading_process_input): Don't do adaptive read
15087 buffering if waiting for a specific process.
15088
b0c138ce
LT
150892004-02-05 Luc Teirlinck <teirllm@auburn.edu>
15090
15091 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
15092 (Fread_minibuffer, Feval_minibuffer)
15093 (Fread_string, Fread_no_blanks_input)
15094 (Fcompleting_read): Doc fixes.
15095 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
15096 completion-regexp-list. Define Qcase_fold_search and staticpro it.
15097 (read_minibuf): Fix initial comment.
15098 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 15099 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
15100 checking completion-regexp-list.
15101 (Fdisplay_completion_list): Make it handle arguments that are
15102 symbols. Doc fix.
15103
9676f5ad 151042004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 15105
9676f5ad 15106 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 15107
9676f5ad
JD
15108 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
15109 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 15110 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 15111 format. Remove unused variable cons.
5b698285 15112
9dd28cae 15113 * xselect.c: Include stdio.h.
5b698285 15114
fc1d15f6
KH
151152004-02-05 Kenichi Handa <handa@m17n.org>
15116
ebaff4af
KH
15117 * fns.c (Fset_char_table_range): Fix previous change.
15118
fc1d15f6
KH
15119 * buffer.c (Fset_buffer_multibyte): Fix docstring.
15120
9676f5ad
JD
151212004-02-04 Luc Teirlinck <teirllm@auburn.edu>
15122
15123 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
15124
da75761f
SM
151252004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
15126
15127 * keymap.c (Vmouse_events): Rename from Vmenu_events.
15128 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
15129
13c5d120
KH
151302004-02-04 Kenichi Handa <handa@m17n.org>
15131
15132 * fns.c (Fset_char_table_range): Handle charsets ascii,
15133 eight-bit-control, and eight-bit-graphic correctly.
15134
2883d842
JR
151352004-02-03 Jason Rumney <jasonr@gnu.org>
15136
15137 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
15138
15139 * w32fns.c (x_to_w32_font): Likewise.
15140
69eff41f
JD
151412004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15142
15143 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
15144 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
15145
15146 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
15147 ClientMessages.
15148
14a56a1b 15149 * xselect.c: Include termhooks.h and X11/Xproto.h.
69eff41f
JD
15150 (x_check_property_data, x_fill_property_data)
15151 (x_property_data_to_lisp, mouse_position_for_drop)
15152 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 15153 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
15154 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
15155
14a56a1b 15156 * xfns.c (x-send-client-message): Move to xselect.c.
69eff41f
JD
15157 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
15158 OUTER_P.
15159 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
15160 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
15161 if vector_ret_p is true.
15162 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 15163
a6eeaa81 151642004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
15165
15166 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
15167 basename of FILE relative to it, not FILE itself.
15168
09721b31
KH
151692004-02-02 Kenichi Handa <handa@m17n.org>
15170
15171 * coding.c (coding_restore_composition): Check invalid
15172 composition data more rigidly.
15173
eb996101
LT
151742004-01-30 Luc Teirlinck <teirllm@auburn.edu>
15175
15176 * fileio.c (Fread_file_name_internal): Correctly handle the case
15177 where insert-default-directory is nil.
15178 (Fread_file_name): Always return an empty string if the user exits
15179 with an empty minibuffer. Adapt the docstring accordingly.
15180 (syms_of_fileio): Adapt the docstring of insert-default-directory
15181 to the change in Fread_file_name.
15182
a6eeaa81 151832004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
15184
15185 * alloca.c [!alloca]: Fix the prototype for xfree.
15186
13f52ed8
KH
151872004-01-29 Kenichi Handa <handa@m17n.org>
15188
15189 * fns.c (string_char_to_byte): Optimize for ASCII only string.
15190 (string_byte_to_char): Likewise.
15191
d57625a0
JR
151922004-01-28 Peter Runestig <peter@runestig.com>
15193
15194 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
15195
a64387ee 151962004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
15197
15198 * unexmacosx.c (unexec_copy): Do not copy more than was
15199 requested to prevent overwriting during unexec.
15200
eb37b8fd
JD
152012004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15202
ce38070a
JD
15203 * process.c (sigchld_handler): Add comment about not calling malloc.
15204
eb37b8fd
JD
15205 * process.h: Add extern to synch_process_termsig.
15206
a64387ee 152072004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 15208
da75761f
SM
15209 * macterm.c (make_mac_frame, make_mac_terminal_frame):
15210 Move setting of scroll bars from make_mac_frame to
15211 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 15212
d62a265d
RS
152132004-01-26 Richard M. Stallman <rms@gnu.org>
15214
15215 * search.c (Freplace_match): Handle nonexistent
15216 back-references properly.
15217
152182004-01-03 Richard M. Stallman <rms@gnu.org>
15219
15220 * window.c (decode_any_window): New function.
15221 (Fwindow_height, Fwindow_width, Fwindow_edges)
15222 (Fwindow_pixel_edges, Fwindow_inside_edges)
15223 (Fwindow_inside_pixel_edges): Use decode_any_window.
15224
ff236419
JD
152252004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15226
15227 * process.h: synch_process_termsig new variable.
15228
15229 * callproc.c: Define synch_process_termsig.
15230 (Fcall_process): Initiate synch_process_termsig to zero and
15231 check if non-zero and get signal name after subprocess has ended.
15232
15233 * process.c (sigchld_handler): Set synch_process_termsig
15234 if terminated by a signal. synch_process_death setting removed.
15235
15236 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
15237
41b867ea
AS
152382004-01-26 Andreas Schwab <schwab@suse.de>
15239
15240 * print.c (print_preprocess): Declare size as EMACS_INT to not
15241 lose bits.
15242 (print_object): Likewise.
15243 * alloc.c (Fpurecopy): Likewise.
15244
a08084ff
LT
152452004-01-25 Luc Teirlinck <teirllm@auburn.edu>
15246
15247 * window.c (Fwindow_minibuffer_p): Doc fix.
15248
b19ac475
JY
152492004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
15250
15251 * editfns.c (Fformat): Make both passes accept the same set of flags.
15252
fe905025
KH
152532004-01-23 Kenichi Handa <handa@m17n.org>
15254
15255 * fns.c (Fmd5): If OBJECT is a buffer different from the current
15256 one, set buffer to OBJECT temporarily.
15257
438fc6c0
SM
152582004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
15259
455316e2
SM
15260 * keyboard.c (kbd_buffer_gcpro): Remove.
15261 (kbd_buffer_store_event, clear_event, Fdiscard_input)
15262 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
15263 Don't initialize and/or maintain the variable any more. It was made
15264 redundant by my commit of 2003-06-15.
15265
438fc6c0
SM
15266 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
15267
5335a4ee
JD
152682004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15269
15270 * lisp.h: Add undef DECL_ALIGN.
15271
dcdaeebc
SM
152722004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
15273
15274 * process.c (wait_reading_process_input) [SYNC_INPUT]:
15275 Check interrupt_input_pending explicitly.
15276
15277 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
15278
15279 * keyboard.c (handle_async_input): New fun,
15280 extracted from input_available_signal.
15281 (input_available_signal, reinvoke_input_signal): Use it.
15282
9076a823
SM
152832004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
15284
d7107586
SM
15285 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
15286
15287 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
15288 manipulation macros for when tags are in the lower bits.
15289 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
15290 (DECL_ALIGN): New macro.
15291 (DEFUN): Use it.
15292
15293 * lisp.h [ENABLE_CHECKING]: Don't force union type.
15294
15295 * s/darwin.h (__attribute__): Remove outdated workaround.
15296
15297 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
15298
15299 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
15300 Don't check range of malloc address.
15301 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
15302
9076a823
SM
15303 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
15304
15305 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
15306
ba029065
KH
153072004-01-19 Kenichi Handa <handa@m17n.org>
15308
15309 * fontset.c (fontset_font_pattern): Fix previous change.
15310
7af0e8d7
MB
153112004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
15312
15313 * xdisp.c (Voverflow_newline_into_fringe)
15314 (move_it_in_display_line_to, redisplay_internal)
15315 (update_window_fringes, redisplay_window, display_line, window):
15316 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
15317 that it compiles without a window-system.
15318 * dispnew.c (direct_output_for_insert, update_window): Likewise.
15319
77a9cf69
KS
153202004-01-16 Kim F. Storm <storm@cua.dk>
15321
15322 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
15323
a64387ee 15324 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
15325 buffer_local_flags for indicate_buffer_boundaries.
15326 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
15327 default- variable for it.
15328
15329 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
15330 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 15331 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
15332 overflowing newlines into right fringe.
15333 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
15334 and indicate_bottom_line_p for buffer boundaries and scrolling.
15335 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
15336 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
15337 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
15338 and HOLLOW_SQUARE_BITMAP.
15339 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
15340 Add prototypes.
15341
15342 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
15343 instead of related indicator fields.
15344 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
15345 (direct_output_for_insert): Handle exact width lines like
15346 contined lines. Call update_window_fringes.
15347 (update_window): Call update_window_fringes.
15348 (scrolling_window): Don't skip desired rows with changed bitmaps.
15349 Check if fringe bitmaps changes when assigning scrolled rows.
15350
15351 * xdisp.c (Voverflow_newline_into_fringe): New variable.
15352 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
15353 (move_it_in_display_line_to): Overflow newline into fringe for
15354 rows that are exactly as wide as the window.
15355 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
15356 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
15357 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
15358 (fringe_bitmaps): Add new bitmaps.
15359 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
15360 Select proper bitmap for cursor in fringe when appropriate.
15361 Handle alignment of bitmap to top or bottom of row.
15362 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
15363 done by update_window_fringes.
15364 (update_window_fringes, draw_window_fringes): New functions.
15365 (redisplay_internal): Call update_window_fringes in case only
15366 cursor row is updated.
15367 (redisplay_window): Call update_window_fringes.
15368 Explicitly call draw_window_fringes if redisplay was done using
15369 the current matrix or the overlay arrow is in the window.
15370 (try_window_reusing_current_matrix): Mark scrolled rows for
15371 fringe update (to update buffer-boundaries / scrolling icons).
15372 (find_last_unchanged_at_beg_row): Handle exact width lines line
15373 continued lines.
15374 (display_line): Overflow newline into fringe for rows that are
15375 exactly as wide as the window. Don't append space for newline
d7107586 15376 in this case.
77a9cf69
KS
15377 (notice_overwritten_cursor): Explicitly clear cursor bitmap
15378 in fringe as if it had been overwritten.
15379 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 15380 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
15381 void-text-area-pointer as user options.
15382 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 15383
77a9cf69
KS
15384 * xterm.c (x_update_window_end): Call draw_window_fringes.
15385 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15386 in row instead of actually drawing fringe bitmaps.
15387 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15388 (x_draw_window_cursor): Draw cursor in fringe.
15389
15390 * w32term.c (x_update_window_end): Call draw_window_fringes.
15391 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15392 in row instead of actually drawing fringe bitmaps.
15393 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15394 (w32_draw_window_cursor): Draw cursor in fringe.
15395
15396 * macterm.c (x_update_window_end): Call draw_window_fringes.
15397 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15398 in row instead of actually drawing fringe bitmaps.
15399 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15400 (mac_draw_window_cursor): Draw cursor in fringe.
15401
a633a954
JD
154022004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15403
15404 * xterm.c (handle_one_xevent): Don't handle characters that are part
15405 of an old style (XLookupString) compose sequence.
15406
80460525
KH
154072004-01-15 Kenichi Handa <handa@m17n.org>
15408
15409 * search.c (Freplace_match): Use make_multibyte_string or
15410 make_unibyte_string according to the buffer multibyteness.
15411
7fc34f85
SM
154122004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
15413
15414 * alloc.c (struct interval_block, struct string_block)
15415 (struct symbol_block, struct marker_block, live_string_p)
15416 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
15417 Better preserve alignment for objects in blocks.
15418 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
15419
15420 * lread.c (defvar_per_buffer): Remove dead declaration.
15421
15422 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
15423 space size.
15424
66070bd1
JD
154252004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15426
15427 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
15428 if a key press should pop down. Only pop down if a key is pressed
15429 outside the menu/dialog.
15430 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
15431 popup_get_selection.
15432 (create_and_show_dialog): Pass 1 for down_on_keypress to
15433 popup_get_selection.
15434
de7515d6
JD
154352004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15436
15437 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
15438 BLOCK/UNBLOCK_INPUT.
15439
160b1b50
JD
154402004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15441
15442 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
15443 specified.
15444
3a9f36e6
KH
154452004-01-08 Kenichi Handa <handa@m17n.org>
15446
15447 * editfns.c (Fformat): Fix '&' to '&&'.
15448
3803eb32
AS
154492004-01-08 Andreas Schwab <schwab@suse.de>
15450
15451 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
15452 size if PSEUDOVECTOR_FLAG is set.
15453
9da88f37
KH
154542004-01-07 Kenichi Handa <handa@m17n.org>
15455
74ac5074
KH
15456 * charset.c (Fdeclare_equiv_charset): Fix docstring.
15457
9da88f37
KH
15458 * fontset.c (fontset_ref_via_base): Fix previous change.
15459
05faee07
KS
154602004-01-07 Kim F. Storm <storm@cua.dk>
15461
15462 * process.c (read_process_output): Only activate adaptive
15463 buffering if we read less than 256 bytes at a time.
15464
634910c8
KS
154652004-01-06 Kim F. Storm <storm@cua.dk>
15466
15467 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
15468 object and image object. Return glyph width and height.
15469 (mode_line_string, marginal_area_string): Ditto.
15470
15471 * dispextern.h (buffer_posn_from_coords, mode_line_string)
15472 (marginal_area_string): Fix prototypes.
15473
15474 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 15475 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
15476 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
15477
15478 * keyboard.c (make_lispy_position): Use modified mode_line_string,
15479 buffer_posn_from_coords, and marginal_area_string functions to
15480 include both string object and image object in the lispy position.
15481 Also add actual glyph width and height to position.
15482 (read_key_sequence): Use real buffer position from mouse
15483 event to find keymap property even when click is in marginal area.
15484
15485 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
15486 mode_line_string and marginal_area_string functions to handle
15487 both string object and image object properties.
d7107586 15488
57951c2e
AS
154892004-01-06 Andreas Schwab <schwab@suse.de>
15490
15491 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
15492 character.
15493
181e6a61
AS
154942004-01-02 Andreas Schwab <schwab@suse.de>
15495
d7107586
SM
15496 * macterm.c (emacs_options, x_initialized, same_x_server):
15497 Remove unused (and duplicated) definitions.
181e6a61 15498
31e0fbdd
KS
154992004-01-02 Kim F. Storm <storm@cua.dk>
15500
15501 * process.h (struct Lisp_Process): New members for adaptive read
15502 buffering: adaptive_read_buffering, read_output_delay, and
15503 read_output_skip.
15504
15505 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
15506 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
15507 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
15508 (process_output_delay_count, process_output_skip): New vars.
15509 (Vprocess_adaptive_read_buffering): New variable.
15510 (make_process): Initialize adaptive read buffering members.
15511 (Fstart_process): Set adaptive_read_buffering member.
15512 (deactivate_process): Cleanup adaptive read buffering.
15513 (wait_reading_process_input): Temporarily omit delayed
15514 subprocesses from the set of file descriptors to read from;
15515 adjust the select timeout if we skipped any subprocesses.
15516 (read_process_output): Increase adaptive read buffering delay if
15517 we read less than a full buffer; reduce delay when we read a
15518 full buffer.
15519 (send_process): Simplify using local Lisp_Process var.
15520 Reset adaptive read buffering delay after write.
15521 (init_process): Initialize process_output_delay_count and
15522 process_output_skip.
15523 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
15524
68c6a789
JR
155252004-01-01 Jason Rumney <jasonr@gnu.org>
15526
d7107586 15527 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 15528
3f70fe82
LT
155292003-12-30 Luc Teirlinck <teirllm@auburn.edu>
15530
15531 * print.c (Ferror_message_string): Add hyperlink in the docstring
15532 to the definition of `signal' in the Elisp manual.
15533 * eval.c (Fsignal): Ditto.
15534
b6189c3b 155352003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
15536
15537 * fns.c (internal_equal): Return t for two NaN arguments.
15538
7abd90ea
RS
155392003-12-29 Richard M. Stallman <rms@gnu.org>
15540
15541 * data.c (store_symval_forwarding): Handle setting
15542 default-fill-column, etc., by changing the value in
15543 buffers that use the default.
15544
15545 * minibuf.c (Fset_minibuffer_window): Doc fix.
15546
15547 * fileio.c (choose_write_coding_system): Ignore auto_saving
15548 if using the visited file for auto saves.
15549 (Fwrite_region): Don't update SAVE_MODIFF
15550 if auto-saving in visited file.
15551
3e7cfcdc
KH
155522003-12-29 Kenichi Handa <handa@m17n.org>
15553
15554 * dispextern.h (face_font_available_p): Extern it.
15555
15556 * fontset.c (Voverriding_fontspec_alist): New variable.
15557 (lookup_overriding_fontspec): New function.
d7107586 15558 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
15559 (fontset_font_pattern): Likewise.
15560 (regulalize_fontname): New function.
15561 (Fset_fontset_font): Call regulalize_fontname.
15562 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
15563 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
15564 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
15565
15566 * xfaces.c (face_font_available_p): New function.
15567
7abd90ea
RS
155682003-12-28 Richard M. Stallman <rms@gnu.org>
15569
15570 * buffer.c (Fother_buffer): Don't crash if BUF is nil
15571 or if its name is nil.
15572
15573 * buffer.c (Fkill_buffer): Don't delete auto-save file
15574 if it's the same as the visited file.
15575
de1d1a40
LT
155762003-12-28 Luc Teirlinck <teirllm@auburn.edu>
15577
15578 * coding.c (Fcheck_coding_system): Doc fix.
15579
204fb75e
KS
155802003-12-28 Kim F. Storm <storm@cua.dk>
15581
15582 * Makefile.in (eval.o): Depend on dispextern.h.
15583
15584 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
15585 image glyph using image's ascent.
15586 (mode_line_string): Return image glyph as object clicked on.
15587 Adjust y0 for image glyph using image's ascent.
15588
15589 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
15590 (struct glyph): New members, ascent and descent. Used to save
15591 this glyph's ascent and descent, instead of having.
15592 (struct glyph): Declare member face_id using FACE_ID_BITS.
15593 (find_hot_spot): Add prototype.
15594
15595 * keyboard.c (Qimage): Remove extern (now in lisp.h).
15596 (QCmap): Declare extern.
15597 (make_lispy_position): When position is inside image hot-spot,
15598 use hot-spot element's id as posn element.
15599
15600 * lisp.h (IMAGEP): New macro to test for image object type.
15601 (Qimage): Declare extern.
15602
15603 * macfns.c (Qimage): Remove extern (now in lisp.h).
15604 (valid_image_p, parse_image_spec): Use IMAGEP macro.
15605
15606 * macterm.c (Qface, Qmouse_face): Remove unused externs.
15607
15608 * w32fns.c (Qimage): Remove extern (now in lisp.h).
15609 (valid_image_p, parse_image_spec): Use IMAGEP macro.
15610
15611 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
15612
15613 * w32term.c (Qface, Qmouse_face): Remove unused externs.
15614
15615 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
15616 pointer types.
15617 (Qrelative_width, Qalign_to): Remove unused variables.
15618 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
647b07d1
AS
15619 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
15620 maps.
15621 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
15622 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
15623 code accordingly.
204fb75e
KS
15624 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
15625 than row's ascent and height, to get sensible height on tall rows.
15626 (build_desired_tool_bar_string): Remove Qimage extern.
15627 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
15628 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
15629 image glyph is alone on the last line.
15630 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 15631 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 15632 (on_hot_spot_p): New function to check if position is inside an
d7107586 15633 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
15634 (find_hot_spot): New function to search for image hot-spot.
15635 (Flookup_image_map): New defun to search for image hot-spot.
647b07d1
AS
15636 (define_frame_cursor1): New aux function to determine frame
15637 pointer.
15638 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
15639 `pointer' text property and :pointer image property to control
15640 frame pointer shape. Detect image hot-spots for pointer and
15641 help_echo properties. Use define_frame_cursor1.
15642 (note_mouse_highlight): Use Vvoid_text_area_pointer.
15643 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
15644 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
15645 Vshow_text_cursor_in_void.
204fb75e
KS
15646
15647 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
15648
15649 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
15650 (Qimage): Remove extern (now in lisp.h).
15651 (valid_image_p, parse_image_spec): Use IMAGEP macro.
15652
15653 * xmenu.c (show_help_event): Remove unused code.
15654
15655 * xterm.c (Qface, Qmouse_face): Remove unused externs.
15656 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
15657 row's ascent and descent, to get a sensible height on tall rows.
15658
fc052137
LT
156592003-12-25 Luc Teirlinck <teirllm@auburn.edu>
15660
15661 * minibuf.c (Fcompleting_read): Undo previous change.
15662
a64387ee 156632003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
15664
15665 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
15666 Arguments GCPRO'ed in call to file name handler.
15667
56ffd194
TTN
156682003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
15669
15670 * termcap.c (tgetst1): Scan for "%pN"; if all
15671 N are continuous in [1,9], remove all "%pN".
15672
5202d23d
JD
156732003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15674
f26fab36
JD
15675 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
15676
5202d23d
JD
15677 * xfaces.c (lface_fully_specified_p): Take into account that
15678 MAC OS always have unspecified stipple.
15679
8babaa59
TTN
156802003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
15681
15682 * tparam.c (tparam1): Add handling for `%pN', which
15683 means use param N for the next substitution.
15684
2d176448
TTN
156852003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
15686
15687 * xfaces.c (Fcolor_gray_p): Fix omission bug:
15688 In case `frame' is nil, consult the selected frame.
15689 (Fcolor_supported_p): Likewise.
15690
adb0708c
LT
156912003-12-23 Luc Teirlinck <teirllm@auburn.edu>
15692
000eeb15
LT
15693 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
15694 Doc fixes.
0dc72b11
LT
15695
15696 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
15697 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
15698 (Fread_from_minibuffer): Delete code moved into read_minibuf.
15699 Doc fix.
15700 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
15701 read_minibuf.
15702 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 15703 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 15704
2e4d132b
KH
157052003-12-03 Kenichi Handa <handa@m17n.org>
15706
15707 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
15708 encoding sequence.
15709
3999c705
KH
157102003-12-01 Kenichi Handa <handa@m17n.org>
15711
15712 * composite.c (syms_of_composite): Don't make the compostion hash
15713 table week.
15714
d344ecbb
LT
157152003-11-30 Luc Teirlinck <teirllm@auburn.edu>
15716
15717 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
15718 * textprop.c (Fget_char_property_and_overlay): New function.
15719 (syms_of_textprop): Defsubr it.
15720
03d6484e
JD
157212003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15722
019b1f0e
JD
15723 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
15724 to compile on terminal configuration.
15725
03d6484e
JD
15726 * fileio.c (Fread_file_name): Check use_file_dialog also before
15727 calling Fx_file_dialog.
15728
1d1c7e75 15729 * fns.c (use_file_dialog): New variable.
03d6484e
JD
15730 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
15731
442d3fd0
KS
157322003-11-29 Kim F. Storm <storm@cua.dk>
15733
15734 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
15735 (syms_of_msdos): Don't intern and staticpro them.
15736
0f6a07a8
KS
157372003-11-27 Kim F. Storm <storm@cua.dk>
15738
15739 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
15740 coordinates relative to glyph at posn. If glyph is an image,
15741 return that as object at posn. Callers changed.
15742 (mode_line_string, marginal_area_string): Calculate and return
15743 pixel coordinates relative to glyph. Callers changed.
15744
15745 * dispextern.h (buffer_posn_from_coords, mode_line_string)
15746 (marginal_area_string): Fix prototypes.
15747 (window_box_left_offset, window_box_right_offset): Add prototypes.
15748
15749 * frame.h (get_specified_cursor_type, get_window_cursor_type):
15750 Remove prototypes.
15751
15752 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
15753
15754 * keyboard.c (make_lispy_position): Add x and y coordinates
15755 relative to the current glyph as 7th element of position.
15756 If glyph is an image, return it in the object element.
15757 (read_key_sequence): Skip checks for keymap property in cases
15758 where POSN_STRING is not a string (e.g. an image).
15759
15760 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
15761 (Vshow_text_cursor_in_void): New variable.
15762 (glyph_to_pixel_coords): Don't use negative hpos.
15763 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
15764 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 15765 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
15766 (calc_pixel_width_or_height): New aux function, implementing
15767 pixel based artihmetic for glyph widths and heights.
15768 (produce_stretch_glyph): Use calc_pixel_width_or_height for
15769 :width, :height, :align-to, and :ascent, thus allowing these to
15770 be specified in pixels as well as multiples of characters.
15771 Don't produce stretch glyphs with zero width or height.
15772 (get_specified_cursor_type): Declare static.
15773 (get_window_cursor_type): Declare static. Add glyph arg to be
15774 able to know when cursor is on an image; always substitute
15775 hollow-box cursor for filled-box cursor on images, to avoid
15776 negative images and flicker when blinking the cursor.
15777 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
15778 (note_mode_line_or_margin_highlight): Use non-text cursor rather
15779 than vertical scroll-bar cursor in display margins.
15780 (note_mouse_highlight): Use non-text cursor rather than text
15781 cursor in fringes and over images in the text area.
15782 Use non-text cursor when mouse pointer is outside editable text,
15783 i.e. in the void after end-of-line or end-of-buffer; this was
15784 already done for W32, but is now standard for all systems --
15785 user can toggle show-text-cursor-in-void to get old behaviour.
15786 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
15787 Vdisplay_pixels_per_inch.
15788
00498bfc
AS
157892003-11-25 Andreas Schwab <schwab@suse.de>
15790
15791 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
15792 EMACS_INT to not lose bits.
15793 (Ffillarray): Don't set bits beyond the size of a bool vector.
15794
edaa824d
KS
157952003-11-25 Kim F. Storm <storm@cua.dk>
15796
15797 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
15798 define this defun on systems that cannot use stderr as lvalue.
15799
74d6f539
GM
158002003-11-24 Gerd Moellmann <gerd@gnu.org>
15801
15802 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
15803 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
15804 ld's default is incompatible with unexec.
15805
6a1ff3ba
KS
158062003-11-23 Kim F. Storm <storm@cua.dk>
15807
63dc7c6b
KS
15808 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
15809 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
15810 (Fforce_window_update): New defun.
15811 (syms_of_window): Defsubr it.
15812 (Fset_window_margins, Fset_window_fringes): Doc fix.
15813
6a1ff3ba
KS
15814 * print.c (Fredirect_debugging_output): New defun.
15815 (syms_of_print): Defsubr it.
15816
aef109b7
LT
158172003-11-22 Luc Teirlinck <teirllm@auburn.edu>
15818
15819 * fns.c (Fset_char_table_parent): Doc fix.
15820
6a1ff3ba 158212003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
15822
15823 * dispnew.c (buffer_posn_from_coords): Return actual row/column
15824 for glyph clicked on, rather than (unused) pixel positions.
15825 (mode_line_string, marginal_area_string): Change X and Y args to
15826 pointers for returning actual row/column for glyph clicked on.
15827 Simplify and optimize loops.
15828
aef109b7
LT
15829 * dispextern.h (mode_line_string, marginal_area_string):
15830 Update prototypes.
63ccbe21
KS
15831
15832 * keyboard.c (make_lispy_position): New function for generating
15833 mouse click positions from frame and pixel coordinates.
15834 Enhanced to return buffer position and actual row/column for
15835 events outside the text area using updated mode_line_string and
15836 marginal_area_string functions.
15837 Return left-fringe and right-fringe clicks as such, rather than
15838 clicks in text area.
15839 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
15840 pixel_to_glyph_coords, as we never use the results.
15841 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
15842 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
15843 Eliminate unused code in WHEEL_EVENT handling.
15844 (make_lispy_movement): Use make_lispy_position.
15845
15846 * window.c (coordinates_in_window): Remove redundant tests.
15847 Fix returned X pixel value for left-margin.
15848
15849 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
15850 mode_line_string and marginal_area_string parameters.
15851
a64387ee 158522003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 15853
d7107586
SM
15854 * w32.c (struct the_group, getgrgid): Add.
15855 * mac.c (struct my_group, getgrgid): Add.
aef109b7 15856
3dbf3426
LT
158572003-11-21 Luc Teirlinck <teirllm@auburn.edu>
15858
15859 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
15860
cae8ddbb 158612003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 15862
d7107586
SM
15863 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
15864 include in call to file name handler. Optionally translate numeric
15865 UID and GID to strings. Update docstring.
15866 (directory_files_internal): Add parameter ID-FORMAT.
15867 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
15868 include in call to file name handler and call to
15869 directory_files_internal. Update Docstring.
15870 (Fdirectory_files): Add dummy parameter in call to
15871 directory_files_internal.
15872 * lisp.h (Qinteger): Add.
15873 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
15874 (Ffile_attributes): Add parameter.
15875 * data.c (Qinteger): Export.
cae8ddbb 15876
2550b848
LT
158772003-11-21 Luc Teirlinck <teirllm@auburn.edu>
15878
3dbf3426 15879 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 15880
88380018
KS
158812003-11-19 Kim F. Storm <storm@cua.dk>
15882
15883 * xdisp.c (init_iterator): Initialize it->start to position
15884 before reseating (in case start position is invisible).
15885 (init_to_row_start): Set it->start to row-start.
15886 (redisplay_window): Accept optional_new_start if start position
15887 is invisible (in which case IT_CHARPOS overshoots PT).
15888 (display_line): Setup row->start from it->start (rather than
15889 it->current which is wrong if first char on line is invisible).
15890 When done, reseat it->start to it->current (= start of next row).
15891 (expose_area): Fix exposure of text area when first char (e.g. TAB)
15892 is only partially visible.
15893
15894 * dispextern.h (struct it): New member start.
15895
854c1a59
SM
158962003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
15897
455316e2
SM
15898 * alloc.c (make_float, Fcons): Clear the markbit at init time.
15899 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
15900 of block_index outside of the macro call.
15901 (Fgarbage_collect): Remove null code.
15902
15903 * m/amdx86-64.h: Don't redefine XPNTR.
15904
854c1a59
SM
15905 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
15906 of VALMASK.
15907
15908 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
15909 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
15910 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
15911
15912 * lisp.h (VALMASK): Only define for non-union type.
15913 (MARKBIT): Remove.
15914 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
15915 (XTYPE): Define unconditionally.
15916 (XSETTYPE): Remove one more remnant.
15917 (EQ): Define differently for the union and non-union cases.
15918 (INTMASK): New bit mask.
15919 (struct Lisp_Marker): Move down to prepare for upcoming patch.
15920 (GC_EQ): Delegate to EQ.
15921
15922 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
15923
a0c6ef2d
JD
159242003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15925
15926 * xterm.c (x_window_to_scroll_bar): Move check of display to
15927 where window_id is compared.
15928
859492c4
KS
159292003-11-17 Kim F. Storm <storm@cua.dk>
15930
15931 * dispextern.h (struct it): New member first_vpos.
15932
15933 * xdisp.c (start_display): Set it->first_vpos.
15934 (try_window_id): Use first_vpos to start display in first _text_
15935 line if no reusable lines at start of window with header line.
15936
810f2256
JD
159372003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15938
7c402969 15939 * w32fns.c (XPutPixel):
854c1a59
SM
15940 * w32bdf.c (w32_init_bdf_font):
15941 * sunfns.c (sel_read):
15942 * process.c (Fmake_network_process):
15943 * frame.c (store_frame_param):
15944 * fontset.c (Fset_fontset_font):
15945 * emacs.c (shut_down_emacs):
a64387ee 15946 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 15947
a32e9bfd
JD
15948 * config.in: Regenerate.
15949
810f2256
JD
15950 * xfns.c (x_window_to_frame, x_any_window_to_frame)
15951 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
15952 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
15953 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
15954 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
15955
15956 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
15957
15958 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
15959 (XTmouse_position, handle_one_xevent): Pass Display* to
15960 x_window_to_scroll_bar.
15961 (x_window_to_scroll_bar): Take a Display* argument.
15962 Check that display for frame is equal to Display* argument.
854c1a59 15963 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
15964 x_display_info_for_display instead. Use Display in xev instead
15965 of GDK_DISPLAY.
15966 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 15967 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
15968 (x_connection_closed): Call xg_display_close for GTK.
15969 (x_term_init): Call xg_display_open for additional displays.
15970 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
15971 for GTK.
15972
15973 * xmenu.c (single_menu_item, mouse_position_for_popup)
15974 (x_activate_menubar): Formatting adjustments.
15975
15976 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
15977 adjustments.
15978
15979 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
15980 (xg_display_close, xg_create_default_cursor)
15981 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
15982 handling.
854c1a59
SM
15983 (xg_left_ptr_cursor): Remove.
15984 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
15985 cursor here.
15986 (xg_win_to_widget): Take Display* argument, call
15987 gdk_xid_table_lookup_for_display.
15988 (xg_create_frame_widgets, xg_get_file_name, create_menus)
15989 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
15990 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
15991 in FRAME_X_DISPLAY_INFO.
15992 (xg_get_scroll_id_for_window): Take Display* argument.
15993 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 15994 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 15995
78819ebb
KS
15996 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
15997 Display* argument.
15998 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 15999
0b03cc78
JD
160002003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16001
16002 * xterm.c (x_detect_focus_change): Do not change focus frame for
16003 Enter/LeaveNotify if the current focus frame has explicit focus.
16004
77e688fa
KS
160052003-11-14 Kim F. Storm <storm@cua.dk>
16006
16007 * dispnew.c (update_text_area): Fix redisplay error when hscroll
16008 is active and first glyph is only partially visible.
854c1a59 16009
dd429b03
KH
160102003-11-13 Kenichi Handa <handa@m17n.org>
16011
16012 * xdisp.c (select_frame_for_redisplay): New function.
16013 (redisplay_internal): Record also selected_frame for
16014 unwind_redisplay. Call select_frame_for_redisplay before
16015 redrawing each frame.
16016 (unwind_redisplay): Argument changed to a cons.
16017
6d9266f4
LT
160182003-11-12 Luc Teirlinck <teirllm@auburn.edu>
16019
16020 * fns.c (Fstring_to_multibyte): Doc fix.
16021
80060eb3
KH
160222003-11-11 Kenichi Handa <handa@m17n.org>
16023
16024 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16025
74305183
JD
160262003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16027
16028 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
16029 program specified positions.
16030
cfda993e
JD
160312003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16032
16033 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
16034
df211069
KH
160352003-11-08 Kenichi Handa <handa@m17n.org>
16036
16037 * Makefile.in (lisp): Add kannada.el.
16038 (shortlisp): Likewise.
16039
4307d534
KH
160402003-11-07 Kenichi Handa <handa@m17n.org>
16041
854c1a59
SM
16042 * coding.c (coding_allocate_composition_data):
16043 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
16044 (coding_restore_composition): Detect invalid composition data.
16045 Give Fstring and Fvector a Lispy integer, not C int.
16046
854c1a59
SM
160472003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
16048
16049 * floatfns.c (Flogb): Don't use VALMASK.
16050
16051 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
16052 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
16053
16054 * lisp.h (XINT): Move the cast to clarify what is going on.
16055 (GCTYPEMASK, XSETTYPE): Remove.
16056 (XGCTYPE): Make it an alias of XTYPE.
16057
d04103a1
JD
160582003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16059
16060 * xterm.c (x_term_init): Fix formatting.
16061
da18b5ac
JD
160622003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16063
78819ebb
KS
16064 * gtkutil.h (xg_have_tear_offs): Declare.
16065 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
16066
16067 * gtkutil.c: Remove variable xg_did_tearoff.
16068 (xg_have_tear_offs): New function.
16069 (tearoff_remove): Just decrease xg_detached_menus.
16070 (tearoff_activate): Increase xg_detached_menus and call
16071 tearoff_remove when tearoff is removed.
854c1a59 16072 (xg_keep_popup): Remove function.
da18b5ac
JD
16073 (create_menus): Give add_tearoff_p as argument to recursive
16074 call to create_menus.
16075 (xg_create_widget): Use variables instead of multiple
16076 strcmp. Tell create_menus to create tear off only for
16077 menu bar menus.
16078 (xg_update_menubar): Change title for a detached menu also.
16079 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
16080 of deep_p.
16081 (xg_initialize): Initialize xg_detached_menus, remove
16082 initialization of xg_did_tearoff.
16083
16084 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
16085 xg_have_tear_offs returns non-zero.
16086 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
16087 call to xg_keep_popup.
16088
64d4923e
AC
160892003-11-01 Andrew Choi <akochoi@shaw.ca>
16090
16091 * macterm.c (XTread_socket): Handle menubar selection and grow
16092 window only for mouseDown events.
854c1a59 16093
6cc8bc07
JD
160942003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16095
16096 * xterm.c (x_term_init): For GTK part, increase x_initialized
16097 to check for more than one display. Use error instead of return 0.
16098
043131c4
AC
160992003-10-31 Andrew Choi <akochoi@shaw.ca>
16100
854c1a59 16101 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
16102 (copy_dysymtab): Call it.
16103
bdda99a1
LT
161042003-10-31 Luc Teirlinck <teirllm@auburn.edu>
16105
16106 * eval.c (Fdefvaralias): Doc fix.
16107
800f42ff 161082003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
16109
16110 * data.c (Fsetplist): Doc fix.
16111
ef35b389
LK
161122003-10-14 Lute Kamstra <lute@gnu.org>
16113
16114 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 16115
ef35b389 161162003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 16117
07107abc
KS
16118 * window.c (Fset_window_margins): Simplify arg checking.
16119
f7005886
RS
161202003-10-13 Richard M. Stallman <rms@gnu.org>
16121
16122 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
16123 (print_partial_compiled_pattern): Replace assert with a printout.
16124 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
16125
16126 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
16127
16128 * window.c (Fset_window_margins): Allow only integers as args.
647b07d1
AS
16129 (syms_of_window) <special-display-buffer-names,
16130 special-display-regexps>: Doc fixes.
f7005886 16131
9c0c2af5
LK
161322003-10-13 Lute Kamstra <lute@gnu.org>
16133
16134 * window.c (Fset_window_fringes): Elaborate docstring.
16135
3f080e4e
AC
161362003-10-12 Andrew Choi <akochoi@shaw.ca>
16137
854c1a59 16138 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 16139
3f080e4e
AC
16140 * s/darwin.h (GC_MARK_STACK): Define.
16141
0aa513ed
JD
161422003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16143
16144 * window.c (shrink_windows): New function.
16145 (size_window): Call shrink_windows to calculate window sizes when
16146 shrinking frame with more than one window.
16147
6aa8858a
KS
161482003-10-12 Kim F. Storm <storm@cua.dk>
16149
16150 * xdisp.c (compute_fringe_widths): Doc fix.
16151
c2164d91
KH
161522003-10-08 Kenichi Handa <handa@m17n.org>
16153
854c1a59 16154 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 16155
f82ac129
KH
161562003-10-07 Kenichi Handa <handa@m17n.org>
16157
16158 * coding.c (Qcoding_system_define_form): New variable.
16159 (syms_of_coding): Intern and staticpro it.
16160 (Fcheck_coding_system): Try to autoload the definition of
16161 CODING-SYSTEM.
16162
9296c947
LT
161632003-10-05 Luc Teirlinck <teirllm@auburn.edu>
16164
16165 * fns.c (Frequire): Doc fix.
16166
c1f0671a
JD
161672003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16168
3d8c3826
JD
16169 * xfns.c (Fx_send_client_event): New function as a base for
16170 manipulating extended window manager hints.
6dc15d98 16171 (Fx_send_client_event): Remove unused variable s.
3d8c3826 16172
068ae0fd
JD
16173 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
16174 that function is removed.
16175
16176 * xterm.c (x_set_offset): Use move_offset_left/top instead of
16177 x/y_pixels_outer_diff.
16178 (x_check_expected_move): Calculate move_offset_left/top.
16179
16180 * xterm.h (struct x_output): New members: move_offset_top/left.
16181
854c1a59 16182 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
16183 call x_set_offset directly.
16184
16185 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
16186
96f09305
JD
16187 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
16188
16189 * xterm.c (x_delete_display): Free font names and font_encoder
16190 in dpyinfo->font_table.
16191
854c1a59
SM
16192 * xfns.c (Fx_close_connection): Only call XFreeFont here.
16193 Move xfree of font names to x_delete_display.
96f09305 16194
c1f0671a
JD
16195 * xterm.h (struct x_display_info): New member, wm_type.
16196 (struct x_output): New members, expected_top/left and
16197 check_expected_move.
16198
16199 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
16200 is received.
854c1a59
SM
16201 (handle_one_xevent): Rename x_check_expected_move from
16202 x_check_fullscreen_move.
c1f0671a
JD
16203 (x_set_offset): Only add WM decoration sizes to modified_top/left
16204 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 16205 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
16206 Removed fullscreen specific code. Use check_expected_move,
16207 expected_left/top instead. Also, set wm_type.
16208 (x_term_init): Initialize wm_type to unknown.
16209
16210 * frame.c (x_fullscreen_move): Remove addition of WM decoration
16211 sizes to move_x/y.
16212
be2fdba9
KH
162132003-10-03 Kenichi Handa <handa@m17n.org>
16214
16215 * macterm.c (x_load_font): Clear all members of FONTP before start
16216 filling them.
16217
162182003-10-02 Kenichi Handa <handa@m17n.org>
16219
16220 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
16221 before calling find_ccl_program_func. Call find_ccl_program_func
16222 only when fontp->font_encoder is not NULL.
16223
16224 * xterm.c (x_load_font): Clear all members of FONTP before start
16225 filling them.
16226
26a6e439
JPW
162272003-10-03 John Paul Wallington <jpw@gnu.org>
16228
16229 * keymap.c (map_keymap): Don't abort when binding is a vector.
16230
0d4c2dc2
JR
162312003-10-02 Jason Rumney <jasonr@gnu.org>
16232
854c1a59
SM
16233 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
16234 Sync dependencies with Makefile.in.
a63cf46f
JR
16235 (alloca.o): Remove.
16236
0d4c2dc2
JR
16237 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
16238 filling them.
16239
16240 * w32bdf.c (w32_load_bdf_font): Likewise.
16241
ab8f7d5c
RS
162422003-09-30 Richard M. Stallman <rms@gnu.org>
16243
16244 * term.c (set_tty_color_mode): Calculate current_mode_spec
16245 regardless of value of VAL.
16246
854c1a59 16247 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
16248 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
16249 Handle over_used when splitting UNDER.
16250
c6605d63 162512003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
16252
16253 * regex.c (regex_compile): Free the stack when returning from function.
16254
3413f972
KH
162552003-09-28 Kenichi Handa <handa@m17n.org>
16256
16257 * fontset.c (Finternal_char_font): Change return value to
16258 cons (FONT-NAME . GLYPH-CODE).
16259
a6eeaa81 162602003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
16261
16262 * term.c (tty_setup_colors): Treat any negative argument as -1.
16263
f98ddc99
KH
162642003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
16265
16266 * process.c (send_process): Delete unused temp_buf.
16267
66c8f1a8
DL
162682003-09-26 Dave Love <fx@gnu.org>
16269
16270 * xterm.c (x_bitmap_mask): Declare.
16271
ca716c26
DL
162722003-09-25 Dave Love <fx@gnu.org>
16273
16274 * Makefile.in (fns.o): Depend on md5.h.
16275
fbe57420
KS
162762003-09-25 Kim F. Storm <storm@cua.dk>
16277
16278 * window.c (set_window_buffer): Fix redisplay problems when
16279 switching between buffers with different display margin widths.
16280
ef6ae4ff
KS
162812003-09-23 Kim F. Storm <storm@cua.dk>
16282
16283 * process.c (set_socket_option): Fix :bindtodevice option.
16284 (Fset_network_process_option): Update process contact list when
16285 setting option succeeds.
16286 (Fmake_network_process): Doc fix.
16287
68e03c1c
DL
162882003-09-23 Dave Love <fx@gnu.org>
16289
7146d1c1 16290 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 16291
a6eeaa81 162922003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
16293
16294 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
16295 color mode is an integer number (it could be -1).
16296
8fe7d8c8
RS
162972003-09-22 Richard M. Stallman <rms@gnu.org>
16298
16299 * intervals.c (graft_intervals_into_buffer): Correct the main loop
16300 in the case where OVER is longer than UNDER.
16301
2f71b5ea
MY
163022003-09-22 Masatake YAMATO <jet@gyve.org>
16303
7146d1c1 16304 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 16305 `vertical_type'.
7146d1c1 16306
0c4da023
KS
163072003-09-21 Kim F. Storm <storm@cua.dk>
16308
16309 * frame.c (Vdefault_frame_scroll_bars): New variable.
16310 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
16311 (syms_of_frame): DEFVAR_LISP it, and initialize according to
16312 window-system default scroll bar position.
16313
b648413b
KS
16314 * window.c (Fwindow_scroll_bars): Doc fix.
16315
8f5b9e34
JD
163162003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16317
854c1a59 16318 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 16319
b0f23edf
RS
163202003-09-19 Richard M. Stallman <rms@gnu.org>
16321
16322 * atimer.h: Don't include lisp.h.
16323 (P_): Define it here (as well as elsewhere).
16324
16325 * print.c (Fprin1_to_string): Move the PRINTPREPARE
16326 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
16327
16328 * data.c (Fvariable_binding_locus): New function.
16329 (syms_of_data): defsubr it.
16330 (Flocal_variable_p): Delete duplicate call to indirect_variable.
16331
e1283999
DL
163322003-09-18 Dave Love <fx@gnu.org>
16333
ad5f3636
DL
16334 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
16335
e1283999
DL
16336 * process.c (Fnetwork_interface_info): Fix type error.
16337 (Fnetwork_interface_list): Doc fix.
16338 (read_process_output, read_process_output): Delete unused var.
16339
b8c7fd71
KS
163402003-09-17 Kim F. Storm <storm@cua.dk>
16341
16342 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
16343 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
16344 (Fnetwork_interface_info): Check that ifreq struct has required
16345 fields before accessing them; this requires that those fields are
16346 defined as macros, which may be too restrictive on some platforms,
16347 but it is better than failing on other platforms.
16348 (syms_of_process): Only defsubr above fns when included.
16349
11e0a411
DL
163502003-09-17 Dave Love <fx@gnu.org>
16351
16352 * unexalpha.c: Don't include varargs.h.
16353
e9c50801
KS
163542003-09-17 Kim F. Storm <storm@cua.dk>
16355
16356 * process.c (Fset_process_sentinel): Add sentinel to childp plist
16357 for network process.
16358 (socket_options): Add `:' prefix to option names. Add optbit field.
16359 (set_socket_option): Remove no_error arg and special handling of s < 0.
16360 Return 1<<optbit for known option, 0 for unknown.
16361 Do not interpret 0 as false for boolean option (only nil).
16362 Pass failed option and value to report_file_error.
7146d1c1 16363 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
16364 (Fset_network_process_option): New function to set just one option.
16365 (Fmake_network_process): Allow :coding arg to be a cons.
16366 Allow :server arg to be an integer specifying backlog size.
16367 Remove :options arg, and allow options to be specified directly
16368 as :KEY, VALUE pairs. Parse these options before binding socket.
16369 As before, :reuseaddr t is default for a server process, but this
16370 can now be disabled by specifying :reuseaddr nil.
16371 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
16372 (init_process): Availability of network options is now checked with
16373 simpler syntax (featurep 'make-network-process :OPTION); use loop to
16374 setup features.
16375 (syms_of_process): Fix defsubr's for the replaced functions.
16376
a0fc3644
DL
163772003-09-16 Dave Love <fx@gnu.org>
16378
16379 * Makefile.in: Depend on coding.h.
16380
6df2a645
KS
163812003-09-14 Kim F. Storm <storm@cua.dk>
16382
16383 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
16384 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
16385 (syms_of_process): Defsubr them.
16386
16387 * config.in: Regenerate.
7146d1c1
SM
16388
163892003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16390
16391 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
16392 * m/news-r6.h (XUNMARK): Remove.
16393 * m/mips.h (XUNMARK): Remove.
16394 * m/mips-siemens.h (XUNMARK): Remove.
16395 * m/iris4d.h (XUNMARK): Remove.
16396 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
16397
0930c1a1
SM
163982003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16399
31003b9e
SM
16400 * lisp.h (VALBITS): Don't remove 1 for the markbit.
16401 (union Lisp_Object): Use unsigned int for types. Remove markbit.
16402 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
16403 (XTYPE): Use unsigned right-shift.
16404 (XMARKBIT, XMARK, XUNMARK): Remove.
16405
0930c1a1
SM
16406 * alloc.c (init_intervals, init_symbol, init_marker):
16407 Don't preallocate anything.
16408 (Fgarbage_collect, mark_object): Ignore the markbit.
16409
16410 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
16411
19bb0fcd 164122003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
16413
16414 * xdisp.c (pint2hrstr): New function.
16415 (decode_mode_spec): Add `%i' and `%I' specs.
16416 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
16417 for `mode-line-format'.
16418
03bb6a06
AS
164192003-09-07 Andreas Schwab <schwab@suse.de>
16420
16421 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
16422 avoid warning.
16423
a6eeaa81 164242003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 16425
0930c1a1 16426 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 16427
ed159bbf
KS
164282003-09-03 Kim F. Storm <storm@cua.dk>
16429
16430 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
16431 change (superseded by 2002-08-30 change); the default blink-off
16432 cursor is now again "no cursor".
16433
fe64a394
JR
164342003-09-01 Jason Rumney <jasonr@gnu.org>
16435
16436 * makefile.w32-in (alloca.o): Remove.
16437 (coding.o): Depend on intervals.h
16438 (emacs.o, bytecode.o): Depend on window.h
16439
c0175e24
DL
164402003-09-01 Dave Love <fx@gnu.org>
16441
16442 * Makefile.in (alloca.o): Remove commands.
16443 (coding.o): Depend on intervals.h composite.h window.h.
16444 (emacs.o): Depend on window.h keyboard.h keymap.h.
16445 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
16446 (bytecode.o): Depend on window.h.
16447
a24d4cb2
JR
164482003-08-31 Jason Rumney <jasonr@gnu.org>
16449
4bc2315e
JR
16450 * w32term.c (w32_per_char_metric): Allow cached metrics to be
16451 returned even when font_type is unknown.
16452
a24d4cb2
JR
16453 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
16454
9d35adc7
JD
164552003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16456
16457 * xterm.c (x_term_init): Initialize new fields in x_display_info.
16458
16459 * xterm.h (struct x_display_info): Add red/green/blue_bits and
16460 *_offset.
16461
16462 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
16463 calculate pixel value.
16464
6f68b035
GM
164652003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
16466
0930c1a1
SM
16467 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
16468 Don't tell redisplay display is accurate when it's actually been
16469 paused for pending input.
6f68b035 16470
4828b4d7
RS
164712003-08-29 Richard M. Stallman <rms@gnu.org>
16472
16473 * dispnew.c (adjust_glyph_matrix): Call window_box
16474 whenever W is nonzero.
16475
16476 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16477 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 16478 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
16479 Use indirect_variable to trace thru variable aliases.
16480
16481 * config.in: Updated.
16482
16483 * callint.c (Fcall_interactively): Save and restore
16484 Vthis_command, Vthis_original_command, real_this_command,
16485 and current_kboard->Vlast_command.
16486
16487 * abbrev.c (Fexpand_abbrev): Insert before deleting.
16488
e019878d
GM
164892003-08-29 Gerd Moellmann <gerd@gnu.org>
16490
16491 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
16492
85478bc6
KH
164932003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
16494
0930c1a1 16495 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
16496 (decode_coding_sjis_big5): Likewise.
16497
07ce82d3
JR
164982003-08-27 Jason Rumney <jasonr@gnu.org>
16499
d3703de3
JR
16500 * w32.c (sys_pipe): Protect against file descriptor overflow.
16501
ee4a01d1
JR
16502 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
16503
07ce82d3
JR
16504 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
16505
a64387ee 165062003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
16507
16508 * xfns.c (Vgtk_version_string): New variable.
16509 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
16510
a6eeaa81 165112003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 16512
0930c1a1 16513 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 16514
5459e42a
EZ
16515 * Makefile.in (msdos.o): Depend on intervals.h.
16516
0930c1a1 16517 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 16518
231d6cfb
JD
165192003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16520
16521 * xterm.h (struct x_display_info): New fields: client_leader_window
16522 and Xatom_wm_client_leader.
16523
16524 * xterm.c (x_initialize): Move call to x_session_initialize to ...
16525 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
16526
16527 * xsmfns.c (create_client_leader_window): New function.
16528 (x_session_initialize): Call create_client_leader_window, take
16529 dpyinfo as argument.
16530
16531 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
16532
16533 * Makefile.in (xsmfns.o): Add more depenedencies.
16534
afa88464
DL
165352003-08-21 Dave Love <fx@gnu.org>
16536
16537 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
16538
f730033e
KH
165392003-08-21 Kenichi Handa <handa@m17n.org>
16540
16541 * term.c (term_init): Fix previous change; don't rely on the
16542 length of `buffer' if TERMINFO is defined.
16543
6dca786c
DL
165442003-08-20 Dave Love <fx@gnu.org>
16545
16546 * atimer.h: Include lisp.h.
16547
16548 * lisp.h (EMACS_LISP_H): New.
16549 (popup_activated_flag): Don't declare.
16550
16551 * alloca.c: Some merging with gnulib. Change logic and doc
16552 concerning (x)malloc/(x)free -- no longer Emacs-specific.
16553 [DO_BLOCK_INPUT]: Don't include lisp.h.
16554 (xmalloc, xfree): Declare.
16555 (malloc): Don't declare.
16556
0930c1a1 16557 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
16558 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
16559 atimer.h, blockinput.h.
16560
16561 * alloc.c (lisp_align_malloc): Change type of `aligned'.
16562
78819ebb 16563 * alloca.s: Remove.
6dca786c 16564
3a06a6d9
RS
165652003-08-19 Gerd Moellmann <gerd@gnu.org>
16566
16567 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
16568 use -lncurses.
16569
16570 * term.c (term_init): Use a buffer of size 4096 for tgetent since
16571 FreeBSD returns something longer than 2044. Abort if the end of
16572 the buffer is overwritten.
16573
27eeee55
MB
165742003-08-19 Miles Bader <miles@gnu.org>
16575
16576 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
16577
2f297815
GM
165782003-08-19 Gerd Moellmann <gerd@gnu.org>
16579
f4446bbf
GM
16580 * alloc.c (lisp_align_malloc): Check for memory full when
16581 allocating ablocks, which also avoids freeing a pointer into an
16582 ablocks structure.
16583
16584 * puresize.h (BASE_PURESIZE): Increase to 1100000.
16585
0930c1a1 16586 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 16587
0e7d7aae
RS
165882003-08-16 Richard M. Stallman <rms@gnu.org>
16589
16590 * editfns.c (Fencode_time): Doc fix.
16591
165922003-08-16 David Ponce <david@dponce.com>
16593
16594 * fileio.c (Fwrite_region): Fix conditional expression to issue
16595 the right message.
16596
b6189c3b 165972003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
16598
16599 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 16600 Set default value to 1.
0e7d7aae 16601
5d551295
KH
166022003-08-15 Kenichi Handa <handa@m17n.org>
16603
16604 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
16605 what autoscaled.
16606 (best_matching_font): Once we find a better scalable font, set
16607 non_scalable_has_exact_height_p to 1.
16608 (try_font_list): Call try_alternative_families to try any family
16609 with the given registry.
16610
1661e56b
AS
166112003-08-09 Andreas Schwab <schwab@suse.de>
16612
f29181dc
AS
16613 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
16614
1661e56b
AS
16615 * print.c (print_string): Fix printing of multibyte string with
16616 nontrivial printcharfun.
16617
465aa50a
JD
166182003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16619
16620 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
16621
16622 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
16623
e430e5ba
KH
166242003-07-31 Kenichi Handa <handa@m17n.org>
16625
16626 * process.c (read_process_output): Return the actually read bytes
16627 instead of the result of decoding.
16628
97e7188e
KH
166292003-07-31 Kenichi Handa <handa@m17n.org>
16630
16631 * xterm.h (struct x_bitmap_record): New member have_mask.
16632
16633 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
16634 to 0.
16635 (x_create_bitmap_from_file): Likewise.
16636 (x_destroy_bitmap): Check have_mask member before freeing a mask.
16637 (x_destroy_all_bitmaps): Likewise.
16638 (x_create_bitmap_mask): Set have_mask member to 1.
16639
b53094d6
RS
166402003-07-30 Richard M. Stallman <rms@gnu.org>
16641
16642 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
16643
631f2082
JD
166442003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16645
16646 * gtkutil.c (xg_mark_data): Update calls to mark_object.
16647
c855f2ca
RS
166482003-07-29 Richard M. Stallman <rms@gnu.org>
16649
16650 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
16651 Conditionalize XIM code on HAVE_XIM.
16652
16653 * fns.c (Fclear_string): New function.
16654 (syms_of_fns): defsubr it.
16655
b6189c3b 166562003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 16657
0930c1a1 16658 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 16659
29ea8ae9
SM
166602003-07-22 Stefan Monnier <monnier@cs.yale.edu>
16661
16662 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
16663
16664 * buffer.c (delete_all_overlays): New function.
16665 * buffer.h (delete_all_overlays): Declare.
16666 * coding.c (run_pre_post_conversion_on_str):
16667 * print.c (temp_output_buffer_setup):
16668 * fileio.c (Finsert_file_contents):
16669 * minibuf.c (get_minibuffer): Use it.
16670
1dd7ccf2
AC
166712003-07-22 Andrew Choi <akochoi@shaw.ca>
16672
16673 * unexmacosx.c (unexec_regions_sort_compare):
16674 (unexec_regions_merge): New functions. Sort and merge unexec
16675 regions before dumping them.
16676
f57bd967
DL
166772003-07-22 Dave Love <fx@gnu.org>
16678
16679 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
16680
7cdee936
SM
166812003-07-21 Stefan Monnier <monnier@cs.yale.edu>
16682
16683 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
16684 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
16685 MARKBIT as the gcmarkbit for strings.
16686
e50886d3
RS
166872003-07-21 Richard M. Stallman <rms@gnu.org>
16688
16689 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
16690
29ea8ae9 16691 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
16692 (syms_of_fns): Corresponding change.
16693
16694 * alloc.c (syms_of_alloc): Doc fixes.
16695
166962003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
16697
16698 * s/netbsd.h: Use -Wl syntax.
16699
fdc39b59
RS
167002003-07-17 Richard M. Stallman <rms@gnu.org>
16701
16702 * xterm.c (xim_initialize): Redo 6/24 change.
16703
9c53385f
SM
167042003-07-15 Stefan Monnier <monnier@cs.yale.edu>
16705
16706 * buffer.c (copy_overlays): Use EMACS_INT for positions.
16707 (Fswitch_to_buffer): Don't signal an error when switching to the same
16708 buffer in a dedicated window.
16709
16710 * alloc.c: Use bitmaps for cons, as was done for floats.
16711 (init_float, init_cons): Let the normal code allocate the first block.
16712 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
16713 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
16714 New macros.
16715 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
16716 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
16717 (live_cons_p): Check the pointer is not past the `conses' array.
16718 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
16719 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
16720 (survives_gc_p): Use CONS_MARKED_P and simplify.
16721 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
16722
dde13196
PE
167232003-07-13 Paul Eggert <eggert@twinsun.com>
16724
16725 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
16726 puts it into BSS instead, at least on Solaris 8 and 9.
16727 This is a valid optimization, and it may occur on other platforms,
16728 so Emacs should not assume that initializing a static variable to
16729 zero puts it into data.
16730 * alloc.c (pure, staticvec):
16731 Initialize these arrays to nonzero, so that they're not
16732 put into BSS by that optimization.
16733
a801bc34
SM
167342003-07-13 Stefan Monnier <monnier@cs.yale.edu>
16735
16736 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
16737 (lisp_align_malloc): Use posix_memalign is available.
16738 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
16739 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
16740 for consistency. Update users.
16741
0c8b2afa
RS
167422003-07-13 Richard M. Stallman <rms@gnu.org>
16743
16744 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
16745
668c2ab0
JB
167462003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
16747
9dd28cae 16748 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
668c2ab0
JB
16749 and use the Gtk+ function gtk_window_icon_from_file if available.
16750
16751 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
16752 handle mask of bitmaps.
16753 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
16754 mask property.
16755 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
16756
16757 * xterm.h (xg_set_icon): New function.
16758
800bebe3
RS
167592003-07-12 Paul Eggert <eggert@twinsun.com>
16760
16761 * unexelf.c (unexec): Consider a section to precede the .bss
16762 section if its addresses overlap that of .bss.
16763
69e38995
RS
167642003-07-12 Richard M. Stallman <rms@gnu.org>
16765
16766 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
16767
16768 * config.in (HAVE_CRTIN): Add #undef.
16769 (INLINE): Really inline only if OPTIMIZE is defined.
16770
16771 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
16772 END_FILES_1.
16773 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 16774 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
16775
16776 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
16777 (TERMINFO): Define.
16778 (LIBS_TERMCAP): Define.
16779 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
16780
16781 * xfns.c: Include libpng/png.h instead of png.h.
16782
f1d0c238
AS
167832003-07-11 Andreas Schwab <schwab@suse.de>
16784
16785 * buffer.c (modify_overlay): Update prototype.
16786 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
16787 Likewise.
16788
5f6bf5fe
SM
167892003-07-09 Stefan Monnier <monnier@cs.yale.edu>
16790
16791 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
16792 (struct interval): Move to intervals.h.
16793 (struct Lisp_Marker): Use EMACS_INT for position info.
16794 (forward_point): Remove prototype of defunct function.
16795 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
16796 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
16797 (syms_of_textprop, set_text_properties): Remove prototypes that are
16798 already in intervals.h.
16799
16800 * intervals.h (struct interval): Move from lisp.h.
16801 Use EMACS_INT for position and size info.
16802
16803 * coding.c: Include intervals.h for Fset_text_properties.
16804
16805 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
16806 position and length information.
16807
2765b457
SM
168082003-07-09 Stefan Monnier <monnier@cs.yale.edu>
16809
16810 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
16811 position and length information.
16812
2410d73a
SM
168132003-07-09 Stefan Monnier <monnier@cs.yale.edu>
16814
16815 Change overlays_after and overlays_before so the overlays themselves
16816 are linked into lists, rather than using cons cells. After all each
16817 Lisp_Misc already occupies 5 words, so we can add a `next' field to
16818 Lisp_Overlay for free and save up one cons cell per overlay (not
16819 to mention one indirection when traversing the list of overlay).
16820
16821 * lisp.h (struct Lisp_Overlay): New field `next'.
16822
16823 * buffer.h (struct buffer): Change overlays_before and overlays_after
16824 from Lisp lists of overlays to pointers to overlays.
16825
16826 * buffer.c (overlay_strings, recenter_overlay_lists):
16827 Fix typo in eassert in last commit.
16828 (unchain_overlay): New function.
16829 (add_overlay_mod_hooklist): Use AREF.
16830 (copy_overlays, reset_buffer, overlays_at, overlays_in)
16831 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
16832 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
16833 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
16834 (report_overlay_modification, evaporate_overlays, init_buffer_once):
16835 Adjust to new type of overlays_(before|after).
16836
16837 * alloc.c (mark_object): Mark the new `next' field of overlays.
16838 (mark_buffer): Manually mark the overlays_(after|before) fields.
16839
16840 * coding.c (run_pre_post_conversion_on_str):
16841 * editfns.c (overlays_around):
16842 * xdisp.c (load_overlay_strings):
16843 * fileio.c (Finsert_file_contents):
16844 * indent.c (current_column):
16845 * insdel.c (signal_before_change, signal_after_change):
16846 * intervals.c (set_point_both):
16847 * print.c (temp_output_buffer_setup): Use new type for
16848 overlays_(before|after).
16849
04812929
SM
168502003-07-08 Stefan Monnier <monnier@cs.yale.edu>
16851
16852 * buffer.c (report_overlay_modification): Don't run hooks while
16853 traversing the list of overlays.
16854
16855 * buffer.h (struct buffer): Use an int for overlay_center.
16856 (overlays_at, evaporate_overlays, recenter_overlay_lists)
16857 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
16858
16859 * buffer.c (reset_buffer, recenter_overlay_lists)
16860 (adjust_overlays_for_insert, adjust_overlays_for_delete)
16861 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
16862 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
16863 (overlays_at, evaporate_overlays, recenter_overlay_lists)
16864 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
16865
16866 * xdisp.c (fast_find_position): Remove unused var.
16867
16868 * cmds.c (Qexpand_abbrev): New sym.
16869 (syms_of_cmds): Initialize it.
16870 (internal_self_insert): Use it to call expand-abbrev.
16871
2e7ecf15
KS
168722003-07-09 Kim F. Storm <storm@cua.dk>
16873
f9711de4 16874 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 16875 was configured with --without-xim.
42f81f64 16876 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 16877
c6de56a0
RS
168782003-07-07 Richard M. Stallman <rms@gnu.org>
16879
16880 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
16881
16882 * alloc.c (Fgarbage_collect): Doc fix.
16883
b6189c3b 168842003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
16885
16886 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
16887
bfe1a3f7
SM
168882003-07-06 Stefan Monnier <monnier@cs.yale.edu>
16889
04812929
SM
16890 * minibuf.c (read_minibuf): UNGCPRO before returning.
16891 (Ftry_completion, Fall_completions): Doc fix.
16892
bfe1a3f7
SM
16893 * alloc.c (live_float_p): Check that p is not past the `floats' array,
16894 now that `floats' is not the last element of the struct any more.
16895
ee79d1aa
JR
168962003-07-06 Jason Rumney <jasonr@gnu.org>
16897
16898 * w32term.h (ClipboardSequence_Proc): New type.
16899
16900 * w32fns.c (clipboard_sequence_fn): New variable.
16901 (globals_of_w32fns): Initialize it.
16902
16903 * w32select.c (last_clipboard_sequence_number): New variable.
16904 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
16905 number if possible.
16906
49723c04
SM
169072003-07-06 Stefan Monnier <monnier@cs.yale.edu>
16908
4698665f
SM
16909 * m/amdx86-64.h (MARKBIT):
16910 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
16911 MARKBIT and ARRAY_MARK_FLAG any more.
16912
16913 * m/hp800.h (XSETMARKBIT):
16914 * m/sr2k.h (XSETMARKBIT):
16915 * lisp.h (XSETMARKBIT): Remove unused macro.
16916
49723c04
SM
16917 * lisp.h (mark_object): Change prototype.
16918
16919 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
16920 (last_marked): Change accordingly.
16921 (mark_interval, mark_maybe_object, mark_maybe_pointer)
16922 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
16923 (mark_buffer): Update calls to mark_object.
16924
16925 * bytecode.c (mark_byte_stack):
16926 * fns.c (sweep_weak_table):
16927 * keyboard.c (mark_kboards): Update calls to mark_object.
16928
1d660eca
JR
169292003-07-06 Jason Rumney <jasonr@gnu.org>
16930
16931 * alloc.c (struct ablock): Only include padding when there is some.
16932
618b5ae4
SM
169332003-07-04 Stefan Monnier <monnier@cs.yale.edu>
16934
16935 * alloc.c (ALIGN): Add casts to simplify usage.
16936 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
16937 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
16938 (struct ablock, struct ablocks): New types.
16939 (free_ablock): New global var.
16940 (lisp_align_malloc, lisp_align_free): New functions.
16941 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
16942 (struct float_block): Reorder and add gcmarkbits.
16943 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
16944 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
16945 (init_float, make_float): Use lisp_align_malloc.
16946 (free_float, live_float_p): Don't use `type' any more.
16947 (make_float): Use FLOAT_UNMARK to access to mark bit.
16948 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
16949 Use FLOAT_MARKED_P to access the mark bit.
16950 (pure_alloc): Simplify use of ALIGN.
16951 (mark_object): Use FLOAT_MARK to access the mark bit.
16952 (gc_sweep): Use new macros to access the float's mark bit.
16953 (init_alloc_once): Init free_ablock.
16954
16955 * lisp.h (struct Lisp_Float): Remove unused field `type'.
16956
3ef06d12
SM
169572003-06-27 Stefan Monnier <monnier@cs.yale.edu>
16958
16959 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
16960 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
16961 (allocate_buffer): Move.
16962 (string_bytes): Don't mask markbit of `size_byte'.
16963 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
16964 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
16965 Use the `size' field of buffers (rather than the `name' field) for
16966 the mark bit, as is done for all other vectorlike objects.
16967 Use the new macros to access the mark bit of vectorlike objects.
16968
e81043aa
RS
169692003-06-26 Richard M. Stallman <rms@gnu.org>
16970
16971 * puresize.h (BASE_PURESIZE): Increment base size.
16972
16973 * xdisp.c (fast_find_position): Enable Gerd's new definition.
16974
16975 * xterm.c (xim_initialize): Undo previous change.
16976
2d0834cc
SM
169772003-06-26 Stefan Monnier <monnier@cs.yale.edu>
16978
16979 * alloc.c (survives_gc_p): Simplify.
16980
16981 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
16982
16983 * window.c (Fset_window_dedicated_p): Simplify.
16984 (display_buffer_1): Don't raise the win from which minibuf was entered.
16985 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
16986 (Fminibuffer_selected_window): Simplify.
16987
16988 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
16989
16990 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
16991 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
16992
16993 * insdel.c (check_markers, adjust_markers_for_delete)
16994 (adjust_markers_for_insert, adjust_markers_for_replace)
16995 (prepare_to_modify_buffer, RESTORE_VALUE):
16996 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
16997 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
16998 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
16999 * alloc.c (Fmake_marker, free_marker, gc_sweep):
17000 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
17001 * editfns.c (save_excursion_restore, transpose_markers):
17002 * window.c (delete_window):
17003 * xdisp.c (message_dolog): Update for new types.
17004
d54ae3d8
JD
170052003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17006
a5f696ac
JD
17007 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
17008 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 17009 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
17010
17011 * frame.c (make_frame): Initialize default_face_done_p.
17012
17013 * frame.h (struct frame): Add default_face_done_p.
17014
d54ae3d8
JD
17015 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
17016 will be defined.
17017
2336fe58
SM
170182003-06-25 Stefan Monnier <monnier@cs.yale.edu>
17019
17020 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
17021 Initialize the new field `gcmarkbit'.
17022 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
17023 (mark_interval_tree): Don't mark the tree separately from the nodes.
17024 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
17025 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17026 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
17027
17028 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
17029 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
17030 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
17031 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
17032 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
17033
bcea31c2
DL
170342003-06-24 Dave Love <fx@gnu.org>
17035
17036 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
17037
17038 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
17039 from gnulib.
17040
2601f59e
RS
170412003-06-21 Richard M. Stallman <rms@gnu.org>
17042
17043 * fileio.c (Fwrite_region): Alternate messages
17044 for append and partial write.
17045
17046 * keyboard.c (read_key_sequence): When converting upcase fn key to
17047 downcase, update fkey and keytran so `backspace' gets translated.
17048
17049 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
17050
17051 * process.c (wait_reading_process_input): Don't signal SIGIO
17052 in batch mode.
17053
b5d2c621
KH
170542003-06-17 Kenichi Handa <handa@m17n.org>
17055
17056 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
17057 composite.h.
17058
17059 * xselect.c: Don't include charset.h, coding.h, composite.h.
17060 (Qforeign_selection): New variable.
17061 (syms_of_xselect): Intern and static it.
17062 (selection_data_to_lisp_data): Return a unibyte string made from
17063 data with `foreign-selection' text property.
17064
6793bc63
SM
170652003-06-15 Stefan Monnier <monnier@cs.yale.edu>
17066
17067 * termhooks.h (EVENT_INIT): New macro.
17068
17069 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
17070
17071 * alloc.c (mark_kboards): Move to keyboard.c.
17072
17073 * keyboard.c (record_asynch_buffer_change, read_avail_input):
17074 * xterm.c (x_dispatch_event):
17075 * xmenu.c (find_and_call_menu_selection):
17076 * xdisp.c (handle_tool_bar_click):
17077 * w32menu.c (menubar_selection_callback):
17078 * sysdep.c (kbd_input_ast, read_input_waiting):
17079 * msdos.c (dos_rawgetc):
17080 * macterm.c (mac_check_for_quit_char):
17081 * macmenu.c (menubar_selection_callback):
17082 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
17083 data to kbd_buffer_store_event.
17084
b3ea810c
KS
170852003-06-15 Kim F. Storm <storm@cua.dk>
17086
17087 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 17088 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 17089
b8f75eda
KG
170902003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
17091
17092 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
17093
ba92ce48
KH
170942003-06-12 Kenichi Handa <handa@m17n.org>
17095
17096 * fileio.c (Fwrite_region): Save and restore restriction.
17097
b80263be
DL
170982003-06-12 Dave Love <fx@gnu.org>
17099
17100 * alloca.c (alloca): Declare arg as size_t.
17101
6793bc63
SM
17102 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
17103 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 17104
b23c0a83
DL
171052003-06-11 Dave Love <fx@gnu.org>
17106
17107 * search.c (shrink_regexp_cache): Use xrealloc.
17108 (syms_of_search): Use xmalloc.
17109
700e47c2
KS
171102003-06-10 Kim F. Storm <storm@cua.dk>
17111
17112 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
17113 Adjust phys_cursor.x to be relative to window box, rather than
17114 text area before checking -- to ensure cursor is redrawn when
17115 exposing window.
17116 Note: This also fixes a similar (older) bug if display margins
17117 are present.
17118
f11aa0b2
KH
171192003-06-06 Kenichi Handa <handa@m17n.org>
17120
17121 * coding.c (encoding_buffer_size): If coding->type is
17122 coding_type_ccl, double magnification on CRLF encoding.
17123
3d143690
JR
171242003-06-06 Jason Rumney <jasonr@gnu.org>
17125
17126 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
17127 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
17128
17129 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
17130 Mac too.
17131
f16205ca
DL
171322003-06-05 Dave Love <fx@gnu.org>
17133
b23c0a83
DL
17134 * strftime.c: Merge changes from gnulib.
17135
f16205ca
DL
17136 * mktime.c (__mktime_internal): Merge changes from gnulib
17137 involving year 69 and dst2.
17138
17139 Changes to merge with gnulib version and be consistent with the
17140 autoconf test:
17141
6793bc63
SM
17142 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
17143 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
17144 [HAVE_LOCALE_H]: Include locale.h.
17145 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
17146
9b87a0bc
KS
171472003-06-05 Kim F. Storm <storm@cua.dk>
17148
17149 * window.c (coordinates_in_window): Convert X and Y to window
17150 relative coordinates inside mode-line and header-line parts.
17151 Convert X and Y to margin area relative coordinates inside left
17152 and right display margin parts.
17153
5a8a15ec
JR
171542003-06-05 Jason Rumney <jasonr@gnu.org>
17155
17156 * w32fns.c (add_system_logical_colors_to_map): New function.
17157 (Fx_open_connection): Use it.
17158
01ed8ff1
SM
171592003-06-04 Stefan Monnier <monnier@cs.yale.edu>
17160
17161 * process.c (allocate_pty): Revert part of the previous patch.
17162 (Faccept_process_output): Simplify.
17163
b427b65d
JR
171642003-06-04 Jason Rumney <jasonr@gnu.org>
17165
17166 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
17167
17168 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
17169 (lispy_mouse_wheel_names): Remove.
17170 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
17171 Always define drag_and_drop_syms.
17172
17173 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
17174 WHEEL_EVENT events.
17175
914a8c47
SM
171762003-06-03 Stefan Monnier <monnier@cs.yale.edu>
17177
01ed8ff1
SM
17178 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
17179
914a8c47
SM
17180 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
17181
adcb132c
JD
171822003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17183
17184 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
17185 menu item label.
17186
be781fa7
RS
171872003-06-03 Richard M. Stallman <rms@gnu.org>
17188
17189 * window.c (Fwindow_edges): Doc fix.
17190 (Fwindow_pixel_edges, Fwindow_inside_edges)
17191 (Fwindow_inside_pixel_edges): New functions.
17192 (syms_of_window): defsubr them.
17193
17194 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
17195 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
17196
914a8c47
SM
171972003-06-02 Stefan Monnier <monnier@cs.yale.edu>
17198
17199 * dispnew.c (Fsit_for): Don't lie about the number of args.
17200
5b07197a
DL
172012003-06-02 Dave Love <fx@gnu.org>
17202
17203 * callproc.c: Use HAVE_FCNTL_H, not USG5.
17204 (syms_of_callproc) <process-environment>: Doc fix.
17205
17206 * doc.c: Use HAVE_FCNTL_H, not USG5.
17207
17208 * xfaces.c (font_rescale_ratio): Fix for K&R.
17209
17210 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
17211
17212 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
17213
17214 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
17215
17216 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
17217 (xg_create_frame_widgets): Use ENCODE_UTF_8.
17218
d7107586 17219 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
17220
17221 * xmenu.c (ENCODE_MENU_STRING): New.
17222 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
17223 Use it.
17224
17225 * coding.h (ENCODE_UTF_8): New.
17226 (Qutf_8): Declare.
17227
17228 * coding.c (Qutf_8): New.
17229 (syms_of_coding): Intern it.
17230
17231 * fns.c: Doc fixes.
17232
7335b336
KH
172332003-06-02 Kenichi Handa <handa@m17n.org>
17234
17235 * buffer.c (Fset_buffer_multibyte): Fix previous change.
17236
914a8c47
SM
172372003-06-01 Stefan Monnier <monnier@cs.yale.edu>
17238
17239 * lread.c (openp): Make sure STR is a string.
17240
9862c135
JR
172412003-06-01 David Ponce <david@dponce.com>
17242
cab27d04 17243 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
17244 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
17245
17246 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
17247 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
17248 (discard_mouse_events): Discard WHEEL_EVENT events too.
17249 (lispy_wheel_names, wheel_syms): New.
17250 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 17251 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 17252 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
17253
17254 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
17255 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
17256 WHEEL_EVENT events.
17257
f984e73e
JPW
172582003-05-31 John Paul Wallington <jpw@gnu.org>
17259
17260 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
17261 timer are in lisp/emacs-lisp.
17262
1efcd78f
KH
172632003-05-31 Kenichi Handa <handa@m17n.org>
17264
458c8af4
KH
17265 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
17266 region when a buffer is changed to unibyte.
17267
1efcd78f
KH
17268 * charset.h (VALID_LEADING_CODE_P): New macro.
17269 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
17270
778e2804
KH
17271 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
17272 is nonzero, accept multibyte form of eight-bit-control chars.
17273 (decode_composition_emacs_mule): Likewise.
17274 (decode_coding_emacs_mule): Likewise.
17275 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
17276 multibyte form of eight-bit-control chars.
17277
17278 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
17279 (Finsert_file_contents): If coding-system-for-read is bound to
17280 Qauto_save_coding, use the coding system emacs-mule with special
17281 setting for recovering a file.
17282 (choose_write_coding_system): On auto saving, use the coding
17283 system emacs-mule with special setting for auto saving.
17284 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
17285
034060e4
KH
172862003-05-30 Kenichi Handa <handa@m17n.org>
17287
17288 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
17289 properly before calling ccl_driver.
17290
778e2804 17291 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 17292
cab27d04 17293 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
17294 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
17295 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
17296
595f5aa5
GM
172972003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
17298
17299 * xfaces.c (realize_default_face): Do not abort if lface is
17300 non-existent - reverts change from 2003-05-19.
17301
103e0180
KH
173022003-05-29 Kenichi Handa <handa@m17n.org>
17303
17304 * coding.c (decode_coding_iso2022): Pay attention to the byte
17305 sequence of CTEXT extended segment, and retain those bytes as is.
17306
173072003-05-28 Kenichi Handa <handa@m17n.org>
17308
cab27d04 17309 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
17310 of CODING_REPLACEMENT_CHARACTER.
17311 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
17312 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
17313 check this flag on encoding.
cab27d04
SM
17314 (encode_coding_sjis_big5):
17315 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
17316 (Fset_terminal_coding_system_internal):
17317 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
17318 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
17319
17320 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
17321 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17322 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
17323
ff6a3bfb 173242003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 17325
ff6a3bfb
RS
17326 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
17327
17328 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 17329
1963c428
KS
173302003-05-28 Kim F. Storm <storm@cua.dk>
17331
17332 * xdisp.c (expose_window): Fix error in calculation of
17333 window relative coordinates of area to redisplay.
17334
2b5d4601
JR
173352003-05-27 Jason Rumney <jasonr@gnu.org>
17336
17337 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
17338
1c64a4a2
JB
173392003-05-27 David Ponce <david@dponce.com>
17340
17341 Handle W32 mouse wheel events as mouse click events, like in X.
17342
17343 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
17344 MOUSE_WHEEL_EVENT anymore.
17345
17346 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
17347 Scrolling down/up the mouse wheel is respectively mapped to mouse
17348 button 4 and 5.
17349 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
17350 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
17351 WM_MOUSEWHEEL events.
17352
2d031b89
AS
173532003-05-27 Andreas Schwab <schwab@suse.de>
17354
20464fdf
AS
17355 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
17356
2d031b89
AS
17357 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
17358 partially visible line.
17359
17360 * alloc.c (Fgarbage_collect): Fix last change.
17361
97bc76d4
JPW
173622003-05-26 John Paul Wallington <jpw@gnu.org>
17363
17364 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
17365
56613f06
SM
173662003-05-25 Stefan Monnier <monnier@cs.yale.edu>
17367
17368 * window.c (Fset_window_buffer): Add type of `keep_margins'.
17369 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
17370
17371 * window.h (window_box_text_cols): Declare.
17372
17373 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
17374 (x_draw_vertical_border): Remove unused var `f'.
17375
17376 * xfaces.c (build_scalable_font_name): Remove `unused var
17377 pixel_size' warning.
17378
17379 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
17380
17381 * unexelf.c (unexec): Remove `unused var n' warning.
17382
17383 * strftime.c (my_strftime_localtime_r): Remove `defined but
17384 unused' warning.
17385
17386 * process.c (allocate_pty): Remove `unused var stb' and
17387 `cp might be used uninitialized' warnings.
17388
17389 * dispnew.c (mode_line_string): Remove unused var `f'.
17390
17391 * coding.c (find_safe_codings): Remove unused var `i'.
17392
17393 * bytecode.c (Fbyte_code): Remove `unused val' warning.
17394
17395 * buffer.c (Fkill_buffer): Remove unused var `list'.
17396
17397 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
17398
93421a1f
JD
173992003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17400
17401 * frame.c (make_frame): Condition want_fullscreen with
17402 HAVE_WINDOW_SYSTEM.
17403
c4b8aebc
JB
174042003-05-25 Juanma Barranquero <lektu@terra.es>
17405
17406 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
17407 (Fwindow_scroll_bars): Fix typo in docstring.
17408
0416870b
KS
174092003-05-24 Kim F. Storm <storm@cua.dk>
17410
17411 The following changes serve several purposes:
17412
17413 1) Swap the position of fringes and display margins in windows, i.e.
17414 the fringes are now displayed between the margins and the text area
17415 (by default).
17416
17417 2) Allow fringe and scroll bar parameters to be set per-buffer and
17418 per-window (like display margins). Such settings are now stored
17419 in window configurations, preserved when frames are resized, and
9018a88e 17420 copied when windows are split vertically or horizontally.
0416870b
KS
17421 Several bugs related to display margins have been fixed.
17422
17423 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 17424
0416870b
KS
17425 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
17426 rather than FRAME_WIDTH (FRAME_FONT (f)).
17427
17428 5) Introduce a consistent naming of variables, members and macros
17429 depending on whether their value is measured in pixels or in
17430 canonical columns/lines. Pixel dimensions are named *_width and
17431 *_height, while canonical columns/lines are named *_cols and
17432 *_lines. Pixel positions are named *_x and *_y, while column/line
17433 positions are named *_col and *_line.
17434
17435 6) Consolidate more of the X, W32, and MAC gui code by moving
17436 common data into struct frame, and generalize it for the non-gui
17437 case by using suitable defaults.
17438
17439 7) Cleanup and consolidate the macros controlling frame and window
17440 layout into frame.h and window.h, and generalize the use of the
17441 various window_box_* functions (enhanced to handle the new fringe
17442 position and the per-window fringe and scroll bar settings).
17443
17444 * frame.h (struct frame): Rename members height to text_lines,
17445 width to text_cols, window_height to total_lines, window_width to
17446 total_cols, new_height to new_text_lines, new_width to
17447 new_text_cols. All uses changed.
17448 (struct frame): New members which consolidate common members of
17449 x_output, w32_output, and mac_output structures: left_pos,
17450 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
17451 win_gravity, size_hint_flags, border_width, internal_border_width,
17452 line_height, fringe_cols, left_fringe_width, right_fringe_width,
17453 want_fullscreen. All uses changed.
17454 (struct frame): New member column_width contaning the canonical
17455 column width, analogue to line_height. All uses changed.
17456 (struct frame): Rename members scroll_bar_pixel_width to
17457 config_scroll_bar_width, and scroll_bar_cols to
17458 config_scroll_bar_cols. All uses changed.
17459 (struct frame): New member scroll_bar_actual_width which
17460 consolidates and renames the vertical_scroll_bar_extra member of
17461 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 17462 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
17463 from x/w32/macterm.h files. All uses changed. Also change code
17464 which referred to f->output_data...->pixel_height.
cab27d04 17465 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 17466 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 17467 which referred to f->output_data...->pixel_width.
cab27d04 17468 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 17469 Also change code which referred to f->height.
cab27d04 17470 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
17471 Also change code which referred to f->width.
17472 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
17473 to update new_text_lines and new_text_cols members directly.
cab27d04 17474 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 17475 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 17476 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
17477 FRAME_SCROLL_BAR_COLS. All uses changed.
17478 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 17479 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
17480 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
17481 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
17482 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
17483 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
17484 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
17485 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
17486 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
17487 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
17488 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
17489 Unconditionally return line_height member (it now has proper value
17490 also for non-window frames).
17491 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
17492 return new column_width member (rather than the default font width).
17493 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 17494 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
17495 from x/w32/macterm.h files. Unconditionally return corresponding
17496 member of frame structure (they now have proper values also for
17497 non-window frames).
cab27d04 17498 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
17499 Calculate return value from left and right widths.
17500 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
17501 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
17502 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
17503 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
17504 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
17505 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
17506 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 17507 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 17508 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 17509 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 17510 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 17511 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 17512 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 17513 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 17514 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 17515 consolidated from x/mac/w32term.h.
cab27d04 17516 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 17517 consolidated from x/mac/w32term.h.
cab27d04 17518 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 17519 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 17520 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
17521 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
17522
17523 * window.h (struct window): Rename members left to left_col,
17524 top to top_line, height to total_lines, width to total_cols,
17525 left_margin_width to left_margin_cols, right_margin_width to
17526 right_margin_cols, orig_height to orig_total_lines, orig_top to
17527 orig_top_line. All uses changed.
17528 (struct window): New members left_fringe_width, right_fringe_width,
17529 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
17530 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
17531 New macros primarily used to simplify other macros.
17532 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
17533 referred to XINT (w->width).
17534 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
17535 referred to XINT (w->height).
17536 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
17537 referred to XINT (w->width) * canon_x_unit.
17538 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
17539 referred to XINT (w->height) * canon_y_unit.
17540 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
17541 referred to XINT (w->left).
cab27d04 17542 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
17543 all uses and code that referred to XINT (w->left) + XINT (w->width).
17544 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
17545 referred to XINT (w->top).
17546 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
17547 referred to XINT (w->top) + XINT (w->height).
17548 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
17549 referred to XINT (w->left) * canon_x_unit.
17550 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
17551 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
17552 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
17553 referred to XINT (w->top) * canon_y_unit.
17554 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
17555 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
17556 (WINDOW_LEFTMOST_P): New macro.
cab27d04 17557 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 17558 All uses changed.
cab27d04 17559 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 17560 All uses changed.
cab27d04 17561 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
17562 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
17563 Do not exclude left fringe width.
cab27d04 17564 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
17565 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
17566 Do not exclude fringe widths.
17567 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
17568 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
17569 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
17570 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
17571 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
17572 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
17573 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
17574 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
17575 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
17576 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
17577 New macros. Change code which referenced corresponding
17578 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
17579 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
17580 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
17581 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
17582 allow per-window scroll-bar settings.
17583 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
17584 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
17585 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
17586 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
17587 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
17588 FRAME_SCROLL_BAR_WIDTH.
17589 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 17590 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 17591 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 17592 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 17593 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 17594 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 17595 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
17596 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
17597 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
17598 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
17599 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
17600 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 17601 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 17602 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
17603 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
17604 (window_from_coordinates): Update prototype.
17605 (Fset_window_buffer): Update EXFUN.
17606 (set_window_buffer): Update prototype.
9018a88e 17607
0416870b 17608 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 17609 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
17610 changed.
17611 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
17612 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
17613 internal_border_width is now set to 0 for non-window frames.
17614 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
17615 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
17616 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
17617 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
17618 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
17619 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
17620 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
17621 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
17622 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 17623 Move to window.h and renamed [see window.h changes].
0416870b
KS
17624 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
17625 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
17626 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
17627 Use WINDOW_TOTAL_LINES.
0416870b
KS
17628 (frame_update_line_height): Remove prototype.
17629
17630 * buffer.h (struct buffer): Rename members measured in columns:
17631 left_margin_width to left_margin_cols, right_margin_width to
17632 right_margin_cols. All uses changed.
17633 New members left_fringe_width, right_fringe_width,
17634 fringes_outside_margins for per-buffer fringe settings.
17635 New members scroll_bar_width and vertical_scroll_bar_type for
17636 per-buffer scroll bar settings.
17637
17638 * buffer.c (init_buffer_once): Set buffer_defaults and
17639 buffer_local_flags for new buffer-local variables
17640 left_fringe_width, right_fringe_width, fringes_outside_margins,
17641 scroll_bar_width, and vertical_scroll_bar_type.
17642 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
17643 default-* variables for them.
17644
17645 * dispnew.c: Make (many) trivial substitutions for renamed and
17646 new macros in dispextern.h, frame.h and window.h.
17647 (mode_line_string): No need to adjust width for mode lines, as it
17648 is already adjusted by the caller.
17649 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 17650
0416870b
KS
17651 * frame.c: Make (many) trivial substitutions for renamed and
17652 new macros in dispextern.h, frame.h and window.h.
17653 (make_frame): Initialize left_fringe_width, right_fringe_width,
17654 fringe_cols, scroll_bar_actual_width, border_width,
17655 internal_border_width, column_width, line_height, x_pixels_diff,
17656 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
17657 members with values suitable for a non-window frames.
17658
17659 * gtkutil.c: Make (many) trivial substitutions for renamed and
17660 new macros in dispextern.h, frame.h and window.h.
9018a88e 17661
0416870b
KS
17662 * indent.c: Make (few) trivial substitutions for renamed and
17663 new macros in dispextern.h, frame.h and window.h.
17664
17665 * keyboard.c: Make (many) trivial substitutions for renamed and
17666 new macros in dispextern.h, frame.h and window.h.
17667 (make_lispy_event): Use window positions returned from
17668 window_from_coordinates when constructing the lisp event for
17669 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
17670 (incorrect) values locally.
17671 (make_lispy_movement): Use window positions returned from
17672 window_from_coordinates when constructing the lisp event, rather
17673 than calculating (incorrect) values locally.
17674
17675 * scroll.c: Make (some) trivial substitutions for renamed and
17676 new macros in dispextern.h, frame.h and window.h.
17677
17678 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
17679 scroll-bars.
17680
17681 * sysdep.c: Make (few) trivial substitutions for renamed and
17682 new macros in dispextern.h, frame.h and window.h.
17683
17684 * term.c: Make (some) trivial substitutions for renamed and
17685 new macros in dispextern.h, frame.h and window.h.
17686
17687 * widget.c: Make (few) trivial substitutions for renamed and
17688 new macros in dispextern.h, frame.h and window.h.
17689
17690 * window.c: Make (many) trivial substitutions for renamed and
17691 new macros in dispextern.h, frame.h and window.h.
17692 (make_window): Initialize new members
17693 left_margin_cols, right_margin_cols, left_fringe_width,
17694 right_fringe_width, fringes_outside_margins, scroll_bar_width,
17695 and vertical_scroll_bar_type.
cab27d04 17696 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 17697 and per-window fringes and scroll-bars.
0416870b 17698 Fix bug related to incorrectly adjusting coordinates by
9018a88e 17699 frame's internal_border_width (the effect normally negible since
0416870b
KS
17700 the internal_border_width is typically 0 or 1 pixel, but very
17701 noticeable for an internal_border_width of e.g. 25 pixels).
17702 Upon successful return (other than ON_NOTHING), the coordinates
17703 are now always properly converted to window relative for the
17704 given display element.
17705 (window_from_coordinates): Add new parameters wx and wy to
17706 return the window relative x and y position in the returned
17707 window and part. A null arg means, don't return the position.
17708 All callers changed.
17709 (adjust_window_margins): New function which may reduce the width
17710 of the display margins if a window's text area is too small after
17711 resizing or splitting windows.
17712 (size_window): Fix bug that did not account for display margin
17713 widths when checking the minimum width of a window; use
17714 adjust_window_margins.
17715 (set_window_buffer): Call Fset_window_fringes and
17716 Fset_window_scroll_bars to setup per-window elements.
17717 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
17718 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
17719 (e.g. after splitting a window or resizing the frame).
17720 All callers changed.
0416870b
KS
17721 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
17722 (Fsplit_window): Duplicate original window's display margin,
17723 fringe, and scroll-bar settings; then call Fset_window_buffer with
17724 KEEP_MARGINS non-nil. This fixes a bug which caused a split
17725 window to only preserve the display margins in one of the windows.
c4b8aebc 17726 When splitting horizontally, call adjust_window_margins on both
0416870b 17727 windows to ensure that the text area of the new windows is non too
f9711de4 17728 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
17729 width of the split window was less than the width of the display
17730 margins.
cab27d04 17731 (window_box_text_cols): Rename from window_internal_width.
9018a88e 17732 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
17733 Fix bug that caused vertical separator to be subtracted also on
17734 window frames. Fix another bug that did not reduce the returned
17735 value by the columns used for display margins.
17736 (window_scroll_line_based): Fix bug related to scrolling too much
17737 when display margins are present (implicitly fixed by the fix to
17738 window_box_text_cols).
17739 (scroll_left, scroll_right): Fix bug related to scrolling too far
17740 by default when display margins are present (implicitly fixed by
17741 the fix to window_box_text_cols).
17742 (struct saved_window): Rename members left to left_col, top to
17743 top_line, width to total_cols, height to total_lines, orig_top to
17744 orig_top_line, orig_height to orig_total_lines. All uses changed.
17745 New members left_margin_cols, right_margin_cols,
17746 left_fringe_width, right_fringe_width, fringes_outside_margins,
17747 scroll_bar_width, and vertical_scroll_bar_type for saving
17748 per-window display elements.
17749 (Fset_window_configuration): Restore display margins, fringes,
17750 and scroll bar settings. This fixes a bug which caused display
17751 margins to be discarded when saving and restoring a window
17752 configuration.
17753 (save_window_save): Save display margins, fringes, and scroll bar
17754 settings. This fixes a bug which caused display margins to be
17755 discarded when saving and restoring a window configuration.
17756 (Fset_window_margins): Do nothing if display margins are not
17757 really changed. Otherwise, call adjust_window_margins to ensure
17758 the text area doesn't get too narrow. This fixes a bug which
f9711de4 17759 could cause Emacs to trap if setting display margins wider than
0416870b
KS
17760 the width of the window.
17761 (Fset_window_fringes): New defun to allow user to specifically set
17762 this window's fringe widths and position vs. display margins.
cab27d04 17763 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
17764 (Fset_window_scroll_bars): New defun to allow user to specifically
17765 set this window's scroll bar width and position.
17766 (Fwindow_scroll_bars): New defun to return window's actual scroll
17767 bar settings.
17768 (compare_window_configurations): Also compare display margins,
17769 fringes, and scroll bar settings.
17770 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
17771
17772 * xdisp.c: Make (many) trivial substitutions for renamed and
17773 new macros in dispextern.h, frame.h and window.h.
17774 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 17775 and new fringe vs. display margin position. Note that returned
0416870b
KS
17776 value is no longer guaranteed to be a whole multiple of the frame
17777 column width, since per-window fringes may now be any width.
17778 (window_box_left_offset): New function like window_box_left, but
17779 value is relative to left border of window (rather than frame).
17780 (window_box_right_offset): New function like window_box_right,
17781 but value is relative to left border of window.
17782 (window_box_left): Adapt to per-window fringes and scroll bars,
17783 and new fringe vs. display margin position. Simplify by using
17784 WINDOW_LEFT_EDGE_X and window_box_left_offset.
17785 (window_box): Allow null args for unnecessary return values;
17786 change/simplify relevant callers.
17787 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
17788 and new fringe vs. display margin position.
17789 Use window_box_left_offset and window_box_right_offset
0416870b 17790 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
17791 scroll bars, and new fringe vs. display margin position.
17792 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
17793 (draw_fringe_bitmap): Rework to handle per-window fringes and new
17794 fringe vs. display margin position.
17795 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
17796 (redisplay_window): Adapt to per-window scroll bars.
17797 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
17798 bars, and new fringe vs. display margin position.
17799 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 17800 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
17801 bars, and new fringe vs. display margin position. Fix bug which
17802 increased total width of full_width rows by width of scroll bars
17803 although window's total width already includes that.
17804 (x_fix_overlapping_area): Simplify using window_box_left_offset.
17805 (expose_area): Simplify using window_box_left_offset.
17806 (x_draw_vertical_border): Handle per-window scroll bar settings,
17807 mixing windows with left, right and no scroll bars.
17808
17809 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
17810 where it's used in x_list_fonts (for clarity).
17811 (frame_update_line_height): Remove unused function; functionality
17812 is now done directly when setting the default font in x_set_font.
17813
17814 * xfns.c: Make (many) trivial substitutions for renamed and
17815 new macros in dispextern.h, frame.h and window.h.
17816
17817 * xmenu.c: Make (some) trivial substitutions for renamed and
17818 new macros in dispextern.h, frame.h and window.h.
17819
17820 * xterm.h (struct x_output): Move members left_pos, top_pos,
17821 border_width, pixel_height, pixel_width, line_height,
17822 internal_border_width, vertical_scroll_bar_extra,
17823 left_fringe_width, right_fringe_width, fringe_cols,
17824 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17825 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
17826 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17827 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17828 (PIXEL_WIDTH, PIXEL_HEIGHT)
17829 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 17830 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
17831 frame.h and renamed [see frame.h changes].
17832 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17833 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 17834 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 17835 and renamed [see frame.h changes].
9018a88e 17836
0416870b
KS
17837 * xterm.c: Make (several) trivial substitutions for renamed and
17838 new macros in dispextern.h, frame.h and window.h.
cab27d04 17839 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
17840 (scroll_run): Adapt to new fringe position.
17841 (glyph_rect): Use window coordinates returned from
17842 window_from_coordinates rather than frame_to_window_pixel_xy.
17843 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17844 scroll-bars.
17845 (handle_one_xevent): Simplify a USE_GTK conditional.
17846 (x_clip_to_row): Remove superfluous whole_line_p arg and code
17847 (fringes are now inside margins, i.e. always in the clipping area).
17848 All callers changed.
17849 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17850 directly, then call compute_fringe_widths. Don't call
17851 frame_update_line_height.
17852
17853 * w32term.h (struct w32_output): Move members left_pos, top_pos,
17854 border_width, pixel_height, pixel_width, line_height,
17855 internal_border_width, vertical_scroll_bar_extra,
17856 left_fringe_width, right_fringe_width, fringe_cols,
17857 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17858 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
17859 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17860 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17861 (PIXEL_WIDTH, PIXEL_HEIGHT)
17862 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 17863 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
17864 frame.h and renamed [see frame.h changes].
17865 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17866 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 17867 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 17868 and renamed [see frame.h changes].
9018a88e 17869
0416870b
KS
17870 * w32term.c: Make (several) trivial substitutions for renamed and
17871 new macros in dispextern.h, frame.h and window.h.
cab27d04 17872 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
17873 (glyph_rect): Use window coordinates returned from
17874 window_from_coordinates rather than frame_to_window_pixel_xy.
17875 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17876 scroll-bars.
17877 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
17878 (fringes are now inside margins, i.e. always in the clipping area).
17879 All callers changed.
17880 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17881 directly, then call compute_fringe_widths. Don't call
17882 frame_update_line_height.
17883
17884 * w32console.c: Make (few) trivial substitutions for renamed and
17885 new macros in dispextern.h, frame.h and window.h.
17886
17887 * w32fns.c: Make (many) trivial substitutions for renamed and
17888 new macros in dispextern.h, frame.h and window.h.
17889
17890 * w32menu.c: Make (few) trivial substitutions for renamed and
17891 new macros in dispextern.h, frame.h and window.h.
17892
17893 * macterm.h (struct mac_output): Move members left_pos, top_pos,
17894 border_width, pixel_height, pixel_width, line_height,
17895 internal_border_width, vertical_scroll_bar_extra,
17896 left_fringe_width, right_fringe_width, fringe_cols,
17897 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17898 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
17899 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17900 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17901 (PIXEL_WIDTH, PIXEL_HEIGHT)
17902 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 17903 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
17904 frame.h and renamed [see frame.h changes].
17905 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17906 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 17907 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 17908 and renamed [see frame.h changes].
9018a88e 17909
0416870b
KS
17910 * macterm.c: Make (several) trivial substitutions for renamed and
17911 new macros in dispextern.h, frame.h and window.h.
cab27d04 17912 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
17913 (glyph_rect): Use window coordinates returned from
17914 window_from_coordinates rather than frame_to_window_pixel_xy.
17915 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17916 scroll-bars.
17917 (x_clip_to_row): Remove superfluous whole_line_p arg and code
17918 (fringes are now inside margins, i.e. always in the clipping area).
17919 All callers changed.
17920 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17921 directly, then call compute_fringe_widths. Don't call
17922 frame_update_line_height.
17923
17924 * macfns.c: Make (several) trivial substitutions for renamed and
17925 new macros in dispextern.h, frame.h and window.h.
9018a88e 17926 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
17927
17928 * macmenu.c: Make (few) trivial substitutions for renamed and
17929 new macros in dispextern.h, frame.h and window.h.
17930
17931 * msdos.h (struct x_output): Remove members left_pos, top_pos,
17932 and line_height, and use corresponding new members in struct
17933 frame. All uses changed.
17934 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
17935 superseeded by corresponding macros in frame.h.
17936
17937 * msdos.c: Make (several) trivial substitutions for renamed and
17938 new macros in dispextern.h, frame.h and window.h.
17939 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 17940 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
17941 (internal_terminal_init): No need to initialize line_height here;
17942 it now defaults to 1.
17943
9018a88e
SM
179442003-05-24 Stefan Monnier <monnier@cs.yale.edu>
17945
17946 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
17947 dropping `down' events.
17948
016bd3c0
AS
179492003-05-24 Andreas Schwab <schwab@suse.de>
17950
17951 * coding.c (find_safe_codings): Fix last change.
17952
4dacadcc
TTN
179532003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
17954
17955 * xfns.c (x_window): Fix typo from 2003-05-21 change.
17956
319830ce
SM
179572003-05-23 Stefan Monnier <monnier@cs.yale.edu>
17958
9018a88e
SM
17959 * xdisp.c (display_mode_element): Increase max depth.
17960 Simplify the error handling code. Use a different error string
17961 for the case where we hit the depth limit.
17962
319830ce
SM
17963 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
17964
17965 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
17966
179672003-05-21 Stefan Monnier <monnier@cs.yale.edu>
17968
17969 * intervals.c (get_local_map): Don't get char-property of previous
17970 point any more: get_pos_property already does it and better.
17971
c67de8ba
DL
179722003-05-21 Dave Love <fx@gnu.org>
17973
17974 [Merged from unicode branch.]
17975
17976 * xfns.c (x_window, x_window): Use use_xim.
17977
17978 * xterm.c (use_xim): Initialize.
17979 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17980 (x_term_init): Maybe set use_xim.
17981
17982 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17983
edd3ff1d
JR
179842003-05-21 Jason Rumney <jasonr@gnu.org>
17985
17986 * unexw32.c (_start): Remove _fmode initialization.
17987
17988 * emacs.c (main) [WINDOWSNT]: Move it here.
17989
463f55ee
DL
179902003-05-20 Dave Love <fx@gnu.org>
17991
17992 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
17993
af253914
RS
179942003-05-19 Richard M. Stallman <rms@gnu.org>
17995
17996 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
17997 as value for QCfont attribute.
17998 (realize_default_face): lface should already exist; crash if not.
17999 Specify 0 for FORCE_P when calling set_lface_from_font_name.
18000
18001 * frame.c (Fignore_event): Doc fix.
18002
1d211019
KH
180032003-05-19 Kenichi Handa <handa@m17n.org>
18004
18005 * coding.c (decode_coding_string): Handle post-read-conversion
18006 even if the coding doesn't require decoding.
18007
4dd68254
RS
180082003-05-18 Richard M. Stallman <rms@gnu.org>
18009
18010 * callproc.c (Fcall_process_region): Doc fix.
18011
14d87dc9
SM
180122003-05-17 Stefan Monnier <monnier@cs.yale.edu>
18013
deca5d96
SM
18014 * lread.c (Fload): Print a message if package is obsolete.
18015
14d87dc9
SM
18016 * window.c (Fselect_window): Add optional `norecord' arg.
18017 (select_window_1): Fold into Fselect_window.
18018 (select_window_norecord): New function.
18019 (temp_output_buffer_show): Use it. Preserve current buffer.
18020
18021 * window.h (Fselect_window): Update declaration.
18022
18023 * window.c (delete_window, Fother_window, Fset_window_configuration):
18024 * minibuf.c (read_minibuf):
18025 * macterm.c (x_new_focus_frame):
18026 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
18027 * callint.c (Fcall_interactively):
18028 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
18029
18030 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
18031
78f52183
DK
180322003-05-17 David Kastrup <dak@gnu.org>
18033
18034 * process.c (read_process_output): Back out change from 2003-03-09.
18035
14d87dc9
SM
180362003-05-17 Stefan Monnier <monnier@cs.yale.edu>
18037
18038 * editfns.c (get_pos_property): Don't assume that `object' = nil.
18039
18040 * textprop.c (text_property_stickiness): New arg `buffer'.
18041
18042 * intervals.h (text_property_stickiness): New arg `buffer'.
18043 (get_pos_property): Declare.
18044
18045 * intervals.c (get_local_map): Use get_pos_property, to obey
18046 stickiness and empty overlays.
18047 (create_root_interval, graft_intervals_into_buffer): Use BEG.
18048 (merge_properties, intervals_equal, merge_properties_sticky):
18049 Use XCAR, XCDR.
18050 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
18051
1fd1cc2f
RS
180522003-05-17 Richard M. Stallman <rms@gnu.org>
18053
4f9f637a
RS
18054 * minibuf.c (read_minibuf): If buffer is empty, record the default
18055 in the history.
18056 (Fminibuffer_complete_word): When deleting the overlap, take account
18057 of its real position.
18058
18059 * fns.c (map_char_table): Fix previous change.
18060
1fd1cc2f
RS
18061 * syntax.c (find_defun_start):
18062 When open_paren_in_column_0_is_defun_start,
18063 return beginning of buffer.
18064
18065 * lisp.h (map_char_table): Declare added arg.
18066
18067 * fns.c (map_char_table): New arg TABLE gets the master table.
18068 All calls changed.
18069 Process default and inheritance, resorting to Faref if necessary.
18070
18071 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18072 (Faccessible_keymaps): Pass new arg to map_char_table.
18073
18074 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
18075
18076 * casetab.c (set_case_table): Pass new arg to map_char_table.
18077
18078 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
18079
18080 * lisp.h (specbinding_func): New typedef.
18081 (struct specbinding): Use specbinding_func, to put the `volatile'
18082 in the right place.
18083
18084 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
18085 to avoid GCC warning.
14d87dc9 18086
b6189c3b 180872003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 18088
14d87dc9 18089 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 18090
35fb885d
SM
180912003-05-15 Stefan Monnier <monnier@cs.yale.edu>
18092
18093 * keyboard.c (apply_modifiers): Don't fill the other cache.
18094
9a274fbd
SM
180952003-05-14 Stefan Monnier <monnier@cs.yale.edu>
18096
c55b5fad
SM
18097 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
18098
9a274fbd
SM
18099 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
18100 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
18101 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
18102 (Fset_window_configuration, Fcurrent_window_configuration)
18103 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
18104 (Fpos_visible_in_window_p, mark_window_cursors_off)
18105 (window_internal_height, window_internal_width, Frecenter)
18106 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
18107 (replace_buffer_in_all_windows, init_window_once, init_window)
18108 (syms_of_window, keys_of_window): Move from lisp.h.
18109 * lisp.h: Move window.c declarations to window.h.
18110
18111 * bytecode.c: Include window.h.
18112 * emacs.c: Include window.h.
18113
14d87dc9 18114 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
18115 (keyremap): Add `parent' field.
18116 (keyremap_step): Use it. Remove `parent' argument.
18117 (read_key_sequence): Setup and use the new `parent' field.
18118
fd93e331
SM
181192003-05-11 Stefan Monnier <monnier@cs.yale.edu>
18120
18121 * keyboard.c (adjust_point_for_property): Ensure termination.
18122
1c4001a1
SM
181232003-05-10 Stefan Monnier <monnier@cs.yale.edu>
18124
18125 * keyboard.c (follow_key): Remove dead variable `did_meta'.
18126 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
18127 duplicated handling of function-key-map and key-translation-map
18128 in read_key_sequence.
18129 (read_key_sequence): Use them.
18130
18131 * keyboard.c (adjust_point_for_property): Try harder to move point
18132 to the non-sticky end of an invisible property.
18133
18134 * xdisp.c (single_display_prop_intangible_p): Make `space' display
18135 property intangible as well.
18136
780379b1
AS
181372003-05-10 Andreas Schwab <schwab@suse.de>
18138
18139 * xmenu.c (single_menu_item): Change last parameter to void* to
18140 avoid warning.
18141
ca2de342
RS
181422003-05-09 Richard M. Stallman <rms@gnu.org>
18143
18144 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
18145 Bind Qinhibit_modification_hooks to t so there will be no GC.
18146 Rename local `tem' to `save_deactivate_mark'.
18147
18148 * eval.c (specpdl_ptr): Declare volatile.
18149 (unbind_to): Copy the whole binding and decrement specpdl_ptr
18150 before doing the work of unbinding it.
18151
18152 * lisp.h (struct specbinding): Declare elements volatile.
18153 (specpdl_ptr): Declare volatile.
18154
18155 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
18156
18157 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
18158 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
18159
347003be
DL
181602003-05-08 Dave Love <fx@gnu.org>
18161
18162 * coding.c (Vlast_coding_system_used): Doc fix.
18163
5adcec23
JR
181642003-05-07 Jason Rumney <jasonr@gnu.org>
18165
18166 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
18167 when system does not support them.
18168
5fe3b8a4
SM
181692003-05-05 Stefan Monnier <monnier@cs.yale.edu>
18170
18171 * fileio.c (Qwrite_region_annotate_functions): New var.
18172 (build_annotations): Use it to process the global part of the hook.
18173 (syms_of_fileio): Init and staticpro it.
18174
18175 * keyboard.c (safe_run_hooks_error): Display a message instead of
18176 silently ignoring the error.
18177
181782003-05-03 Stefan Monnier <monnier@cs.yale.edu>
18179
18180 * keyboard.c (input_available_signal): Mark static.
18181 (menu_bar_items): Use map_keymap.
18182 (menu_bar_one_keymap): Remove.
18183 (menu_bar_item): Adjust arglist (for use in map_keymap).
18184 Properly hide a second binding when not both are keymaps.
18185
18186 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
18187 (single_keymap_panes): Use it and map_keymap.
18188 (single_menu_item): Use skp as well.
18189
18190 * keymap.h (map_keymap_function_t): New type.
18191 (map_keymap): Declare.
18192
18193 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
18194 (map_keymap_call, Fmap_keymap): New functions.
18195 (syms_of_keymap): Defsubr map-keymap.
18196
4b1b4443
JD
181972003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18198
18199 * gtkutil.c (create_dialog, make_widget_for_menu_item)
18200 (make_menu_item, create_menus, xg_update_menu_item): Don't call
18201 ..._with_mnemonic functions for menu items.
18202
1f816871
KH
182032003-05-01 Kenichi Handa <handa@m17n.org>
18204
18205 * coding.c (coding_system_accept_latin_extra_p): Delete this
18206 function.
18207 (find_safe_codings): Pay attention to
18208 the property tranlsation-table-for-encode of each codings.
18209 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
18210
5ed6ba5b
SM
182112003-05-01 Stefan Monnier <monnier@cs.yale.edu>
18212
18213 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
18214
32c06229
SM
182152003-04-30 Stefan Monnier <monnier@cs.yale.edu>
18216
18217 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
18218
18219 * lisp.h (CHECK): Wrap args in parenthesis.
18220 (specbind): Fix doc: symbol = Qnil is not supported any more.
18221
18222 * bytecode.c (Fbyte_code) <unwind-protect>:
18223 Use Fprogn rather than 0 and Qnil.
18224
18225 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
18226 `double', and `triple' modifiers as well.
18227
ed3c3314
RS
182282003-04-30 Richard M. Stallman <rms@gnu.org>
18229
18230 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
18231
18232 * alloc.c (abort_on_gc): New variable.
18233 (Fgarbage_collect): Abort if abort_on_gc is set.
18234
18235 * lisp.h (abort_on_gc): Add decl.
18236
18237 * eval.c (Fsignal): Clear abort_on_gc.
18238
18239 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 18240 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
18241
18242 * xdisp.c (move_it_vertically_backward): Do the final big else
18243 even if nlines is 0.
18244
18245 * xdisp.c (redisplay_internal): Finish the per-frame loop
18246 even if redisplay is suspended by input.
18247
0b325c12
AC
182482003-04-24 Andrew Choi <akochoi@shaw.ca>
18249
18250 * macterm.c (x_list_fonts): Return all fonts that match if
18251 maxnames = -1.
18252
4e837cd0
KH
182532003-04-25 Kenichi Handa <handa@m17n.org>
18254
18255 * syntax.c (skip_chars): Fix previous change.
18256
9af7511a
KH
182572003-04-24 Kenichi Handa <handa@m17n.org>
18258
18259 * syntax.c (skip_chars): Make the code faster by using the common
18260 technique of *p, *stop, and *endp.
18261
e3b2c21f
JD
182622003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18263
18264 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 18265 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
18266 being updated.
18267
32c06229
SM
182682003-04-19 Stefan Monnier <monnier@cs.yale.edu>
18269
18270 * eval.c (Fapply): Undo last change and add a comment about why.
18271
c6464167
MB
182722003-04-18 Miles Bader <miles@gnu.org>
18273
18274 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
18275 pickier PARSE_MULTIBYTE_SEQ.
18276
e509f168
SM
182772003-04-17 Stefan Monnier <monnier@cs.yale.edu>
18278
18279 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
18280 Use XCDR, XCAR, CONSP.
18281 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
18282 (Fapply): Remove unnecessary GCPRO.
18283
18284 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
18285
18286 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
18287
18288 * buffer.h: Don't hardcode BEG==1.
18289
18290 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
18291
5ceea398
RS
182922003-04-16 Richard M. Stallman <rms@gnu.org>
18293
18294 * xdisp.c (try_window, try_window_reusing_current_matrix):
18295 When at end of window, set window_end_pos to Z-ZV.
18296
18297 * buffer.c (Foverlay_recenter): Doc fix.
18298
e509f168
SM
182992003-04-14 Stefan Monnier <monnier@cs.yale.edu>
18300
18301 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
18302
d243e605
AC
183032003-04-14 Andrew Choi <akochoi@shaw.ca>
18304
18305 * macterm.c (mac_check_for_quit_char): Don't check more often than
18306 once a second.
18307
6901b111
SM
183082003-04-11 Stefan Monnier <monnier@cs.yale.edu>
18309
18310 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
18311 specially, so that they can't hide an implicit switch-frame event.
18312 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
18313 (head_table): Use switch-frame as event_kind for select-window.
18314 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
18315
18316 * editfns.c (Fformat): Lisp_Object/int mixup.
18317 (format2): Remove unused var numargs.
18318
e301806f 183192003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 18320
6901b111 18321 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
18322 (Qafter_insert_file_set_coding): New variable.
18323 (syms_of_fileio): Initialize and staticpro it. Delete declaration
18324 for after-insert-file-adjust-coding-function.
18325 (Finsert_file_contents): Call Qafter_insert_file_set_coding
18326 instead of Vafter_insert_file_adjust_coding_function.
18327
38914424
KH
183282003-04-11 Kenichi Handa <handa@m17n.org>
18329
18330 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
18331
18332 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
18333 string. Callers changed.
18334
183352003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 18336
6901b111 18337 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 18338 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
18339 (Finsert_file_contents):
18340 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
18341 decode-format.
18342
f979dc05
JD
183432003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18344
18345 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
18346 get GtkAdjustment as widget now is a GtkRange.
18347
18348 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
18349 GtkRange to avoid memory leak.
18350
f8c6b4c2 183512003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 18352
50ebc53d
KH
18353 * xfaces.c (Vface_font_rescale_alist): New variable.
18354 (struct font_name): New member rescale_ratio.
18355 (font_rescale_ratio): New function.
6901b111 18356 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
18357 (better_font_p): On comparing point sized, pay attention to
18358 recale_ratio member of fonts.
18359 (build_scalable_font_name): Reflect font->rescale_ratio in the
18360 font name.
6901b111 18361 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 18362
cb98871c
KH
18363 * lread.c (read1): Before calling index, check if the 2nd
18364 arguemnt is in ASCII range.
18365
4773b8ca
RS
183662003-04-08 Richard M. Stallman <rms@gnu.org>
18367
b0ada147
RS
18368 * fileio.c (Ffile_symlink_p): Doc fix.
18369
18370 * editfns.c (Fformat): Translate positions of text properties
18371 in the format string to apply them to the result.
18372
4773b8ca
RS
18373 * fileio.c (Finsert_file_contents): Doc fix.
18374 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18375
183762003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 18377
4773b8ca
RS
18378 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
18379
e8f25745 183802003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 18381
e8f25745
ST
18382 * mac.c (init_mac_osx_environment): Switch libexec and bin so
18383 that self-contained application finds libexec files.
18384
f8c6b4c2 183852003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 18386
6901b111
SM
18387 * coding.c (code_convert_region_unwind):
18388 Set Vlast_coding_system_used to the argument.
2310d84c
KH
18389 (code_convert_region): If post-read-conversion function changed
18390 the value of last-coding-sytem, keep the new value in
18391 coding->symbol so that it won't be overridden.
18392 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
18393 (coding_system_accept_latin_extra_p): New function.
18394 (find_safe_codings): Pay attention to characters registered in
18395 latin-extra-code-table.
2310d84c 18396
39c9a034
TTN
183972003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
18398
18399 * Makefile.in (md5.o): Add missing dependency info.
18400
eb67c5d6
RS
184012003-04-06 Richard M. Stallman <rms@gnu.org>
18402
18403 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
18404
18405 * marker.c (verify_bytepos): New function.
18406
18407 * intervals.c (set_intervals_multibyte_1): When becoming
18408 multibyte, adjust right and left child sizes to a whole set of
18409 characters. If an interval gets zero total-length, delete it.
18410 If an interval consists of just its children, delete one of them.
18411
18412 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
18413 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 18414
52eb0373 18415 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
18416 All calls deleted.
18417 (lisp_malloc): Do the work here directly.
18418
b1f81fc5
JB
184192003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
18420
18421 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
18422 char tables.
18423
184242003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
18425
18426 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
18427 destructively change "%S" to "%s".
18428
774666fb
MB
184292003-04-03 Miles Bader <miles@gnu.org>
18430
18431 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
18432 always set.
18433
19c37f01
DL
184342003-04-01 Dave Love <fx@gnu.org>
18435
18436 * xfns.c (xpm_lookup_color): Grok "opaque".
18437
2f4b24c3
AC
184382003-03-31 Andrew Choi <akochoi@shaw.ca>
18439
18440 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
18441 parent window ID.
18442
18443 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
18444
18445 * macterm.h (struct mac_output): Define x_pixels_diff and
18446 y_pixels_diff.
b1f81fc5 18447
9443fcf6
JB
184482003-03-31 Juanma Barranquero <lektu@terra.es>
18449
18450 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
18451 blockinput.h and files included from it.
18452
e072891b
KS
184532003-03-31 Kim F. Storm <storm@cua.dk>
18454
18455 The following changes consolidates the common code related to
18456 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
18457 files into frame.c.
9443fcf6 18458
e072891b
KS
18459 * frame.c: Include blockinput.h.
18460 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
18461 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
18462 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
18463 related vars here.
18464 (struct frame_parm_table, frame_parms): New table for describing
18465 frame parameters and their associated Q-variable.
18466 The order of the parameters corresponds to the sequence of the
18467 frame_parm_handlers table in redisplay_interface.
18468 (x_fullscreen_move, x_set_frame_parameters)
18469 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
18470 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
18471 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18472 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
18473 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
18474 Generic functions for processing of frame parameters.
18475 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
18476 (display_x_get_resource, x_get_resource_string): Functions for
18477 generic access to X resources.
18478 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
18479 (x_default_parameter, Fx_parse_geometry): Functions for generic
18480 access to frame parameters.
6901b111
SM
18481 (x_figure_window_size): Generic calculation of frame size.
18482 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
18483 (syms_of_frame): Intern and staticpro frame parameter variables.
18484 Defvar_lisp Vx_resource_class and Vx_resource_name here.
18485 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 18486
e072891b
KS
18487 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
18488 parameter related vars defined in frame.c.
18489 (EMACS_CLASS): Define here.
18490 (enum FULLSCREEN_*): Define here.
18491 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
18492 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
18493 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
18494 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
18495 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
18496 (x_set_visibility, x_set_autoraise, x_set_autolower)
18497 (x_set_unsplittable, x_set_vertical_scroll_bars)
18498 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
18499 (x_figure_window_size): Add prototypes.
18500
18501 * dispextern.h (frame_parm_handler): New typedef.
18502 (struct redisplay_interface): New member frame_parm_handlers.
18503 (enum resource_types): Move declaration here.
18504 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
18505 (x_default_parameter): Add prototypes.
18506
18507 * window.c: Remove extern decl for frame parameter vars.
18508 (change_window_heights): New generic function;
18509 replaces x_change_window_heights. All users changed.
18510
18511 * window.h (change_window_heights): Add prototype.
18512
18513 * xfaces.c: Remove extern decl for frame parameter vars.
18514
18515 * xterm.h (EMACS_CLASS): Remove. Use generic define.
18516 (struct w32_display_info): Fix type of xrdb member.
18517 (enum FULLSCREEN_*): Remove.
18518 Remove prototypes for generic functions (in frame.h).
18519
18520 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18521 parameters now defined in frame.h and frame.c.
f63fd14e 18522 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
18523 (enum x_frame_parms): Remove (bogus, unused enum).
18524 (check_x_display_info): Make non-static (for frame.c).
18525 (struct x_frame_parm_table, x_frame_parms): Remove.
18526 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18527 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18528 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18529 (x_change_window_heights, x_set_autoraise, x_set_autolower)
18530 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18531 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18532 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18533 Remove. Use generic functions instead.
18534 (enum resource_types): Remove.
18535 (x_set_scroll_bar_default_width): New global function (for frame.c).
18536 (Fx_create_frame): Depend on x_figure_window_size to add space for
18537 toolbar and setup size_hint_flags.
18538 (x_frame_parm_handlers): New table for redisplay_interface.
18539 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 18540
e072891b 18541 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 18542 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
18543 (x_redisplay_interface): Add x_frame_parm_handlers member.
18544
18545 * w32gui.h (XrmDatabase): New (dummy) typedef.
18546
18547 * w32term.h (EMACS_CLASS): Remove. Use generic define.
18548 (struct w32_display_info): Fix type of xrdb member.
18549 (enum FULLSCREEN_*): Remove.
18550 (x_fullscreen_adjust): Remove prototype.
18551
18552 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18553 parameters now defined in frame.h and frame.c.
f63fd14e 18554 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
18555 (enum x_frame_parms): Remove (bogus, unused enum).
18556 (check_x_display_info): Make non-static (for frame.c).
18557 (struct x_frame_parm_table, x_frame_parms): Remove.
18558 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18559 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18560 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18561 (x_change_window_heights, x_set_autoraise, x_set_autolower)
18562 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18563 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18564 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18565 Remove. Use generic functions instead.
18566 (enum resource_types): Remove.
18567 (x_set_scroll_bar_default_width): New global function (for frame.c).
18568 (Fx_create_frame): Depend on x_figure_window_size to add space for
18569 toolbar and setup size_hint_flags.
18570 (w32_frame_parm_handlers): New table for redisplay_interface.
18571 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 18572
e072891b 18573 * w32term.c: Remove unnecessary extern declarations.
52eb0373 18574 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
18575 (x_redisplay_interface): Add w32_frame_parm_handlers member.
18576
18577 * w32reg.c (x_get_string_resource): Use XrmDatabase.
18578
18579 * macgui.h (XrmDatabase): New (dummy) typedef.
18580
18581 * macterm.h (EMACS_CLASS): Remove.
18582 (struct mac_display_info): Add xrdb member.
18583 (struct mac_output): Add want_fullscreen member.
18584
18585 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18586 parameters now defined in frame.h and frame.c.
f63fd14e 18587 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
18588 (check_x_display_info): Make non-static (for frame.c).
18589 (struct x_frame_parm_table, x_frame_parms): Remove.
18590 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18591 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18592 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18593 (x_change_window_heights, x_set_autoraise, x_set_autolower)
18594 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18595 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18596 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18597 Remove. Use generic functions instead.
18598 (enum resource_types): Remove.
18599 (x_set_scroll_bar_default_width): New global function (for frame.c).
18600 (mac_frame_parm_handlers): New table for redisplay_interface.
18601 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 18602
e072891b
KS
18603 * macterm.c: Remove unnecessary extern declarations.
18604 (x_redisplay_interface): Add mac_frame_parm_handlers member.
18605
3e6a560b
KS
18606 * Makefile.in (frame.o): Add dependency on blockinput.h and files
18607 included from it (atimer.h and systime.h).
18608
7b7b454e
AS
186092003-03-30 Andreas Schwab <schwab@suse.de>
18610
18611 * xdisp.c (x_insert_glyphs): Fix swapped width and height
18612 parameters for shift_glyphs_for_insert.
18613
18614 * macterm.c (x_redisplay_interface): Add missing entry for
18615 draw_vertical_window_border.
18616
beb402de
KG
186172003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
18618
18619 * fileio.c (Fexpand_file_name): In the no-handler case, after
18620 expanding, look again for a handler and invoke it. This is needed
18621 for filenames like "/foo/../user@host:/bar/../baz" -- the first
18622 expansion produces "/user@host:/bar/../baz" which needs to be
18623 expanded again for the finame result "/user@host:/baz".
18624
b676f356
JD
186252003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18626
18627 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
18628 of area to be redrawn for better performance.
18629
3c671a56
SM
186302003-03-28 Stefan Monnier <monnier@cs.yale.edu>
18631
18632 * xterm.c (take_vertical_position_into_account): Remove.
18633 (xt_action_hook): Call set_vertical_scroll_bar if needed.
18634 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
18635 (xm_scroll_callback, x_create_toolkit_scroll_bar)
18636 (x_set_toolkit_scroll_bar_thumb): Simplify.
18637 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
18638 (XTread_socket): Remove unused var.
18639 (x_make_frame_invisible): Replace goto with else.
18640
18641 * xdisp.c (set_vertical_scroll_bar): New fun.
18642 (redisplay_window): Use it.
18643
84f2e615
RS
186442003-03-26 Richard M. Stallman <rms@gnu.org>
18645
18646 * xdisp.c (update_tool_bar): Recompute tool bar if
18647 update_mode_lines is set. Set w->update_mode_line
18648 only if the tool bar contents actually change.
18649 (update_menu_bar): Undo previous change.
18650
70b6104c
JD
186512003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18652
5fd6f727
JD
18653 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
18654 (xg_frame_set_char_size): Calculate scroll bar width before frame
18655 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
18656 (xg_separator_p): Check for all documented separator types.
18657 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
18658 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
18659
70b6104c
JD
18660 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
18661 so tool bar gets updated.
18662
d9b36d19
SM
186632003-03-26 Stefan Monnier <monnier@cs.yale.edu>
18664
18665 * data.c (store_symval_forwarding): Re-instate part of the code
18666 that was deleted with too much enthusiasm.
18667
186682003-03-25 Stefan Monnier <monnier@cs.yale.edu>
18669
18670 * data.c (store_symval_forwarding): Delete special read-only
18671 hack for type == -1, since we now use ->constant instead.
18672 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
18673
18674 * buffer.c (overlays_in): Declare static.
18675 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
18676 `constant' field rather than the variable's `type' field.
18677
365fa1b3
AC
186782003-03-24 Andrew Choi <akochoi@shaw.ca>
18679
18680 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
18681
18682 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
18683
18684 * fns.c [MAC_OSX]: Do not redefine vector.
18685
18686 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
18687
18688 * macgui.h: Remove definition of No_Cursor.
18689
d9b36d19 18690 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
18691
18692 * xdisp.c: Define No_Cursor.
18693 (x_write_glyphs, notice_overwritten_cursor)
18694 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
18695 (note_mouse_highlight): Remove Mac-specific code.
18696 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 18697
c0bcce6f
JPW
186982003-03-24 John Paul Wallington <jpw@gnu.org>
18699
18700 * xdisp.c (redisplay_window): If mini window's buffer is not
18701 empty, then redisplay it like other windows.
18702
a526b96c
KS
187032003-03-23 Kim F. Storm <storm@cua.dk>
18704
18705 * w32term.c (w32_draw_window_cursor): Fix last change.
18706
37ab321e
KH
187072003-03-23 Kenichi Handa <handa@m17n.org>
18708
a526b96c
KS
18709 * alloc.c (make_string_from_bytes, make_specified_string):
18710 Add `const' for the arg CONTENTS.
37ab321e
KH
18711
18712 * lisp.h (make_string_from_bytes, make_specified_string):
18713 Prototypes adjusted.
18714
7863d625
JD
187152003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18716
14a56a1b 18717 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
fd4c9408 18718
7863d625
JD
18719 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
18720 (XG_SB_RANGE): New define.
18721
18722 * gtkutil.c (xg_fixed_handle_expose): New function.
18723 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
18724 expose events.
18725 (xg_update_scrollbar_pos): Take two more arguments, left and width
18726 of scroll bar including borders.
18727 Clear left and right part outside scroll bar separately as some
18728 themes have bars that are not an even number of pixels.
d9b36d19 18729 Don't set reallocate_redraws, don't call
7863d625
JD
18730 gdk_window_process_all_updates.
18731 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
18732 so no need to change it. Calculate size and value with XG_SB_RANGE.
18733
d9b36d19
SM
18734 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
18735 Pass left and width of scroll bar including borders to
7863d625
JD
18736 xg_update_scrollbar_pos.
18737
af0ad939
TTN
187382003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
18739
18740 * Makefile.in: Make sure space precedes end-of-line backslashes.
18741
b22139fd
KS
187422003-03-22 Kim F. Storm <storm@cua.dk>
18743
18744 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
18745 Add generic versions here. Remove system specific versions
18746 defined elsewhere.
18747
18748 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
18749 Add prototypes.
18750
6e6410cf
KS
18751 * xterm.h (STORE_NATIVE_RECT): New macro.
18752
5c9cc435
KS
187532003-03-21 Kim F. Storm <storm@cua.dk>
18754
00c64fab
SM
18755 * xdisp.c (get_glyph_string_clip_rect):
18756 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
18757
18758 * dispextern.h (struct redisplay_interface): Add active_p
18759 argument to draw_window_cursor member. All uses changed.
18760
acd37560
KS
187612003-03-21 Kim F. Storm <storm@cua.dk>
18762
18763 The following changes consolidate code related to writing and
18764 inserting glyphs, exposing frame, the tool bar, the mouse face,
18765 the output cursor, and help echo from xterm.c, w32term.c and
18766 macterm.c into xdisp.c. It also generalizes the use of the
18767 window_part enum instead of using numeric values throughout.
af0ad939 18768
acd37560
KS
18769 * xdisp.c: Consolidate gui-independent code here.
18770 Include keymap.h.
18771 (Qhelp_echo): Import.
18772 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
18773 (help_echo_string, help_echo_window, help_echo_object)
18774 (previous_help_echo_string, help_echo_pos): Declare here.
18775 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
18776 (estimate_mode_line_height): Define here. Handle windowing
18777 systems directly (without using estimate_mode_line_height_hook).
18778 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
18779 (update_window_cursor, update_cursor_in_window_tree)
18780 (fast_find_position, fast_find_string_pos)
18781 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
18782 (expose_area, expose_line, expose_overlaps, expose_window)
18783 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
18784 declared static as they are only used locally in xdisp.c.
18785 (draw_glyphs): Rename from x_draw_glyphs and make static.
18786 (tool_bar_item_info, notice_overwritten_cursor): Make static.
18787 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
18788 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 18789 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
18790 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
18791 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
18792 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
18793 (note_mouse_highlight, x_clear_window_mouse_face)
18794 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
18795 (x_intersect_rectangles): New generic functions for use by xdisp.c
18796 and GUI front-ends.
18797 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
18798 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
18799
18800 * dispextern.h (Display_Info): Generic typedef for *_display_info.
18801 (NativeRectangle): Generic typedef for rectangle type.
18802 (enum window_part): Move here from window.c.
18803 (struct redisplay_interface): New members flush_display_optional,
18804 define_frame_cursor, clear_frame_area, draw_window_cursor,
18805 draw_vertical_window_border, shift_glyphs_for_insert.
18806 Rename member clear_mouse_face to clear_window_mouse_face.
18807 (estimate_mode_line_height_hook): Remove hook.
18808 (auto_raise_tool_bar_buttons_p): Don't declare extern.
18809 (tool_bar_item_info): Remove prototype.
18810 (help_echo_string, help_echo_window, help_echo_object)
18811 (previous_help_echo_string, help_echo_pos)
18812 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
18813 (x_stretch_cursor_p, output_cursor): Declare extern.
18814 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
18815 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
18816 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
18817 (display_and_set_cursor, set_output_cursor, x_cursor_to)
18818 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
18819 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
18820 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
18821 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
18822 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
18823 Add prototypes.
18824 (mode_line_string, marginal_area_string): Fix prototypes.
18825
18826 * window.c (enum window_part): Move to dispextern.h.
18827 (coordinates_in_window): Use enum window_part member names
18828 instead of numbers to describe return value.
18829 (struct check_window_data): Change part member to window_part.
18830 (check_window_containing): Return window_part unaltered.
18831 (window_from_coordinates): Change part arg from int to enum
18832 window_part. Allow part arg to be null. All users changed.
18833
18834 * window.h (window_from_coordinates): Fix prototype.
18835
18836 * term.c (estimate_mode_line_height): Move to xdisp.c.
18837
18838 * keyboard.c (make_lispy_event): Use enum window_part.
18839
18840 * dispnew.c (mode_line_string, marginal_area_string): Use enum
18841 window_part instead of int in arg list. Users changed.
18842
18843 * xterm.h (No_Cursor): Declare as None for X.
18844 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 18845
acd37560
KS
18846 * xterm.c: Remove consolidated defines and code.
18847 (BETWEEN): Remove unused macro.
18848 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
18849 (x_define_frame_cursor, x_clear_frame_area)
18850 (x_draw_window_cursor): New X-specific functions for RIF.
18851 (x_redisplay_interface): Add new members.
18852
18853 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
18854
18855 * w32term.h (struct w32_output): Remove cross_cursor member.
18856
18857 * w32term.c: Remove consolidated defines and code.
18858 (BETWEEN): Remove unused macro.
18859 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
18860 (w32_define_frame_cursor, w32_clear_frame_area)
18861 (w32_draw_window_cursor): New W32-specific functions for RIF.
18862 (w32_redisplay_interface): Add new members.
18863
a64387ee 18864 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
18865 (XRectangle): Add X compatible rectangle type.
18866 (NativeRectangle): Declare as RECT for W32.
18867 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
18868
18869 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
18870
18871 * w32console.c: Remove consolidated defines and code.
af0ad939 18872
acd37560
KS
18873 * msdos.h (Display_Info): Add generic typedef.
18874
18875 * msdos.c: Remove consolidated defines and code.
18876 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
18877
18878 * macterm.h (struct mac_output): Replace member cross_cursor by
18879 hand_cursor.
18880 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
18881
18882 * macterm.c: Remove consolidated defines and code.
18883 (BETWEEN): Remove unused macro.
18884 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
18885 (mac_define_frame_cursor, mac_clear_frame_area)
18886 (mac_draw_window_cursor): New Mac-specific functions for RIF.
18887 (x_redisplay_interface): Add new members.
18888
18889 * macgui.h (No_Cursor): Define as 0 for Mac.
18890 (XRectangle): Add X compatible rectangle type.
18891 (NativeRectangle): Declare as Rect for Mac.
18892 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
18893
204ccab1
KS
18894 * macfns.c (x_set_mouse_color): Setup hand_cursor.
18895 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 18896
9443fcf6 18897 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
18898 included from it. Add dependency on keymap.h.
18899
18900 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
18901
8ba01a70 189022003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
18903
18904 * fileio.c (Fexpand_file_name): Fix previous change.
18905
8ba01a70 189062003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
18907
18908 * fileio.c (Ffile_name_directory): Reconstruct file name by
18909 make_specified_string.
18910 (Ffile_name_nondirectory, Ffile_name_as_directory)
18911 (Fdirectory_file_name, Fexpand_file_name)
18912 (Fsubstitute_in_file_name): Likewise.
18913 (Fread_file_name): Compare decoded homedir with DIR and
18914 DEFAULT_FILENAME.
18915
18916 * alloc.c (make_specified_string): If NCHARS is negative, count
18917 the number of characters.
18918
19536747
JD
189192003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18920
de38ae5a
JD
18921 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
18922 all widgets.
18923
19536747
JD
18924 * gtkutil.h: Removed xg_ignore_next_thumb.
18925
37ab321e 189262003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
18927
18928 * coding.c (Vchar_coding_system_table): Remove this variable.
18929 (Vcoding_system_safe_chars): New variable.
18930 (intersection): Remove this function.
18931 (find_safe_codings): Don't use Vchar_coding_system_table, but try
18932 all codings in SAFE_CODINGS.
00c64fab 18933 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
18934 find_safe_codings. Get generic coding systems from
18935 Vcoding_system_safe_chars.
18936 (Fdefine_coding_system_internal): New function.
18937 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
18938 Initialize and staticpro Vcoding_system_safe_chars.
18939
17097258
JD
189402003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18941
2a2071c3
JD
18942 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
18943 equal old values before updating.
18944
17097258
JD
18945 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
18946
18947 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
18948
189492003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18950
18951 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
18952 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
18953 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
14a56a1b 18954 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
17097258
JD
18955 (xg_create_scroll_bar): Pass bar to button event callback.
18956 (xg_find_top_left_in_fixed): New function.
18957 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
18958 whole scroll bar area. Get old position with
18959 xg_find_top_left_in_fixed, calculate and only clear needed areas.
18960 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
18961 dragging is in progress. Calculate whole as for Motif.
18962 Remove code that saved last values. Call gtk_range functions to
18963 set scroll bar sizes.
18964
18965 * gtkutil.h: Removed xg_ignore_next_thumb.
18966
8cb9dfbf
JB
189672003-03-17 Juanma Barranquero <lektu@terra.es>
18968
18969 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
18970 and files included from it.
18971
00c64fab
SM
189722003-03-18 Stefan Monnier <monnier@cs.yale.edu>
18973
18974 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
18975 multiple occurrences of the same keymap under different prefixes.
18976 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
18977
c45bb3b2
JR
189782003-03-16 Jason Rumney <jasonr@gnu.org>
18979
18980 * w32gui.h: Use HDC for Display.
18981
18982 * w32term.c (w32_encode_char): Prevent double-byte chars from
18983 crashing Emacs.
18984
18985 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
18986 as binary.
18987
2a6d0874
JB
189882003-03-16 Juanma Barranquero <lektu@terra.es>
18989
18990 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
18991
03eb5fab
KS
189922003-03-16 Kim F. Storm <storm@cua.dk>
18993
18994 The following changes consolidate some of the gui-independent
18995 parts of the processing and drawing of "glyph strings" from
18996 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 18997
03eb5fab
KS
18998 * dispextern.h (struct glyph): Reduce face_id member from 22 to
18999 21 bits (this reduces number of faces from 4M to 2M).
19000 Replace W32 specific w32_font_type member (2 bits) by generic
19001 font_type member (3 bits) for portability.
19002 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
19003 (enum draw_glyphs_face): Define here.
19004 (struct glyph_string): Define here. Merge W32 and X versions.
19005 (struct redisplay_interface): New members per_char_metric,
19006 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
19007 (VCENTER_BASELINE_OFFSET): Define here.
19008 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
19009 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
19010
19011 * xdisp.c: Consolidate gui-independent "glyph string" code here.
19012 (dump_glyph_string): Moved here.
19013 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
19014 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
19015 (fill_composite_glyph_string, fill_glyph_string)
19016 (fill_image_glyph_string, fill_stretch_glyph_string)
19017 (left_overwritten, left_overwriting, right_overwritten)
19018 (right_overwriting, get_char_face_and_encoding)
19019 (set_glyph_string_background_width, compute_overhangs_and_x)
19020 (append_glyph, append_composite_glyph, produce_image_glyph)
19021 (take_vertical_position_into_account, append_stretch_glyph)
19022 (produce_stretch_glyph): New generic functions (based on X version).
19023 Call platform specific functions through rif.
19024 (INIT_GLYPH_STRING): New macro, hides W32 details.
19025 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
19026 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
19027 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
19028 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
19029 (notice_overwritten_cursor):
19030 Generic functions exported to platform modules. Users changed.
19031
19032 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
19033 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
19034 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 19035 New macros for consolidated code.
2a6d0874 19036
03eb5fab
KS
19037 * xterm.c: Remove consolidated defines and code.
19038 (x_per_char_metric, x_encode_char)
19039 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
19040 (x_redisplay_interface): Add new members.
19041
19042 * w32gui.h (Display): Add dummy typedef for consolidation.
19043 (XChar2b): Define alias for wchar_t for consolidation.
19044 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19045
19046 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 19047 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
19048 New macros for consolidation.
19049
fad49844 19050 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
19051 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
19052 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
19053 (w32_per_char_metric): Change font_type arg to int for RIF.
19054 (w32_encode_char): Return int according to RIF requirements.
19055 (w32_compute_glyph_string_overhangs): Adapt to RIF.
19056 (w32_get_glyph_overhangs): New function for RIF. Uses generic
19057 x_get_glyph_overhangs.
19058 (w32_redisplay_interface): Add new members.
19059
19060 * macgui.h (XChar2b): Move typedef here for consolidation.
19061 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19062
19063 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
19064 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
19065 consolidation.
19066
19067 * macterm.c: Remove consolidated defines and code.
19068 (mac_per_char_metric): New function for RIF.
00c64fab 19069 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
19070 (mac_compute_glyph_string_overhangs): Adapt for RIF.
19071 (x_redisplay_interface): Add new members.
19072
00c64fab
SM
190732003-03-15 Stefan Monnier <monnier@cs.yale.edu>
19074
19075 * keymap.c (Vmenu_events): New var.
19076 (syms_of_keymap): Initialize it.
19077 (where_is_internal): Check more carefully what is a menu event.
19078
225c7a07
RS
190792003-03-14 Richard M. Stallman <rms@gnu.org>
19080
19081 * lread.c (read1): After #!, exit loop on eof.
19082
cea9be54
JD
190832003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19084
9ea0e54d
JD
19085 * gtkutil.h: Add declaration for xg_frame_cleared.
19086
0cb35f4e
JD
19087 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
19088
cea9be54
JD
19089 * gtkutil.c (struct xg_last_sb_pos): New structure.
19090 (handle_fixed_child): New function.
19091 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
19092 and force a redraw on them.
19093 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
19094 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
19095 so we can avoid unneeded redraws.
19096 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
19097 and force a redraw on the scroll bar.
19098 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
19099 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 19100 (xg_frame_cleared): New function.
cea9be54 19101
20b853f3
KH
191022003-03-13 Kenichi Handa <handa@m17n.org>
19103
19104 * coding.c (Fdetect_coding_region): Fix docstring.
19105 (Fdetect_coding_string): Fix docstring.
19106
7a555aff
AS
191072003-03-13 Andreas Schwab <schwab@suse.de>
19108
25cc0080
AS
19109 * gtkutil.c: Add prototype for create_menus.
19110
30225431
AS
19111 * data.c (long_to_cons): Fix type of top.
19112
19113 * xselect.c (selection_data_to_lisp_data): Use int instead of
19114 long for an integer of size 4.
19115
7a555aff 19116 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 19117 (xg_tool_bar_help_callback): Likewise.
7a555aff 19118
a3e4741f
AS
191192003-03-12 Andreas Schwab <schwab@suse.de>
19120
19121 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
19122
9668be7c
KS
191232003-03-12 Kim F. Storm <storm@cua.dk>
19124
03eb5fab 19125 The following changes consolidate the fringe handling from
9668be7c 19126 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 19127
9668be7c
KS
19128 * xdisp.c: Consolidate fringe handling code here.
19129 (left_bits, right_bits, continued_bits, continuation_bits)
19130 (ov_bits, zv_bits): Define fringe bitmaps.
19131 (fringe_bitmaps): New array holding fringe bitmaps.
19132 (draw_fringe_bitmap): Draw a specific bitmap; call display
19133 specific drawing routine via rif->draw_fringe_bitmap.
19134 (draw_row_fringe_bitmaps): Generic replacement for
19135 x_draw_row_fringe_bitmaps; all callers changed.
19136 (compute_fringe_widths): Generic replacement for
19137 x_compute_fringe_widths; all callers changed.
19138
19139 * dispextern.h (enum fringe_bitmap_type): Define here.
19140 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
19141 (fringe_bitmaps): Declare extern.
19142 (struct redisplay_interface): New member draw_fringe_bitmap.
19143 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
19144
19145 * xterm.c: Remove generic fringe code.
19146 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19147 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19148
19149 * w32term.c: Remove generic fringe code.
19150 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
19151 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 19152
9668be7c
KS
19153 * macterm.c: Remove generic fringe code.
19154 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19155 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19156
00a88f32
SM
191572003-03-11 Stefan Monnier <monnier@cs.yale.edu>
19158
19159 * print.c (Fprin1_to_string): Return unibyte string if possible.
19160
1d1de695
DK
191612003-03-09 David Kastrup <dak@gnu.org>
19162
19163 * process.c (read_process_output): We have allocated enough space
19164 for readmax and carryover, so actually use the alloted space.
19165
257f40f2
JD
191662003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19167
19168 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
19169 toolkit scrollbar click.
19170
19171 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
19172 for USE_GTK.
19173 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
19174 also.
1d1c7e75 19175 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 19176 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 19177
78819ebb 19178 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
19179
19180 * gtkutil.c (xg_get_scroll_id_for_window): New function.
19181 (xg_tool_bar_item_expose_callback): New function.
19182 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
19183 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
19184 on the tool bar widget.
19185 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
19186 to expose on the tool bar item widgets.
19187
15213141
JD
191882003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19189
26b74a0b 19190 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 19191 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
19192 deleted from the image cache).
19193
15213141
JD
19194 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
19195 the event isn't for a frame (i.e. for dialogs).
19196
20b853f3 191972003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
19198
19199 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
19200 composition components reaches the limit, terminate composing.
19201 (COMPOSITION_OK): New macro.
00a88f32 19202 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
19203 composition is found.
19204 (coding_restore_composition): Adjust the number of composition
19205 components if it is not sane.
19206
c9029fe5
JB
192072003-03-06 Juanma Barranquero <lektu@terra.es>
19208
19209 * w32term.h (struct w32_display_info): Add xrdb member to support
19210 passing resources via -xrm on Windows.
19211
19212 * w32term.c (w32_make_rdb): New function.
19213 (w32_term_init): Use it to initialize xrdb member of w32_display_info
19214 struct. Delete leftover code.
19215
19216 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
19217 for resources passed on the command line.
19218
19219 * w32reg.c (w32_get_rdb_resource): New function.
19220 (x_get_string_resource): Use it, so resources passed with -xrm
19221 supercede the ones in the registry.
19222
9d00001f
JD
192232003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19224
19225 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
19226 instead of x_top_window_to_frame.
19227
ca2417b9
JD
192282003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19229
19230 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
19231 when restarting Emacs.
19232
5b20caf0
RS
192332003-03-03 Richard M. Stallman <rms@gnu.org>
19234
19235 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
19236 to run kill-buffer-query-functions.
19237 (Qkill_buffer_query_functions): New var.
19238 (syms_of_buffer): Init and staticpro it.
19239
58e91b77
JD
192402003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19241
19242 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
19243
932357b4
KS
192442003-02-25 Kim F. Storm <storm@cua.dk>
19245
19246 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
19247 If centering point failed to make whole line visible and vscroll
19248 is non-zero, disable vscroll and try centering point again.
19249
19250 * lread.c (read1): Accept `single space' syntax like (? x).
19251
bb8db7e1
JD
192522003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19253
19254 * keyboard.c (cancel_hourglass_unwind): Surround with
14a56a1b 19255 #ifdef HAVE_X_WINDOWS.
bb8db7e1 19256
47d77aab
KH
192572003-02-25 Kenichi Handa <handa@m17n.org>
19258
19259 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
19260 process only when "subprocesses" is defined.
19261
6a097c0c
SM
192622003-02-24 Stefan Monnier <monnier@cs.yale.edu>
19263
19264 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
19265
0b063c27
JB
192662003-02-24 Juanma Barranquero <lektu@terra.es>
19267
d1135afc
JB
19268 * callint.c (fix_command): Declare as static void and move before
19269 Fcall_interactively.
19270
0b063c27
JB
19271 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
19272 (syms_of_xdisp): Don't initialize Qwhen.
19273
0af912f0
JD
192742003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19275
19276 * keyboard.c (cancel_hourglass_unwind): New function.
19277 (command_loop_1): Cancel hourglass with unwind-protect.
19278
120d0a23
RS
192792003-02-23 Richard M. Stallman <rms@gnu.org>
19280
19281 * callint.c (fix_command): New subroutine, from Fcall_interactively.
19282 Detect (when ... (region-beginning)) etc.
19283 (Fcall_interactively): Call fix_command.
19284 (Qif, Qwhen): New variables.
19285 (syms_of_callint): Init and staticpro them.
0b063c27 19286
120d0a23
RS
19287 * regex.c (print_partial_compiled_pattern): Output to stderr.
19288
4ece81a6
KG
192892003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
19290
19291 * dired.c (directory_files_internal): Don't expand directory.
19292 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
19293 instead. From Lars Hansen <larsh@math.ku.dk>.
19294
e52bd6b7
SM
192952003-02-22 Stefan Monnier <monnier@cs.yale.edu>
19296
19297 * fns.c (string_to_multibyte): Remove unused var i.
19298 (Flanginfo): Fix int/Lisp_Object mixup.
19299 (void_call2): New fun.
19300 (Fmap_char_table): Use it in place of call2.
19301
19302 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
19303
19304 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
19305
19306 * keymap.c (copy_keymap_1): Make it static.
19307
19308 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
19309
c33ef7c4
JB
193102003-02-22 David Ponce <david@dponce.com>
19311
19312 * lread.c (Fload): Don't check STRING_MULTIBYTE.
19313
16782258
JD
193142003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19315
19316 * process.h: Removed subtty field from struct Lisp_Process.
19317
19318 * process.c (create_process): Remove setting of subtty.
19319 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
19320 (Fprocess_running_child_p, process_send_signal):
19321 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
19322 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
19323
3abeca61
KG
193242003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
19325
19326 * keymap.c (Fdefine_key): Doc fix.
19327
92a8ce63
JB
193282003-02-21 Juanma Barranquero <lektu@terra.es>
19329
19330 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
19331
19332 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
19333 POLLING_PROBLEM_IN_SELECT.
19334
19335 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
19336 Delete #undef of POLLING_PROBLEM_IN_SELECT.
19337
19338 * s/hpux10-20.h: New file.
19339
e52bd6b7
SM
19340 * process.c (wait_reading_process_input):
19341 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 19342
20f1ef2e
KH
193432003-02-20 Kenichi Handa <handa@m17n.org>
19344
32d0a9dc
KH
19345 * fontset.c (check_fontset_name): If NAME is nil, return the
19346 default fontset.
19347 (override_font_info): New function.
e52bd6b7 19348 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
19349 (Ffontset_info): If FONTSET is not the default fontset, merge
19350 FONTSET onto the copy of the default fontset, and work on that
19351 copy. Document that NAME nil means the default fontset.
19352 (Ffontset_font): Document that NAME nil means the default fontset.
19353
20f1ef2e
KH
19354 * process.c (setup_process_coding_systems): If the process's
19355 in/out descriptor is -1, do nothing.
19356
77d1daf2
AS
193572003-02-19 Andreas Schwab <schwab@suse.de>
19358
e52bd6b7
SM
19359 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
19360 Add prototypes.
77d1daf2 19361
f9a45bb3
KH
193622003-02-19 Kenichi Handa <handa@m17n.org>
19363
19364 * xfaces.c (try_alternative_families): Try all scalable fonts if
19365 Vscalable_fonts_allowed is not Qt.
19366
72ecb43c
JD
193672003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19368
19369 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
19370
ee5be7c3
JD
193712003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19372
19373 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
19374 names.
19375
19376 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 19377 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
19378 x_face_list_fonts.
19379 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
19380 (Fx_list_fonts): Set maxnames to -1 to get all font names.
19381
4cd519a7
KS
193822003-02-18 Kim F. Storm <storm@cua.dk>
19383
068f9882
KS
19384 * lread.c (read1): Fix last change.
19385 "`" is not always special. Allow "?" after a character constant.
4cd519a7 19386
7290a344
AC
193872003-02-18 Andrew Choi <akochoi@shaw.ca>
19388
19389 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
19390
1f7fa69b
AS
193912003-02-18 Andreas Schwab <schwab@suse.de>
19392
19393 * window.c (window_scroll_pixel_based): Move outside a
19394 multi-glyph character before setting new window start.
19395
19396 * xdisp.c (in_display_vector_p): New function.
19397 * dispextern.h (in_display_vector_p): Declare.
19398
23e21195
KS
193992003-02-18 Kim F. Storm <storm@cua.dk>
19400
19401 * lread.c (read1): Fix and relax read syntax.
19402 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
19403 Only recognize "," after dotted-pair dot if inside backquote.
19404 Never include "`" or "," (inside backquote) in a symbol.
19405 Allow dotted-pair dot after a character constant.
19406 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 19407
f098b121
JD
194082003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19409
19410 * gtkutil.c (xg_tool_bar_expose_callback): New function.
19411 (xg_create_tool_bar): Force style of tool bar to be horizontal with
19412 icons. Set name of tool bar to emacs-toolbar.
19413 (update_frame_tool_bar): Connect expose event to
19414 xg_tool_bar_expose_callback.
19415
63020c46
RS
194162003-02-17 Richard M. Stallman <rms@gnu.org>
19417
19418 * keyboard.c (this_command_key_count_reset): New variable.
19419 Initiatize to 0 where this_command_key_count is set.
19420 (read_char): Save and restore this_command_key_count_reset
19421 around input method code.
19422 (read_char): If this_command_key_count_reset, echo reread commands.
19423 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
19424
fb4452cc
KH
194252003-02-17 Kenichi Handa <handa@m17n.org>
19426
19427 * fns.c (string_to_multibyte): Always return a multibyte string.
19428
bd11cc09
JR
194292003-02-16 Jason Rumney <jasonr@gnu.org>
19430
e52bd6b7
SM
19431 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
19432 Negative max_fonts parameter means list all.
bd11cc09 19433
4cdf4bde
DL
194342003-02-14 Dave Love <fx@gnu.org>
19435
19436 * fns.c (Flanginfo): Doc fix.
19437
023b93f6
KS
194382003-02-13 Kim F. Storm <storm@cua.dk>
19439
37cd4238
KS
19440 * lread.c (read_escape): Interpret \s as a SPACE character, except
19441 for \s-X in a character constant which still is the super modifier.
19442 (read1): Signal an `invalid read syntax' error if a character
19443 constant is immediately followed by a digit or symbol character.
19444
140a6b7e
KS
19445 * search.c (Fmatch_data): Doc fix. Explicitly state that
19446 match-data is undefined if last search failed.
19447
3419757d 19448 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
19449 All uses changed.
19450
7d5c86e5
JB
194512003-02-12 Juanma Barranquero <lektu@terra.es>
19452
19453 * eval.c (Fdefmacro): Fix typo.
19454
295fff2c
KS
194552003-02-12 Kim F. Storm <storm@cua.dk>
19456
19457 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
19458 macro is a string, convert meta modifiers in string when copying
19459 the string into a vector.
19460
60f3202d
KS
194612003-02-11 Kim F. Storm <storm@cua.dk>
19462
19463 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
19464
61cb0b53
KH
194652003-02-11 Kenichi Handa <handa@m17n.org>
19466
19467 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
19468
7392e23c
KS
194692003-02-10 Kim F. Storm <storm@cua.dk>
19470
19471 * process.c: Doc fixes.
19472 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
19473
ce4254bd
KH
194742003-02-10 Kenichi Handa <handa@m17n.org>
19475
9c7a329a
KH
19476 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
19477
ce4254bd
KH
19478 * process.c (QCfilter_multibyte): New variable.
19479 (setup_process_coding_systems): New function.
e52bd6b7
SM
19480 (Fset_process_buffer, Fset_process_filter):
19481 Call setup_process_coding_systems.
ce4254bd
KH
19482 (Fstart_process): Initialize the member `filter_multibyte' of
19483 struct Lisp_Process.
19484 (create_process): Call setup_process_coding_systems.
19485 (Fmake_network_process): New keyward `:filter-multibyte'.
19486 Initialize the member `filter_multibyte' of struct Lisp_Process.
19487 Call setup_process_coding_systems.
19488 (server_accept_connection): Call setup_process_coding_systems.
19489 (read_process_output): If the process has a filter, decide the
19490 multibyteness of a string to given to the filter by
19491 `filter_multibyte' member of the process. If the process doesn't
19492 have a filter and the result of conversion is unibyte, use
19493 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
19494 multibyte form.
19495 (Fset_process_coding_system): Call setup_process_coding_systems.
19496 (Fset_process_filter_multibyte): New function.
19497 (Fprocess_filter_multibyte_p): New function.
19498 (syms_of_process): Intern and staticpro QCfilter_multibyte.
19499 Defsubr Sset_process_filter_multibyte and
19500 Sprocess_filter_multibyte_p.
19501
19502 * process.h (struct Lisp_Process): New member filter_multibyte.
19503
19504 * lisp.h (setup_process_coding_systems): Add prototype.
19505
19506 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
19507 process, update coding systems for the process.
19508
b08d5f59
KH
195092003-02-09 Kenichi Handa <handa@m17n.org>
19510
19511 * fns.c (string_to_multibyte): New function.
19512 (Fstring_to_multibyte): New function.
19513 (syms_of_fns): Defsubr it.
19514
0dfd93c0
AS
195152003-02-08 Andreas Schwab <schwab@suse.de>
19516
19517 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
19518 instead of the substitution.
19519
7b76ca1c
JD
195202003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19521
19522 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
19523
19524 * xmenu.c (menu_position_func): Adjust menu popup position so that
19525 the menu is fully visible.
7b76ca1c 19526
2436a4e4
JD
195272003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19528
19529 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
19530 (x_make_frame_invisible, x_wm_set_icon_position):
19531 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
19532
19533 * xfns.c (x_set_name, x_set_title): Ditto.
19534
37d1e680
RS
195352003-02-04 Richard M. Stallman <rms@gnu.org>
19536
19537 * keyboard.c (echo_now): Update before_command_echo_length.
19538 (Freset_this_command_lengths): Reset this_command_key_count etc.
19539 immediately rather than arranging to do it later.
19540 (before_command_key_count_1, before_command_echo_length_1)
19541 (before_command_restore_flag): Vars deleted.
19542 (add_command_key): Don't handle before_command_restore_flag.
19543 (read_char, record_menu_key): Don't update before_command_key_count or
19544 before_command_echo_length.
19545 (read_char): Don't handle before_command_restore_flag.
19546
19547 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
19548 in direct-output clauses if it wouldn't be called in the ordinary case.
19549
578846a3
KS
195502003-02-04 Kim F. Storm <storm@cua.dk>
19551
19552 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
19553
49853a4d
JD
195542003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19555
19556 * gtkutil.c (remove_from_container): Copying list is not needed.
19557 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
19558 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
19559 on list returned from gtk_container_get_children to avoid memory leak.
19560
8b53dc06
JR
195612003-02-01 Jason Rumney <jasonr@gnu.org>
19562
5d54d177
JR
19563 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
19564 local malloc.
19565 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
19566 definitions in xpm.h.
19567 (init_xpm_functions): New function.
f63fd14e 19568 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
19569 (init_external_image_libraries): Try to load libXpm.dll.
19570
8b53dc06
JR
19571 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
19572 timestamp.
19573
b222e415
DL
195742003-01-31 Dave Love <fx@gnu.org>
19575
19576 * syntax.c (Fskip_chars_forward)
19577 (open-paren-in-column-0-is-defun-start): Doc fix.
19578
c60ee5e7
JB
195792003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
19580
19581 * fileio.c: Support // at start of name for Cygwin (just added proper
19582 preprocessor tests).
19583
19584 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
19585
19586 * Makefile.in: Use @EXEEXT@ for Cygwin.
19587
19588 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
19589
19590 * s/cygwin.h: Added for Cygwin port.
19591
53b37591
JB
195922003-01-31 Juanma Barranquero <lektu@terra.es>
19593
19594 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
19595 when including gif_lib.h.
fe929957 19596 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
19597 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
19598 Windows. Disable color table lookups. Call library functions
53b37591 19599 through pointers determined at runtime.
fe929957
JB
19600 (init_external_image_libraries): Try to load libungif.dll and
19601 libtiff.dll.
53b37591 19602
45415a8f
KH
196032003-01-31 Kenichi Handa <handa@m17n.org>
19604
19605 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 19606 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 19607
a97e4138
JD
196082003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19609
e52bd6b7 19610 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 19611
6eed9bed
DL
196122003-01-30 Dave Love <fx@gnu.org>
19613
19614 * alloc.c (Vgc_elapsed, gcs_done): New variables.
19615 (Fgarbage_collect): Use them.
19616 (init_alloc, syms_of_alloc): Set them up.
19617
100dcd40
JB
196182003-01-30 Juanma Barranquero <lektu@terra.es>
19619
19620 * w32fns.c (init_external_image_libraries): Add missing operator.
19621
fbd852af
JR
196222003-01-29 Jason Rumney <jasonr@gnu.org>
19623
19624 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
19625 an alternative name for jpeg.dll.
19626
8a2d8020
KH
196272003-01-29 Kenichi Handa <handa@m17n.org>
19628
19629 * xdisp.c (set_cursor_from_row): Pay attention to string display
19630 properties.
19631
058c18c7
AC
196322003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
19633
19634 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
19635 <escape>.
19636 (keycode_to_xkeysym_table): Reformat and add more comments.
19637 (XTread_socket): Drop special case for backspace.
19638
385f11cf
AC
196392003-01-28 Andrew Choi <akochoi@shaw.ca>
19640
19641 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
19642 values in old-style RGB specs.
19643
c922a224
JB
196442003-01-27 Juanma Barranquero <lektu@terra.es>
19645
19646 * w32fns.c (init_external_image_libraries): Try alternate names for the
19647 jpeg dll.
19648
0a1d6de0
JD
196492003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19650
19651 * gtkutil.c (create_dialog, xg_separator_p)
19652 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
19653 before calling strcmp or strlen.
19654
a97e4138 196552003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
19656
19657 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
19658 and handle image load failure.
19659
28908312
JR
196602003-01-26 Jason Rumney <jasonr@gnu.org>
19661
19662 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
19663 New functions.
f63fd14e
JB
19664 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
19665 Disable color table lookups. Call jpeg library functions
28908312
JR
19666 through pointers determined at runtime.
19667 (init_external_image_libraries): Try to load jpeg.dll.
19668
84e47416
RS
196692003-01-25 Richard M. Stallman <rms@gnu.org>
19670
19671 * lisp.h: Declare format2 instead of format1.
19672
19673 * fileio.c (barf_or_query_if_file_exists):
19674 Call format2 instead of format1.
19675
19676 * editfns.c (format2): New function, replaces format1
19677 but takes exactly two Lisp Objects as format args.
19678
19679 * buffer.c (Fkill_buffer): Call format2 instead of format1.
19680
a97e4138 196812003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
19682
19683 * xterm.h: Change to return value of x_dispatch_event to int.
19684
19685 * xterm.c (x_filter_event): New function.
19686 (event_handler_gdk, XTread_socket): Call x_filter_event.
19687 (x_dispatch_event): Change to return value of finish.
19688 (event_handler_gdk): Use return value from x_dispatch_event.
19689
19690 * xfns.c (x_window): Call create_frame_xic for GTK version to
19691 initialize input methods.
19692
19693 * gtkutil.h: Add (void) prototypes.
19694
19695 * gtkutil.c (create_menus): Remove code that puts the help menu to
19696 the right.
19697
54eefef1
JR
196982003-01-25 Jason Rumney <jasonr@gnu.org>
19699
19700 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
19701 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
19702 (png_load): Adjust colors for Windows. Use Windows
19703 bitmaps. Disable color table lookups.
c262430d
JR
19704 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
19705 (init_png_functions): New function.
19706 (png_read_from_memory, png_load): Call png library functions
19707 through pointers determined at runtime.
19708 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
19709 (init_external_image_libraries): New function.
19710 (init_xfns): Call it.
54eefef1 19711
1a9e275b
AS
197122003-01-24 Andreas Schwab <schwab@suse.de>
19713
19714 * minibuf.c (Fminibuffer_message): Verify type of parameter.
19715
a97e4138 197162003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
19717
19718 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
19719 of static initializer.
19720
422eec7e
DL
197212003-01-24 Dave Love <fx@gnu.org>
19722
19723 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
19724 architectures.
19725
19726 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
19727 Use __alignof__.
19728
2a026b04
KH
197292003-01-24 Kenichi Handa <handa@m17n.org>
19730
19731 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 19732 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
19733 (command_loop_1): Call adjust_point_for_property with proper
19734 second arg.
19735
a18bb28d
JR
197362003-01-22 Jason Rumney <jasonr@gnu.org>
19737
19738 Sync changes with xterm.c and xfns.c.
19739
19740 * w32term.c (x_draw_glyph_string_foreground)
19741 (x_draw_composite_glyph_string_foreground): Implement overstriking.
19742
19743 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
19744 phys_cursor's hpos is overwritten. This is still not completely
19745 correct, as it doesn't really make sense to use hpos at all to
19746 get the cursor glyph (as that is relative to the width of the
19747 characters on the line, which may have changed during the update).
19748
19749 * w32term.c (notice_overwritten_cursor): Handle the special case
19750 of the cursor being in the first blank non-text line at the
19751 end of a window.
19752
19753 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
19754 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
19755 Compute from the x position returned by x_draw_glyphs.
19756
19757 (x_display_and_set_cursor): Don't set phys_cursor_width here,
19758 except for NO_CURSOR and system caret, to make phys_cursor_width
19759 contain what its name suggests.
19760 (notice_overwritten_cursor): Consider the cursor image erased if
19761 the output area intersects the cursor image in y-direction.
19762
6a097c0c
SM
19763 * w32term.c (note_mode_line_or_margin_highlight): Rename from
19764 note_mode_line_highlight and extend.
a18bb28d
JR
19765
19766 * w32term.c (last_window): New variable.
19767 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
19768 (note_mouse_movement): Remove reimplemented code in #if 0.
19769
19770 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
19771 not update_mode_lines, and always set it to 1.
19772
ac6e47ef
JR
197732003-01-21 Jason Rumney <jasonr@gnu.org>
19774
19775 * w32fns.c (IDC_HAND): Define it if system headers don't.
19776
197772003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
19778
19779 * w32term.h (struct w32_output): New member hand_cursor.
19780 (WM_EMACS_SETCURSOR): New message definition.
19781
19782 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
19783 function w32_define_cursor.
19784 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
19785 position, change member name output_data.x to output_data.w32 and
19786 add function w32_define_cursor.
19787 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
19788 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
19789 (w32_initialize_display_info):
19790 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
19791
19792 * w32fns.c (Vx_hand_shape): New variable.
19793 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
19794 WM_EMACS_SETCURSOR.
19795 (x-create-frame): Setup Cursor types.
19796
ceb39a17
JB
197972003-01-21 David Ponce <david@dponce.com>
19798
ac6e47ef 19799 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
19800 ccl->reg[2] to -1 before calling ccl_driver.
19801 (Sync. with xterm.c x_encode_char change by Kenichi Handa
19802 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
19803 (w32_draw_relief_rect): Declare all args.
19804 (w32_define_cursor): New.
19805
19806 * w32fns.c (w32_load_cursor): New function.
19807 (w32_init_class): Use it.
19808 (x_put_x_image): Declare all args.
19809
b6189c3b 198102003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
19811
19812 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
19813
a97e4138 198142003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476 19815
14a56a1b 19816 * gtkutil.c: Must include stdio.h before termhooks.h.
e8794476 19817
83fc9c63
DL
198182003-01-21 Dave Love <fx@gnu.org>
19819
19820 * alloc.c (Fgc_status): Print zombie list.
19821 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
19822 Fix assignment of zombies.
19823 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
19824 Don't take car of non-cons.
19825
19826 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19827
19828 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19829
fe04b8c8
JR
198302003-01-20 David Ponce <david@dponce.com>
19831
19832 * w32menu.c (digest_single_submenu): Declare all args.
19833
19834 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
19835 changes in xmenu.c:
19836
19837 (parse_single_submenu): Use individual keymap's prompt
19838 string as pane name, if there is one.
19839 (set_frame_menubar): Save menu_items_n_panes from each call to
19840 parse_single_submenu and use it when calling digest_single_submenu.
19841
539e69a9
ST
198422003-01-20 Steven Tamm <steventamm@mac.com>
19843
7e26f91b 19844 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
19845 before sending a scroll-wheel event.
19846
675d000f
RS
198472003-01-20 Richard M. Stallman <rms@gnu.org>
19848
19849 * xdisp.c (redisplay_window): If mini window's buffer is not
19850 a minibuffer, then redisplay it like other windows.
19851
a97e4138 198522003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
19853
19854 * gtkutil.c (xg_create_frame_widgets): Check if there is an
19855 external tool bar before setting tool bar height.
19856
048addec
JD
198572003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19858
19859 * xterm.c (handle_one_xevent): Surround popup_activated
19860 with #ifdef:s for non-toolkit version.
19861
14a56a1b 19862 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
048addec
JD
19863 (gtkutil.o): New file.
19864 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
19865 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
19866
19867 * gtkutil.c: New file for GTK version.
19868
19869 * gtkutil.h: New file for GTK version.
19870
19871 * xterm.h: Add xt_or_gtk_widget.
19872 Include gtk files for USE_GTK.
19873 (struct x_output): Add toolbar_height.
19874 (struct x_output): Add GTK widgets and Gdk size_hints.
19875 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
19876 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
19877 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
19878
19879 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 19880 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
19881 (note_mouse_highlight): Check popup_activated for USE_GTK.
19882 (xt_action_hook): Don't compile if USE_GTK.
19883 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
19884 (xg_scroll_callback): New function.
19885 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
19886 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
19887 for USE_GTK.
19888 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
19889 xg_show_scroll_bar for USE_GTK.
19890 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
19891 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
19892 (event_handler_gdk): New function for USE_GTK.
19893 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
19894 (handle_one_xevent): Make sure widget is mapped before
19895 calling x_real_positions for USE_GTK.
19896 (XTread_socket): Add GTK event loop for USE_GTK.
19897 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
19898 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
19899 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
19900 (x_iconify_frame): Add code for USE_GTK.
19901 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
19902 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
19903 is in gtkutil.c.
19904 (x_term_init): Add initialization for GTK.
19905 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
19906
19907 * xmenu.c: Include gtkutil.h for USE_GTK.
14a56a1b 19908 (Fx_popup_menu): Use current position if x and y are nil.
6bdb309a
SM
19909 (single_menu_item, single_menu_item, Fx_popup_dialog):
19910 Check for USE_GTK.
048addec
JD
19911 (popup_widget_loop): New function for USE_GTK.
19912 (x_activate_menubar): Add code for USE_GTK.
19913 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
19914 (menu_highlight_callback, menubar_selection_callback):
19915 Add USE_GTK versions.
048addec
JD
19916 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
19917 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
19918 (free_frame_menubar): Only compile if not USE_GTK. GTK version
19919 is in gtkutil.c.
19920 (popup_selection_callback): New version for USE_GTK.
19921 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 19922 one USE_X_TOOLKIT version.
048addec
JD
19923 (xmenu_show): Call create_and_show_popup_menu.
19924 (dialog_selection_callback): New version for USE_GTK.
19925 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 19926 one USE_X_TOOLKIT version.
048addec
JD
19927 (xdialog_show): Call create_and_show_dialog.
19928
19929 * xfns.c: Include gtkutil for USE_GTK.
19930 (x_window_to_frame, x_any_window_to_frame)
19931 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
19932 (x_top_window_to_frame): Add code for USE_GTK.
19933 (x_set_background_color): Call xg_set_background_color for GTK.
19934 (x_set_menu_bar_lines): Check for USE_GTK.
19935 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
19936 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
19937 (x_window): Call xg_create_frame_widgets for USE_GTK.
14a56a1b 19938 (Fx_create_frame): Check for USE_GTK.
048addec
JD
19939 (Fx_file_dialog): New implementation for USE_GTK.
19940
19941 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
19942 (update_menu_bar): Add check for USE_GTK.
19943 (update_tool_bar): Add check for USE_GTK and external tool bar.
19944 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
19945 (redisplay_internal): Add check for USE_GTK and popup_activated.
19946 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
19947 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
19948 (display_menu_bar): Add check for USE_GTK
19949
78819ebb 19950 * lisp.h (Vx_resource_name): Declare extern.
048addec 19951
a64387ee 19952 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
19953 for USE_GTK.
19954 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
19955
19956 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
19957 (FRAME_EXTERNAL_TOOL_BAR): New macro.
19958 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
19959
19960 * fileio.c (Fread_file_name): Add check for USE_GTK.
19961
6bdb309a
SM
19962 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
19963 Add check for USE_GTK.
048addec 19964
14a56a1b 19965 * config.in: Added HAVE_GTK.
048addec
JD
19966
19967 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
19968
199692003-01-18 Stefan Monnier <monnier@cs.yale.edu>
19970
19971 * charset.h (Funibyte_char_to_multibyte): Export.
19972
199732003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19974
19975 * xmenu.c (mouse_position_for_popup): New function.
19976 (Fx_popup_menu): Call mouse_position_for_popup for X and
19977 mouse_position_hook for others.
19978
199792003-01-17 Kim F. Storm <storm@cua.dk>
19980
19981 * editfns.c (Finsert): Mention `string-make-multibyte' and
19982 `string-as-multibyte' in doc string.
19983
199842003-01-17 Kenichi Handa <handa@m17n.org>
19985
19986 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 19987
048addec
JD
19988 * editfns.c (Fformat): Convert an unibyte char argument that is
19989 formatted by "%c" to multibyte if the total result must be a
19990 multibyte string.
cd7df9c0 19991
048addec 199922003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 19993
048addec
JD
19994 * process.c (set-process-filter): Document unibyte/multibyte-ness
19995 of string argument.
56210ecd 19996
048addec 199972003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 19998
048addec 19999 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 20000
048addec
JD
20001 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
20002 (re_search_2): Likewise.
6df8b9fe 20003
048addec 200042003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 20005
048addec
JD
20006 * xdisp.c (message_dolog): Fix bug of the case that *Message*
20007 buffer is unibyte.
292ddc31 20008
048addec 200092003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 20010
048addec 20011 * fns.c (Fsubstring): Clarify doc string.
292ddc31 20012
048addec
JD
20013 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
20014 (Fprevious_char_property_change)
20015 (Fnext_single_char_property_change)
20016 (Fprevious_single_char_property_change, Fnext_property_change)
20017 (Fnext_single_property_change, Fprevious_property_change)
20018 (Fprevious_single_property_change, Fadd_text_properties)
20019 (Fput_text_property, Fset_text_properties)
20020 (Fremove_text_properties, Fremove_list_of_text_properties)
20021 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 20022
048addec 200232003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 20024
048addec
JD
20025 * process.h (struct Lisp_Process): New member plist replaces old
20026 member private_vars. All uses changed.
63e4e4c6 20027
048addec 20028 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 20029 (QCplist): Rename from QCvars. Change all uses.
048addec 20030 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 20031 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 20032 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 20033 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 20034
048addec 200352003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 20036
6bdb309a 20037 * m/delta.h: Remove (obsolete).
e833850f 20038
048addec 200392003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 20040
048addec
JD
20041 * fileio.c (Fdelete_directory, Fdelete_file): Document the
20042 behaviour in front of symlinks.
20043 (Fdelete_file): Raise an error on directories.
817cb127 20044
048addec 200452003-01-13 Dave Love <fx@gnu.org>
817cb127 20046
048addec 20047 * fns.c (Freverse): Use QUIT.
3e8cf2ea 20048
048addec 200492003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 20050
048addec
JD
20051 * minibuf.c (minibuffer_completion_contents):
20052 Error if point is inside prompt.
3e8cf2ea 20053
048addec
JD
20054 * keyboard.c (command_loop_1): Don't redisplay directly
20055 if there's a post-command-hook.
3e8cf2ea 20056
048addec
JD
20057 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
20058 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 20059
048addec 200602003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 20061
048addec 20062 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 20063
048addec
JD
20064 * process.c (QCvars): New variable.
20065 (syms_of_process): Intern and staticpro it.
20066 (Fset_process_contact): Removed function.
20067 (Fprocess_variable, Fset_process_variable): New functions.
20068 (syms_of_process): Defsubr them.
20069 (Fstart_process): Initialize private_vars plist to nil.
20070 (Fmake_network_process): New arg :vars to setup the private
20071 variables for new network process.
20072 (server_accept_connection): Copy server's private variables to
20073 client process.
2c10f029 20074
048addec
JD
20075 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
20076 crashes). Code rewritten and simplified. Now directly aligns the
20077 pointer and recalculates pure_bytes_used, rather than aligning the
20078 size and adjusting the pointer.
b8a76c6c 20079
048addec 200802003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 20081
048addec
JD
20082 * process.c (Fset_process_contact): New function.
20083 (syms_of_process): defsubr it.
20084 (make-network-process): Update doc.
3a8d0899 20085
048addec 200862003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 20087
048addec
JD
20088 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
20089 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 20090
048addec 200912003-01-10 Dave Love <fx@gnu.org>
4abc7470 20092
048addec 20093 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 20094
048addec 200952003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 20096
048addec
JD
20097 * process.c (Fmake_network_process): Convert new port number
20098 to host byte order for `:service t' case. From Mario Lang.
bf338245 20099
048addec 201002003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 20101
048addec
JD
20102 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
20103 instead of XtAppProcessEvent.
bf338245 20104
048addec
JD
20105 * xterm.c (handle_one_xevent): New function.
20106 (x_dispatch_event): New function.
20107 (XTread_socket): Call handle_one_xevent.
bf338245 20108
048addec 20109 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 20110
048addec
JD
20111 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
20112 call XQueryPointer to get coordinates.
20113 (popup_get_selection): Do not set popup_activated_flag to zero,
20114 let popup_deactivate_callback do that. Needed for Motif.
20115 Call x_dispatch_event instead of XtDispatchEvent.
20116 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 20117
048addec 201182003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 20119
6bdb309a 20120 * process.c (server_accept_connection): Fix recording of new
048addec
JD
20121 connection's local address in :local property of contact info.
20122 (Fmake_network_process): Record local network address for new
20123 client processes in :local property of contact info.
6bdb309a 20124 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 20125
048addec 201262003-01-07 Dave Love <fx@gnu.org>
00e3ab56 20127
048addec 20128 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 20129
ddec2286
RS
201302003-01-06 Dave Love <fx@gnu.org>
20131
20132 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
20133 (Vlocale_coding_system): Declare.
20134 (Qcodeset, Qdays, Qmonths, Qpaper): New.
20135 (Flanginfo): New.
20136 (syms_of_fns): Initialize new stuff.
20137
048addec 201382003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 20139
048addec 20140 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 20141
048addec
JD
20142 * eval.c (Fuser_variable_p): Doc change. For custom variables,
20143 use the same test as for custom-variable-p.
8c6d74c6 20144
048addec 201452003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 20146
048addec
JD
20147 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
20148 Count LAST_LINE_MISFIT in scroll margin for end of window.
20149 Move label too_near_end before setting SCROLL_MARGIN_POS.
20150 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 20151
048addec
JD
20152 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
20153 scroll_conservatively case. If scrolling that much doesn't change
20154 STARTP, move it down one line.
e833850f 20155
048addec
JD
20156 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
20157 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 20158
048addec
JD
20159 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
20160 selected frame.
8c6d74c6 20161
048addec 20162 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 20163 (syms_of_keymap): Staticpro them.
048addec
JD
20164 (Fapropos_internal): Initialize them and clear them out.
20165 Don't GCPRO them.
8c6d74c6 20166
f5ecbcee 20167 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
8c6d74c6 20168
048addec
JD
20169 * lisp.h: New misc type Lisp_Save_Value.
20170 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
20171 (XSAVE_VALUE): New macro.
20172 (struct Lisp_Save_Value): New data type.
20173 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 20174 (make_save_value): Declare.
8c6d74c6 20175
048addec 20176 * alloc.c (make_save_value): New function.
8c6d74c6 20177
048addec
JD
20178 * xterm.c (x_catch_errors): Save dpy using make_save_value.
20179 (x_catch_errors_unwind): Call XSync.
8c6d74c6 20180
048addec 201812003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 20182
048addec 20183 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 20184
048addec
JD
20185 * keyboard.c (command_loop_1): Call adjust_point_for_property
20186 in direct action cases for Qforward_char and Qbackward_char.
20187 Set already_adjusted so it won't be done twice.
8c6d74c6 20188
b6189c3b 201892002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 20190
048addec
JD
20191 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
20192 type definition of size_t.
8c609cff 20193
048addec 201942003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 20195
048addec
JD
20196 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
20197 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 20198
048addec 201992002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 20200
048addec
JD
20201 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
20202 to default to t.
fa634a5e 20203
048addec 202042002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 20205
048addec 20206 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 20207
048addec 202082002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 20209
7e26f91b 20210 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
20211 allow building in a different directory than source. Uses some
20212 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 20213
048addec 202142002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 20215
048addec
JD
20216 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
20217 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
20218 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
20219 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 20220
048addec 202212002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 20222
048addec
JD
20223 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
20224 <scroll-down-aggressively>: Doc fix.
2155ecf3 20225
048addec
JD
20226 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
20227 string as pane name, if there is one.
20228 (set_frame_menubar): Save menu_items_n_panes from each call to
20229 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 20230
048addec
JD
20231 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
20232 Don't try to make last line fully visible if it is past end of window.
61f1d295 20233
048addec 202342002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 20235
048addec
JD
20236 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
20237 (mac_menu_show): Add support for hierarchical popup menus.
20238 (add_menu_item): Remove indentation support.
20239 (fill_submenu, fill_menu): Create hierarchical menus
20240 instead of using indentation.
0b17a217 20241
048addec 202422002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 20243
048addec
JD
20244 * xdisp.c (try_cursor_movement): Don't call try_window here.
20245 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 20246
048addec 20247 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 20248
048addec 202492002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 20250
048addec
JD
20251 * macterm.c (XTread_socket): Call KeyTranslate for control and
20252 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 20253 being treated like C-%. Do not look for shift key to deal
048addec 20254 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 20255
048addec 202562002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 20257
048addec
JD
20258 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
20259 If it is non-nil, run timers. Use an unwind-protect to requeue
20260 the events that were read ahead.
20261 (popup_get_selection_unwind): New subroutine.
20262 (popup_get_selection_queue): File-scope variable now holds that queue.
20263 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
20264 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
20265 Use an unwind-protect to pop down the dialog box.
20266 (xdialog_show_unwind): New subroutine implements that.
f02cac82 20267
048addec
JD
20268 * xdisp.c (row_containing_pos): Change exit test using last_y.
20269 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 20270
048addec
JD
20271 * lread.c (load_error_handler): New function.
20272 (Fload): Handle errors in Fsubstitute_in_file_name.
20273 Don't expect Fsignal to return.
f02cac82 20274
048addec
JD
20275 * eval.c: Errors and throws work right with interrupt blocking.
20276 (struct catchtag): New elt interrupt_input_blocked.
20277 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
20278 (internal_catch, Fcondition_case, internal_condition_case)
20279 (internal_condition_case_1, internal_condition_case_2): Save it.
20280 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 20281
048addec 20282 * editfns.c (Fformat): Add parens.
f02cac82 20283
048addec
JD
20284 * dired.c (file_name_completion): Fix that change.
20285 Delete special quit-handling code; just use QUIT.
f02cac82 20286
b6189c3b 202872002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 20288
048addec
JD
20289 * dired.c (file_name_completion): Close directory on error
20290 just as in directory_files_internal.
1a590729 20291
048addec 202922002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 20293
048addec
JD
20294 * window.c (Fset_window_configuration): Set old_point to correct
20295 value when new_current_buffer == current_buffer.
f02cac82 20296
048addec 202972002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 20298
048addec
JD
20299 Revisited my earlier fix for the following entry in etc/PROBLEMS:
20300 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
20301 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 20302
048addec
JD
20303 These changes were in part based upon suggestions made by Peter
20304 'Luna' Runestig [peter@runestig.com].
9785d95b 20305
f4a5a485
SM
20306 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
20307 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
20308 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 20309 global variables.
9785d95b 20310
048addec
JD
20311 * w32.c (globals_of_w32): New function. Used to initialize those
20312 global variables that must always be initialized on startup even
20313 when the global variable initialized is non zero. Its primary
20314 purpose at this time is to set the global variables
20315 g_b_init_is_windows_9x, g_b_init_open_process_token,
20316 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
20317 g_b_init_get_sid_identifier_authority to 0 on startup.
20318 Called from main.
9785d95b 20319
048addec
JD
20320 * w32.c (is_windows_9x): Perform initialization only if
20321 g_b_init_is_windows_9x is equal to 0. On initialization set
20322 g_b_init_is_windows_9x equal to 1.
2308af15 20323
048addec
JD
20324 * w32.c (open_process_token): Perform initialization only if
20325 g_b_init_open_process_token is equal to 0. On initialization set
20326 g_b_init_open_process_token equal to 1.
2308af15 20327
048addec
JD
20328 * w32.c (get_token_information): Perform initialization only if
20329 g_b_init_get_token_information is equal to 0. On initialization
20330 set g_b_init_get_token_information equal to 1.
9785d95b 20331
048addec
JD
20332 * w32.c (lookup_account_sid): Perform initialization only if
20333 g_b_init_lookup_account_sid is equal to 0. On initialization
20334 set g_b_init_lookup_account_sid equal to 1.
9785d95b 20335
048addec
JD
20336 * w32.c (get_sid_identifier_authority): Perform initialization
20337 only if g_b_init_get_sid_identifier_authority is equal to 0.
20338 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 20339
f63fd14e 20340 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
20341 those global variables that must always be initialized on startup
20342 even when the global variable initialized is non zero.
20343 Its primary purpose at this time is to initialize the global variable
20344 track_mouse_event_fn.
9785d95b 20345
a64387ee 20346 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 20347 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 20348
048addec 20349 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 20350
f63fd14e 20351 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
20352 initialize those global variables that must always be initialized
20353 on startup even when the global variable initialized is non zero.
20354 Its primary purpose at this time is to initialize the global
20355 variables get_menu_item_info and set_menu_item_info.
9785d95b 20356
048addec
JD
20357 * w32menu.c (initialize_frame_menubar): Remove initialization of
20358 get_menu_item_info and set_menu_item_info.
9785d95b 20359
048addec 20360 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 20361
048addec
JD
20362 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
20363 Declare them.
9785d95b 20364
048addec
JD
20365 * emacs.c (main): Call globals_of_w32 prior to calling
20366 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
20367 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
20368 is defined.
9785d95b 20369
048addec
JD
20370 * w32term.c (x_update_window_begin): Fix Windows API error
20371 detected by BoundsChecker. Test to determine if
20372 w32_system_caret_hwnd is NULL prior to attempting to use
20373 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 20374
048addec
JD
20375 * w32term.c (x_update_window_end): Fix Windows API error
20376 detected by BoundsChecker. Test to determine if
20377 w32_system_caret_hwnd is NULL prior to attempting to use
20378 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 20379
048addec 203802002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 20381
048addec
JD
20382 * coding.c (coding_system_require_warning): New variable.
20383 (syms_of_coding): DEFVAR it.
b6da19ef 20384
048addec 20385 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 20386
048addec
JD
20387 * fileio.c (choose_write_coding_system): Even if
20388 Vcoding_system_for_write is non-nil, if
20389 coding_system_require_warning is nonzero, call
20390 Vselect_safe_coding_system_function.
bfcf6dbe 20391
048addec 203922002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 20393
048addec
JD
20394 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
20395 (lisp): Add font-core.
2c568af5 20396
048addec 203972002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 20398
048addec
JD
20399 * textprop.c (text_read_only): New arg `propval'.
20400 (get_char_property_and_overlay): Remove unused var `next_overlay'.
20401 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 20402
048addec 204032002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 20404
048addec 20405 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 20406
048addec 204072002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 20408
048addec
JD
20409 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
20410 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
20411 Be more careful about when help_events are generated.
96720f09 20412
048addec 204132002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 20414
048addec
JD
20415 * macterm.c (mac_check_for_quit_char): Correctly set the
20416 modifiers of the event to 0.
20417 * mac.c (sys_select): Duplicate rfds before calling select to
20418 ensure that rfds survive the while loop.
e5ae1c49 20419
048addec 204202002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 20421
048addec
JD
20422 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
20423 row_containing_pos returned NULL.
2eb46b2d 20424
048addec 204252002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 20426
6bdb309a 20427 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 20428 non-blocking.
6bdb309a 20429 (sys_select): Fix sys_select to not use a timeout larger than
048addec 20430 the one given.
b11f1d8a 20431
048addec 204322002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 20433
048addec 20434 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 20435
048addec 204362002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 20437
048addec
JD
20438 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
20439 as the last thing.
a4ac5b17 20440
048addec 204412002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 20442
048addec 20443 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 20444
048addec 204452002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 20446
048addec
JD
20447 * editfns.c (Fformat): Handle precision in string conversion
20448 specifiers like libc functions do (ie, print at most that many
20449 characters).
85cce843 20450
048addec 204512002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 20452
048addec
JD
20453 * xdisp.c (row_containing_pos): Check more carefully
20454 whether charpos is really in the row before returning it.
0d4d26a7 20455
048addec 204562002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 20457
048addec 20458 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 20459
048addec
JD
20460 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
20461 each stack frame. This may change as it could be time consuming.
0d4d26a7 20462
048addec
JD
20463 * macterm.c (mac_check_for_quit_char, quit_char_comp)
20464 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 20465 (mac_initialize): Add code to check for pressing of quit_char
048addec 20466 in the OS event queue.
b11f1d8a 20467
048addec
JD
20468 * mac.c (sys_select): Call mac_check_for_quit_char every second
20469 while blocking on select.
0d4d26a7 20470
048addec
JD
20471 * mac.c (sys_read): Use sys_select to test for input first
20472 before calling read, to allow C-g to break.
9252f7bc 20473
048addec 204742002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 20475
048addec 20476 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 20477
048addec 20478 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 20479
048addec 20480 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 20481
048addec
JD
20482 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
20483 autoload.
9252f7bc 20484
048addec 20485 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 20486
048addec 20487 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 20488
c6605d63 204892002-12-06 Francesco Potort\e,Al\e(B <pot@gnu.org>
bfa261c0 20490
048addec 20491 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 20492
048addec 204932002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 20494
048addec 20495 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 20496
048addec 20497 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 20498
048addec 20499 * alloca.c: Don't use #error.
02d588e2 20500
048addec 205012002-12-03 Dave Love <fx@gnu.org>
02d588e2 20502
048addec
JD
20503 * buffer.c (Qucs_set_table_for_input): New.
20504 (Fget_buffer_create): Use it.
20505 (Qset_buffer_major_mode_hook): Deleted.
20506 (Fset_buffer_major_mode): Revert previous change.
20507 (init_buffer_once): Intern ucs-set-table-for-input.
20508 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
20509 Add &Qucs_set_table_for_input.
451e2697 20510
048addec 205112002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 20512
048addec
JD
20513 * callint.c (Fcall_interactively): Use next_event only if less
20514 than key_count.
72742a99 20515
048addec 205162002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 20517
048addec
JD
20518 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
20519 names to 255 characters.
72742a99 20520
048addec
JD
20521 * macterm.c (XTread_socket): If all frames have been collapsed,
20522 expand the first one before handling drag-and-drop events.
72742a99 20523
048addec
JD
20524 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
20525 which is detected by autoconf.
40e6ff95 20526
048addec 205272002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 20528
048addec
JD
20529 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
20530 offset in two hints table to allow prebinding to be redone and
20531 allow the executable to be stripped.
c02138c6 20532
048addec 205332002-11-29 Dave Love <fx@gnu.org>
c02138c6 20534
048addec
JD
20535 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
20536 already provided.
0e47bbf7 20537
048addec 205382002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 20539
048addec
JD
20540 * xdisp.c (start_display): Check more intelligently for
20541 whether the line is continued.
20542 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 20543
048addec 205442002-11-28 Dave Love <fx@gnu.org>
44129dcb 20545
048addec
JD
20546 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
20547 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 20548
048addec 205492002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 20550
048addec
JD
20551 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
20552 more descriptive error output from lread.c:Fload upon most require
20553 cycles during boostrapping.
1637fd2c 20554
048addec 205552002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 20556
048addec
JD
20557 * fileio.c (Finsert_file_contents): Give a more appropriate error
20558 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 20559
048addec
JD
20560 * dired.c (Ffile_attributes): Don't return negative file sizes for
20561 files bigger than 2Gb when off_t is 32 bit.
540c2788 20562
048addec 205632002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 20564
048addec 20565 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 20566
048addec
JD
20567 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
20568 Test GETPGRP_VOID instead.
20569 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 20570
048addec
JD
20571 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
20572 Don't define.
20573 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 20574
048addec 20575 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 20576
048addec 205772002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 20578
048addec
JD
20579 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
20580 supported.
4042a81a 20581
048addec 205822002-11-25 Dave Love <fx@gnu.org>
4042a81a 20583
048addec 20584 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 20585
048addec 20586 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 20587
048addec 205882002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 20589
048addec 20590 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 20591
048addec 205922002-11-24 Steven Tamm <steventamm@mac.com>
82122254 20593
048addec
JD
20594 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
20595 determine the size of pointers alloced in unexed space instead
20596 of using possibly invalid emacs_zone pointers. This fixes the
20597 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 20598
048addec 205992002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 20600
048addec 20601 * search.c (Fstring_match): Doc fix.
c1ee53bc 20602
048addec
JD
20603 * callint.c (Fcall_interactively): If a command fails because
20604 `*' detects a read-only buffer, but RECORD_FLAG is set,
20605 record it anyway if the args don't actually do tty input.
5598c32e 20606
048addec 206072002-11-22 Dave Love <fx@gnu.org>
5598c32e 20608
048addec 20609 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 20610
048addec
JD
20611 * keyboard.c (interrupt_signal): Provide forward declaration.
20612 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 20613
048addec 20614 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 20615
048addec 206162002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 20617
048addec
JD
20618 * eval.c (interactive_p): Skip any number of bytecode
20619 and special form frames, in any order.
516eea8e 20620
048addec 206212002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 20622
048addec
JD
20623 * w32fns.c (convert_mono_to_color_image): New function.
20624 (xbm_load, xbm_load_image): Use it when foreground or background
20625 is explicitly set.
04dbfa08 20626
048addec 206272002-11-19 Dave Love <fx@gnu.org>
04dbfa08 20628
048addec 20629 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 20630
048addec 206312002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 20632
048addec
JD
20633 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
20634 (XPutPixel): Swap blue and red.
20635 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
20636 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
20637 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
20638 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 20639
048addec 206402002-11-18 Dave Love <fx@gnu.org>
d824beee 20641
048addec 20642 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 20643
048addec 20644 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 20645
048addec 20646 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 20647
048addec
JD
20648 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
20649 malloc, realloc, calloc.
d824beee 20650
048addec
JD
20651 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
20652 (bcmp): Don't define.
d824beee 20653
048addec 20654 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 20655
048addec 20656 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 20657
048addec 20658 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 20659
048addec 20660 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 20661
048addec
JD
20662 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
20663 Don't include alloca.h.
d824beee 20664
048addec 20665 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 20666
048addec 20667 * regex.c (_GNU_SOURCE): Don't define.
1998560a 20668
048addec 20669 * process.c (_GNU_SOURCE): Don't define.
1998560a 20670
048addec 20671 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 20672
048addec 206732002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 20674
048addec 20675 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 20676
048addec 206772002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 20678
048addec
JD
20679 * dispextern.h (struct face): Add `overstrike' field.
20680 * xterm.c (x_draw_glyph_string_foreground)
20681 (x_draw_composite_glyph_string_foreground): Implement overstriking.
20682 * xfaces.c (load_face_font): Set `face->overstrike' based on
20683 result from choose_face_font.
20684 (best_matching_font, choose_face_font): Add `needs_overstrike'
20685 argument, and use it to return whether overstriking is desirable
20686 for this face/font combo.
20687 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 20688
048addec 206892002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 20690
048addec
JD
20691 This change is my fix for the following entry in etc/PROBLEMS:
20692 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
20693 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 20694
048addec
JD
20695 * w32.c: Added wrapper functions around the win32 API functions
20696 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
20697 GetSidIdentifierAuthority. These wrapper functions serve two
20698 purposes:
20699 1. They ensure that the wrapped function can never be called
20700 when Emacs is running on an operating system on which they are
20701 not supported (Microsoft Windows 95 / 98 / ME).
20702 2. They call the wrapped functions via function pointers rather
20703 than calling them directly. This avoids taking advantage of the
20704 undocumented fact that although these functions are not supported
20705 in the 9x branch of Microsoft Windows, the functions do exist in
20706 the version of advapi32.dll that is found in the 9x branch of
20707 Microsoft Windows.
f60ae425 20708
6bdb309a 20709 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
20710 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
20711 and GetSidIdentifierAuthority with calls to the newly added
20712 wrapper functions.
f60ae425 20713
048addec
JD
20714 * w32.h: Added extern declarations for the following functions:
20715 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
20716 syms_of_w32menu, and void syms_of_fontset.
f60ae425 20717
6bdb309a 20718 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
20719 function pointer track_mouse_event_fn in the handler for the
20720 WM_SETFOCUS message.
3582b6a3 20721
6bdb309a 20722 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
20723 reinitialize the function pointers set_menu_item_info and
20724 get_menu_item_info.
f60ae425 20725
048addec 207262002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 20727
048addec
JD
20728 * sound.c: Added a partial implementation of play-sound-internal
20729 for Microsoft Windows. Added various #ifdef / #else / #endif
20730 code blocks to separate the code that will compile under
9fed2905 20731 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 20732 Moved several blocks of code around to make this separation of code
9fed2905 20733 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 20734
048addec 20735 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 20736
048addec
JD
20737 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
20738 added support for play-sound-internal under Windows would be
20739 included in the build of Emacs.
517f42a0 20740
048addec 207412002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 20742
048addec 20743 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 20744
048addec 20745 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 20746
048addec 207472002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 20748
048addec
JD
20749 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
20750 (adjust_point_for_property): Move out of display and invisible even if
20751 we were already inside before (in case a property was added while
20752 we weren't looking). Be more careful when handling invisible props.
20753 Skip invisible text as if it really wasn't there at all.
aab83f91 20754
048addec 207552002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 20756
048addec
JD
20757 * w32term.c (x_draw_image_foreground)
20758 (w32_draw_image_foreground_1): Use standard copy and invert
20759 operations to draw images.
aab83f91 20760
048addec
JD
20761 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
20762 depth of 1.
20763 (xbm_read_bitmap_data): Invert bits as xbm is read in.
20764 (XPutPixel): Don't invert bits here.
a4478a76 20765
048addec 207662002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 20767
048addec
JD
20768 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
20769 (w32_draw_image_foreground_1): Handle image masks.
20770 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 20771
048addec
JD
20772 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
20773 (x_from_xcolors): Adjust RGB values for W32.
20774 (image_background, image_background_transparent)
20775 (postprocess_image, x_to_xcolors, x_disable_image)
20776 (x_build_heuristic_mask): Adapt for W32 and enable.
20777 (x_create_x_image_and_pixmap): Mark images with palettes as such.
20778 (xbm_load): Remove unused variable.
03670a65 20779
048addec 207802002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 20781
048addec 20782 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 20783
048addec 207842002-11-14 Dave Love <fx@gnu.org>
59daa29a 20785
048addec 20786 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 20787
048addec
JD
20788 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
20789 * xmenu.c (unuse_menu_items, digest_single_submenu):
20790 * xfns.c (x_put_x_image):
20791 * xdisp.c (message2_nolog, set_message):
20792 * undo.c (record_point):
20793 * terminfo.c (tparam):
20794 * syntax.c (scan_sexps_forward):
20795 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20796 * composite.c (update_compositions):
20797 * cm.c (calccost, cmgoto):
20798 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 20799
048addec 20800 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 20801
048addec
JD
20802 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
20803 Don't declare.
59daa29a 20804
048addec 20805 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 20806
048addec
JD
20807 * fns.c (Fcopy_sequence): Doc fix.
20808 (Fmap_char_table): Cast `call2'.
3947677c 20809
c6605d63 208102002-11-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
048addec
JD
20811
20812 * s/sol2-8.h: New file.
20813
208142002-11-14 Kim F. Storm <storm@cua.dk>
20815
20816 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
20817 dependency on `risky-local-variable' and the :propertize form.
20818
208192002-11-12 Stefan Monnier <monnier@cs.yale.edu>
20820
20821 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
20822
20823 * syntax.c (scan_sexps_forward): Undo last patch.
20824 Use a more obvious fix: check eob before updating the syntax table.
20825
208262002-11-09 Stefan Monnier <monnier@cs.yale.edu>
20827
20828 * syntax.c (scan_sexps_forward): Update syntax table before reading
20829 a char rather than after so we don't update the table past eob.
20830
208312002-11-09 Dave Love <fx@gnu.org>
20832
20833 * buffer.c (Fset_buffer_major_mode): Fix last change.
20834
20835 * regex.c (regexec): Fix pmatch declaration.
20836
20837 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
20838
20839 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
20840 to self-inserting characters.
20841 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
20842
20843 * coding.c (Vtranslation_table_for_input): New.
20844 (syms_of_coding): DEFVAR it.
20845
208462002-11-08 Juanma Barranquero <lektu@terra.es>
20847
20848 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
20849 window.
20850
208512002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20852
6bdb309a 20853 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
20854 cp, and i.
20855
208562002-11-06 Dave Love <fx@gnu.org>
20857
20858 * buffer.c (Qset_buffer_major_mode_hook): New.
20859 (Fset_buffer_major_mode): Use it.
20860
208612002-11-06 Richard M. Stallman <rms@gnu.org>
20862
20863 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
20864 and stop_polling.
20865
20866 * process.c (wait_reading_process_input):
20867 Test POLLING_PROBLEM_IN_SELECT, not hpux.
20868 Avoid initialization for auto Lisp_Object var.
20869
20870 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
20871
20872 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
20873
208742002-11-05 Richard M. Stallman <rms@gnu.org>
20875
20876 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
20877
20878 * callint.c (Fcall_interactively): New local filter_specs.
20879 (Fcall_interactively): Check for progn as well as let.
20880 Add a gcpro.
20881 (Qprogn): New variable.
20882 (syms_of_callint): Staticpro and init Qprogn.
20883
208842002-11-04 John Paul Wallington <jpw@shootybangbang.com>
20885
20886 * lread.c (Feval_buffer): Doc fix.
20887
208882002-11-04 Dave Love <fx@gnu.org>
20889
20890 * keyboard.c (read_char): Always translate iff
20891 Vkeyboard_translate_table is a char table and c is valid.
20892
20893 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20894 and fix C types.
20895
208962002-11-03 Stefan Monnier <monnier@cs.yale.edu>
20897
20898 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
20899
20900 * editfns.c (get_pos_property): Don't hardcode Qfield.
20901
20902 * keyboard.c (adjust_point_for_property): Handle `display' prop on
20903 overlays. Also handle `invisible' prop.
20904
209052002-11-02 Stefan Monnier <monnier@cs.yale.edu>
20906
20907 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
20908 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
20909
209102002-11-01 Andreas Schwab <schwab@suse.de>
20911
20912 * editfns.c (Fmessage): Revert last change to properly handle %%.
20913
209142002-11-01 Stefan Monnier <monnier@cs.yale.edu>
20915
20916 * xmenu.c (unuse_menu_items): New fun.
20917 (menu_items_inuse): New var.
20918 (syms_of_xmenu): Initialize it.
20919 (init_menu_items): Use it to detect re-entrance.
20920 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
20921 (Fx_popup_menu): Remove spurious XSETFRAME.
20922
20923 * editfns.c (find_field): Make an exception for nil fields.
20924
209252002-11-01 Dave Love <fx@gnu.org>
20926
20927 * m/gec63.h: Deleted.
20928
209292002-10-31 Dave Love <fx@gnu.org>
20930
20931 * xterm.c (XTread_socket): Fix last change.
20932 (xaw_scroll_callback): Cast call_data to long to avoid warning.
20933
209342002-10-31 Stefan Monnier <monnier@cs.yale.edu>
20935
20936 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
20937
209382002-10-30 Stefan Monnier <monnier@cs.yale.edu>
20939
20940 * editfns.c (overlays_around, get_pos_property): New funs.
20941 (find_field): Use them.
20942 Also be careful not to modify POS before its last use.
20943 (Fmessage): Don't Fformat if there's nothing to format.
20944
209452002-10-30 Dave Love <fx@gnu.org>
20946
20947 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
20948 [HAVE_PTY_H]; Include pty.h.
20949
20950 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
20951
20952 * xterm.c (Qeql): Declare.
20953 (Vx_keysym_table): New.
20954 (syms_of_xterm): Initialize it.
20955 (XTread_socket): Use it. Deal with ASCII keysyms.
20956 (XSetIMValues) [HAVE_X11R6]: Prototype.
20957
20958 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
20959 (lispy_kana_keys): Comment out.
20960 (make_lispy_event) [XK_kana_A]: Comment out.
20961 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
20962 Fix sprintf call.
20963
20964 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
20965 regexp.h change).
20966 (TERMINFO, LIBS_TERMCAP): Define.
20967
20968 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
20969 (bcmp): Define conditional on HAVE_BCMP.
20970 (NO_SIOCTL_H): Don't define.
20971 (TIOCSIGSEND): Don't make conditional on IRIX6.
20972
20973 * s/sol2-5.h: Don't include strings.h.
20974 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
20975
20976 * s/irix6-0.h (IRIX6): Don't define.
20977 (bcopy, bcmp, bzero): Don't undef.
20978
20979 * s/irix6-5.h: Don't include strings.h.
20980 (IRIX6): Don't define.
20981 (bcopy, bcmp, bzero): Don't undef.
20982
20983 * syntax.c (Fforward_comment): Doc fix.
20984
209852002-10-29 Kim F. Storm <storm@cua.dk>
20986
20987 * process.c (Fsignal_process): Allow PROCESS to be specified by
20988 name in addition to pid (as integer or string).
20989
209902002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
20991
20992 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
20993 environments.
20994
209952002-10-27 Kim F. Storm <storm@cua.dk>
20996
20997 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
20998
20999 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
21000
21001 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
21002
21003 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21004
210052002-10-26 Richard M. Stallman <rms@gnu.org>
21006
21007 * editfns.c (Fformat): Detect invalid format letters for floats.
21008
210092002-10-25 Kenichi Handa <handa@m17n.org>
21010
21011 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
21012 (x_set_title): Likewise.
21013
210142002-10-25 Juanma Barranquero <lektu@terra.es>
21015
21016 * macgui.h:
21017 * w32gui.h: Remove definition of XColor.
21018
21019 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
21020
210212002-10-24 Kim F. Storm <storm@cua.dk>
21022
21023 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
21024 Callers changed (supply dummy arg).
21025
21026 * lisp.h (get_window_cursor_type): Update prototype.
21027
21028 * w32term.c (x_display_and_set_cursor): Get active_cursor from
21029 get_window_cursor_type to track system caret.
21030
210312002-10-24 Kim F. Storm <storm@cua.dk>
21032
21033 * process.c (Fformat_network_address): New function.
21034 (syms_of_process): Defsubr it.
21035 (list_processes_1): Use it to format :local/:remote address if
f9711de4 21036 service/host is not set; before Emacs would crash in that case.
048addec
JD
21037 (Fmake_network_process): Don't use Ffind_operation_coding_system
21038 to setup coding system if host or service is not set.
21039
210402002-10-23 Juanma Barranquero <lektu@terra.es>
21041
21042 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
21043
21044 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
21045 COLORREF.
21046
21047 * macgui.h:
21048 * w32gui.h: Add definition of XColor.
21049
21050 * macfns.c:
21051 * w32fns.c:
21052 * xfaces.c: Remove definition of XColor.
21053
210542002-10-22 Stefan Monnier <monnier@cs.yale.edu>
21055
21056 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
21057
21058 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
21059 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
21060 window if it is dedicated.
21061 (Fshrink_window): Add preserve_before as was done for enlarge_window.
21062 (Vspecial_display_function): Update docstring.
21063
21064 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
21065 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
21066 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
21067
210682002-10-21 Stefan Monnier <monnier@cs.yale.edu>
21069
21070 * casefiddle.c (casify_region): Don't treat a prefix char as part
21071 of a word when at the beginning.
21072
210732002-10-17 Juanma Barranquero <lektu@terra.es>
21074
21075 * lread.c (syms_of_lread): Fix typos.
21076
210772002-10-17 Dave Love <fx@gnu.org>
21078
21079 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
21080
210812002-10-16 Richard M. Stallman <rms@gnu.org>
21082
21083 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
21084
210852002-10-14 Juanma Barranquero <lektu@terra.es>
21086
21087 * w16select.c (syms_of_win16select): Fix docstring for
21088 `selection-coding-system'.
21089
21090 * w32select.c (syms_of_w32select): Likewise.
21091
210922002-10-14 Stefan Monnier <monnier@cs.yale.edu>
21093
21094 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
21095 a backslash-quoted char.
21096 (scan_lists, scan_sexps_forward): Pacify the compiler.
21097
210982002-10-13 Richard M. Stallman <rms@gnu.org>
21099
21100 * window.c (window_scroll): Set immediate_quit.
21101
21102 * print.c (print): When backquote form is the car of a list,
21103 output in old style. Use old_backquote_output to output all
21104 comma forms inside it in old style too.
21105
21106 * buffer.h (struct buffer): Move `undo_list' down below `name'.
21107
211082002-10-11 Markus Rost <rost@math.ohio-state.edu>
21109
21110 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
21111 batch mode).
21112
21113 * lread.c (Fload): Doc fix (load-suffixes).
21114
211152002-10-10 Steven Tamm <steventamm@mac.com>
21116
21117 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
21118 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
21119 Also switch the default to Qnil from Qt.
21120
211212002-10-08 Kenichi Handa <handa@m17n.org>
21122
21123 * coding.c (code_convert_region): When we need more GAP for
21124 conversion, pay attention to the case that coding->produced is not
21125 greater than coding->consumed.
21126
211272002-10-07 Richard M. Stallman <rms@gnu.org>
21128
21129 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
21130
211312002-10-06 Andrew Choi <akochoi@shaw.ca>
21132
21133 * macmenu.c (mac_menu_show): Add j to count menu items; match
21134 menu_item_selection to it to find selected item.
21135
211362002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21137
21138 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
21139 cases. The correct fix is to pass ReparentNotify to Xt.
21140 The shell widget interprets ConfigureNotify differently depending
21141 on if it has been reparented or not.
21142
211432002-10-05 Markus Rost <rost@math.ohio-state.edu>
21144
21145 * editfns.c (Fformat_time_string): Doc fix.
21146
211472002-10-05 John Paul Wallington <jpw@shootybangbang.com>
21148
21149 * fns.c (Flength): Doc fix.
21150
211512002-10-04 Stefan Monnier <monnier@cs.yale.edu>
21152
21153 * keyboard.c (keyremap): New struct.
21154 (read_key_sequence): Use it: globally replace keytran_foo with
21155 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
21156 keytran_next and fkey_next to just `next'.
21157
211582002-10-04 Steven Tamm <steventamm@mac.com>
21159
21160 * macterm.c (keycode_to_xkeysym_table): Change return to be
21161 treated like an X keysym.
21162
211632002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21164
21165 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
21166 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
21167 This is to also handle x/y changes that occur because of a resize.
21168
211692002-10-02 John Paul Wallington <jpw@shootybangbang.com>
21170
21171 * frame.c (Vdelete_frame_functions): New variable.
21172 (syms_of_frame): Initialize and defvar it.
21173 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
21174 it when frame's `tooltip' parameter is non-nil.
21175
21176 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
21177
21178 * w32fns.c (x_create_tip_frame): Likewise.
21179
21180 * macfns.c (x_create_tip_frame): Likewise.
21181
211822002-09-30 Kenichi Handa <handa@m17n.org>
21183
21184 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
21185 -1 before calling ccl_driver.
21186
21187 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
21188 Only when it is non-nil, handle composition sequence.
21189 (setup_coding_system) <0>: Don't force composition handling.
21190
14a56a1b 21191 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
048addec
JD
21192
211932002-09-29 Richard M. Stallman <rms@gnu.org>
21194
21195 * search.c (Freplace_match): Adjust match data for the substitution
21196 just made in the buffer.
21197
21198 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
21199 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
21200
212012002-09-27 Richard M. Stallman <rms@gnu.org>
21202
21203 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
21204 (read_char): Use them. Do all exits thru the end of the function.
21205
212062002-09-27 Kenichi Handa <handa@etl.go.jp>
21207
21208 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
21209 is nil.
21210
212112002-09-26 Richard M. Stallman <rms@gnu.org>
21212
21213 * regex.h (__restrict_arr): Don't define if already defined.
21214
21215 * coding.c (run_pre_post_conversion_on_str):
21216 Save and restore Vdeactivate_mark.
21217
212182002-09-26 John Paul Wallington <jpw@shootybangbang.com>
21219
21220 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
21221
212222002-09-26 Kenichi Handa <handa@etl.go.jp>
21223
21224 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
21225 nonzero, try face's family at first. Otherwise try FAMILY at first.
21226 (choose_face_font): If C is a single byte char or latin-1, call
21227 try_font_list with PREFER_FACE_FAMILY 1.
21228
212292002-09-21 Richard M. Stallman <rms@gnu.org>
21230
21231 * window.c (select_window_1): Don't select frame.
21232 Set frame's selected window only when frame itself is selected.
21233 (Fselect_window): Doc fix.
21234
212352002-09-18 Kim F. Storm <storm@cua.dk>
21236
21237 * process.c (make-network-process): Doc fix (there is no
21238 network-server-log-function hook).
21239
212402002-09-18 Richard M. Stallman <rms@gnu.org>
21241
21242 * print.c (print): Clear out the unused parts of Vprint_number_table.
21243 (syms_of_print): Doc fix for `print-number-table'.
21244
21245 * unexelf.c (unexec): Undo previous change.
21246
212472002-09-17 Andreas Schwab <schwab@suse.de>
21248
21249 * m/alpha.h [LINUX]: Don't define DATA_START.
21250
212512002-09-16 Dave Love <fx@gnu.org>
21252
21253 * unexelf.c (unexec): Deal with .got, reinstating change from
21254 25-08-1999.
21255
212562002-09-13 Richard M. Stallman <rms@gnu.org>
21257
21258 * s/sol2-6.h (UNEXEC): Comment out definition.
21259
21260 * unexsol.c (unexec): Don't downcase first letter of error msg.
21261
21262 * xfaces.c (Fcolor_supported_p): Just one arg is required.
21263
212642002-09-12 Markus Rost <rost@math.ohio-state.edu>
21265
21266 * unexsol.c: Include buffer.h, charset.h, coding.h.
21267
212682002-09-11 Richard M. Stallman <rms@gnu.org>
21269
21270 * unexsol.c: Don't use report_file_error; do it by hand
21271 using dlerror.
21272
21273 * process.c (wait_reading_process_input, both versions):
21274 Before calling turn_on_atimers, call stop_polling.
21275
21276 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
21277
21278 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
21279 we go to too_near_end, call clear_glyph_matrix.
21280 (redisplay_window): After make_cursor_line_fully_visible,
21281 call clear_glyph_matrix and bypass `goto done'.
21282
21283 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
21284 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
21285
212862002-09-10 Richard M. Stallman <rms@gnu.org>
21287
21288 * fileio.c (Fdo_auto_save): Catch error making directory.
21289 Only call push_message if we need to.
21290 At the same time, make an unwind-protect to pop it.
21291 Rename local message_p to old_message_p.
21292 (do_auto_save_make_dir, do_auto_save_eh): New functions.
21293 (do_auto_save_unwind): Don't call pop_message.
21294
21295 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
21296
21297 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
21298
21299 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
21300
21301 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
21302
213032002-09-10 Stefan Monnier <monnier@cs.yale.edu>
21304
21305 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
21306 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
21307 (re_match_2_internal): Be more careful with infinite loops.
21308
213092002-09-10 Kim F. Storm <storm@cua.dk>
21310
21311 * macros.c (end_kbd_macro): New function.
21312 (Fend_kbd_macro): Use it.
21313
21314 * macros.h (end_kbd_macro): Declare extern.
21315
21316 * keyboard.c (Fdiscard_input): If defining keyboard macro,
21317 end and save it instead of discarding it.
21318
213192002-09-09 Markus Rost <rost@math.ohio-state.edu>
21320
21321 * s/sol2-6.h: Fix typo. Add comment.
21322
213232002-09-09 Richard M. Stallman <rms@gnu.org>
21324
21325 * regex.c (regnum_t): Use signed int, not unsigned int.
21326
21327 * s/sol2-6.h: New file.
21328
21329 * s/sol2-5.h (UNEXEC): Definition deleted.
21330
213312002-09-08 Kim F. Storm <storm@cua.dk>
21332
21333 * macros.c (executing_macro_index): Change type to EMACS_INT.
9dd28cae 21334 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
048addec
JD
21335
21336 * macros.h (executing_macro_index): Change type to EMACS_INT.
21337
213382002-09-06 Richard M. Stallman <rms@gnu.org>
21339
21340 * casetab.c (set_case_table): Make canon table point to eqv table.
21341
213422002-09-06 Juanma Barranquero <lektu@terra.es>
21343
21344 * coding.c (syms_of_coding): Fix spacing.
21345
21346 * composite.c (Fcompose_region_internal)
21347 (Fcompose_string_internal): Likewise.
21348
21349 * data.c (Flsh): Likewise.
21350
21351 * fontset.c (Fset_fontset_font): Likewise.
21352
21353 * macfns.c (Fx_server_max_request_size): Likewise.
21354
21355 * w16select.c (syms_of_win16select): Likewise.
21356
21357 * w32select.c (syms_of_w32select): Likewise.
21358
21359 * xselect.c (syms_of_xselect): Likewise.
21360
213612002-09-05 Richard M. Stallman <rms@gnu.org>
21362
21363 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
21364 call EXTEND_RANGE_TABLE and return a proper value.
21365 (set_image_of_range): Don't call set_image_of_range_1
21366 if no TRANSLATE or if range includes all of Latin-1.
21367 Only call it for the Latin-1 part of the range.
21368 For other cases, make two separate ranges,
21369 one for the original specified characters and one for
21370 their case-conversions.
21371
213722002-09-04 Richard M. Stallman <rms@gnu.org>
21373
21374 * s/sol2-5.h (UNEXEC): Use unexsol.o.
21375
21376 * window.c (displayed_window_lines): Correct for one-off bug
21377 in HEIGHT on non-window displays.
21378
21379 * regex.c (set_image_of_range_1): New function.
21380 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
21381 Return a value to indicate running out of memory.
21382 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
21383 (extend_range_table_work_area): New subroutine.
21384 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
21385 Different calling conventions, and used from set_image_of_range{,_1}.
21386 (IMMEDIATE_QUIT_CHECK): Definitions moved.
21387
213882002-09-04 Juanma Barranquero <lektu@terra.es>
21389
21390 * makefile.w32-in: All dependencies updated.
21391
213922002-09-01 Richard M. Stallman <rms@gnu.org>
21393
21394 * unexsol.c: New file.
21395
21396 * xfns.c (Qbox): Declare external, don't define.
21397
21398 * xdisp.c (redisplay_window) <force-start case>:
21399 If point is on semi-visible last line, reposition
21400 it at previous line.
21401
21402 * alloc.c (display_malloc_warning): Use display-warning.
21403 (malloc_warning_1): Function deleted.
21404
21405 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
21406
21407 * lread.c (read1): Handle #! by skipping the line.
21408
214092002-08-31 Richard M. Stallman <rms@gnu.org>
21410
21411 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
21412 Don't include LDFLAGS.
21413 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
21414
214152002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
21416
21417 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
21418 member of x_display_info unless we compile for some window system.
21419
214202002-08-31 Kim F. Storm <storm@cua.dk>
21421
21422 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
21423 (get_window_cursor_type): Don't use them.
21424 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
21425
214262002-08-30 Kenichi Handa <handa@etl.go.jp>
21427
21428 * xdisp.c (get_next_display_element): Fix previous change.
21429
214302002-08-30 Andrew Choi <akochoi@shaw.ca>
21431
21432 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
21433 (expose_window): Use it to fix the display of overlapping
21434 rows (merge code from xterm.c).
21435
21436 * macfns.c (Qbox): Add extern declaration.
21437
214382002-08-30 Juanma Barranquero <lektu@terra.es>
21439
21440 * w32fns.c (Qbox): Make extern.
21441 (syms_of_w32fns): Remove initialization of Qbox.
21442
214432002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
21444
21445 * xfns.c (Fx_open_connection): Fix error message.
21446
214472002-08-30 Kim F. Storm <storm@cua.dk>
21448
21449 The following changes consolidates the handling of the cursor
21450 type in xdisp.c, moving duplicate code and functionality from
21451 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
21452
21453 * frame.h (enum text_cursor_kinds): Consolidated here.
21454 Added DEFAULT_CURSOR value.
21455 (struct frame) <desired_cursor, cursor_width>
21456 <blink_off_cursor, blink_off_cursor_width>: New fields.
21457 Consolidated from output_x, output_w32 and output_mac structs.
21458 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21459 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
21460
21461 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
21462 Variables consolidated here.
21463 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
21464 (Vcursor_in_non_selected_windows): Renamed from
21465 cursor_in_non_selected_windows and changed to Lisp_Object.
21466 (syms_of_xdisp): Define and staticpro new and moved variables.
21467 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
21468 consolidated here. Recognize Qhollow setting.
21469 (set_frame_cursor_types): New function to set frame cursor types
21470 based on the frame parameters.
21471 (get_window_cursor_type): New function to calculate new cursor
21472 type and width for the specified window. Based on duplicated
21473 code consolidated here.
21474 Enhancements: cursor-in-non-selected-windows may be a cursor type,
21475 check buffer-local alternate-cursor-type and blink-cursor-alist
21476 before using built-in blink off methods.
21477
21478 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
21479
21480 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
21481 (get_specified_cursor_type, get_window_cursor_type)
21482 (set_frame_cursor_types): Added prototypes.
21483
21484 * macfns.c (x_specified_cursor_type): Removed.
21485 (x_set_cursor_type): Use set_frame_cursor_types.
21486 (Qbar, Qbox): Removed.
21487 (syms_of_macfns): Don't intern or staticpro them.
21488
21489 * macterm.c (x_specified_cursor_type): Remove prototype.
21490 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21491 (x_display_and_set_cursor): Use get_window_cursor_type.
21492 Remove unused local variables cursor_non_selected, active_cursor.
21493 Redraw cursor if hbar cursor width changes.
21494 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
21495
21496 * macterm.h (enum text_cursor_kinds): Removed.
21497 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
21498 <blink_off_cursor, blink_off_cursor_width>: Members removed.
21499 (FRAME_DESIRED_CURSOR): Macro removed.
21500
21501 * w32fns.c (Vblink_cursor_alist): Removed.
21502 (Qbar, Qhbar, Qbox, Qhollow): Removed.
21503 (syms_of_w32fns): Don't intern, staticpro, or define them.
21504 (x_specified_cursor_type): Removed.
21505 (x_set_cursor_type): Use set_frame_cursor_types.
21506
21507 * w32term.c (x_specified_cursor_type): Remove prototype.
21508 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21509 (x_display_and_set_cursor): Use get_window_cursor_type.
21510 Remove unused local variables cursor_off_state.
21511 Redraw cursor if hbar cursor width changes.
21512 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
21513
21514 * w32term.h (enum text_cursor_kinds): Removed.
21515 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
21516 <blink_off_cursor, blink_off_cursor_width>: Members removed.
21517 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21518 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
21519 (struct w32_display_info) <x_highlight_frame>: Renamed member from
21520 w32_highlight_frame.
21521
21522 * xfns.c (Vblink_cursor_alist): Removed.
21523 (Qbar, Qhbar, Qbox, Qhollow): Removed.
21524 (syms_of_xfns): Don't intern, staticpro, or define them.
21525 (x_specified_cursor_type): Removed.
21526 (x_set_cursor_type): Use set_frame_cursor_types.
21527
21528 * xterm.c (x_specified_cursor_type): Remove prototype.
21529 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21530 (x_display_and_set_cursor): Use get_window_cursor_type.
21531 Remove unused local variables cursor_off_state.
21532 Redraw cursor if hbar cursor width changes.
21533
21534 * xterm.h (enum text_cursor_kinds): Removed.
21535 (struct output_x) <current_cursor, desired_cursor, cursor_width>
21536 <blink_off_cursor, blink_off_cursor_width>: Members removed.
21537 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21538 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
21539 (x_specified_cursor_type): Remove prototype.
21540
215412002-08-28 Richard M. Stallman <rms@gnu.org>
21542
21543 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
21544 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
21545 (Vblink_cursor_alist): New variable.
21546 (syms_of_w32fns): Initialize and defvar it.
21547 (x_specified_cursor_type): Recognize Qbox for filled box.
21548 Exceptions are hollow boxes.
21549 (Qbox, Qhollow): New variables.
21550 (syms_of_w32fns): Initialize and staticpro them.
21551
21552 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
21553 New macros.
21554 (struct w32_output): New fields blink_off_cursor,
21555 blink_off_cursor_width.
21556 (FRAME_CURSOR_WIDTH): New macro.
21557
21558 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
21559 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
21560
21561 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
21562 for bar cursor.
21563
21564 * w32term.c (expose_overlaps): New function.
21565 (expose_window): Use it to fix the display of overlapping rows.
21566
215672002-08-28 Simon Josefsson <jas@extundo.com>
21568
21569 * xfns.c (Fx_open_connection): Improve help when X connection
21570 fails, xhost is insecure and xauth is better.
21571
215722002-08-28 Juanma Barranquero <lektu@terra.es>
21573
21574 * makefile.w32-in: Add missing dependencies on w32term.h and
21575 composite.h.
21576
21577 * emacs.c (USAGE1): Add missing newline.
21578
215792002-08-27 Andrew Choi <akochoi@shaw.ca>
21580
21581 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
21582
215832002-08-27 Richard M. Stallman <rms@gnu.org>
21584
21585 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
21586 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
21587 (Vblink_cursor_alist): New variable.
21588 (syms_of_xfns): Initialize and defvar it.
21589 (x_specified_cursor_type): Recognize Qbox for filled box.
21590 Exceptions are hollow boxes.
21591 (Qbox, Qhollow): New variables.
21592 (syms_of_xfns): Initialize and staticpro them.
21593
21594 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
21595 New macros.
21596 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
21597
21598 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
21599 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
21600
21601 * emacs.c (main): Handle --script.
21602 (USAGE1): Mention --script.
21603 (standard_args): Define sort order for --script.
21604
216052002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
21606
21607 * xdisp.c (redisplay_updating_p): Variable removed.
21608 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
21609 New variables.
21610 (init_iterator): Don't free realized faces if
21611 inhibit_free_realized_faces is set.
21612 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
21613 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
21614 initialize Qinhibit_free_realized_faces.
21615
21616 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
21617 when iterator is adding glyphs to a glyph matrix.
21618
216192002-08-27 Kenichi Handa <handa@etl.go.jp>
21620
21621 * xdisp.c (get_next_display_element): In unibyte case, don't use
21622 octal form for such eight-bit characters that can be converted to
21623 multibyte char.
21624
216252002-08-26 Kim F. Storm <storm@cua.dk>
21626
b6189c3b
KS
21627 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
21628 foreground and background colors. From Joe Buehler.
048addec
JD
21629
216302002-08-26 Miles Bader <miles@gnu.org>
21631
21632 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
21633
216342002-08-25 Andrew Choi <akochoi@shaw.ca>
21635
21636 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
21637 defined instead of MAC_OSX.
21638
21639 * s/darwin.h (select): Define select to sys_select only if
21640 HAVE_CARBON is defined.
21641 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
21642 (DONT_REOPEN_PTY): #def it.
21643
21644 * macterm.c (XTread_socket): Remove code to call
21645 SendEventToEventTarget for keys with command modifiers when
21646 mac_command_key_is_meta is nil.
21647
216482002-08-24 Andreas Schwab <schwab@suse.de>
21649
21650 * eval.c (Fdefvar): Fix last change.
21651
216522002-08-23 Richard M. Stallman <rms@gnu.org>
21653
21654 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
21655 Record variables in load history as (defvar . VAR).
21656 (Fdefvar): Don't record in load history if no initial value.
21657 (Qdefvar): New variable.
21658 (syms_of_eval): Init and staticpro it.
21659
21660 * lread.c (syms_of_lread): Doc fix.
21661 (build_load_history): Use Fmember to see if a definition
21662 is already in the Vload_history element.
21663
21664 * process.c (Fstart_process): Remove /: from program name.
21665
21666 * emacs.c (decode_env_path): Don't add /: if file name handler
21667 has a `safe-magic' property.
21668
21669 * callproc.c (Fcall_process): Remove /: from program name.
21670
216712002-08-23 Stefan Monnier <monnier@cs.yale.edu>
21672
21673 * regex.c (PATFETCH): Remove the translating fetch.
21674 (PATFETCH_RAW): Rename to PATFETCH.
21675 (set_image_of_range): New fun.
21676 (SET_RANGE_TABLE_WORK_AREA): Use it.
21677 (regex_compile): Don't translate the pattern chars so eagerly.
21678 Only do it when inserting an `exactn' bytecode or when handling
21679 a char-range.
21680 (mutually_exclusive_p): Avoid empty statement.
21681
216822002-08-22 Kim F. Storm <storm@cua.dk>
21683
21684 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
21685 end up on a partially visible line; this reverts a specific part
21686 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
21687 display error which has been reported several times now.
21688 However it introduces the problem that changes was supposed to fix.
21689 See my comments in the source if you want to debug this further.
21690
216912002-08-20 Kenichi Handa <handa@etl.go.jp>
21692
21693 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21694
216952002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
21696
21697 * msdos.c (croak): Add `void' to definition.
21698
c1380aa6 21699 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
21700 Don't define them, they are defined in msdos.c.
21701
21702 * mem-limits.h [MSDOS]: Declare etext.
21703
21704 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
21705 `const' since CORRECT_DIR_SEPS modifies its target.
21706
217072002-08-19 Kim F. Storm <storm@cua.dk>
21708
2fb0ce67 21709 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
21710 KEEP-RECORD to avoid clearing lossage when we just want to clear
21711 the current key sequence (kmacro needs this).
21712
217132002-08-19 Kenichi Handa <handa@localhost>
21714
21715 * composite.c (run_composition_function): Call FUNC if it is fboundp.
21716
21717 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
21718 cons, return Qnil.
21719
217202002-08-17 Richard M. Stallman <rms@gnu.org>
21721
21722 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
21723
21724 * sysdep.c [!VMS]: Include sys/files.h.
21725
21726 * editfns.c (save_restriction_restore): Defend from unchained marker.
21727
21728 * buffer.c (overlays_at): Handle extending vec uniformly.
21729 (overlays_in): Handle extending vec from length 0 as in overlays_at.
21730
217312002-08-15 Andrew Choi <akochoi@shaw.ca>
21732
21733 * mac.c (init_mac_osx_environment): New function.
21734
21735 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
21736
217372002-08-14 Kim F. Storm <storm@cua.dk>
21738
21739 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
21740 executing macro before appending to it (when used from Lisp).
21741 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
21742 which is called prior to each iteration of macro (for kmacro.el).
21743 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
21744
21745 * lisp.h (Fexecute_kbd_macro): Update prototype.
21746
21747 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
21748
217492002-08-14 Kenichi Handa <handa@etl.go.jp>
21750
21751 * xselect.c (QUTF8_STRING): New variable.
21752 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
21753 (x_atom_to_symbol): Likewise.
21754 (x_get_local_selection): New argument local_request. If it is
21755 nonzero, call handler_fn with the second arg nil.
21756 (x_handle_selection_request): Call x_get_local_selection with
21757 local_request 0.
21758 (lisp_data_to_selection_data): Don't encode the string here.
21759 (Fx_get_selection_internal): Call x_get_local_selection with
21760 local_request 1.
21761 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
21762
21763 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
21764
21765 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
21766
217672002-08-13 Richard M. Stallman <rms@gnu.org>
21768
21769 * minibuf.c (Fminibufferp): New function.
21770 (syms_of_minibuf): Defsubr it.
21771 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
21772
217732002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
21774
21775 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
21776
217772002-08-12 Richard M. Stallman <rms@gnu.org>
21778
21779 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
21780 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
21781 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
21782 already.
21783
21784 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
21785
217862002-08-11 Andrew Choi <akochoi@shaw.ca>
21787
21788 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
21789 (Vmac_pass_command_to_system): New variable.
21790 (Vmac_pass_control_to_system): New variable.
21791 (do_mouse_moved): Check wp with is_emacs_window.
21792 (XTread_socket): Check window_ptr with is_emacs_window.
21793 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
21794 events back to Mac Toolbox for processing, depending on values of
21795 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
21796 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
21797 Vmac_pass_control_to_system.
21798
217992002-08-10 Kenichi Handa <handa@etl.go.jp>
21800
21801 * coding.c (unencodable_char_position): New function.
21802 (Funencodable_char_position): New function.
21803 (syms_of_coding): Defsubr Funencodable_char_position.
21804
218052002-08-10 Andrew Choi <akochoi@shaw.ca>
21806
21807 * mac.c (sys_select) [MAC_OSX]: New function.
21808
21809 * macterm.c (MakeMeTheFrontProcess): New function.
21810 (mac_initialize): Call MakeMeTheFrontProcess.
21811
21812 * s/darwin.h: Define select to sys_select.
21813
218142002-08-09 Richard M. Stallman <rms@gnu.org>
21815
21816 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
21817
218182002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
21819
21820 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
21821 end of the buffer.
21822
88fde92a 218232002-08-08 Ken Raeburn <raeburn@gnu.org>
048addec
JD
21824
21825 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
21826
21827 * puresize.h (BASE_PURESIZE): Increase to 910000.
21828
218292002-08-08 Kenichi Handa <handa@etl.go.jp>
21830
21831 * coding.c (Ffind_operation_coding_system): For write-region, if
21832 VISIT is a filename, make it the target.
21833
218342002-08-07 Richard M. Stallman <rms@gnu.org>
21835
21836 * alloc.c (mark_object): Detect long lists for debugging.
21837 (mark_object_loop_halt): New variable.
21838
21839 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
21840
21841 * data.c (Fmake_variable_frame_local): Doc fix.
21842
218432002-08-01 David Ponce <david@dponce.com>
21844
21845 * w32menu.c (local_heap, local_alloc, local_free): New macros.
21846 (malloc_widget_value, free_widget_value)
21847 (w32_free_submenu_strings): Use them.
21848
21849 (push_submenu_start, push_submenu_end, push_left_right_boundary)
21850 (push_menu_pane, push_menu_item, single_keymap_panes)
21851 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
21852 (single_submenu, set_frame_menubar)
21853 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
21854
21855 (Fx_popup_menu): Don't show pop up menu until preceding one is
21856 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
21857
21858 * w32menu.c: Changes adapted from xmenu.c
21859 (set_frame_menubar): First parse all submenus,
21860 then make widget_value trees from them.
21861 Don't allocate any widget_value objects
21862 until we are done with the parsing.
21863 (parse_single_submenu): New function.
21864 (digest_single_submenu): New function.
21865 (single_submenu): Function deleted, replaced by those two.
21866
218672002-08-04 Andrew Choi <akochoi@shaw.ca>
21868
21869 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
21870 returns a valid window pointer before proceeding for keyDown and
21871 autoKey events.
21872
218732002-08-03 Andrew Choi <akochoi@shaw.ca>
21874
21875 * macterm.c (USE_CARBON_EVENTS): New macro.
21876 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
21877 (x_iconify_frame): Call CollapseWindow.
21878 (Vmac_reverse_ctrl_meta): New variable.
21879 (Vmac_wheel_button_is_mouse_2): New variable.
21880 (init_mac_drag_n_drop): New function.
21881 (mac_do_receive_drag): New function.
21882 (mac_handle_service_event): New function.
21883 (init_service_handler): New function.
21884 (mac_to_emacs_modifiers): New function.
21885 (mac_event_to_emacs_modifiers): New function.
21886 (mac_get_mouse_btn): New function.
21887 (mac_convert_event_ref): New function.
21888 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
21889 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
21890 mac_get_mouse_btn.
21891 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
21892
21893 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
21894 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
21895 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
21896 TOOL_BAR_EVENT for MAC_OS as well.
21897 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
21898 as for WINDOWS_NT.
21899 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
21900
21901 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
21902
219032002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
21904
21905 * xdisp.c (forward_to_next_line_start): Fix a condition that
21906 lead to a newline being skipped.
21907
219082002-08-02 Andrew Choi <akochoi@shaw.ca>
21909
21910 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
21911
219122002-08-01 Richard M. Stallman <rms@gnu.org>
21913
21914 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
21915
219162002-07-31 Andrew Choi <akochoi@shaw.ca>
21917
21918 * macfns.c: #undef init_process before #define-ing it.
21919
21920 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
21921 HAVE_CARBON is defined.
21922
219232002-07-31 Richard M. Stallman <rms@gnu.org>
21924
21925 * xmenu.c (set_frame_menubar): First parse all submenus,
21926 then make widget_value trees from them.
21927 Don't allocate any widget_value objects
21928 until we are done with the parsing.
21929 (parse_single_submenu): New function.
21930 (digest_single_submenu): New function.
21931 (single_submenu): Function deleted, replaced by those two.
21932
219332002-07-30 Juanma Barranquero <lektu@terra.es>
21934
21935 * w32proc.c (syms_of_ntproc): Fix docstring of
21936 `w32-get-true-file-attributes'.
21937
219382002-07-28 Richard M. Stallman <rms@gnu.org>
21939
21940 * s/hpux8.h (HPUX8): Define this before including hpux.h.
21941 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
21942
21943 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
21944
21945 * keyboard.c (make_lispy_event):
21946 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
21947 Explicitly clear up_modifier in event->modifiers.
21948
219492002-07-27 Richard M. Stallman <rms@gnu.org>
21950
21951 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
21952
21953 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
21954 for bar cursor.
21955
219562002-07-26 Kenichi Handa <handa@etl.go.jp>
21957
21958 * coding.c (detect_coding_iso2022): While checking a byte sequence
21959 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
21960 it in the normal loop.
21961
219622002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
21963
21964 * xterm.c (expose_overlaps): New function.
21965 (expose_window): Use it to fix the display of overlapping rows.
21966
21967 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
21968
219692002-07-23 Ken Raeburn <raeburn@gnu.org>
21970
21971 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
21972 since it only depends on XUINT.
21973
21974 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
21975 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
21976 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
21977 Macros deleted.
3947677c 21978
77d1daf2
AS
21979 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
21980 its value over other approaches.
21981 * sysdep.c (start_of_data): Don't define the function if a macro
21982 form has been defined.
8a8e19a3 21983
048addec
JD
219842002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
21985
21986 * xdisp.c (redisplay_updating_p): New variable.
21987 (init_iterator): Don't free realized faces when
21988 redisplay_updating_p is set.
21989 (redisplay_internal): Set redisplay_updating_p while updating
21990 the display.
21991
219922002-07-23 Richard M. Stallman <rms@gnu.org>
21993
21994 * editfns.c (Fmessage): Treat "" like nil.
21995
219962002-07-23 Kenichi Handa <handa@etl.go.jp>
21997
21998 * xdisp.c (face_before_or_after_it_pos):
21999 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22000
220012002-07-22 Juanma Barranquero <lektu@terra.es>
22002
22003 * callproc.c (init_callproc) [DOS_NT]:
22004 Initialize Vshared_game_score_directory to nil.
22005 (syms_of_callproc) [DOS_NT]: Likewise.
22006
220072002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
22008
22009 * xdisp.c (display_line): Replace an abort with xassert.
22010
220112002-07-21 Richard M. Stallman <rms@gnu.org>
22012
22013 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
22014 and END_UNCHANGED when setting buffer_unchanged_p.
22015 Use current_matrix_up_to_date_p to decide whether to use
22016 try_cursor_movement.
22017
22018 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
22019
22020 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
22021
22022 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
22023 Set to nil if dir does not exist.
22024 (syms_of_callproc): Init unconditionally and simply.
22025
22026 * buffer.c (Fbuffer_list): Doc fix.
22027
220282002-07-21 Ken Raeburn <raeburn@gnu.org>
22029
22030 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
22031
22032 * buffer.c (mmap_realloc): When shrinking, make sure number of
22033 pages to unmap is rounded towards zero.
22034
22035 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
22036 (XSETINT): Deleted.
22037
22038 * m/att3b.h (XINT): Don't define.
22039 (VALBITS, VALMASK, XTYPE): Deleted.
22040 (DATA_SEG_BITS): Define.
22041 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
22042 ARRAY_MARK_FLAG): Deleted.
22043 (DATA_SEG_BITS): Define.
22044 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
22045 (DATA_SEG_BITS): Define.
22046
220472002-07-20 Richard M. Stallman <rms@gnu.org>
22048
22049 * print.c (print_error_message): New args CONTEXT and CALLER.
22050 Calls changed.
22051
22052 * lisp.h (print_error_message): Declare new args.
22053
22054 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
22055 and CONTEXT to print_error_message, don't print them here.
22056 For a Quit, don't use Vsignaling_function.
22057 Call message_log_maybe_newline.
22058
22059 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
22060
220612002-07-20 Kim F. Storm <storm@cua.dk>
22062
22063 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
22064
220652002-07-19 Ken Raeburn <raeburn@gnu.org>
22066
22067 * bytecode.c (struct byte_stack): Pointers into byte string now
22068 point to const.
22069 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
22070 const.
22071 * charset.h (BCOPY_SHORT): Source pointer now points to const.
22072 * coding.c (encode_eol, detect_coding, detect_eol):
22073 (decode_coding, encode_coding, detect_coding_system):
22074 Source strings now treated as const.
22075 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
22076 modify Lisp string contents.
22077 * coding.h (decode_coding, encode_coding, detect_coding,
22078 detect_eol): Declarations updated.
22079 * composite.c (compose_chars_in_text): Treat Lisp string contents
22080 as const.
22081 * dispnew.c (safe_bcopy): Source pointer now points to const.
22082 * lisp.h (STRING_COPYIN): New macro.
22083 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
22084 (internal_with_output_to_temp_buffer): Declarations updated.
22085 * print.c (temp_output_buffer_setup):
22086 (internal_with_output_to_temp_buffer): Buffer name argument is now
22087 pointer to const.
22088 * sound.c (struct sound_device): Function pointer field "write"
22089 buffer argument now points to const.
22090 (vox_write): Buffer argument points to const.
22091 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
22092 contents as const.
22093 * sysdep.c (emacs_write): Buffer pointer now const.
22094 * term.c (encode_terminal_code): Buffer pointer now const.
22095 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
22096 (x_face_list_fonts, x_update_menu_appearance):
22097 (hash_string_case_insensitive): Treat Lisp string contents as const.
22098
220992002-07-19 Juanma Barranquero <lektu@terra.es>
22100
048addec
JD
22101 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
22102
22103 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
22104 (Ffile_name_as_directory): Fix argument name in docstring.
22105 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
22106
221072002-07-18 Richard M. Stallman <rms@gnu.org>
22108
22109 * data.c (Fdefalias): Doc fix.
22110
221112002-07-17 Dave Love <fx@gnu.org>
22112
22113 * intervals.h (text_property_stickiness): Use P_.
22114
22115 * ccl.c: Remove `emacs' conditionals.
22116 (ccl_backtrace_table): Fix size spec.
22117 (ccl_driver): Fix type errors.
22118
221192002-07-16 Ken Raeburn <raeburn@gnu.org>
22120
22121 * alloc.c (xstrdup, make_string, make_unibyte_string)
22122 (make_multibyte_string, build_string): String pointer args now
22123 point to const.
22124 * charset.c (find_charset_in_text, c_string_width):
22125 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
22126 * fileio.c (report_file_error):
22127 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
22128 (count_combining_before, count_combining_after, insert_1_both):
22129 (insert, insert_and_inherit, insert_string):
22130 (insert_before_markers, insert_before_markers_and_inherit):
22131 * lread.c (intern, oblookup, hash_string):
22132 * minibuf.c (temp_echo_area_glyphs):
22133 * search.c (fast_c_string_match_ignore_case):
22134 * sysdep.c (emacs_open, set_file_times):
22135 * xfaces.c (xstricmp):
22136 * xdisp.c (store_frame_title, string_char_and_length):
22137 (message_dolog, message2, message2_nolog, set_message): Likewise.
22138 (set_message_1): Cast message string argument to const pointer.
22139 * editfns.c (general_insert_function): Insertion function now
22140 takes pointer to const for input data.
22141 * charset.h (find_charset_in_text, c_string_width):
22142 (parse_str_as_multibyte): Declarations updated.
22143 * dispextern.h (xstricmp): Declaration updated.
22144 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
22145 (count_size_as_multibyte, count_combining_before):
22146 (count_combining_after, insert_1, insert_1_both, message_dolog):
22147 (insert, insert_and_inherit, insert_before_markers)
22148 (insert_before_markers_and_inherit, set_message, message2):
22149 (message2_dolog, build_string, make_string, make_unibyte_string):
22150 (make_multibyte_string, intern, oblookup, report_file_error):
22151 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
22152 (emacs_open, xstrdup): Declarations updated.
22153 * systime.h (set_file_times): Declaration updated.
22154
22155 * charset.c (find_charset_in_text, lisp_string_width): Use const
22156 for pointer to lisp string data.
22157 * charset.h (FETCH_STRING_CHAR_ADVANCE):
22158 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
22159 * coding.c (Ffind_coding_systems_region_interval):
22160 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
22161 (Fmake_directory_internal, Fdelete_directory):
22162 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
22163 * fontset.c (font_family_registry, fs_query_fontset):
22164 (list_fontsets):
22165 * frame.c (Fframe_parameter):
22166 * keyboard.c (cmd_error_internal):
22167 * keymap.c (Fdescribe_buffer_bindings):
22168 * lread.c (complete_filename_p, openp):
22169 * minibuf.c (Fminibuffer_complete_word):
22170 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
22171 (face_before_or_after_it_pos, next_element_from_string):
22172 (get_overlay_arrow_glyph_row, display_mode_element):
22173 (decode_mode_spec_coding):
22174 * xterm.c (same_x_server): Likewise.
22175
22176 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
22177 settings of non-existent fields.
22178
22179 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
22180 copy a lisp value.
22181
22182 * lread.c (Fintern_soft): Use string macros instead of
22183 Lisp_String fields.
22184 * keyboard.c (echo_char, parse_modifiers_uncached):
22185 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
22186 * textprop.c (validate_interval_range, interval_of): Likewise.
22187
22188 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
22189
22190 * charset.h (FETCH_STRING_CHAR_ADVANCE)
22191 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
22192 XSTRING()->size_byte.
22193
22194 * lisp.h (SDATA, SREF): Produce rvalue.
22195 (SSET): New macro.
22196 * alloc.c (make_event_array): Use SSET for storing into a string.
22197 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
22198 a string.
22199 * casefiddle.c (casify_object): Use SSET.
22200 * charset.h (FETCH_STRING_CHAR_ADVANCE)
22201 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
22202 address of string contents.
22203 * data.c (Faref): Use SDATA.
22204 (Faset): Use SDATA, SSET.
22205 * dired.c (directory_files_internal): Use SSET.
22206 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
22207 (Fread_file_name): Use SREF, SSET.
22208 * fns.c (concat): Use SSET.
22209 (concat, Fdelete): Use SDATA.
22210 * insdel.c (insert_from_string_1): Use SDATA.
22211 * keyboard.c (Fevent_convert_list): Use SREF.
22212 * lread.c (Fload): Use SDATA, SSET.
22213 * macfns.c (validate_x_resource_name): Use SSET.
22214 * process.c (status_message): Use SSET.
22215 * search.c (wordify): Use SDATA.
22216 (Freplace_match): Use SREF.
22217 * w32fns.c (validate_x_resource_name): Use SSET.
22218 * xfns.c (validate_x_resource_name): Use SSET.
22219 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
22220
222212002-07-16 Richard M. Stallman <rms@gnu.org>
22222
22223 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
22224
22225 * xdisp.c (reconsider_clip_changes):
22226 Don't test prevent_redisplay_optimizations_p.
22227 (redisplay_internal): Test prevent_redisplay_optimizations_p
22228 along with clip_changed in some cases.
22229 (try_window_id): Likewise.
22230 (redisplay_window): New local var buffer_unchanged_p.
22231
22232 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
22233
22234 * process.c (create_process): Test USG_SUBTTY_WORKS.
22235 (process_send_signal): Clean up handling of GID.
22236 Detect errors in ioctls meant to set GID.
22237
22238 * window.c (temp_output_buffer_show):
22239 Don't set prevent_redisplay_optimizations_p.
22240
222412002-07-15 Juanma Barranquero <lektu@terra.es>
22242
22243 * eval.c (Fdefvaralias): Add docstring argument.
22244
222452002-07-15 Ken Raeburn <raeburn@gnu.org>
22246
22247 * lisp.h (STRING_INTERVALS): Produce rvalue.
22248 (STRING_SET_INTERVALS): New macro.
22249 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
22250 * fns.c (Fstring_as_multibyte): Likewise.
22251 * intervals.c (balance_possible_root_interval, delete_interval)
22252 (create_root_interval, copy_intervals_to_string): Likewise.
22253 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
22254 instead of 0.
22255
222562002-07-14 Ken Raeburn <raeburn@gnu.org>
22257
22258 * lisp.h (STRING_SET_CHARS): New macro.
22259 (SCHARS, SBYTES): Produce rvalues.
22260 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
22261 * fns.c (concat): Likewise.
22262 * lread.c (read_vector): Likewise.
22263
3419757d 22264 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 22265 (STRING_SET_UNIBYTE): New macro.
3419757d 22266 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
22267 length of -1) changed to use STRING_SET_UNIBYTE.
22268 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
22269 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
22270 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
22271 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
22272 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
22273 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
22274 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
22275 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
22276 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
22277 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
22278 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
22279 STRING_BYTES or indirection changed to SCHARS, SBYTES,
22280 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
22281 unchanged for now.
22282
222832002-07-13 Kim F. Storm <storm@cua.dk>
22284
22285 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
22286
222872002-07-12 Richard M. Stallman <rms@gnu.org>
22288
22289 * fileio.c (Fwrite_region): Doc fix.
22290
22291 * print.c (print_error_message): Don't handle Vsignaling_function here.
22292
22293 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
22294 (command_loop_1): Avoid certain actions after memory-full error.
22295
22296 * eval.c (Fsignal): Don't call cancel_hourglass.
22297 For a memory-full error, don't call Vsignal_hook_function
22298 and don't set Vsignaling_function.
22299
22300 * process.c (process_send_signal): Add abort call.
22301
223022002-07-11 Markus Rost <rost@math.ohio-state.edu>
22303
22304 * keymap.c (Fkey_binding): Fix typo.
22305
223062002-07-11 Richard M. Stallman <rms@gnu.org>
22307
22308 * alloc.c (Vmemory_full): New variable.
3419757d 22309 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
22310 Uses changed.
22311 (syms_of_alloc): Defvar them.
22312 (memory_full, buffer_memory_full): Set Vmemory_full.
22313
22314 * lisp.h (Vmemory_full): Add declaration.
22315 (current_column, indented_beyond_p): Change declaration.
22316
22317 * indent.c (last_known_column): Declare as double, not float.
22318 (current_column, current_column_1, string_display_width)
22319 (position_indentation): Return `double'.
22320 (indented_beyond_p): Arg `column' is `double'. Callers changed.
22321
22322 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
22323 (back_to_previous_visible_line_start)
22324 (reseat_at_next_visible_line_start, next_element_from_buffer):
22325 Use `double', not `float', when calling indented_beyond_p.
22326
3419757d 22327 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
22328
22329 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
22330
223312002-07-11 Juanma Barranquero <lektu@terra.es>
22332
22333 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
22334 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
22335 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
22336 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
22337 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
22338 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
22339
223402002-07-10 Juanma Barranquero <lektu@terra.es>
22341
d814862a
JB
22342 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
22343 All callers changed.
048addec
JD
22344
223452002-07-09 Stefan Monnier <monnier@cs.yale.edu>
22346
22347 * data.c (Fdefalias): Add an optional `docstring' argument.
22348 (set_internal, Fsetq_default): Use XCAR/XCDR.
22349
22350 * composite.c (HASH_VALUE, HASH_KEY):
22351 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
22352
223532002-07-09 Kenichi Handa <handa@etl.go.jp>
22354
22355 * callproc.c (Fcall_process): Fix previous change.
22356
223572002-07-07 Stefan Monnier <monnier@cs.yale.edu>
22358
22359 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
22360 Add support for hash-tables.
22361 (Ftry_completion): Return t even if the string appears multiple times.
22362
22363 * fns.c (Fnconc): Use XCDR.
22364 (Fprovide): Use CONSP and XCDR.
22365 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
22366 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
22367 (Fmake_hash_table): Accept `:size nil'.
22368 (Fmakehash): Delete: moved to subr.el.
22369 (syms_of_fns): Don't defsubr makehash.
22370
22371 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
22372 (HASH_TABLE_SIZE): Move from fns.c.
22373
223742002-07-07 Richard M. Stallman <rms@gnu.org>
22375
22376 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
22377 Instead just return 0 when there is something to be done.
22378 (try_scrolling): If make_cursor_line_fully_visible returns 0,
22379 retry scrolling as if cursor were off the bottom.
22380 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
22381 return CURSOR_MOVEMENT_MUST_SCROLL.
22382 (redisplay_window): If make_cursor_line_fully_visible returns 0,
22383 go to try_to_scroll.
22384
22385 * buffer.c (Fbuffer_local_value): Store current value into its binding
22386 so we get the up-to-date value for the binding that is loaded.
22387
22388 * eval.c (Fdefmacro): Doc fix.
22389
223902002-07-05 Dave Love <fx@gnu.org>
22391
22392 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
22393 correctly.
22394
22395 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
22396 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
22397 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
22398 CCL_LookupCharConstTbl.
22399 (syms_of_ccl): Defvar translation-hash-table-vector.
22400
224012002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22402
22403 * xdisp.c: Remove unused variable `face'.
22404
224052002-07-04 Juanma Barranquero <lektu@terra.es>
22406
22407 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
22408 obsolescence information.
22409
224102002-07-03 Andrew Choi <akochoi@shaw.ca>
22411
22412 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
22413 pattern. Search cache first.
22414 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
22415 for Japanese font.
22416 (XLoadQueryFont): Use it.
22417
224182002-07-02 Richard M. Stallman <rms@gnu.org>
22419
22420 * keymap.c (Fdefine_key): Doc fix.
22421
22422 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
22423
224242002-07-02 Juanma Barranquero <lektu@terra.es>
22425
22426 * keymap.c (syms_of_keymap): Fix typo.
22427
224282002-07-01 Andrew Choi <akochoi@shaw.ca>
22429
22430 * s/darwin.h: Define POSIX_SIGNALS.
22431
22432 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
22433 and FSRefMakePath to convert FSSpec returned with Apple Event to
22434 Posix pathname.
22435 (mac_initialize) [TARGET_API_MAC_CARBON]:
22436 Call init_required_apple_events and disable the `Quit' menu item
22437 provided automatically by the Carbon Toolbox.
22438
224392002-07-01 Dave Love <fx@gnu.org>
22440
22441 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22442 for K&R.
22443
22444 * xterm.c: Fix prototype for K&R.
22445
22446 * term.c (costs_set): Declare static, non-initialized for pcc.
22447
224482002-07-01 Richard M. Stallman <rms@gnu.org>
22449
22450 * keyboard.c (timer_last_idleness_start_time): New variable.
22451 (timer_start_idle): Set that.
22452 (read_key_sequence): Use that to reset timer_idleness_start_time
22453 to previous value.
22454
22455 * window.c (Frecenter): With arg, set optional_new_start.
22456
22457 * xdisp.c (redisplay_internal): Make optional_new_start really work.
22458
22459 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
22460 buffer for completion.
22461
224622002-06-29 Ken Raeburn <raeburn@gnu.org>
22463
22464 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
22465
224662002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22467
22468 * keyboard.c (readable_filtered_events): New function that filters
22469 FOCUS_IN_EVENT depending on parameter.
22470 (readable_events): Calls readable_filtered_events, not filtering
22471 FOCUS_IN_EVENT.
22472 (get_filtered_input_pending): New function, filtering parameter passed
22473 to readable_filtered_events.
22474 (get_input_pending): Calls get_filtered_input_pending, not filtering
22475 FOCUS_IN_EVENT.
22476 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
22477 FOCUS_IN_EVENT.
22478
22479 * xterm.h (struct x_output): Add focus_state.
22480
22481 * xterm.c (x_focus_changed): New function.
22482 (x_detect_focus_change): New function.
22483 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
22484 EnterNotify and LeaveNotify to track X focus changes.
22485
224862002-06-28 Andreas Schwab <schwab@suse.de>
22487
22488 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
22489
224902002-06-27 Kim F. Storm <storm@cua.dk>
22491
52eb0373 22492 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
22493 (mode_line_string_face_prop): New variables.
22494 (store_mode_line_string): New function.
22495 (display_mode_element): Use store_mode_line_string to
22496 add mode-line string elements to mode_line_string_list
22497 when mode_line_string_list is non-nil.
22498 (Fformat_mode_line): Now returns propertized string by
22499 default. New arg NO-PROPS to ignore properties.
22500 (decode_mode_spec): Only add two dashes for %- in propertized
22501 mode-line string.
22502 (syms_of_xdisp): Init and staticpro mode_line_string_list.
22503
225042002-06-27 Stefan Monnier <monnier@cs.yale.edu>
22505
22506 * minibuf.c (minibuffer_completion_contents): Add return type.
22507
225082002-06-27 Juanma Barranquero <lektu@terra.es>
22509
22510 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
22511
225122002-06-26 Juanma Barranquero <lektu@terra.es>
22513
22514 * fileio.c (read_file_name_cleanup): Add missing return.
22515
225162002-06-26 Richard M. Stallman <rms@gnu.org>
22517
22518 * window.c (Frecenter): Don't set force_start flag.
22519
22520 * minibuf.c (do_completion, Fminibuffer_complete_word)
22521 (Fminibuffer_completion_help): Complete just the text before point.
22522 (minibuffer_completion_contents): New function.
22523
22524 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
22525
22526 * frame.c (frames_bury_buffer): Function deleted.
22527
225282002-06-25 Miles Bader <miles@gnu.org>
22529
22530 * callint.c (Fcall_interactively): When checking to see if doprnt hit
22531 the end of callint_message, allow for a terminating '\0'.
22532
225332002-06-24 Juanma Barranquero <lektu@terra.es>
22534
52eb0373 22535 * w32select.c: Include composite.h.
048addec
JD
22536
22537 * w16select.c: Likewise.
22538
225392002-06-24 Kenichi Handa <handa@etl.go.jp>
22540
22541 * callproc.c (Fcall_process): If code detection is necessary,
22542 call detect_coding directly here.
22543
22544 * coding.c (detect_eol): Preserve coding->cmp_data.
22545
22546 * w16select.c (Fw16_get_clipboard_data):
22547 * w32fns.c (w32_to_x_font):
22548 * w32select.c (Fw32_get_clipboard_data):
22549 * xselect.c (selection_data_to_lisp_data):
22550 * xterm.c (XTread_socket): Disable composition handling.
22551
225522002-06-24 Stefan Monnier <monnier@cs.yale.edu>
22553
22554 * print.c (temp_output_buffer_setup): Kill all local variables.
22555
225562002-06-22 Stefan Monnier <monnier@cs.yale.edu>
22557
22558 * lread.c (Fread): Remove redundant and imprecise declaration.
22559
22560 * xfns.c (check_x_display_info): Use check_x_frame.
22561
22562 * .gdbinit (xprintsym): Use the new `xname' field.
22563 (xsymbol): Use it.
22564
225652002-06-22 Jason Rumney <jasonr@gnu.org>
22566
22567 * w32fns.c (file_dialog_callback): New function.
22568 (Fx_file_dialog): Allow selecting directories as well as files.
22569
225702002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22571
22572 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 22573 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
22574
225752002-06-17 Andrew Choi <akochoi@shaw.ca>
22576
22577 * macterm.c (mac_scroll_area): Set foreground and backcolor to
22578 black and white before scrolling. Restore frame background and
22579 foreground color after scrolling.
22580 (do_window_update): Call XClearWindow before calling expose_frame.
22581 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
22582 FRAME_FOREGROUND_PIXEL of frame.
22583
22584 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
22585 test Mac command key as <ALT> key.
22586
225872002-06-17 Stefan Monnier <monnier@cs.yale.edu>
22588
22589 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
22590
22591 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
22592 Lookup keys in function-key-map immediately so that key-translation-map
22593 can be applied earlier.
22594 Remove function_key_possible and key_translation_possible, replaced
22595 by checking `keytran_start < t'.
22596
22597 * .gdbinit (xsymbol): Use the new `xname' field.
22598
225992002-06-17 Andrew Choi <akochoi@shaw.ca>
22600
22601 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
22602 test Mac command key as <ALT> key.
22603
22604 * mac.c (do_applescript): Call initialize_applescript if necessary
22605 when first called. Dispose of result_desc only when there is no error.
22606 (Fdo_applescript): Use %d format specifier instead of %ld.
22607
226082002-06-16 Andrew Choi <akochoi@shaw.ca>
22609
22610 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
22611 of FrontWindow for cases keyDown and autoKey.
22612
22613 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
22614 Vdefault_fontset to Monaco with mac-roman coding.
22615
22616 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
22617 init_process before and after inclusion of Carbon/Carbon.h, resp.
22618
22619 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
22620 cursor_gc.
22621 (add_font_name_table_entry): New function.
22622 (init_font_name_table): Use add_font_name_table_entry; add italic,
22623 bold, and bold-italic entries for truetype fonts.
22624
22625 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
22626 for Mac too.
22627 (try_font_list) [MAC_OS]: If no font matches given registry, try
22628 fonts with any registry matching face_family.
22629 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
22630
22631 * s/darwin.h: If autoconf detects the Ncurses library, define
22632 LIBS_TERMCAP to -lncurses to use it.
22633
226342002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
22635
22636 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
22637
226382002-06-15 Richard M. Stallman <rms@gnu.org>
22639
22640 * window.c (Fset_window_configuration): Explicitly preserve
22641 the point value that new_current_buffer had at the start.
22642
226432002-06-14 Juanma Barranquero <lektu@terra.es>
22644
22645 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
22646 Fix typos.
22647
226482002-06-14 Kim F. Storm <storm@cua.dk>
22649
22650 * insdel.c (insert_1_both, insert_from_string_1)
22651 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
22652 insert happened in the end_unchanged region. Otherwise, the
22653 redisplay may be confused and duplicate the last line in the
22654 buffer [seen after save-buffer when require-final-newline==t].
22655
226562002-06-13 Jason Rumney <jasonr@gnu.org>
22657
22658 * w32.c (init_environment): Remove EMACSLOCKDIR.
22659 (stat): Swap _S_IFDIR and _S_IFREG.
22660
226612002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22662
22663 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
22664 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
22665 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
22666 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
22667 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
22668 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
22669 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
22670 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
22671 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
22672 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
22673 SELECTION_REQUEST_EVENT, selection_clear_event to
22674 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
22675 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
22676 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
22677 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
22678 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
22679 no_event to NO_EVENT.
22680
226812002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22682
22683 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
22684
226852002-06-12 Stefan Monnier <monnier@cs.yale.edu>
22686
22687 * intervals.c (textget): Don't forget to `return'.
22688 (lookup_char_property): Use XCAR/XCDR.
22689
226902002-06-12 Juanma Barranquero <lektu@terra.es>
22691
22692 * xdisp.c (Fformat_mode_line): Fix typo.
22693
226942002-06-12 Kim F. Storm <storm@cua.dk>
22695
22696 * xdisp.c (Fformat_mode_line): New function.
22697 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
22698 (store_frame_title_char, store_frame_title): Use unconditionally.
22699 (init_xdisp): Defsubr Fformat_mode_line.
22700 Initialize frame_title_buf etc. unconditionally.
22701
227022002-06-11 Stefan Monnier <monnier@cs.yale.edu>
22703
22704 * keyboard.c (read_key_sequence):
22705 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
22706 things through those maps after downcasing events.
22707 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
22708 applies after function-key-map.
22709 Make sure that keytran can be done in the middle in the sequence.
22710 Be careful not to throw away events past the one we downcase.
22711
22712 * lread.c (read_integer): Remove unused var `tem'.
22713 (read1): Fix int/Lisp_Object mixup.
22714
22715 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
22716
227172002-06-11 Richard M. Stallman <rms@gnu.org>
22718
22719 * keyboard.c (readable_events): Ignore any number of
22720 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
22721
227222002-06-09 Miles Bader <miles@gnu.org>
22723
22724 * xfaces.c (Ftty_supports_face_attributes_p): New function.
22725 (parse_rgb_list, tty_lookup_color): New functions.
22726 (tty_defined_color): Use `tty_lookup_color' to do all the work.
22727 (color_distance, Fcolor_distance): New functions.
22728 (TTY_SAME_COLOR_THRESHOLD): New macro.
22729 (Qtty_color_standard_values): New variable.
22730 (syms_of_xfaces): Initialize new vars & functions.
22731
227322002-06-08 Colin Walters <walters@verbum.org>
22733
22734 * textprop.c (Vchar_property_alias_alist): New variable.
22735 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
22736
22737 * intervals.c (lookup_char_property): New function for looking up
22738 overlay and text properties, created from textget.
22739 (textget): Use it.
22740
22741 * intervals.h (lookup_char_property): Declare.
22742 (Vchar_property_alias_alist): Declare.
22743
22744 * buffer.c (Foverlay_get): Use lookup_char_property.
22745
227462002-06-07 Sam Steingold <sds@gnu.org>
22747
22748 * xselect.c (lisp_data_to_selection_data): Fix last change:
22749 *data_ret is not a Lisp string, while unibyte_string is.
22750
227512002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
22752
22753 * xselect.c (lisp_data_to_selection_data): Fix last change:
22754 set size_ret.
22755
227562002-06-07 Andreas Schwab <schwab@suse.de>
22757
22758 * m/amdx86-64.h: New file.
22759
227602002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
22761
22762 * fns.c (Fstring_make_unibyte): Doc fix.
22763
22764 * xselect.c (lisp_data_to_selection_data): If the requested type
22765 is STRING, call string_make_unibyte to encode the selected text
22766 as a string.
22767
22768 * window.c (Fset_window_hscroll): Doc fix.
22769
227702002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22771
22772 * fileio.c (choose_write_coding_system):
22773 Call select-safe-coding-system properly.
22774
227752002-06-03 Richard M. Stallman <rms@gnu.org>
22776
22777 * xdisp.c (message_with_string): Error if STRING is not a string.
22778
22779 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
22780
22781 * fileio.c (choose_write_coding_system): Pass FILE arg to
22782 Vselect_safe_coding_system_function.
22783
227842002-06-03 Ken Raeburn <raeburn@gnu.org>
22785
22786 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
22787
227882002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
22789
22790 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
22791 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
22792 * keymap.c (describe_command): Likewise.
22793 * minibuf.c (read_minibuf): Likewise.
22794
22795 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
22796 Cast `current_column' return value to int.
22797 (back_to_previous_visible_line_start)
22798 (reseat_at_next_visible_line_start, next_element_from_buffer):
22799 Cast `indented_beyond_p' 3rd arg to float.
22800
22801 * indent.c (last_known_column): Now a float.
22802 (current_column_1, position_indentation, current_column)
22803 (string_display_width): Return float.
22804 (Fcurrent_column): Cast `current_column' return value to int.
22805 (Fcurrent_indentation): Cast `position_indentation' retval to int.
22806 (indented_beyond_p): Third arg now a float.
22807 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
22808
22809 * lisp.h (current_column): Now returns float.
22810 (indented_beyond_p): 3rd arg now a float.
22811
228122002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
22813
22814 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
22815 is Qcompound_text_with_extensions.
22816
22817 * xselect.c (lisp_data_to_selection_data): Always set selection
22818 type as string if x_encode_text returns streingp non-NULL.
22819
22820 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
22821
228222002-05-30 Richard M. Stallman <rms@gnu.org>
22823
22824 * window.c (Fset_window_configuration): Correct the handling
22825 of point in current buffer, to work with multiple windows.
22826
228272002-05-29 Colin Walters <walters@verbum.org>
22828
22829 * lread.c (Fread_from_string): Don't depend on order of evaluation
22830 for C function parameters.
22831
228322002-05-28 Richard M. Stallman <rms@gnu.org>
22833
22834 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
22835 way for blinked-off state and for a nonselected window.
22836
22837 * window.c (window_scroll_pixel_based): Don't call Fbolp;
22838 instead, see if the new start pos is at beginning of line.
22839
22840 * fileio.c (Fwrite_region): If START is a string, don't
22841 make any annotations.
22842
22843 * eval.c (syms_of_eval): Doc fix.
22844
228452002-05-28 Colin Walters <walters@debian.org>
22846
22847 * emacs.c (USAGE1): Add --no-splash.
22848 (standard_args): Ditto.
22849
228502002-05-28 Colin Walters <walters@gnu.org>
22851
22852 * lread.c (readchar_count): New variable.
22853 (readchar): Increment it.
22854 (unreadchar): Decrement it.
22855 (read_multibyte): Decrement it.
22856 (Vread_with_symbol_positions): New variable.
22857 (Vread_symbol_positions_list): New variable.
22858 (read_internal_start): New function, created from Fread and
22859 Fread_from_string. Handle Vread_symbol_positions_list and
22860 Vread_with_symbol_positions.
22861 (readevalloop, Fread, Fread_from_string): Use it.
22862 (read1): Use readchar_count to add symbol positions to
22863 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
22864 (syms_of_lread): DEFVAR_LISP and initialize them.
22865
22866 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
22867 (substitute_object_recurse, substitute_object_in_subtree)
22868 (substitute_in_interval): Prototype.
22869 (read_multibyte): Return c if it's less than zero.
22870
228712002-05-28 Kim F. Storm <storm@cua.dk>
22872
22873 * fileio.c (Fread_file_name_internal): Added brute-force
22874 speed up for using predicate file-directory-p.
22875
228762002-05-28 Kim F. Storm <storm@cua.dk>
22877
22878 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
22879 New variables.
22880 (syms_of_fileio): DEFVAR_LISP them.
22881 (read_file_name_cleanup): New unwind function.
22882 (Fread_file_name_internal): Only return completions satifying
22883 Vread_file_name_predicate. Temporarily unwind protect and rebind
22884 default-directory while checking completions against the predicate.
22885 (Fread_file_name): Added PREDICATE argument. Specbind it to
22886 Vread_file_name_predicate during completion.
22887 Call Vread_file_name_function to read the file name if non-nil.
22888
22889 * lisp.h (Fread_file_name): Now has 6 args.
22890
22891 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
22892 predicate for Fread_file_name when reading directory name.
22893 Supply Qnil for predicate in other calls to Fread_file_name.
22894
228952002-05-26 Miles Bader <miles@gnu.org>
22896
22897 * term.c (tty_capable_p): New function.
22898 * dispextern.h (tty_capable_p): New function declaration.
22899 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
22900 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
22901
229022002-05-23 Stefan Monnier <monnier@cs.yale.edu>
22903
22904 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
22905 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
22906 (Vwrite_region_annotate_functions): Docstring fix.
22907
229082002-05-23 Kim F. Storm <storm@cua.dk>
22909
22910 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
22911 phys_cursor's hpos is overwritten. This is still not completely
22912 correct, as it doesn't really make sense to use hpos at all to
22913 get the cursor glyph (as that is relative to the width of the
22914 characters on the line, which may have changed during the update).
22915
229162002-05-22 Jason Rumney <jasonr@gnu.org>
22917
22918 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
22919 Lisp_Object.
22920 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
22921 Use modified enumfont_t struct.
22922
22923 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
22924
22925 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
22926 Handle the `hbar' cursor type.
22927 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
22928
22929 * w32fns.c (Qhbar): New variable.
22930 (x_specified_cursor_type): Use it.
22931
229322002-05-21 Ken Raeburn <raeburn@gnu.org>
22933
22934 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
22935 now, when the address is needed.
22936
229372002-05-21 Colin Walters <walters@gnu.org>
22938
22939 * Makefile.in (shortlisp): Add font-core.el.
22940
229412002-05-20 Richard M. Stallman <rms@gnu.org>
22942
22943 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
22944
22945 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
22946 equivalent key bindings here.
22947
229482002-05-20 Ken Raeburn <raeburn@gnu.org>
22949
22950 Change symbol structure to contain a lisp object for the symbol
22951 name:
22952 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
22953 object field named "xname".
22954 (SYMBOL_NAME): New macro.
22955 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
22956 name field.
22957 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
22958 (mark_object, gc_sweep): Use symbol xname field and XSTRING
22959 instead of name field.
22960 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
22961 SYMBOL_NAME instead of XSYMBOL and name field.
22962 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
22963 instead of XSYMBOL and name field.
22964 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
22965 and SYMBOL_NAME instead of XSYMBOL and name field.
22966 * coding.c (Fread_coding_system, code_convert_region1)
22967 (code_convert_string1, code_convert_string_norecord)
22968 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
22969 XSYMBOL and name field.
22970 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
22971 (Fmake_variable_buffer_local, Fmake_local_variable)
22972 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
22973 of XSYMBOL and name field.
22974 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
22975 XSYMBOL and name field.
22976 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
22977 instead of XSYMBOL and name field.
22978 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
22979 XSYMBOL and name field.
22980 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
22981 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
22982 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
22983 instead of XSYMBOL and name field.
22984 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
22985 (parse_modifiers, apply_modifiers, Fevent_convert_list)
22986 (parse_solitary_modifier, Fexecute_extended_command):
22987 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
22988 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
22989 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
22990 of XSYMBOL and name field.
22991 (describe_command, describe_translation): Use SYMBOL_NAME and
22992 assignment instead of XSYMBOL and name field and XSETSTRING.
22993 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
22994 instead of XSYMBOL and name field.
22995 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
22996 name field and XSETSTRING.
22997 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
22998 of XSYMBOL and name field.
22999 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
23000 assignment instead of XSYMBOL and name field and XSETSTRING.
23001 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
23002 XSTRING instead of XSYMBOL and name field.
23003 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
23004 and XSTRING instead of XSYMBOL and name field.
23005 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
23006 and XSTRING instead of XSYMBOL and name field.
23007 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
23008 XSTRING instead of XSYMBOL and name field.
23009 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23010 of XSYMBOL and name field.
23011 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
23012 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23013
230142002-05-19 Ken Raeburn <raeburn@gnu.org>
23015
23016 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
23017 and XCDR real rvalues in most configurations.
23018
23019 * buffer.c (fix_overlays_in_range, fix_overlays_before):
23020 Don't take the address of the cdr part of a cons cell; instead, track
23021 the parent cell and call XSETCDR, or set the variable for the head
23022 of the list if we haven't started down the list yet.
23023
230242002-05-19 Richard M. Stallman <rms@gnu.org>
23025
23026 * doc.c (reread_doc_file): Don't ask for confirmation.
23027
230282002-05-18 Jason Rumney <jasonr@gnu.org>
23029
23030 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
23031 (xbm_load_image): Use it.
23032 (xbm_load): Ditto.
23033 (xbm_read_bitmap_data): Reverted to xfns.c version.
23034 From David Ponce <david@dponce.com>.
23035
230362002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
23037
23038 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
23039 2.02 and later.
23040
230412002-05-16 Juanma Barranquero <lektu@terra.es>
23042
23043 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
23044
230452002-05-15 Stefan Monnier <monnier@cs.yale.edu>
23046
23047 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
23048 meaningful test.
23049 (read_char_minibuf_menu_prompt): Fix typo.
23050
230512002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
23052
23053 * eval.c (Fcommandp): Doc fix.
23054
230552002-05-13 Stefan Monnier <monnier@cs.yale.edu>
23056
23057 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
23058 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
23059 (Fset_keymap_parent): Gcpro a bit more.
23060 (access_keymap): Gcpro around meta_map call and around the main loop.
23061 (get_keyelt): Gcpro when following indirect references.
23062 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
23063 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
23064 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
23065 Remove useless ad-hoc remap code.
23066
230672002-05-13 Richard M. Stallman <rms@gnu.org>
23068
23069 * search.c (search_buffer): Give up boyer moore search if inverse
23070 translation change charset_base.
23071
230722002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
23073
23074 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
23075 characters is carried over from the previous block of text, adjust
23076 coding->produced to account for the extra character.
23077
230782002-05-11 Andreas Schwab <schwab@suse.de>
23079
23080 * coding.c (intersection): Keep the elements of the returned list
23081 in the same order as in the first list.
23082
230832002-05-11 Kim F. Storm <storm@cua.dk>
23084
3419757d 23085 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
23086 only update cmm_size if realloc actually succeeds.
23087 Testing with initial size of 2 elements revealed that using
23088 realloc on GNU/Linux would cause a random trap in xmalloc
23089 later on, so I rewrote the code to use malloc/bcopy/free instead
23090 of realloc.
23091
230922002-05-10 Jason Rumney <jasonr@gnu.org>
23093
23094 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
23095
230962002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
23097
23098 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
23099 parens, to ensure correct evaluation order.
23100
231012002-05-10 Kim F. Storm <storm@cua.dk>
23102
23103 * keymap.c (Vemulation_mode_map_alists): New variable.
23104 (syms_of_keymap): DEFVAR_LISP it.
23105 (current_minor_maps): Process keymap alists in that list before
23106 minor-mode-overriding-map-alist and minor-mode-map-alist.
23107
231082002-05-09 Richard M. Stallman <rms@gnu.org>
23109
23110 * search.c (Freplace_match): Doc fix.
23111
231122002-05-09 Kim F. Storm <storm@cua.dk>
23113
23114 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23115 Enlarge cursor rectangle drawn around image with non-zero relief.
23116
23117 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
23118 Enlarge cursor rectangle drawn around image with non-zero relief.
23119
23120 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23121 Enlarge cursor rectangle drawn around image with non-zero relief.
23122
231232002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
23124
23125 * xselect.c (lisp_data_to_selection_data): Don't set selection
23126 type if comes from the Lisp object's car. If the selection
23127 contains a pure ASCII text, always return QSTRING as its type.
23128
231292002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23130
23131 * mac.c (mac-cut-function): Doc fix.
23132
231332002-05-05 Richard M. Stallman <rms@gnu.org>
23134
23135 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
23136
231372002-05-04 Jason Rumney <jasonr@gnu.org>
23138
23139 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
23140 for event-click-count.
23141
23142 * process.c (init_process): Only add server subfeature if we can
23143 use non-blocking I/O.
23144
231452002-05-04 Andrew Choi <akochoi@shaw.ca>
23146
23147 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
23148 repeatedly.
23149
231502002-05-03 Jason Rumney <jasonr@gnu.org>
23151
23152 * process.c (Fmake_network_process): Only support server sockets
23153 when we can make them non-blocking.
23154
23155 * s/ms-w32.h (HAVE_SELECT): Define.
23156
23157 * w32.h (FILE_NDELAY): New flag.
23158
23159 * w32.c (sys_getpeername, fcntl): New functions.
23160 (_sys_read_ahead): Temporarily block on non-blocking sockets.
23161
2d4713aa 23162 * w32proc.c: Include sys/file.h.
048addec
JD
23163
231642002-05-03 Colin Walters <walters@verbum.org>
23165
23166 * callproc.c (Vgame_score_directory): Renamed to
23167 Vshared_game_score_directory.
23168
231692002-04-30 Richard M. Stallman <rms@gnu.org>
23170
23171 * s/gnu.h [emacs]: Include stdio.h.
23172 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
23173
23174 * eval.c (do_autoload): Error if called while preparing to dump.
23175
23176 * fns.c (Frequire): Error if need to load while preparing to dump.
23177
231782002-04-28 Colin Walters <walters@verbum.org>
23179
23180 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
23181 Default to "~/.emacs.d/games".
23182
231832002-04-29 Stefan Monnier <monnier@cs.yale.edu>
23184
23185 * lread.c (openp): Change arg exec_only to predicate.
23186 (build_load_history): Use XCAR/XCDR.
23187 (Flocate_file_internal): New fun.
23188 (syms_of_lread): Defsubr it.
23189 (Fload): Update call to openp.
23190
23191 * lisp.h (openp): Update prototype.
23192
23193 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
23194 * w32proc.c (sys_spawnve):
23195 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
23196 * w32.c (check_windows_init_file):
23197 * sound.c (Fplay_sound_internal):
23198 * process.c (Fstart_process):
23199 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
23200 * mac.c (run_mac_command):
23201 * emacs.c (init_cmdargs):
23202 * callproc.c (Fcall_process): Update call to openp.
23203
23204 * textprop.c (remove_properties): Don't use XCAR without CONSP.
23205
23206 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
23207
232082002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23209
23210 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
23211 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
23212
232132002-04-28 Richard M. Stallman <rms@gnu.org>
23214
23215 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
23216
23217 * eval.c (Fcommandp): New arg for_call_interactively.
23218 * lisp.h (Fcommandp): Declare new arg.
23219
232202002-04-28 Jason Rumney <jasonr@gnu.org>
23221
23222 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
23223
23224 * w32.c (stat, fstat): Use file index information to generate
23225 inodes for directories where available.
23226
232272002-04-26 Andrew Choi <akochoi@shaw.ca>
23228
23229 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
23230 [HAVE_CARBON]: Include Mac object files.
23231
23232 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
23233 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
23234 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
23235 MAC_OSX, and MAC_OS instead of macintosh.
23236
23237 * editfns.c [MAC_OS8]: Include stdio.h.
23238
23239 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
23240
23241 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
23242 Apple Monaco.
23243
78819ebb 23244 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
23245 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
23246 calling select.
23247
23248 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
23249
23250 * tparam.c [MAC_OSX]: Don't define BC and UP.
23251
23252 * config.in [HAVE_CARBON]: Add.
23253
23254 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
23255 Move here from mac/src and mac/inc.
23256
23257 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
23258
232592002-04-26 Gerd Moellmann <gerd@gnu.org>
23260
23261 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
23262 Compute phys_cursor_width from the x position returned
23263 by x_draw_glyhs, which is cheaper.
23264 (x_display_and_set_cursor): Compute the buffer-local value
23265 of `cursor-in-non-selected-windows' only when needed.
23266
232672002-04-25 Gerd Moellmann <gerd@gnu.org>
23268
23269 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
23270 cursor on a stretch glyph has a width that depends on
23271 x_stretch_cursor_p.
23272
232732002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23274
23275 * abbrev.c (abbrev-start-location): Doc fix.
23276
23277 * indent.c (Fvertical_motion): Fix last change.
23278
232792002-04-25 Gerd Moellmann <gerd@gnu.org>
23280
23281 * indent.c (Fvertical_motion): Move to the start of the line
23282 containing PT before moving up or down.
23283
232842002-04-24 Gerd Moellmann <gerd@gnu.org>
23285
23286 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
23287 case of writing a whole row, more or less analogous to the case of
23288 writing only parts of a row.
23289
23290 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
23291 0 for NO_CURSOR.
23292
23293 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
23294
232952002-04-23 Colin Walters <walters@verbum.org>
23296
23297 * buffer.c (syms_of_buffer): Doc fix.
23298
232992002-04-23 Gerd Moellmann <gerd@gnu.org>
23300
23301 * xterm.c (notice_overwritten_cursor): Handle the special case
23302 of the cursor being in the first blank non-text line at the
23303 end of a window.
23304
23305 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
23306 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
23307 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
23308 bar cursors only, to make phys_cursor_width contain what its name
23309 suggests.
23310 (notice_overwritten_cursor): Consider the cursor image erased if
23311 the output area intersects the cursor image in y-direction.
23312
233132002-04-23 Simon Marshall <simon@gnu.org>
23314
23315 * xfns.c (x_set_mouse_color): Change default for cross_cursor
23316 to XC_hand2.
23317
233182002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23319
23320 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
23321
233222002-04-22 Kim F. Storm <storm@cua.dk>
23323
23324 * textprop.c (remove_properties): Fixed trap for malformed plist.
23325
233262002-04-22 Richard M. Stallman <rms@gnu.org>
23327
23328 * cmds.c (Fend_of_line): Handle intangible text in mid line.
23329
23330 * window.c (make_window): Initialize height_fixed_p,
23331 last_cursor_off_p, and p->cursor_off_p slots.
23332
233332002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23334
23335 * fns.c (use-dialog-box): Doc fix.
23336
233372002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23338
23339 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
23340 variables `row', `i' and `area'.
23341 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
23342 toolkit library.
23343
233442002-04-19 Stefan Monnier <monnier@cs.yale.edu>
23345
23346 * xfaces.c (clear_font_table): Don't free the default font of
23347 a frame even if it's on another display.
23348 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
23349 that could be Qt.
23350
233512002-04-19 Juanma Barranquero <lektu@terra.es>
23352
23353 * indent.c (Fmove_to_column): Remove unused local variable
23354 `next_boundary_byte'.
23355 (current_column_1): Likewise.
23356
233572002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
23358
23359 * msdos.c (Qhbar): New variable.
23360 (syms_of_msdos): Intern and staticpro it.
23361 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
23362 cursor type.
23363
233642002-04-19 Dave Lambert <dlambert@acm.org>
23365
23366 Theses change implement an underscore-like (`hbar') cursor.
23367
23368 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
23369
23370 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
23371 Handle the `hbar' cursor type.
23372 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
23373
23374 * xfns.c (Qhbar): New variable.
23375 (syms_of_xfns): Intern and staticpro it.
23376 (x_specified_cursor_type): Handle `hbar' cursor.
23377
23378 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
23379 not defined.
23380
233812002-04-18 Richard M. Stallman <rms@gnu.org>
23382
23383 * textprop.c (remove_properties): New arg LIST allows scanning
23384 either a list or a plist.
23385 (interval_has_some_properties_list): New function, like
23386 interval_has_some_properties using list instead of plist.
23387 All callers changed.
23388 (Fremove_list_of_text_properties): New function.
23389 (syms_of_textprop): Defsubr it.
23390
233912002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
23392
23393 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
23394
233952002-04-17 Juanma Barranquero <lektu@terra.es>
23396
23397 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
23398
233992002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
23400
23401 * window.c (coordinates_in_window): Don't report on margin area
23402 if its width is zero.
23403
234042002-04-16 Jason Rumney <jasonr@gnu.org>
23405
23406 * w32fns.c (Fx_file_dialog): Decode file name before using.
23407
23408 * w32term.c (construct_drag_n_drop): Likewise.
23409
234102002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
23411
23412 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
23413 store load-history in pure space.
23414
23415 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
23416
234172002-04-16 Stefan Monnier <monnier@cs.yale.edu>
23418
23419 * xterm.c (Qlatin_1, Qutf_8): New vars.
23420 (syms_of_xterm): Initialize them.
23421 (XTread_socket): Eliminate incorrect optimization that tried to avoid
23422 decoding the output of X*LookupString.
23423 Always use latin-1 to decode the output of XLookupString.
23424 Try Xutf8LookupString if XmbLookupString failed.
23425
23426 * region-cache.c (new_region_cache): Use BEG.
23427
234282002-04-16 Gerd Moellmann <gerd@gnu.org>
23429
23430 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
23431 configuration files.
23432 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
23433 returns 0.
23434
234352002-04-15 Andreas Schwab <schwab@suse.de>
23436
23437 * config.in: Regenerated using autoheader.
23438
23439 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
23440 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
23441 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
23442 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
23443 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
23444 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
23445 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
23446 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
23447 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
23448 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
23449 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
23450 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
23451 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
23452 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
23453 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
23454 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
23455 STACK_DIRECTION, now set by autoconf.
23456
234572002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23458
23459 * dispnew.c (marginal_area_string): Sort arguments.
23460
23461 * dispextern.h (marginal_area_string): Add prototype.
23462
234632002-04-13 Richard M. Stallman <rms@gnu.org>
23464
23465 * fileio.c (Finsert_file_contents):
23466 Don't call temp_output_buffer_setup--do just part, by hand.
23467
23468 * coding.c (run_pre_post_conversion_on_str):
23469 Don't call temp_output_buffer_setup--do just part, by hand.
23470
23471 * keyboard.c (command_loop_1): Don't call start_hourglass
23472 or cancel_hourglass when executing a macro.
23473
23474 * marker.c (count_markers): New function.
23475
23476 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
23477 grow without limit. Move recently used elements to the front.
23478
234792002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
23480
23481 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
23482
234832002-04-12 Gerd Moellmann <gerd@gnu.org>
23484
23485 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
23486 rows marginal areas.
23487 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
23488 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
23489
23490 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
23491
234922002-04-12 Dave Love <fx@gnu.org>
23493
23494 * dispnew.c (marginal_area_string): New.
23495
23496 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
23497 (Qleft_margin, Qright_margin): Declare.
23498 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
23499
23500 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
23501 note_mode_line_highlight and extended.
23502
23503 * keyboard.c (Qleft_margin, Qright_margin): Declare.
23504 (make_lispy_event): Deal with mouse events in margins.
23505
235062002-04-12 Stefan Monnier <monnier@cs.yale.edu>
23507
23508 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
23509
23510 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
23511 than deactivating the mark if tmm is set to `lambda'.
23512 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
23513 Use a single event for HELP_EVENT.
23514 (Fexecute_extended_command): Save last_point_position.
23515
235162002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23517
23518 * lisp.h (Fpropertize): Add prototype.
23519
23520 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
23521
235222002-04-10 Colin Walters <walters@verbum.org>
23523
23524 * config.in: Add HAVE_SHARED_GAME_DIR.
23525
52eb0373 23526 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
23527 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
23528
235292002-04-10 Richard M. Stallman <rms@gnu.org>
23530
23531 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
23532
235332002-04-09 Stefan Monnier <monnier@cs.yale.edu>
23534
23535 * minibuf.c (read_minibuf): Use empty_string.
23536 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
23537 Short-circuit the search as soon as it "failed".
23538 (Fall_completions): Allow lambda forms and lists of strings for alist.
23539 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
23540 when require_match is nil.
23541 (Ftest_completion): Rename from `test_completion' and export to elisp.
23542 Call the predicate also when alist is a list.
23543 Obey Vcompletion_regexp_list.
23544 (do_completion, Fminibuffer_complete_and_exit): Use it.
23545 (Fassoc_string): Rename from `assoc_for_completion'.
23546 Allow list of strings as well and export to elisp.
23547
235482002-04-08 Stefan Monnier <monnier@cs.yale.edu>
23549
23550 * puresize.h (BASE_PURESIZE): Increase to 900KB.
23551
235522002-04-08 Juanma Barranquero <lektu@terra.es>
23553
23554 * w32.c (sys_accept): Don't hide variable `s'.
23555
235562002-04-05 Gerd Moellmann <gerd@gnu.org>
23557
23558 * callint.c (Fcall_interactively): Use INTEGERP instead of
23559 NUMBERP for checking Vhistory_length.
23560
235612002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23562
23563 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
23564 Doc fix to reflect it.
23565
235662002-04-04 Richard M. Stallman <rms@gnu.org>
23567
23568 * xdisp.c (display_mode_element): New arg RISKY.
23569 Disregard text props found or specified within a variable
23570 that isn't marked risky-local-variable.
23571 (Qrisky_local_variable): New variable.
23572 (syms_of_xdisp): Init and staticpro it.
23573
235742002-04-04 Stefan Monnier <monnier@cs.yale.edu>
23575
23576 * undo.c (record_point): New fun.
23577 (record_delete, record_insert): Use it.
23578
235792002-04-03 Juanma Barranquero <lektu@terra.es>
23580
23581 * doc.c (Fdocumentation): Add missing parentheses.
23582 (Fdocumentation_property): Likewise.
23583
235842002-04-03 Stefan Monnier <monnier@cs.yale.edu>
23585
23586 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
23587 data is 0, just return nil.
23588
235892002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
23590
23591 * msdos.c (syms_of_msdos): Fix last change with
23592 mouse_autoselect_window.
23593
235942002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23595
23596 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
23597 mouse_autoselect_window.
23598
235992002-04-02 Stefan Monnier <monnier@cs.yale.edu>
23600
23601 * keyboard.c (make_lispy_event): Handle unknown keysyms together
23602 with system-specific keysyms. Use it also for unknown function keys.
23603
23604 * doc.c (reread_doc_file): Return whether reload was attempted.
23605 (Fdocumentation, Fdocumentation_property): Don't try to reload
23606 if the doc is 0 and only ask once.
23607
23608 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
23609
236102002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
23611
23612 * keyboard.c (read_char): If the event was Qselect_window,
23613 restore timer_idleness_start_time to its previous value.
23614
23615 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
23616
236172002-04-01 Stefan Monnier <monnier@cs.yale.edu>
23618
23619 * region-cache.c (new_region_cache): Use BEG.
23620
23621 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
23622 Use BEG and BEG_BYTE.
23623
23624 * doc.c (get_doc_string): Return nil if the location is wrong.
23625 (reread_doc_file): New fun.
23626 (Fdocumentation, Fdocumentation_property):
23627 Call it if get_doc_string fails.
23628 (Fsnarf_documentation): Make it work for a dumped Emacs.
23629
23630 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
23631 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
23632
23633 * charset.c (Fstring): Allow 0 arguments.
23634
23635 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
23636
23637 * process.c (DATAGRAM_CONN_P, list_processes_1)
23638 (Fprocess_datagram_address, Fset_process_datagram_address)
23639 (Fset_network_process_options, server_accept_connection):
23640 Fix some int/Lisp_Object confusions (thank you union types).
23641
236422002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23643
23644 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
23645
23646 * w32term.c: Likewise.
23647 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
23648
23649 * keyboard.c (Qselect_window): New symbol.
23650 (head_table): Use it.
23651 (keys_of_keyboard): Bound select-window event to handle-select-window.
23652 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
23653
23654 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
23655 (last_window): New variable.
23656 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
23657 (note_mouse_movement): Remove reimplemented code in #if 0.
23658 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
23659 Emacs windows.
23660
23661 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
23662
236632002-03-31 Gerd Moellmann <gerd@gnu.org>
23664
23665 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
23666 Callers changed.
23667
236682002-03-30 Richard M. Stallman <rms@gnu.org>
23669
23670 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
23671 loop whenever it stops making progress.
23672
23673 * widget.c (set_frame_size): Don't call change_frame_size.
23674
236752002-03-30 Gerd Moellmann <gerd@gnu.org>
23676
23677 * dispnew.c (direct_output_for_insert):
23678 Call mark_window_display_accurate.
23679
236802002-03-29 Jason Rumney <jasonr@gnu.org>
23681
23682 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
23683
236842002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
23685
23686 * Makefile.in (lread.o): Depend on coding.h.
23687
23688 * lread.c (openp, Fload): Encode the file name before passing it
23689 to `stat', `access', and `emacs_open'.
23690 (openp): GCPRO the encoded file name. Don't recompute Lisp
23691 strings unnecessarily.
23692
236932002-03-29 Kim F. Storm <storm@cua.dk>
23694
23695 * fns.c (Flax_plist_put): Doc fix.
23696
236972002-03-28 Miles Bader <miles@gnu.org>
23698
23699 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
23700
237012002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23702
23703 * process.c (set-network-process-options): Add usage.
23704 (make-network-process): Doc fix.
23705
237062002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
23707
23708 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
23709
237102002-03-26 Richard M. Stallman <rms@gnu.org>
23711
23712 * fns.c (Fsubstring_no_properties): New function.
23713 (Flax_plist_get, Flax_plist_put): New functions.
23714 (syms_of_fns): defsubr them.
23715
23716 * xdisp.c (update_menu_bar): Test only update_mode_lines;
23717 don't test or alter w->update_mode_line.
23718
23719 * window.c (Fdisplay_buffer): Doc fix.
23720
237212002-03-24 Richard M. Stallman <rms@gnu.org>
23722
23723 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
23724
237252002-03-24 Gerd Moellmann <gerd@gnu.org>
23726
23727 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
23728 (Fdefmacro): Handle `(declare ...)'.
23729 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
23730 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
23731
237322002-03-24 Jason Rumney <jasonr@gnu.org>
23733
23734 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
23735 (xbm_file_p): Add prototypes.
23736 (xbm_format, xbm_image_p): Sync with xfns.c.
23737 (reflect_byte): New function.
23738 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
23739 (xbm_load_image): Create bitmaps with a depth of 1.
23740 (init_xfns): Enable XBM images.
23741
237422002-03-23 Jason Rumney <jasonr@gnu.org>
23743
23744 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
23745 correctly. Do not pass up_modifier to keyboard buffer.
23746
23747 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
23748
237492002-03-22 Stefan Monnier <monnier@cs.yale.edu>
23750
23751 * Makefile.in (bootstrapclean): New target.
23752 (bootstrap-temacs, bootstrap-doc): Remove.
23753 (bootstrap-emacs): Use a bog-standard `temacs'.
23754 Don't bother to build a DOC file.
23755
23756 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
23757
23758 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
23759 in temacs even if !CANNOT_DUMP.
23760 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
23761
23762 * alloc.c (check_pure_size): Only output a warning.
23763
237642002-03-22 Jason Rumney <jasonr@gnu.org>
23765
23766 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
23767 supported.
23768
23769 * w32term.c (zv_bits): Declare as short, for word alignment.
23770 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
23771 (syms_of_w32term): Define x-use-underline-position-properties.
23772
23773 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
23774 (clear_image_cache): Block input, fix logic, clear matrices in
23775 all frames that share this cache.
23776
237772002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
23778
23779 * emacs.c (main): Update the Copyright year in the blurb printed
23780 by "emacs --version".
23781
23782 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
23783
23784 * xterm.c (XTread_socket): If XK_ISO_Lock and
23785 XK_ISO_Last_Group_Lock are defined, handle keysyms between
23786 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
23787
237882002-03-21 Kim F. Storm <storm@cua.dk>
23789
23790 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
23791 menu-bar bindings in keymap and local-map properties _are_ used.
23792 But try keymap property first in accordance with 2002-01-03 patch.
23793 Added comment describing why this is not always reliable.
23794 (tool_bar_items): Ditto for tool-bar.
23795
237962002-03-21 Jason Rumney <jasonr@gnu.org>
23797
23798 * w32fns.c (x_clear_image_1): Disable color table code.
23799
238002002-03-21 Kim F. Storm <storm@cua.dk>
23801
23802 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
23803 removed the wrong version of the DEFUN macro; fixed it.
23804
23805 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
23806 Fmember rather than Fmemq).
23807 (Fprovide): Check that subfeatures is a list.
23808
23809 * process.c (QCfeature, QCdatagram): Removed variables.
23810 (QCtype, Qdatagram): New variables.
23811 (network_process_featurep): Removed function.
23812 (Fmake_network_process): Removed :feature check.
23813 Use :type 'datagram instead of :datagram t to create a datagram
23814 socket. This allows us to add other connection types (e.g. raw
23815 sockets) later in a consistent manner.
23816 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
23817 supported subfeatures for feature make-network-process.
23818 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
23819 Intern and staticpro QCtype and Qdatagram.
23820 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
23821
9dd28cae 23822 * xfns.c (QCtype): Remove duplicate declaration and
048addec
JD
23823 initialization (is now declared in process.c).
23824
9dd28cae 23825 * w32fns.c (QCtype): Remove duplicate declaration and
048addec
JD
23826 initialization (is now declared in process.c).
23827
238282002-03-21 Richard M. Stallman <rms@gnu.org>
23829
23830 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
23831 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
23832 when jumping to `fail' to avoid undoing reg changes in the
23833 last iteration of the loop.
23834 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
23835
23836 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
23837 Depend on process.h.
23838
238392002-03-20 Jason Rumney <jasonr@gnu.org>
23840
23841 Most of the following changes are still conditional on HAVE_IMAGES
23842 which is not set by default on Windows.
23843
23844 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
23845
23846 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
23847 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
23848 (four_corners_best, x_clear_image_1, x_clear_image)
23849 (x_alloc_image_color, postprocess_image)
23850 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
23851 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
23852 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
23853
23854 * w32gui.h (struct XImage): Define.
23855
23856 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
23857 extract mouse co-ordinates.
23858
238592002-03-20 Jason Rumney <jasonr@gnu.org>
23860
23861 * w32.c (init_winsock): Dynamically load new server and UDP
23862 socket functions.
23863 (socket_to_fd): New function.
23864 (sys_socket): Use it.
23865 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
23866 (sys_recvfrom, sys_sendto): New wrapper functions.
23867
23868 * process.c (QCfamily, QCfilter): Remove duplicate declaration
23869 and initialization.
23870
23871 * makefile.w32-in (LIBS): Remove $(WSOCK32).
23872
238732002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
23874
23875 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
23876 Don't use "sun" as a variable, it's a predefined constant on Sun
23877 machines.
23878
238792002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23880
23881 * bytecode.c (Fbyte_code): Revert last change.
23882
238832002-03-19 Kim F. Storm <storm@cua.dk>
23884
23885 * makefile.w32-in (LIBS): Add $(WSOCK32).
23886 From David Ponce <dponce@voila.fr>.
23887
238882002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23889
23890 * process.c (wait_reading_process_input): Move variables `pname'
23891 and `pnamelen' down where they are used.
23892
23893 * bytecode.c (Fbyte_code): Discard unused computed value to
23894 prevent gcc warning.
23895
23896 * lisp.h (Fplist_member): Add prototype.
23897
238982002-03-18 Kim F. Storm <storm@cua.dk>
23899
23900 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
23901 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
23902
23903 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
23904 Remove explicit GNU_LINUX settings for datagram support.
23905
239062002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23907
23908 * process.c (Fmake_network_process): Remove unused variable `sa'.
23909 Doc fix. Add usage:.
23910 (set_socket_options): Remove unused variables `optnum' and `opttype'.
23911
239122002-03-17 Richard M. Stallman <rms@gnu.org>
23913
23914 * xdisp.c (cursor_type_changed): New variable.
23915 (redisplay_internal): Redisplay all windows if cursor_type_changed.
23916 Clear it when clearing windows_or_buffers_changed.
23917 (try_cursor_movement, redisplay_window, try_window_id)
23918 (try_window_reusing_current_matrix): Test cursor_type_changed
23919 along with windows_or_buffers_changed.
23920
23921 * window.h (cursor_type_changed): New variable.
23922
23923 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
23924 not update_mode_lines, and always set it to 1.
23925
23926 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
23927 if no frames needed redrawing.
23928
239292002-03-17 Kim F. Storm <storm@cua.dk>
23930
23931 The following changes add support for network server processes,
23932 datagram connections, and local (unix) sockets.
23933
23934 * process.h (struct Lisp_Process): New member log.
23935 Doc fix: Member command used to indicate stopped network process.
23936 Doc fix: Member childp contains plist for network process.
23937 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
23938
23939 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
9dd28cae 23940 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
647b07d1
AS
23941 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
23942 variables.
048addec
JD
23943 (NETCONN1_P): New macro.
23944 (DATAGRAM_SOCKETS): New conditional symbol.
23945 (datagram_address): New array.
23946 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
23947 (status_message): Use concat3.
647b07d1
AS
23948 (Fprocess_status): Add `listen' status to doc string. Return
23949 `stop' for a stopped network process.
048addec
JD
23950 (Fset_process_buffer): Update contact plist for network process.
23951 (Fset_process_filter): Ditto. Don't enable input for stopped
23952 network processes. Server must listen, even if filter is t.
23953 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
23954 New functions.
23955 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
23956 (Fprocess_contact): Added KEY argument. Handle datagrams.
23957 (list_processes_1): Optionally show only processes with the query
23958 on exit flag set. Dynamically adjust column widths. Omit tty
647b07d1
AS
23959 column if not needed. Report stopped network processes. Identify
23960 server and datagram network processes.
048addec
JD
23961 (Flist_processes): New optional arg `query-only'.
23962 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
23963 (conv_lisp_to_sockaddr, set_socket_options)
647b07d1
AS
23964 (network_process_featurep, unwind_request_sigio): New helper
23965 functions.
048addec
JD
23966 (Fprocess_datagram_address, Fset_process_datagram_address):
23967 (Fset_network_process_options): New lisp functions.
23968 (Fopen_network_stream): Removed. Now defined in simple.el.
647b07d1
AS
23969 (Fmake_network_process): New lisp function. Code is based on
23970 previous Fopen_network_stream, but heavily reworked with new
23971 property list based argument list, support for datagrams, server
23972 processes, and local sockets in addition to old client-only
23973 functionality.
048addec
JD
23974 (server_accept_connection): New function.
23975 (wait_reading_process_input): Use it to handle incoming connects.
23976 Do not enable input on a new connection if process is stopped.
647b07d1
AS
23977 (read_process_output): Handle datagram sockets. Use 2k buffer for
23978 them.
048addec 23979 (send_process): Handle datagram sockets.
647b07d1
AS
23980 (Fstop_process, Fcontinue_process): Apply to network processes. A
23981 stopped network process is indicated by setting command field to t.
048addec
JD
23982 (Fprocess_send_eof): No-op if datagram connection.
23983 (Fstatus_notify): Don't read input for a stream server socket or a
23984 stopped network process.
23985 (init_process): Initialize datagram_address array.
23986 (syms_of_process): Intern and staticpro new variables, defsubr new
23987 functions.
23988
239892002-03-16 Jason Rumney <jasonr@gnu.org>
23990
23991 * w32fns.c (w32_to_all_x_charsets): Return correct type in
23992 startup case.
23993
239942002-03-16 Richard M. Stallman <rms@gnu.org>
23995
23996 * xdisp.c (redisplay_internal, redisplay_windows):
23997 Use list_of_error to call internal_condition_case_1.
23998 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
23999 so as to catch all errors with no possibility of debugger redisplay.
24000 (list_of_error): New variable.
24001 (syms_of_xdisp): Init and staticpro it.
24002
24003 * print.c (print_object): Delete `\ ' from printed rep of frame.
24004
240052002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
24006
24007 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
24008 until its implementation is fixed.
24009
240102002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24011
24012 * xfns.c (png_load): Remove unused variable `gamma_str'.
24013
240142002-03-14 Richard M. Stallman <rms@gnu.org>
24015
24016 * xfns.c (x_real_positions): Handle failure in XQueryTree.
24017
240182002-03-14 Miles Bader <miles@gnu.org>
24019
24020 * intervals.c (adjust_for_invis_intang): New function.
24021 (set_point_both): Use `adjust_for_invis_intang' to do most of the
24022 work for dealing with invisible+intangible regions. Do so before
24023 and after both forward and backward movements, to handle both
24024 front-sticky and rear-sticky cases.
24025 * textprop.c (text_property_stickiness): Function moved here from
24026 `editfns.c'.
24027 * intervals.h (text_property_stickiness): New declaration.
24028 * editfns.c (char_property_eq): Function removed.
24029 (text_property_stickiness): Function moved to `textprop.c'.
24030
240312002-03-13 Jason Rumney <jasonr@gnu.org>
24032
24033 * config.in: Add STRFTIME_NO_POSIX2.
24034
24035 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
24036 and %OX when underlying strftime does not.
24037
240382002-03-13 Stefan Monnier <monnier@cs.yale.edu>
24039
24040 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
24041 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
24042 line) to avoid annoying flicker.
24043 (xm_scroll_callback): Get rid of the now unnecessary kludge.
24044 (XTread_socket): Mark it static.
24045
24046 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
24047
240482002-03-13 Kim F. Storm <storm@cua.dk>
24049
24050 * puresize.h (BASE_PURESIZE): Increase to 775000.
24051
240522002-03-12 Juanma Barranquero <lektu@terra.es>
24053
24054 * editfns.c (syms_of_editfns): Fix typo.
24055
240562002-03-12 Gerd Moellmann <gerd@gnu.org>
24057
24058 * xsmfns.c: Include stdio.h because termhooks.h needs it.
24059 Include termopt.h for interrupt_input.
24060
240612002-03-11 Andreas Schwab <schwab@suse.de>
24062
24063 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
24064
240652002-03-11 Gerd Moellmann <gerd@gnu.org>
24066
24067 * xterm.c (note_mouse_movement): Put code for
24068 x_autoselect_window_p in #if 0.
24069
24070 * lread.c (Fload): Don't assume that message_with_string uses the
24071 string it is given like a C string.
24072
240732002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
24074
78819ebb 24075 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 24076
52eb0373 24077 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
24078 x_session_have_connection.
24079 (x_initialize): Add call to x_session_initialize.
24080
24081 * termhooks.h (enum event_kind): Add save_session_event.
24082
24083 * keyboard.c: Add Emacs event save_session_event.
24084
24085 * emacs.c (main): Add call to syms_of_xsmfns.
24086
78819ebb 24087 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
24088
24089 * config.in: Add HAVE_X_SM.
24090
24091 * Makefile.in (LIBXT): Add -lSM -lICE
24092 if HAVE_X_SM and not USE_X_TOOLKIT.
24093 (XOBJ): New file xsmfns.c added.
24094
24095 * xsmfns.c: New file for X session management.
24096
240972002-03-09 Jason Rumney <jasonr@gnu.org>
24098
24099 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
24100 read-only when setting modified time.
24101
241022002-03-08 Gerd Moellmann <gerd@gnu.org>
24103
24104 * xdisp.c (move_it_vertically_backward): At the end of the function,
24105 when moving forward by lines, treat terminal frames specially.
24106
24107 * keyboard.c (echo_char): Make sure to add a separator between
24108 keys even if echo_dash hasn't been called.
24109
24110 * xdisp.c: Use new string macros.
24111 (update_echo_area): Pass number of bytes to message3 instead of
24112 number of chars.
24113 (set_message_1): Don't access a string's size_byte directly.
24114 (decode_mode_spec_coding): Use number of bytes of eoltype string
24115 instead number of chars.
24116
24117 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
24118
241192002-03-08 Juanma Barranquero <lektu@terra.es>
24120
24121 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
24122 24-bit.
24123
241242002-03-06 Jason Rumney <jasonr@gnu.org>
24125
24126 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
24127
241282002-03-06 Gerd Moellmann <gerd@gnu.org>
24129
24130 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
24131 (cancel_echoing, echo_length, echo_truncate): Changed to
24132 work with new kboard definition.
24133 (echo_now): Use message3_nolog instead of message2_nolog.
24134
24135 * alloc.c (mark_kboards): Mark echo_string.
24136
24137 * keyboard.h (ECHOBUFSIZE): Removed.
24138 (struct kboard): Member echoptr removed, member echobuf renamed
24139 to echo_string.
24140
24141 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
24142 message3 instead of message2 to display the message using STRING's
24143 text properties.
24144
241452002-03-05 Andreas Schwab <schwab@suse.de>
24146
24147 * xdisp.c (hscroll_margin): Change to EMACS_INT.
24148
241492002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
24150
24151 * frame.c (default-frame-alist): Explain that setting it doesn't
24152 affect existing frames.
24153
241542002-03-05 Stefan Monnier <monnier@cs.yale.edu>
24155
24156 * indent.c (skip_invisible): Fix my brain fart.
24157
24158 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
24159
241602002-03-04 Stefan Monnier <monnier@cs.yale.edu>
24161
24162 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
24163 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
24164 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
24165 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
24166 and variables to use EMACS_INT instead of just int.
24167
24168 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
24169
241702002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
24171
24172 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
24173 environment, pass it down with corrected value.
24174
241752002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24176
24177 * lread.c (read_filtered_event): Do not call start_hourglass
24178 before returning.
24179
241802002-03-04 Juanma Barranquero <lektu@terra.es>
24181
24182 * w32term.c (x_display_and_set_cursor): Fix typo.
24183
241842002-03-03 Richard M. Stallman <rms@gnu.org>
24185
24186 * fileio.c (Fmake_temp_name): Doc fix.
24187
241882002-03-03 Gary Wong <gtw@gnu.org>
24189
24190 * termcap.c [!emacs]: Replace ospeed for building standalone
24191 libtermcap, for binary compatibility.
24192
24193 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
24194
241952002-03-03 Richard M. Stallman <rms@gnu.org>
24196
24197 * xrdb.c (file_p): Rename arg `path' to `filename'.
24198
24199 * abbrev.c (Fexpand_abbrev): Increment plist as use count
24200 only if it is an integer.
24201
24202 * xfns.c (png_load): Set screen_gamma based on f->gamma.
24203 If png_get_sRGB gives an answer, call png_set_gamma
24204 using the default image gamma value.
24205
24206 * lread.c (read1): When reading from a file, default string to
24207 multibyte only if it has some multibyte characters.
24208
24209 * print.c (print_object): Output multibyte chars 128...255
24210 using \x even if ! print_escape_multibyte.
24211
24212 * xdisp.c (display_mode_element): Move the places where
24213 bytepos, charpos, this, and lisp_string are set.
24214 Use lisp_string to set bytepos.
24215
24216 * xdisp.c (redisplay_internal):
24217 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
24218
24219 * xdisp.c (display_mode_element): Merge properties specified with
24220 :propertize onto those that come with the string.
24221
242222002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
24223
24224 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
24225 automatic-hscrolling. Users changed.
24226 <hscroll-margin>: Renamed from automatic-hscroll-margin.
24227 Users changed.
24228 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
24229
242302002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
24231
24232 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
24233
242342002-03-02 Kim F. Storm <storm@cua.dk>
24235
24236 * window.c (Fminibuffer_selected_window): New function.
24237 (syms_of_window): Defsubr it.
24238
242392002-03-01 Kim F. Storm <storm@cua.dk>
24240
24241 * window.h (struct window): New member phys_cursor_width.
24242
24243 * window.c (make_window, replace_window): Init phys_cursor_width.
24244
24245 * xterm.c (x_display_and_set_cursor): Blink box cursor using
24246 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
24247
24248 * w32term.c (x_display_and_set_cursor): Blink box cursor using
24249 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
24250
24251 * lisp.h (GCPRO6): New macro.
24252
24253 * process.c (Fopen_network_stream): Use GCPRO6.
24254
242552002-03-01 Kim F. Storm <storm@cua.dk>
24256
24257 * process.c (Qconnect, Qfailed): New variables.
24258 (syms_of_process): Intern and staticpro them.
24259 (Fprocess_status): Document connect and failed return values.
24260 [NON_BLOCKING_CONNECT]: New conditional.
24261 (connect_wait_mask, num_pending_connects): New variables.
24262 (status_message): Convert Qfailed status.
24263 (Fopen_network_stream): Added support for non-blocking connect.
24264 New optional args: filter, sentinel, non_blocking. Doc updated.
24265 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
24266 (deactivate_process): Handle pending non-blocking connect.
24267 (wait_reading_process_input): Poll for status of non-blocking
24268 connects. Exec sentinel directly when connect succeeds.
24269 (status_notify): Don't read process output if not yet connected.
24270
242712002-02-28 Kim F. Storm <storm@cua.dk>
24272
9dd28cae 24273 * window.c (minibuf_selected_window): Renamed from
048addec
JD
24274 Vminibuf_selected_window. Users changed.
24275 (syms_of_window): Staticpro it.
24276
242772002-02-26 Kim F. Storm <storm@cua.dk>
24278
24279 The following changes add a new Vminibuf_selected_window variable
24280 which is similar to Vminibuf_scroll_window, but which is only set
24281 on entry to the minibuffer (from a non-minibuffer window):
24282
9dd28cae 24283 * window.c (Vminibuf_selected_window): New variable.
048addec
JD
24284 (struct save_window_data): New member minibuf_selected_window.
24285 (Fset_window_configuration): Restore Vminibuf_selected_window.
24286 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
24287 Set minibuf_scroll_window member to nil if minibuf_level is 0.
24288 (compare_window_configurations): Compare minibuf_selected_window.
24289
9dd28cae 24290 * window.h (Vminibuf_selected_window): Declare extern.
048addec
JD
24291
24292 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
24293 entry to minibuffer or on entry from a non-minibuffer window.
24294
24295 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
24296 Vminibuf_selected_window instead of Vminibuf_scroll_window.
24297
24298 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
24299 instead of Vminibuf_scroll_window when deciding in which window
24300 the region should be highlighted. Consequently, the region remains
24301 highlighteded even when a completion buffer is also displayed.
24302
243032002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
24304
24305 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
24306
24307 * xselect.c (Qcompound_text_with_extensions): Renamed from
24308 Qcompound_text_no_extensions.
24309 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
24310
243112002-02-26 Juanma Barranquero <lektu@terra.es>
24312
24313 * w32proc.c (syms_of_ntproc): Doc fix.
24314
243152002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24316
24317 * intervals.h: Include "dispextern.h" unconditionally.
24318
243192002-02-24 Jason Rumney <jasonr@gnu.org>
24320
24321 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
24322 and disp-table.elc.
24323 (lisp): Add emacs-lisp/backquote.elc.
24324
243252002-02-24 Kim F. Storm <storm@cua.dk>
24326
3419757d 24327 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
24328 The validation of the event type was too strict as it didn't
24329 allow string events; buffer names are used in bindings for
24330 menu-bar-select-buffer (see `menu-bar-update-buffers').
24331
243322002-02-23 Kim F. Storm <storm@cua.dk>
24333
24334 The following changes rework my patch of 2002-02-06 which
24335 added command remapping by entering the commands directly into
24336 the keymaps. Now, command remapping uses an explicit `remap'
24337 prefix in the keymaps, i.e. [remap COMMAND].
24338
24339 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 24340 (is_command_symbol): Remove function.
048addec
JD
24341 (Fdefine_key): No longer accept a symbol for KEY.
24342 Added validation of [remap COMMAND] argument for KEY.
24343 The DEF is no longer required to be a symbol when remapping a command.
24344 (Fremap_command): New function to remap command through keymaps.
24345 (Flookup_key): Perform command remapping initiated by
24346 Fremap_command directly for speed.
24347 (Fkey_binding): Use Fremap_command for command remapping.
24348 (where_is_internal): Handle new command remapping representation.
24349 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
24350 staticpro them. Defsubr Fremap_command.
24351
24352 * keymap.h (Fremap_command): Declare extern.
24353 (is_command_symbol): Remove extern.
24354
24355 * keyboard.c (command_loop_1): Use Fremap_command for command
24356 remapping; now try command remapping for all symbols.
24357
243582002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
24359
24360 * coding.h (run_pre_post_conversion_on_str): Add prototype.
24361
243622002-02-23 Jason Rumney <jasonr@gnu.org>
24363
24364 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
24365 on the string before encoding it.
24366 (Fw32_get_clipboard_data): Run post-read-conversion on the string
24367 after decoding it.
24368
24369 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
24370
243712002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24372
24373 * w32term.c (enter_timestamp): Remove unused static variable to
24374 prevent warning.
24375
24376 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
24377
243782002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
24379
24380 * w16select.c (Fw16_get_clipboard_data): Fix last change.
24381
24382 * xselect.c (selection_data_to_lisp_data): Fix last change.
24383
243842002-02-22 Jason Rumney <jasonr@gnu.org>
24385
24386 * w32term.h (struct w32_output): New member menu_command_in_progress.
24387
24388 * w32menu.c (menubar_selection_callback): Free the menu and
24389 clear the menu_command_in_progress flag.
24390
24391 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
24392 (menu_free_timer): New variable.
24393 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
24394 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
24395 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
24396 menu command is in progress.
24397 <WM_COMMAND>: Set the menu_command_in_progress flag.
24398 Kill any menu_free_timer that is running.
24399
24400 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
24401 Call ExtTextOutA rather than ExtTextOut.
24402
244032002-02-22 Eli Zaretskii <eliz@gnu.org>
24404
24405 * puresize.h (BASE_PURESIZE): Increase to 755000.
24406
244072002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
24408
24409 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
24410 on the string before encoding it.
24411 (Fw16_get_clipboard_data): Run post-read-conversion on the string
24412 after decoding it.
24413
244142002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
24415
9dd28cae 24416 Support for ICCCM Extended Segments in X selections:
048addec
JD
24417
24418 * xselect.c <Qcompound_text_no_extensions>: New variable.
24419 (syms_of_xselect): Intern and staticpro it.
24420 (selection_data_to_lisp_data): Run post-read-conversion on decoded
24421 selection text.
24422 (lisp_data_to_selection_data): If next-selection-coding-system is
24423 compound-text-no-extensions, set the type of selection to be
24424 compound-text.
24425
24426 * xterm.h (x_encode_text): Update prototype.
24427
24428 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
24429 callers changed. If SELECTIONP is non-zero, run the
24430 pre-write-conversion function before encoding the selection text.
24431
244322002-02-21 Kim F. Storm <storm@cua.dk>
24433
24434 * frame.c (syms_of_frame): Change mouse-highlight default to t.
24435
24436 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
24437 Correct composing of language-change event.
24438
244392002-02-20 Kim F. Storm <storm@cua.dk>
24440
24441 * keyboard.c (menu_bar_items): Don't include keymap or local-map
24442 bindings at PT when building menu (the menu is not updated often
24443 enough for this to work reliable).
24444 (tool_bar_items): Likewise.
24445 (current_active_maps): Removed unused (and buggy) function.
24446
244472002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24448
24449 * xfns.c (gif_load): Use correct width and height for GIF images.
24450
244512002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
24452
24453 * floatfns.c (Fatan): Accept an optional second arg and call
24454 atan2 if passed 2 args.
24455
244562002-02-18 Jason Rumney <jasonr@gnu.org>
24457
24458 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
24459
244602002-02-17 Jason Rumney <jasonr@gnu.org>
24461
24462 * w32term.c (x_autoselect_window_p): New variable.
24463 (syms_of_w32term): DEFVAR_BOOL and initialize it.
24464 (note_mouse_movement): Use it.
24465
24466 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
24467
24468 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
24469
24470 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
24471 New variables.
24472 (syms_of_w32fns): Intern and staticpro them.
24473 (x_frame_parms) <"fullscreen">: New parameter.
24474 (x_fullscreen_move, x_set_fullscreen): New functions.
24475 (x_set_frame_parameters): Support Qfullscreen.
24476 (x_real_positions): Save x/y_pixels_diff frame params.
24477 (x_figure_window_size): Support full-screen frames.
24478 (Fx_create_frame): Default the fullscreen parameter.
24479
24480 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
24481 (x_fullscreen_adjust): New functions.
24482 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
24483 fullscreen. Call x_check_fullscreen_move, and set the
24484 want_fullscreen member of output_data.w32
24485 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
24486
24487 * w32term.h: New enum for FULLSCREEN_* constants.
24488 (struct w32_output): New members want_fullscreen, x_pixels_diff,
24489 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
24490 (x-fullscreen-adjust): New prototype.
24491
244922002-02-17 Kim F. Storm <storm@cua.dk>
24493
52eb0373 24494 * frame.c (Vmouse_highlight): New variable.
048addec
JD
24495 (syms_of_frame): DEFVAR_LISP it.
24496
52eb0373 24497 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 24498
048addec 24499 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 24500
048addec
JD
24501 * xterm.c (disable_mouse_highlight): Removed variable.
24502 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
24503 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
24504 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
24505 and on after keyboard input.
24506 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 24507
048addec 24508 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 24509
048addec
JD
24510 * msdos.c (disable_mouse_highlight): Removed variable.
24511 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
24512 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
24513 (internal_terminal_init): Initialize mouse_face_hidden.
24514 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
24515 and on after keyboard input.
4f1b1854 24516
048addec 24517 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 24518
048addec
JD
24519 * w32term.c (disable_mouse_highlight): Removed variable.
24520 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
24521 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
24522 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
24523 and on after keyboard input.
24524 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 24525
048addec 245262002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 24527
048addec
JD
24528 * msdos.c (last_mouse_window): New variable.
24529 (dos_rawgetc): Fix last change--if the mouse is in the same window
24530 as recorded in last_mouse_window, don't select this window.
5cb6905d 24531
048addec 24532 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 24533
048addec
JD
24534 * msdos.c (x_autoselect_window_p): New variable.
24535 (syms_of_msdos): Defvar it.
24536 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
24537 which the last mouse movement occured, unless it is already selected.
437dfb9f 24538
048addec
JD
24539 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
24540 New variables.
24541 (syms_of_xdisp): DEVFAR them.
24542 (hscroll_window_tree): Use automatic_hscroll_margin and
24543 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 24544
048addec 245452002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 24546
048addec
JD
24547 * xterm.c (x-autoselect-window): New variable.
24548 (note_mouse_movement): Use it.
9f696a00 24549
048addec 24550 * keyboard.c: Do not include "systime.h" twice.
d57966d7 24551
048addec 245522002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 24553
bfa02563 24554 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 24555
048addec 24556 * alloc.c (NSTATICS): Increase to 1280.
74779f52 24557
048addec 245582002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 24559
048addec 24560 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 24561
048addec
JD
24562 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
24563 (Vx_super_keysym): New variables.
24564 (syms_of_xterm): DEFVAR_LISP them.
24565 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
24566 variables to determine which keys to use for the various modifiers.
a474d59c 24567
048addec 245682002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 24569
9dd28cae 24570 * window.c (Vmode_line_in_non_selected_windows): Removed.
048addec
JD
24571 (mode_line_in_non_selected_windows): New variable.
24572 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 24573
048addec
JD
24574 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
24575 Use mode_line_in_non_selected_windows.
24576 (mode_line_in_non_selected_windows): Declare extern.
24577 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 24578
048addec 245792002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 24580
048addec
JD
24581 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
24582 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
24583 (Fclear_this_command_keys): Doc fixes.
2d10309f 24584
048addec
JD
24585 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
24586 (update_face_from_frame_parameter): Increment face_change_count
24587 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 24588
048addec
JD
24589 * xdisp.c (QCpropertize): New variable.
24590 (mode_line_proptrans_alist): New variable.
24591 (display_mode_element): New arg PROPS; all calls changed.
24592 Implement this, for strings.
24593 Handle literal output of strings by sharing the
24594 main-line code for strings, using local var `literal'.
24595 Handle :propertize feature.
24596 (syms_of_xdisp): Initialze and staticpro QCpropertize and
24597 mode_line_proptrans_alist.
0b1e6b54 24598
048addec 245992002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 24600
9dd28cae 24601 * window.c (Vmode_line_in_non_selected_windows): New variable.
048addec 24602 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 24603
048addec
JD
24604 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
24605 (CURRENT_MODE_LINE_FACE_ID): Use it.
24606 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 24607
048addec
JD
24608 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
24609 to get mode line face.
e17144de 24610
048addec 246112002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 24612
048addec
JD
24613 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
24614 variables; cus-start.el doesn't need them anymore.
44368f8f 24615
048addec 246162002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 24617
048addec
JD
24618 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
24619 reduction. This fixes a display problem where stray newlines were
24620 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 24621
048addec 246222002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 24623
048addec 24624 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 24625
048addec 24626 * xdisp.c (display_mode_lines): Fix last change.
453c5510 24627
048addec 246282002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 24629
048addec
JD
24630 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
24631 match each other.
24632 (w32_load_system_font): Prevent Cleartype fonts from loading.
24633 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 24634
048addec 246352002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 24636
048addec
JD
24637 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
24638 (CURRENT_MODE_LINE_HEIGHT): Use it.
24639 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 24640
048addec
JD
24641 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
24642 (pos_visible_p, handle_face_prop): Likewise.
24643 (display_mode_lines): Likewise, but for the real selected window.
24644 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 24645
048addec
JD
24646 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
24647 in non-selected windows.
24648 (realize_basic_faces): Realize it.
24649 (syms_of_term): Intern and staticpro it.
308dd672 24650
048addec 246512002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 24652
048addec
JD
24653 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
24654 Changed mail addresses to emacs-devel@gnu.org.
308dd672 24655
048addec 246562002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 24657
048addec
JD
24658 * fileio.c (Fsubstitute_in_file_name): If the file name includes
24659 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 24660
048addec 24661 * floatfns.c (Fround): Doc fix.
3c1e6b46 24662
048addec 246632002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 24664
048addec 24665 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 24666
048addec 246672002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 24668
048addec 24669 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 24670
048addec 246712002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 24672
048addec
JD
24673 * keymap.c (where_is_internal): Only check whether definition is
24674 remapped if it fulfills is_command_symbol.
0065bb74 24675
048addec 246762002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 24677
048addec 24678 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 24679
048addec 24680 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 24681
048addec 246822002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 24683
048addec
JD
24684 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
24685 defining command remapping. Doc updated.
24686 (Flookup_key): Remap command through keymap if KEY is a symbol.
24687 (is_command_symbol): New function.
24688 (Fkey_binding): Use it. New optional argument NO-REMAP.
24689 Doc updated. Callers changed. Perform command remapping via
24690 recursive call unless that arg is non-nil.
24691 (where_is_internal): New argument no_remap. Callers changed.
24692 Call recursively to find original key bindings for a remapped
24693 comand unless that arg is non-nil.
24694 (Fwhere_is_internal): New optional argument NO-REMAP.
24695 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 24696
048addec 24697 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 24698 (is_command_symbol): Add prototype.
0d8466cc 24699
048addec
JD
24700 * keyboard.c (Vthis_original_command): New variable.
24701 (syms_of_keyboard): DEFVAR_LISP it.
24702 (command_loop_1): Set it, and perform command remapping.
15fff01d 24703
048addec 247042002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 24705
048addec 24706 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 24707
048addec 247082002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 24709
048addec 24710 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 24711
048addec 247122002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 24713
048addec 24714 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 24715
048addec 247162002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 24717
048addec 24718 * filelock.c (S_ISLNK): Define if not defined.
3a232704 24719
048addec 247202002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 24721
048addec 24722 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 24723
048addec
JD
24724 * lread.c (read1): Redesign strategy for force_multibyte and
24725 force_singlebyte. Now is_multibyte records whether read_buffer
24726 is multibyte. Encountering any multibyte character makes it so.
4e02881b 24727
048addec 247282002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 24729
048addec
JD
24730 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
24731 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 24732
048addec 247332002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 24734
048addec
JD
24735 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
24736 latter never being defined on GNU/Linux.
749f499f 24737
048addec 247382002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 24739
048addec
JD
24740 * xfaces.c (realize_default_face): Don't set the weight and slant of
24741 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 24742
048addec 247432002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 24744
048addec
JD
24745 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
24746 Call cancel_hourglass unconditionally.
d0fd26dd 24747
048addec
JD
24748 * eval.c (Fsignal): Remove duplicated declaration of
24749 the variable `display_hourglass_p'.
b4c45162 24750
048addec 247512002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 24752
048addec 24753 * editfns.c (region_limit): Nicer error message.
c95eaa61 24754
048addec
JD
24755 * coding.c (decode_composition_emacs_mule):
24756 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 24757
048addec
JD
24758 * callint.c (check_mark): New arg to specify clearer error message.
24759 Callers changed.
c95eaa61 24760
048addec 247612002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 24762
048addec 24763 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 24764
048addec 247652002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 24766
048addec
JD
24767 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
24768 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
24769 Fix doc-strings.
c95eaa61 24770
048addec 247712002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 24772
048addec 24773 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 24774
048addec
JD
24775 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
24776 and scroll_up_aggressively.
c95eaa61 24777
048addec 247782002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 24779
048addec 24780 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 24781
048addec 247822002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 24783
048addec
JD
24784 * textprop.c (Fnext_property_change, Fnext_single_property_change)
24785 (Fprevious_property_change, Fprevious_single_property_change):
24786 Stay within the narrowed-buffer boundaries.
e2c3786a 24787
048addec 247882002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 24789
048addec
JD
24790 * term.c (Ftty_display_color_cells): New function.
24791 (syms_of_term): Defsubr it.
24792 (Ftty_display_color_cells, Ftty_display_color_p): Change the
24793 argument name to DISPLAY. Doc fix.
bf794306 24794
048addec
JD
24795 * dispextern.h: Add prototype for set_tty_color_mode and
24796 tty_setup_colors.
bf794306 24797
048addec 247982002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 24799
048addec
JD
24800 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
24801 If region left to draw is not what was expected, mark the frame as
24802 garbaged.
62582985 24803
048addec
JD
24804 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
24805 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 24806
048addec 248072002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 24808
048addec
JD
24809 * w32term.c (x_update_window_begin): Only hide caret if
24810 w32_use_visible_system_caret is set.
24811 (x_update_window_end): Only show caret if
24812 w32_use_visible_system_caret is set.
24813 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 24814
048addec 24815 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 24816
048addec 248172002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 24818
048addec
JD
24819 * unexelf.c (unexec): Define n so as to cause compilation error
24820 for the code where people have often written n instead of nn.
1e9a6186 24821
048addec 24822 * .gdbinit (hookpost-run): Defined.
1e9a6186 24823
048addec 248242002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 24825
048addec 24826 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 24827
048addec 248282002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 24829
048addec
JD
24830 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
24831 if fullscreen is being set.
7c75be36 24832
048addec 248332002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 24834
048addec
JD
24835 * minibuf.c (Fminibuffer_contents)
24836 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
24837 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 24838
048addec 248392002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 24840
048addec 24841 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 24842
048addec 248432002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 24844
048addec
JD
24845 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
24846 height before comparison.
24847 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 24848
048addec 248492002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 24850
048addec
JD
24851 * w32term.c (w32_system_caret_width): Remove.
24852 (w32_use_visible_system_caret): New user flag.
24853 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
24854 Windows reports a screen reader running.
24855 (x_update_window_begin): Hide the system caret.
24856 (x_update_window_end): Show the system caret.
24857 (x_display_and_set_cursor): Don't draw a cursor when
24858 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 24859
048addec
JD
24860 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
24861 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
24862 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
24863 the user requests it. Use system default width when creating.
24864 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 24865
048addec
JD
24866 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
24867 New window messages.
905cc05a 24868
048addec 248692002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 24870
048addec 24871 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 24872
048addec 248732002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 24874
048addec 24875 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 24876
048addec 248772002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 24878
048addec 24879 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 24880
048addec 248812002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 24882
048addec
JD
24883 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
24884 that Windows returns. If a double check fails, try to guess how
24885 ExtTextOut is going to act.
4d0fa4f3 24886
048addec
JD
24887 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
24888 in place of stricmp.
24889 (w32_list_synthesized_fonts): Removed.
24890 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
24891 (struct enumfont_t): New element; list.
24892 (enum_font_cb2): List all style and charset variations of a font.
24893 (Fw32_select_font): New optional argument; include_proportional.
24894 Exclude vertical fonts. Exclude proportional fonts unless
24895 include_proportional is non-nil.
24896 (w32_enable_synthesized_fonts): Change to a boolean.
24897 (Fw32_send_sys_command): Doc fix.
493faf20 24898
048addec 248992002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 24900
048addec
JD
24901 * dispnew.c (update_frame): Move the variable `tem' to the block
24902 where it is used.
4971e491 24903
048addec 249042002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 24905
048addec
JD
24906 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
24907 call to face-set-after-frame-default.
4971e491 24908
048addec 249092002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 24910
048addec
JD
24911 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
24912 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 24913
048addec 249142002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 24915
048addec
JD
24916 * window.c (enlarge_window): When exceeding size of parent,
24917 directly delete all the siblings instead of trying to resize it.
201c831a 24918
048addec 249192002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 24920
048addec 24921 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 24922
048addec 249232002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 24924
048addec 24925 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 24926
048addec 249272002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 24928
048addec
JD
24929 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
24930 is invisible. This can happen if cursor is on top line of a
24931 window, and we switch to a buffer with a header line.
d77fbc16 24932
048addec 24933 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 24934
048addec 249352002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 24936
048addec
JD
24937 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
24938 `dont_resize' only when used.
61e3b944 24939
048addec 24940 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 24941
048addec 249422002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 24943
048addec
JD
24944 * xdisp.c (display_mode_element): When computing charpos, depend
24945 on multibyteness of elt, not the text in field.
8af01033 24946
048addec 249472002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 24948
048addec
JD
24949 * buffer.c (Fkill_all_local_variables):
24950 Increment `update_mode_lines' only once.
7363986a 24951
048addec 249522002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 24953
048addec
JD
24954 * lisp.h (adjust_after_replace_noundo)
24955 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 24956
048addec 24957 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 24958
048addec 249592002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 24960
048addec
JD
24961 Support for the --color command-line argument and tty-color-mode
24962 frame parameter:
f1a85b89 24963
048addec
JD
24964 * term.c (tty_default_color_capabilities, tty_setup_colors)
24965 (set_tty_color_mode): New functions.
24966 (term_init): Call tty_default_color_capabilities.
24967 (Qtty_color_mode_alist): New variable.
24968 (syms_of_term): Intern and staticpro it.
f1a85b89 24969
048addec
JD
24970 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
24971 frames.
24972 (do_switch_frame): For termcap frames, switch the tty
24973 color mode as specified by the frame's parameters.
24974 (Qtty_color_mode): New variable.
24975 (syms_of_frame): Intern and staticpro it.
3a62677f 24976
048addec
JD
24977 * emacs.c (USAGE2): Add the --color option.
24978 (standard_args): Ditto.
72244db2 24979
048addec
JD
249802002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
24981
24982 * xterm.h (struct x_output): New members want_fullscreen,
24983 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
24984 y_pixels_outer_diff.
24985 New enum for FULLSCREEN_* constants.
24986 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
24987 is NULL.
24988 (x_fullscreen_adjust): Add prototype.
3a62677f 24989
048addec
JD
24990 * emacs.c (USAGE2): Add the new full-screen arguments.
24991 (standard_args): Ditto.
3a62677f 24992
048addec
JD
24993 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
24994 New variables.
24995 (syms_of_xfns): Intern and staticpro them.
24996 (x_frame_parms) <"fullscreen">: New parameter.
24997 (x_fullscreen_move, x_set_fullscreen): New functions.
24998 (x_set_frame_parameters): Support for Qfullscreen.
24999 (x_real_positions): More accurate computation of the frame position.
25000 (x_figure_window_size): Support full-screen frames.
25001 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 25002
048addec
JD
25003 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
25004 (XTread_socket) <Expose>: Call x_check_fullscreen.
25005 <ConfigureNotify>: Don't resize to fullscreen.
25006 Call x_check_fullscreen_move, and set the want_fullscreen member of
25007 output_data.x.
3a62677f 25008
048addec 250092002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 25010
048addec
JD
25011 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
25012 for mice with more than 3 buttons.
b8523839 25013
048addec
JD
25014 * w32term.c (parse_button): New parameter xbutton. Callers changed.
25015 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 25016
048addec
JD
25017 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
25018 (syms_of_w32fns): DEFVAR_BOOL it.
25019 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 25020
048addec 250212002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 25022
048addec 25023 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 25024
048addec 250252002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 25026
048addec 25027 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 25028
048addec 250292002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 25030
048addec
JD
25031 * .gdbinit (xbuffer): Remove address operator since data is now a
25032 pointer.
c93674bb 25033
048addec 250342002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 25035
048addec 25036 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 25037
048addec 25038 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 25039
048addec 250402002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 25041
048addec
JD
25042 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
25043 when checking for multiple frames.
91175673 25044
048addec 250452002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 25046
048addec
JD
25047 * window.c (delete_window): Rewrite the code for changing the
25048 selected window to handle the case where WINDOW is not a leaf.
91175673 25049
048addec 250502002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 25051
048addec
JD
25052 * process.c (send_process): Set src_multibyte to 1 after the call
25053 top setup_coding_system, not before the call.
e0fead5d 25054
048addec 250552002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 25056
048addec
JD
25057 * xmenu.c (set_frame_menubar, xmenu_show):
25058 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 25059
048addec
JD
25060 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
25061 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 25062
048addec 250632002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 25064
048addec 25065 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 25066
048addec 25067 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 25068
048addec 25069 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 25070
048addec 250712002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 25072
048addec
JD
25073 * insdel.c (make_gap_larger): Make sure buffer size does not
25074 overflow range of int.
62854fe2 25075
048addec 250762002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 25077
048addec
JD
25078 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
25079 OVERLAPS_P.
656f46bb 25080
048addec 25081 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 25082
048addec
JD
25083 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
25084 to the left or to the right of the pointer, put it against
25085 the left screen edge.
25086 (x_frame_parms): Add missing braces around initializer.
036e218d 25087
048addec
JD
25088 * w32term.c (x_setup_relief_colors): Don't compute an image's
25089 background color if it doesn't have a Pixmap.
25090 (notice_overwritten_cursor): Don't depend on
25091 output_cursor and updated_area. Compare pixel coordinates with
25092 window's cursor pixel coordinates.
25093 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25094 Call notice_overwritten_cursor with new arg list.
25095 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25096 unconditionally.
25097 (x_draw_image_relief): Use predefined macro instead of
25098 constant when the value of `tool_bar_button_relief' is negative.
036e218d 25099
048addec 25100 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 25101
048addec 251022002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 25103
048addec 25104 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 25105
048addec 251062002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 25107
048addec
JD
25108 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
25109 (Fkey_binding): Try the `keymap' property map first.
25110 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
25111 minor mode bindings.
90647b07 25112
048addec 251132002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 25114
3419757d 25115 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 25116
048addec 251172002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 25118
048addec
JD
25119 * keyboard.c (read_key_sequence): Handle the keymap property
25120 before minor mode maps.
9fbc32aa 25121
048addec
JD
25122 * editfns.c (Fformat): Update thissize from field_width
25123 based on the actual width, in the string case.
036e218d 25124
048addec 251252002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 25126
048addec
JD
25127 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
25128 when used as truth value to prevent gcc warnings.
9fbc32aa 25129
048addec
JD
25130 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
25131 * w32proc.c: Include <config.h>.
9fbc32aa 25132
048addec 251332002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 25134
048addec
JD
25135 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
25136 not EMACS_INT, to make them compatible with DEFVAR_INT.
25137 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 25138
048addec 251392002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 25140
048addec
JD
25141 * print.c (print_object): Test print_escape_nonascii only for
25142 unibyte strings.
25143 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
25144 when outputting to a multibyte buffer.
9fbc32aa 25145
048addec 251462001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 25147
048addec
JD
25148 * print.c (print_object): In multibyte string, use hex escapes.
25149 Use octal only for unibyte strings.
25150 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 25151
048addec
JD
25152 * lread.c (read_escape): New arg BYTEREP for reporting whether
25153 escape forces unibyte or multibyte.
25154 (read1): When reading a string, take note of that info.
0142178a 25155
048addec 251562001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 25157
048addec
JD
25158 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
25159 comparison to test lisp value returned by Fget.
d4824a5d 25160
048addec 251612001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 25162
048addec 25163 * lisp.h (max_specpdl_size): Add declaration.
b1356234 25164
048addec 25165 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 25166
048addec
JD
25167 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
25168 Handle modifier bits. Correct typo in error message.
99e380ee 25169
048addec 251702001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 25171
048addec
JD
25172 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
25173 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
25174 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25175 Update calls to Fdefine_abbrev.
25176 (write_abbrev): Update for changed data format.
25177 Don't list "system" abbrevs.
25178 (Fexpand_abbrev): Update use count with new data format.
25179 (describe_abbrev): Update for changed data format.
25180 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 25181
048addec 25182 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 25183
048addec 25184 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 25185
048addec
JD
25186 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
25187 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 25188
048addec
JD
25189 * keymap.c (Flookup_key): Error message if key has wrong data type.
25190 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
25191 (exclude_key): New variable.
59a86c99 25192
048addec 251932001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 25194
048addec
JD
25195 * xterm.c (x_setup_relief_colors): Don't compute an image's
25196 background color if it doesn't have a Pixmap.
eb77a5f4 25197
048addec
JD
25198 * xterm.c (notice_overwritten_cursor): Don't depend on
25199 output_cursor and updated_area. Compare pixel coordinates with
25200 window's cursor pixel coordinates.
25201 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25202 Call notice_overwritten_cursor with new arg list.
25203 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25204 unconditionally.
eb77a5f4 25205
048addec
JD
25206 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
25207 height of the cursor line to the amount to scroll.
eb77a5f4 25208
048addec 252092001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 25210
048addec
JD
25211 * intervals.c (set_point_both): The position after an invisible,
25212 intangible character is not an acceptable stopping point.
bb313871 25213
048addec 252142001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 25215
048addec
JD
25216 * window.c (enlarge_window): In new preserve_before code, convert
25217 CURBEG from lisp object to integer before doing arithmetic.
6052529b 25218
048addec 252192001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 25220
048addec 25221 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 25222
048addec 252232001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 25224
048addec
JD
25225 * keyboard.c (record_char): Ignore duplicate help-echo events only
25226 separated by mouse-movement. When tracking mouse, only record
25227 first and last mouse-movement event in same window.
25228 Don't record mouse-movement events in keyboard macros.
3ce081f5 25229
048addec 252302001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 25231
048addec
JD
25232 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
25233 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 25234
048addec
JD
25235 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
25236 instead of Fstring_as_unibyte.
9fabb2f5 25237
048addec 252382001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 25239
048addec 25240 The following changes remove mocklisp support:
9fabb2f5 25241
048addec 25242 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 25243
048addec
JD
25244 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
25245 `Qmocklisp' and `Qmocklisp_arguments'.
25246 Remove prototype of syms_of_mocklisp.
2fa0eedf 25247
048addec 25248 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 25249
048addec
JD
25250 * callint.c: Do not include mocklisp.h.
25251 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 25252
048addec
JD
25253 * eval.c: Remove variables `Qmocklisp_arguments',
25254 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
25255 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
25256 Do not test for mocklisp case.
25257 (Fwhile): Remove unused variable `tem'.
25258 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 25259
048addec 25260 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 25261
048addec 25262 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 25263
048addec 25264 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 25265
048addec 252662001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 25267
048addec
JD
25268 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
25269 to the left or to the right of the pointer, put it against
25270 the left screen edge.
6108b49c 25271
048addec 252722001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 25273
048addec
JD
25274 * Makefile.in (distclean): Remove .gdbinit if we are building
25275 outside the source tree.
5eea19a4 25276
048addec 252772001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 25278
048addec 25279 * w32.c (emacs_root_dir): New function.
5eea19a4 25280
048addec 25281 * msdos.c (emacs_root_dir): New function.
5eea19a4 25282
048addec
JD
25283 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
25284 of the current drive as the fallback for default_directory.
438e57dd 25285
048addec
JD
25286 * dired.c (file_name_completion): Run the elements of
25287 completion-ignored-extensions through ENCODE_FILE.
438e57dd 25288
048addec
JD
25289 * lisp.h (scmp): Remove prototype, since it's now a static
25290 function private to dired.c.
c88e5347 25291
048addec 252922001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 25293
048addec
JD
25294 * dired.c (scmp): Function moved from minibuf.c.
25295 Delete multibyte handling--used only on encoded strings.
59ce1461 25296
048addec 25297 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 25298
048addec 25299 * fns.c (merge): Add QUIT call.
59ce1461 25300
048addec 253012001-12-18 Dave Love <fx@gnu.org>
8727d588 25302
048addec
JD
25303 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
25304 language/georgian.el.
8727d588 25305
048addec 253062001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 25307
048addec
JD
25308 * Makefile.in (lisp, shortlisp): Synchronize with changes to
25309 lisp/Makefile.in:DONTCOMPILE.
cc63037e 25310
048addec 253112001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 25312
048addec
JD
25313 * xdisp.c (window_box_height): Do not return negative values.
25314 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 25315
048addec 25316 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 25317
048addec 25318 * term.c (keys): Likewise.
deece6f5 25319
048addec 25320 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 25321
048addec 253222001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 25323
048addec
JD
25324 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
25325 patch (COMPOSING_P, not COMPOSING).
28ff4293 25326
048addec 253272001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 25328
048addec 25329 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 25330
048addec
JD
25331 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
25332 before calling decode_coding.
9b46de40 25333
048addec 25334 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 25335
048addec
JD
25336 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
25337 instead of only for COMPOSITION_DISABLED.
9b46de40 25338
048addec 253392001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 25340
048addec 25341 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 25342
048addec 25343 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 25344
048addec
JD
25345 * buffer.h (struct buffer): New field `display_error_modiff'.
25346 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 25347
048addec 25348 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 25349
048addec
JD
25350 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
25351 Call redisplay_window, but not if display_error_modiff field says no.
25352 (redisplay_window_error): New function.
25353 (displayed_buffer): New variable.
25354 (redisplay_internal, redisplay_windows): Call the new functions
25355 instead of redisplay_window directly.
2cd23960 25356
048addec 253572001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 25358
048addec 25359 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 25360
048addec 253612001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 25362
048addec 25363 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 25364 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 25365 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 25366
048addec 253672001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 25368
048addec
JD
25369 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
25370 parameter have a numeric value all the time.
f6fa0866 25371
048addec 25372 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 25373
048addec 253742001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 25375
048addec 25376 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 25377
048addec
JD
25378 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
25379 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 25380
048addec 253812001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 25382
048addec
JD
25383 * xdisp.c (move_it_vertically_backward): Change heuristic
25384 for the case that we didn't move far enough initially.
91c153e2 25385
048addec
JD
25386 * window.c (Frecenter): Simplify computation in the case of window
25387 system frames and ARG < 0; use window_box_height.
65b7d3e7 25388
048addec 253892001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 25390
048addec
JD
25391 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
25392 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 25393
048addec 253942001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 25395
048addec
JD
25396 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
25397 arg is negative.
be676094 25398
048addec 253992001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 25400
048addec
JD
25401 * m/hp800.h: Split the __hpux conditional into the parts
25402 that are right for GNU/Linux too and the parts that are not.
25403 Use the former if GNU_LINUX.
25404 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 25405
048addec 25406 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 25407
048addec 254082001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 25409
048addec
JD
25410 * macros.c, msdos.c, w16select.c: Change doc-string comments to
25411 `new style' [w/`doc:' keyword].
032a857d 25412
048addec 254132001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 25414
048addec
JD
25415 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
25416 before using.
b6270150 25417
048addec 254182001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 25419
048addec
JD
25420 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
25421 keyword].
98cbb9fa 25422
048addec 254232001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 25424
048addec 25425 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 25426
048addec 25427 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 25428
048addec 254292001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 25430
048addec 25431 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 25432 Add comment to explain where the struct came from.
048addec
JD
25433 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
25434 (add_menu_item): Process pop-up menus first to avoid memory leak.
25435 (add_menu_item, w32_menu_display_help): Use `help' field as
25436 Lisp_Object.
25437 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 25438
048addec 254392001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 25440
048addec 25441 * COPYING: Moved back.
fa336b91 25442
048addec
JD
25443 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
25444 Add parentheses around && within ||.
077907d4 25445
048addec 25446 * indent.c (compute_motion): Likewise.
aa2af83a 25447
048addec 25448 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 25449
048addec
JD
25450 * coding.c (setup_coding_system, shrink_encoding_region)
25451 (Fdecode_sjis_char): Likewise.
60a653f1 25452
048addec 254532001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 25454
048addec
JD
25455 * xdisp.c (display_mode_element): Don't read past end of string if
25456 it ends with '%'.
60a653f1 25457
048addec
JD
25458 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
25459 can hold.
60a653f1 25460
048addec
JD
25461 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
25462 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
25463 type changed to Lisp_Object.
25464 (syms_of_data): DEFVAR_LISP them.
60a653f1 25465
048addec 254662001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 25467
048addec
JD
25468 * callproc.c (init_callproc): Set Vdata_directory based on the source
25469 location whenever Emacs was run uninstalled.
60a653f1 25470
048addec 254712001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 25472
048addec
JD
25473 * config.in (HAVE_WORKING_VFORK): New #undefs.
25474 * process.c (create_process):
25475 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
25476 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
25477 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
25478 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
25479 * m/intel386.h (HAVE_VFORK): Likewise.
25480 * m/mips-siemens.h (HAVE_VFORK): Likewise.
25481 * m/mips.h (HAVE_VFORK): Likewise.
25482 * s/freebsd.h (vfork): Remove #define.
25483 * s/lynxos.h (HAVE_VFORK): Remove #undef.
25484 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 25485
048addec 254862001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 25487
048addec
JD
25488 * s/hpux10.h (random): Add undef.
25489 (HAVE_RANDOM): Define it just once.
60a653f1 25490
048addec 254912001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25492
048addec 25493 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 25494
048addec 254952001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 25496
048addec
JD
25497 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
25498 scroll bars of the frame before deleting the frame itself. If the
25499 frame has a widget, delete the frame with XtDestroyWidget, and do
25500 not call XDestroyWindow before that.
60a653f1 25501
048addec 255022001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 25503
048addec 25504 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 25505
048addec 25506 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 25507
048addec 255082001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 25509
048addec
JD
25510 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
25511 excessively large.
60a653f1 25512
048addec
JD
25513 * insdel.c (make_gap_larger): New function.
25514 (make_gap_smaller): New function.
25515 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
25516 Call make_gap_smaller if arg is negative.
60a653f1 25517
048addec 255182001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25519
048addec
JD
25520 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
25521 Pass a dummy argument when calling interrupt_signal.
25522 (parse_menu_item): Mark disabled items before checking for empty def.
25523 (read_char_minibuf_menu_prompt): Make safety more visible.
25524 (read_key_sequence): Add a `first_unbound' variable.
25525 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
25526 unbound prefix as soon as we can detect it.
60a653f1 25527
048addec
JD
25528 * doc.c (Fsnarf_documentation): Add prototype.
25529 (get_doc_string): Handle negative arguments.
25530 (Fdocumentation): Use AREF and ASIZE.
25531 Move the calls to get_doc_string to a single place.
25532 Don't confuse an interactive-spec for a docstring reference.
25533 (Fdocumentation_property): Take advantage of the fact that
25534 get_doc_string now ignores the sign of the docstring position.
60a653f1 25535
048addec 25536 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 25537
048addec 255382001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25539
a64387ee 25540 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 25541
048addec 255422001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25543
048addec
JD
25544 * xterm.c (x_draw_image_relief): Use predefined macro instead of
25545 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 25546
048addec 255472001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 25548
048addec
JD
25549 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
25550 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 25551
048addec 25552 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 25553
048addec 255542001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25555
048addec 25556 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 25557
048addec 255582001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 25559
048addec 25560 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 25561
048addec 255622001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 25563
f63fd14e 25564 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 25565
048addec
JD
25566 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
25567 [!WM_MOUSELEAVE]: Define.
60a653f1 25568
048addec
JD
25569 * w32menu.c (current_popup_menu, get_menu_item_info):
25570 (set_menu_item_info): New vars.
25571 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
25572 (w32_menu_show): Set current_popup_menu.
25573 (add_menu_item): Allocate new strings for owner-drawn menu items
25574 and help strings.
25575 Use owner-draw for disabled menu items again.
25576 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
25577 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 25578
048addec
JD
25579 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
25580 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
25581 <WM_EXITMENULOOP>: Free menu strings.
25582 <WM_MOUSELEAVE>: Stop tracking mouse.
25583 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 25584
048addec
JD
25585 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
25586 and mouse face.
60a653f1 25587
048addec 255882001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 25589
048addec
JD
25590 The following changes add left-fringe and right-fringe
25591 frame parameters to adjust fringe widths, or remove one or
25592 both fringes.
60a653f1 25593
048addec
JD
25594 * frame.h (struct frame): Remove trunc_area_pixel_width and
25595 trunc_area_cols fields.
25596 (Qleft_fringe, Qright_fringe): Declare.
25597 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 25598
048addec
JD
25599 * frame.c (Qleft_fringe, Qright_fringe): New vars.
25600 (syms_of_frame): Initialize them.
60a653f1 25601
048addec
JD
25602 * window.c (coordinates_in_window): Handle separate left and right
25603 fringe widths.
60a653f1 25604
048addec
JD
25605 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
25606 and fringe_cols fields.
25607 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
25608 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
25609 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
25610 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
25611 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
25612 (x_compute_fringe_widths): Add prototype.
60a653f1 25613
048addec
JD
25614 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
25615 fill fringe evenly with small dashes.
f63fd14e 25616 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
25617 clip the new ZV bitmap to avoid jitter between rows.
25618 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
25619 background. Don't draw fringe bitmaps if fringe width is zero.
25620 (x_compute_fringe_widths): New function.
25621 (x_new_font, x_set_window_size_1): Use it.
60a653f1 25622
048addec
JD
25623 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
25624 (x_set_frame_parameters): Process `font' parameter before other
25625 parameters as fringe widths depend on it.
25626 (x_set_fringe_width): New function.
25627 (x_figure_window_size): Use x_compute_fringe_widths.
25628 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
25629 parameters.
60a653f1 25630
048addec
JD
25631 * widget.c (set_frame_size): Use x_compute_fringe_widths.
25632 (EmacsFrameSetCharSize): Ditto.
60a653f1 25633
048addec
JD
25634 * w32term.h: Merged changes from xterm.h.
25635 * w32term.c: Merged changes from xterm.c.
25636 * w32fns.c: Merged changes from xfns.c.
60a653f1 25637
048addec 256382001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25639
048addec 25640 * COPYING: Removed.
60a653f1 25641
048addec 256422001-11-29 Dave Love <fx@gnu.org>
60a653f1 25643
048addec
JD
25644 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
25645 extra extra slot.
25646 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 25647
048addec 256482001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25649
048addec
JD
25650 * fileio.c (file-name-coding-system)
25651 (default-file-name-coding-system): Doc fix (links to referenced
25652 variables added).
60a653f1 25653
048addec 256542001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25655
048addec
JD
25656 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
25657 Add dummy uses of gcproN variables.
60a653f1 25658
048addec
JD
25659 * category.c (describe_category, describe_category_1)
25660 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
25661 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 25662
048addec 256632001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 25664
048addec 25665 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 25666
048addec
JD
25667 * Makefile.in (lispdir): New variable, referring to build dir.
25668 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 25669
048addec 256702001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 25671
048addec
JD
25672 * w32menu.c (w32_menu_display_help): Actually add the new argument
25673 OWNER.
60a653f1 25674
048addec 256752001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 25676
048addec
JD
25677 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
25678 menu items. From David Ponce <dponce@wanadoo.fr>.
25679 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
25680 conditionally.
f63fd14e 25681 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 25682 help event in the owner frame's keyboard buffer.
60a653f1 25683
048addec
JD
25684 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
25685 (Fx_show_tip): Don't subtract last width from row width.
25686
25687 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
25688 (w32_read_socket): Use EQ to compare frames.
60a653f1 25689
048addec 256902001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 25691
048addec
JD
25692 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
25693 OVERLAPS_P.
60a653f1 25694
048addec 256952001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25696
048addec
JD
25697 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
25698 `gcpro3' and `gcpro4'.
60a653f1 25699
048addec 25700 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 25701
048addec 257022001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25703
048addec 25704 * ccl.c: Use AREF and ASIZE.
60a653f1 25705
048addec 257062001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25707
048addec
JD
25708 * lisp.h (run_hook_list_with_args): Remove.
25709 (LIST_END_P): Fix call to wrong_type_argument.
25710 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 25711
048addec 257122001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25713
048addec
JD
25714 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
25715 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 25716
048addec
JD
25717 * eval.c: Use AREF and ASIZE.
25718 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 25719
048addec
JD
25720 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
25721 which match the end of the file-name.
25722 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
25723 is not a valid env var, but leave it as is instead.
60a653f1 25724
048addec
JD
25725 * keymap.c (access_keymap): Handle t bindings like nil bindings.
25726 Make nil bindings in char-tables transparent.
25727 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 25728
048addec 257292001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 25730
048addec
JD
25731 * textprop.c (set_text_properties_1): Allow START, END in either order.
25732 Do nothing if range is empty.
60a653f1 25733
048addec 25734 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 25735
048addec
JD
25736 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
25737 (clean): Not here.
60a653f1 25738
048addec 257392001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25740
048addec
JD
25741 * textprop.c (set_text_properties_1): Clearly mark that the
25742 interval should not be empty.
60a653f1 25743
048addec
JD
25744 * intervals.c (graft_intervals_into_buffer):
25745 Don't call set_text_properties_1 on an empty interval.
60a653f1 25746
048addec 257472001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 25748
048addec 25749 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 25750
048addec
JD
25751 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
25752 don't lose the data in it.
60a653f1 25753
048addec 257542001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 25755
048addec 25756 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 25757
c62aec78 25758 * buffer.c (Fkill_buffer): Likewise.
60a653f1 25759
c62aec78 25760 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 25761
048addec 257622001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25763
048addec 25764 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 25765
048addec 257662001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 25767
048addec
JD
25768 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
25769 Niemitalo <kon@iki.fi>.
60a653f1 25770
048addec 257712001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 25772
048addec 25773 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 25774
048addec
JD
25775 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
25776 (Fx_show_tip): Block input during frame creation.
25777 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 25778
048addec 257792001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 25780
048addec
JD
25781 * lread.c (Fload): Detect recursive load error for more than 3
25782 nestings of the same file.
25783 (Vrecursive_load_depth_limit): Variable deleted.
25784 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 25785
048addec 257862001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 25787
048addec
JD
25788 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
25789 mouse position if either left or top is not specified.
60a653f1 25790
048addec
JD
25791 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
25792 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
25793 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
25794 (my_create_tip_window): Assign tip_window.
25795 (x_create_tip_frame): Use same defaults as X.
25796 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 25797 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 25798
048addec
JD
25799 * w32term.c (x_after_update_window_line): Doc fix.
25800 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
25801 frames.
25802 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 25803
048addec
JD
25804 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
25805 for all Windowed systems.
60a653f1 25806
048addec 258072001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 25808
048addec
JD
25809 * msdos.c (IT_clear_screen): If the frame's faces are not yet
25810 realized, use the initial screen colors to clear the screen.
60a653f1 25811
048addec 258122001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25813
048addec
JD
25814 * textprop.c (Fset_text_properties): Remove unused variables
25815 `unchanged', `prev_changed', `s' and `len'.
60a653f1 25816
048addec
JD
25817 * search.c (Freplace_match): Remove unused variable `inslen'.
25818
25819 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
25820
258212001-11-22 Jason Rumney <jasonr@gnu.org>
25822
25823 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
25824 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
25825 (my_create_tip_window): New function.
25826 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
25827 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
25828
258292001-11-20 Jason Rumney <jasonr@gnu.org>
25830
25831 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
25832 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
25833
25834 * w32fns.c (Vw32_system_coding_system): Remove.
25835 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
25836
258372001-11-19 Stefan Monnier <monnier@cs.yale.edu>
25838
25839 * fileio.c (Fwrite_region): Move choose_write_coding_system to
25840 after build_annotations.
25841
25842 * syntax.c (describe_syntax): Add dummy arg.
25843 (describe_syntax_1): Update call to describe_vector.
25844
25845 * category.c (describe_category): Add dummy arg.
25846 (describe_category_1): Update call to describe_vector.
25847
25848 * keymap.c (Fdescribe_vector): Add `describer' parameter.
25849 (describe_command, describe_translation): Add dummy second param.
25850 (describe_map): Call elt_describer with two arguments.
25851 (describe_vector_princ): Add `fun' parameter.
25852 Call it instead of the hardcoded `princ'.
25853 (describe_vector): Add arg `args'.
25854 Pass it as a new second argument to elt_describer.
60a653f1 25855
048addec 25856 * keymap.h (describe_vector): Update prototype.
60a653f1 25857
048addec
JD
25858 * frame.c: Don't include keymap.h any more.
25859 (keys_of_frame): Remove.
60a653f1 25860
048addec 25861 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 25862
048addec 25863 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 25864
048addec 258652001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 25866
048addec
JD
25867 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
25868 if defined, 0 otherwise.
25869 (MAP_FAILED): Define if not defined and use it to test mmap failure.
25870 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 25871
048addec 258722001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 25873
048addec 25874 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 25875
048addec 258762001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 25877
048addec
JD
25878 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
25879 (x_draw_bar_cursor): If the background color of the glyph under
25880 the cursor equals the frame's cursor color, use the glyph's
25881 foreground color for drawing the bar cursor.
25882 (x_after_update_window_line): Clear internal border in different
25883 circumstances.
25884 (w32_set_vertical_scroll_bar): Check for width and height > 0.
25885 (w32_draw_relief_rect): Correct relief by 1 pixel.
25886 (x_set_glyph_string_background_width):
25887 Set extends_to_end_of_line_p if the row's fill_line_p is set and
25888 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
25889 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
25890 if cursor_in_non_selected_windows is false.
25891 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
25892 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
25893 Notice if cursor gets overwritten.
25894 (notice_overwritten_cursor): Renamed from
25895 note_overwritten_text_cursor. Rewritten to take glyph widths
25896 into account, and to take X positions as parameters.
25897 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
25898 around call to x_draw_glyphs.
25899 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
25900 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
25901 color to use for image glyph reliefs.
25902 (x_draw_image_relief): Accept zero tool_bar_button_relief.
25903 (glyph_rect): Remove unused variable `area'.
60a653f1 25904
048addec
JD
25905 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
25906 some items.
25907 (x_set_internal_border_width): Set frame garbaged when window
25908 doesn't exist yet.
25909 (Fx_create_frame): Accept zero tool_bar_button_relief.
25910 (x_clear_image_1, four_corners_best, image_background)
25911 (image_background_transparent): New functions.
25912 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
25913 (gs_format): Add `:background' entry.
25914 (lookup_image): Set IMG's background color if specified.
25915 (pbm_load, xbm_load_image, png_load): Set IMG's background field
25916 when appropriate.
25917 (x_clear_image_1): Reset `background_valid' and
25918 `background_transparent_valid' fields.
25919 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
25920 calculating it here. Set IMG's background_transparent field.
25921 (enum xpm_keyword_index): Add XPM_BACKGROUND.
25922 (enum png_keyword_index): Add PNG_BACKGROUND.
25923 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
25924 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
25925 (enum gif_keyword_index): Add GIF_BACKGROUND.
25926 (enum gs_keyword_index): Add GS_BACKGROUND.
25927 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
25928 Pre-calculate image background color where necessary.
25929 (x_create_x_image_and_pixmap, xbm_load, gs_load):
25930 Use display info's n_cbits entry for screen depth.
25931 (Fx_show_tip): Remove unused variables `buffer', `top',
25932 `left', `max_width' and `max_height'.
60a653f1 25933
048addec 25934 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 25935
048addec 259362001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 25937
048addec 25938 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 25939
048addec 259402001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25941
048addec 25942 * frame.c (Fframe_live_p): Doc fix.
60a653f1 25943
048addec 259442001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 25945
048addec
JD
25946 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
25947 (message_dolog_marker3): New static variables hold three markers.
25948 (syms_of_xdisp): Initialize and staticpro them.
25949 (message_dolog): Use message_dolog_marker1..3 instead of
25950 allocating markers each time. Unchain them when done.
60a653f1 25951
048addec 259522001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 25953
048addec 25954 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 25955
048addec 259562001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 25957
048addec 25958 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 25959
048addec 259602001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 25961
048addec 25962 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 25963
048addec 259642001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 25965
048addec 25966 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 25967
048addec 259682001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 25969
048addec
JD
25970 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
25971 with invalid position.
60a653f1 25972
048addec 259732001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 25974
048addec 25975 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 25976
048addec
JD
25977 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
25978 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
25979 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 25980
048addec 25981 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 25982
048addec 259832001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25984
048addec
JD
25985 * fileio.c (build_annotations): Split off the tail.
25986 (build_annotations_2): New fun. Extracted from build_annotations.
25987 (Fwrite_region): Split the call to build_annotations into two
25988 calls to build_annotations and build_annotations_2.
077907d4 25989
048addec 259902001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 25991
048addec
JD
25992 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
25993 clear_waiting_for_input with argument.
1756e2fb 25994
048addec 25995 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 25996
048addec 25997 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 25998
048addec 25999 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 26000
048addec 26001 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 26002
048addec 260032001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 26004
048addec
JD
26005 * fileio.c (choose_write_coding_system): New fun, extracted
26006 from Fwrite_region.
26007 (Fwrite_region): Use it.
fa336b91 26008
048addec
JD
26009 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
26010 (funcall_lambda, run_hook_with_args): Make static and add prototype.
26011 (ml_apply, find_handler_clause): Add prototype.
fa336b91 26012
048addec 260132001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 26014
048addec 26015 * config.in: Add #undef HAVE_COFF_H.
fa336b91 26016
048addec
JD
26017 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
26018 Required for ISC 4.1.
fa336b91 26019
048addec 260202001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 26021
52eb0373 26022 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 26023 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 26024
048addec 260252001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 26026
048addec
JD
26027 The following changes are made to clean up the various internal
26028 references to the fringes to actually use the term `fringe' for
26029 them. Previously, they were called `flags areas', `bitmap areas',
26030 `left/right side of windows', or implicitly as `flags' or
26031 `bitmaps':
fa336b91 26032
048addec 26033 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 26034 Comments fixed. Use renamed symbols.
06e8f738 26035
f63fd14e 26036 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 26037
048addec
JD
26038 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
26039 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
26040 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 26041
048addec 26042 * msdos.c: Comment fix.
9ce647f4 26043
048addec 26044 * w32fns.c: Use renamed symbols.
9b784ab8 26045
f63fd14e 26046 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
26047 (fringe_bitmap_type): Renamed from bitmap_type.
26048 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26049 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
26050 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 26051
f63fd14e 26052 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
26053 (fringes_extra): Renamed from flags_areas_extra.
26054 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26055 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26056 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26057 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26058 (FRAME_X_LEFT_FRINGE_WIDTH):
26059 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26060 (FRAME_X_RIGHT_FRINGE_WIDTH):
26061 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 26062
048addec 26063 * widget.c: Use renamed symbols.
9f7e52b4 26064
f63fd14e 26065 * window.c: Comment fixes. Use renamed symbols.
048addec 26066 (coordinates-in-window-p): Doc fix.
fa336b91 26067
f63fd14e 26068 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 26069
048addec 26070 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 26071
048addec 26072 * xfns.c: Use renamed symbols.
89512fcd 26073
f63fd14e 26074 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
26075 (fringe_bitmap_type): Renamed from bitmap_type.
26076 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26077 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
26078 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 26079
f63fd14e 26080 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
26081 (fringes_extra): Renamed from flags_areas_extra.
26082 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26083 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26084 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26085 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26086 (FRAME_X_LEFT_FRINGE_WIDTH):
26087 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26088 (FRAME_X_RIGHT_FRINGE_WIDTH):
26089 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
26090
260912001-11-15 Jason Rumney <jasonr@gnu.org>
26092
26093 * w32menu.c (add-menu-item): Make help_echo and radio buttons
26094 work for most menu items. From David Ponce
26095 <david.ponce@wanadoo.fr>.
26096
260972001-11-15 Gerd Moellmann <gerd@gnu.org>
26098
26099 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
26100 Some x_set_* function expect to be called even if old and new
26101 value are equal.
26102
26103 * xdisp.c (build_desired_tool_bar_string): Accept zero
26104 tool_bar_button_relief.
26105
26106 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
26107
26108 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
26109
26110 * xterm.c (x_draw_bar_cursor): If the background color of the
26111 glyph under the cursor equals the frame's cursor color, use
26112 the glyph's foreground color for drawing the bar cursor.
26113
26114 * dispnew.c (direct_output_forward_char): Fix character/byte
26115 position comparison.
7d18891d 26116
048addec 261172001-11-15 Miles Bader <miles@gnu.org>
d2936d21 26118
048addec
JD
26119 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
26120 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
26121 Update arguments to find_field.
26122 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
26123 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
26124 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
26125 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 26126
048addec 261272001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 26128
048addec 26129 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 26130
048addec
JD
26131 * dispextern.h (image_background, image_background_transparent):
26132 Conditionalize on HAVE_X_WINDOWS.
7d18891d 26133
048addec 261342001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 26135
048addec 26136 * print.c (Fprin1_to_string): Doc fix.
7d18891d 26137
048addec 26138 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 26139
048addec 26140 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 26141
048addec 26142 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 26143
048addec 26144 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 26145
048addec 26146 * eval.c (syms_of_eval): Doc fix.
7d18891d 26147
048addec 26148 * coding.c (syms_of_coding): Doc fix.
7d18891d 26149
048addec 26150 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 26151
048addec 26152 * dispnew.c (syms_of_display): Doc fix.
9474c847 26153
048addec 26154 * category.c (Fget_unused_category): Doc fix.
9474c847 26155
048addec 26156 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 26157
048addec 261582001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 26159
048addec 26160 * print.c (prin1, print): Doc fix.
e3059a5d 26161
048addec 261622001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 26163
048addec
JD
26164 * fontset.h: Remove declarations of variables
26165 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 26166
048addec
JD
26167 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
26168 `Vclip_large_size_font'.
eae936e2 26169
048addec 261702001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 26171
048addec 26172 * w32fns.c: Doc fix.
ddb67bdc 26173
048addec 261742001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 26175
048addec 26176 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 26177
048addec 26178 * fns.c: Doc fix.
6e1b91d7 26179
048addec 26180 * emacs.c: Doc fix.
1c1d3d69 26181
048addec 26182 * coding.c: Doc fix.
1c1d3d69 26183
048addec
JD
26184 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
26185 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
26186 `new style' [w/`doc:' keyword].
b6f4c7ba 26187
048addec 261882001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 26189
048addec
JD
26190 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
26191 LeaveNotify events. Only FocusIn and FocusOut do that now.
26192 (x_display_and_set_cursor): Do display hollow cursors in active
26193 minibuffer windows when they are not selected.
b6f4c7ba 26194
048addec 261952001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 26196
048addec 26197 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
26198 * w32term.c: Change doc-string comments to `new style'
26199 [w/`doc:' keyword]. Doc fixes.
a89f435d 26200
048addec
JD
26201 * w32fns.c: Don't define max.
26202 (Fx_open_connection): Only execute once.
a4cd0cd7 26203
048addec 262042001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 26205
048addec
JD
26206 * ccl.c: Change macros to use do-while block instead of if-else.
26207 Use braces to follow GNU Coding Standards.
eafb659a 26208
048addec 262092001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 26210
048addec 26211 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 26212
048addec 26213 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 26214
048addec
JD
26215 * insdel.c (replace_range): Use adjust_markers_for_replace
26216 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 26217
78819ebb 26218 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 26219
048addec
JD
26220 * textprop.c (set_text_properties_1): New subroutine
26221 broken out of set_text_properties.
26222 (set_text_properties): Use set_text_properties_1.
91823618 26223
048addec
JD
26224 * intervals.c (graft_intervals_into_buffer):
26225 Use set_text_properties_1 to clear out properties.
91823618 26226
048addec
JD
26227 * search.c (Freplace_match): Use replace_range to insert
26228 and delete. Don't request property inheritance from
26229 surrounding text.
86928dfb 26230
048addec 262312001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 26232
048addec 26233 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 26234 vertical fonts. Allow them if face name is explicitly specified.
048addec 26235 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 26236
048addec 262372001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 26238
048addec
JD
26239 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
26240 instead of malloc/free.
a78e0303 26241
048addec 262422001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 26243
048addec
JD
26244 * xfaces.c (merge_face_vectors): Use braces to follow GNU
26245 Coding Standards.
26246 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 26247
048addec 26248 * buffer.c (Fbury_buffer): Likewise.
0c99b139 26249
048addec 26250 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 26251
048addec
JD
26252 * coding.c (encode_coding): Use precomputed value of `src'.
26253 (encode_coding): Remove unused variable `src_end'.
26254 (code_convert_region): Remove unused variables `count'.
830ddd77 26255
048addec 262562001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 26257
048addec
JD
26258 * w32term.c (x_display_and_set_cursor): Do not move system caret
26259 if cursor_glyph is NULL.
55c6d645 26260
048addec 262612001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 26262
048addec 26263 * keymap.c (access_keymap): Fix compilation error.
5de38842 26264
048addec 262652001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 26266
048addec 26267 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 26268
048addec 262692001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 26270
048addec
JD
26271 * intervals.c (graft_intervals_into_buffer):
26272 Remove #ifdef'd-out code.
26273 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 26274
048addec
JD
26275 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
26276 code (eval-current-buffer).
26277 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 26278
048addec 262792001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 26280
048addec 26281 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 26282
048addec 262832001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 26284
048addec 26285 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 26286
048addec
JD
26287 * keyboard.c (make_lispy_event): Check integerness and fix
26288 Lisp_Object/int mixup.
17893c65 26289
048addec 262902001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 26291
048addec 26292 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 26293
048addec
JD
26294 * fontset.c (fontset_font_pattern): Remove unused variable
26295 `family_registry'.
d5360cc7 26296
048addec 26297 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 26298
048addec 262992001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 26300
048addec 26301 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 26302
048addec
JD
26303 * buffer.c (Fkill_buffer): Don't delete auto save file
26304 if buffer is modified.
d9d54213 26305
048addec 263062001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 26307
048addec
JD
26308 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
26309 CHECK_NUMBER_CDR.
b116830b 26310
048addec 263112001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 26312
048addec 26313 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 26314
048addec 263152001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 26316
048addec 26317 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 26318
048addec 263192001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 26320
048addec 26321 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 26322
048addec 263232001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 26324
048addec
JD
26325 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
26326 the program image directly.
982f6c7e 26327
048addec 263282001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 26329
048addec 26330 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 26331
048addec 263322001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 26333
048addec
JD
26334 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
26335 and CHECK_BUFFER.
d31053f9 26336
048addec
JD
26337 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
26338 (record_char): Likewise.
d31053f9 26339
048addec
JD
26340 * keyboard.c (make_lispy_event): Don't insist a drag event must
26341 move to a different buffer position. Instead, check for moving at
26342 least double_click_fuzz.
982f6c7e 26343
048addec 26344 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 26345
048addec 26346 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 26347
048addec
JD
26348 * indent.c (current_column_1, Fmove_to_column): Separate the code
26349 for display-table glyphs from the code for buffer text, to fix
26350 bugs in the former.
830047fd 26351
048addec 263522001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 26353
048addec
JD
26354 * buffer.c (Fbuffer_local_value): New function.
26355 (syms_of_buffer): Defsubr it.
2df5238c 26356
048addec
JD
26357 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
26358 value of `cursor-in-non-selected-windows'.
4e397688 26359
048addec
JD
26360 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
26361 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
26362 (syms_of_xdisp): Initialize it.
48b0f3ae 26363
048addec 263642001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 26365
048addec 26366 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 26367
048addec
JD
26368 * coding.c: Change doc-string comments to `new style' [w/`doc:'
26369 keyword].
3ecaf7e5 26370
048addec
JD
26371 * eval.c (top_level_value, top_level_set): Remove commented and
26372 #ifdef'd-out code.
26373 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 26374
048addec 263752001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 26376
048addec 26377 * xfns.c: Include unistd.h, if it exists.
8db2e33b 26378
048addec 26379 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 26380
048addec 26381 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 26382
048addec 263832001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 26384
048addec
JD
26385 * lisp.h (CHECK_STRING_CAR): New macro.
26386 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
26387 treating XCAR and XCDR as lvalues.
26388 (openp): Use CHECK_STRING_CAR.
26389 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 26390
048addec 263912001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 26392
048addec
JD
26393 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
26394 (SIGMASKTYPE): Define.
1b1acc13 26395
048addec 26396 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 26397
048addec 263982001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 26399
048addec
JD
26400 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
26401 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
26402 Fix typos in comments.
6cb16f95 26403
048addec
JD
26404 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
26405 and #ifdef'd-out code.
26406 Fix and reindent comments.
6cb16f95 26407
048addec 26408 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 26409
048addec
JD
26410 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
26411 argument `i' in macros.
6cb16f95 26412
048addec
JD
26413 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
26414 `i' in macros.
7e9d3c2f 26415
048addec
JD
26416 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
26417 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
26418 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
26419 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
26420 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
26421 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
26422 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
26423 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
26424 in macros.
7e9d3c2f 26425
048addec
JD
26426 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
26427 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
26428 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
26429 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
26430 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
26431 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
26432 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
26433 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
26434 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
26435 (remove unused second argument).
7e9d3c2f 26436
048addec 264372001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 26438
048addec
JD
26439 * syntax.c (describe_syntax): New wrapper.
26440 (Finternal_describe_syntax_value): Rename from describe_syntax.
26441 Don't insert space at front and \n at the end.
26442 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 26443
048addec
JD
26444 * regex.c (re_wctype): Try to fix some warnings.
26445 (regcomp, regexec): Don't forget the __restrict.
9ba48103 26446
048addec 264472001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 26448
048addec 26449 * textprop.c (Fget_char_property): Doc fix.
9ba48103 26450
048addec 264512001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 26452
048addec 26453 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 26454
048addec 26455 * data.c (Fsetq_default): Ditto.
c22e59e1 26456
048addec 26457 * callint.c (Finteractive): Ditto.
9271ed2c 26458
048addec 264592001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 26460
048addec
JD
26461 * macros.c: Don't include keymap.h any more.
26462
264632001-11-01 Richard M. Stallman <rms@gnu.org>
26464
26465 * data.c (Fmake_local_variable): Doc fix.
26466
26467 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
26468 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 26469
048addec 26470 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
26471 bindings along with or instead of the buffer local map.
26472 Make the overriding maps override what they should.
26473
f00691a3 264742001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
26475
26476 * window.c (grow_mini_window): Fix typo in comment.
26477
27188d11
GM
264782001-11-01 Gerd Moellmann <gerd@gnu.org>
26479
7b49b9d2
GM
26480 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
26481 (XTset_vertical_scroll_bar): Likewise.
26482
43f7c3ea
GM
26483 * xfns.c (x_build_heuristic_mask): Use four_corners_best
26484 instead of IMAGE_BACKGROUND.
c22e59e1 26485
b350c2e5
GM
26486 * xfns.c (four_corners_best): Reindent.
26487
c22e59e1 26488 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
26489 Handle :box so that it is possible to specify sexprs.
26490
bf00d461
EZ
264912001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
26492
26493 * s/hpux11.h: New file.
26494
f00691a3 264952001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 26496
2b209b97
PJ
26497 * emacs.c (USAGE1): Show command line option --no-window-system
26498 instead of --no-windows in usage.
26499 (standard_args): Rename --no-windows to --no-window-system.
26500 (bug_reporting_address): Follow Emacs coding conventions.
26501
9dbc9081
PJ
26502 * eval.c (Fcommandp): Doc fix.
26503 Change doc-string comments to `new style' [w/`doc:' keyword].
26504
4e10df59
PJ
26505 * frame.c (Fframe_live_p): Doc fix.
26506
26507 * buffer.c (selective-display-ellipses): Doc fix.
26508
dd387b25
GM
265092001-10-31 Gerd Moellmann <gerd@gnu.org>
26510
fe957e65
GM
26511 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
26512
dd387b25
GM
26513 * xfaces.c (realize_x_face): If C is not a single-byte character,
26514 set the face's colors_copied_bitwise_p instead of the defaulted_p
26515 members which have a different meaning.
26516 (free_face_colors): Do nothing for a face whose colors have been
26517 copied bitwise.
26518
c22e59e1 26519 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 26520
f00691a3 265212001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 26522
687784e8
PJ
26523 * marker.c, mocklisp.c: Change doc-string comments to `new style'
26524 [w/`doc:' keyword].
2e1280f8 26525
b9d9a9b9
GM
265262001-10-31 Gerd Moellmann <gerd@gnu.org>
26527
26528 * fns.c (require_unwind): Return Lisp_Object.
26529
f00691a3 265302001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 26531
fa1361cb
PJ
26532 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
26533 (last-input-char): Revert doc-string to be the same as the
26534 doc-string of `last-input-event'.
26535
6c465a15 26536 * xdisp.c: Fix typos in comments.
48400103 26537
eafa3196
GM
265382001-10-31 Gerd Moellmann <gerd@gnu.org>
26539
26540 * window.c (grow_mini_window): Handle case that the root
26541 window is already smaller than the nominal mininum height.
26542
747d3f2a
SM
265432001-10-30 Stefan Monnier <monnier@cs.yale.edu>
26544
bf9bb76f
SM
26545 * emacs.c (main): Don't call keys_of_macros any more.
26546
26547 * lisp.h (keys_of_macros): Remove.
26548
26549 * macros.c (keys_of_macros): Remove.
26550
747d3f2a
SM
26551 * xfaces.c (Fface_attribute_relative_p): Declare args.
26552
5e905a57
JR
265532001-10-30 Jason Rumney <jasonr@gnu.org>
26554
26555 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
26556 (enum_font_cb2): Ignore fonts with vertical orientation.
26557
3a426197
RS
265582001-10-30 Richard M. Stallman <rms@gnu.org>
26559
26560 * keyboard.c (Finput_pending_p): Doc fix.
26561
a742d646
GM
265622001-10-30 Gerd Moellmann <gerd@gnu.org>
26563
259cf6bc
GM
26564 * xterm.c (x_after_update_window_line): Don't run the code
26565 clearing in borders for rows whose visible height is 0.
26566
3f99f948
GM
26567 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
26568 resized_p flag is set. If not set, use the much less flickering
26569 method previously used.
26570
26571 * dispnew.c (change_frame_size_1): Set frame's resized_p.
26572
26573 * frame.h (struct frame) <resized_p>: New member.
26574
b4a3be43
GM
26575 * lread.c (to_multibyte): Ensure read_buffer is at least twice
26576 as large as the number of bytes to convert.
747d3f2a 26577
a742d646
GM
26578 * lread.c (to_multibyte): New function.
26579 (read1): Use it.
26580
cacbb9e9
EZ
265812001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
26582
26583 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
26584
99cb6b2f
GM
265852001-10-30 Gerd Moellmann <gerd@gnu.org>
26586
327f42ee 26587 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
26588 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
26589 if the row's fill_line_p is set and drawing the last glyph with
26590 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 26591
99cb6b2f
GM
26592 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
26593
8e8223e2
SM
265942001-10-29 Stefan Monnier <monnier@cs.yale.edu>
26595
26596 * xmenu.c: Include coding.h and charset.h.
26597 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
26598 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
26599 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
26600 Explicitly set wv->help. Use `TRUE' rather than `True'.
26601 (menu_help_callback): Use empty_string.
26602
26603 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
26604 (Fx_popup_dialog): Explicitly init f.
26605 (w32_menu_display_help): Use empty_string.
26606
4d083a8f
RS
266072001-10-29 Richard M. Stallman <rms@gnu.org>
26608
b2304472
RS
26609 * fns.c (Frequire): Detect recursive try to require the same
26610 feature 3 or more levels deep, and get error.
26611 (require_unwind): New subroutine.
26612 (require_nesting_list): New variable.
26613 (syms_of_fns): Init and staticpro it.
26614
4d083a8f
RS
26615 * print.c (print_object): Clarify indication of insertion type.
26616
2fe41216
EZ
266172001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
26618
90480000
EZ
26619 * coding.c (syms_of_coding): Document that locale-coding-system is
26620 used for decoding input on X.
26621
2fe41216
EZ
26622 * window.c (Fscroll_left, Fscroll_right): Doc fix.
26623
f00691a3 266242001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
26625
26626 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
26627 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
26628
60ebcfe8
GM
266292001-10-29 Gerd Moellmann <gerd@gnu.org>
26630
9a7bdceb
GM
26631 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
26632 use NO_CURSOR if cursor_in_non_selected_windows is false.
26633
3f08fcd2
GM
26634 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
26635 the slant attribute if FRAME is t.
26636
0ccfdad2
GM
26637 * xfns.c (x_set_internal_border_width): Set frame garbaged
26638 when X window doesn't exist yet.
26639
ef253080
GM
26640 * xterm.c (x_after_update_window_line): Clear internal border
26641 in different circumstances.
b116830b 26642
60ebcfe8
GM
26643 * xterm.c (XTread_socket) <KeyPress>: Don't use
26644 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
26645 <handa@etl.go.jp>.
26646
73d25f9c
EZ
266472001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
26648
26649 * m/ibms390.h: New file. From Adam Thornton
26650 <athornton@sinenomine.net>.
26651
cac1daf0
GM
266522001-10-28 Gerd Moellmann <gerd@gnu.org>
26653
053b3256 26654 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 26655
cac1daf0
GM
26656 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
26657 a loop counter.
26658
f00691a3 266592001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 26660
f9711de4 26661 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 26662
4707d2d0
PJ
26663 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
26664 keyword].
26665 Fix typos in comments.
b116830b 26666
d883731c
PJ
26667 * emacs.c (bug_reporting_address): New function.
26668 Use it when displaying usage message.
26669
04012254
PJ
26670 * minibuf.c (read_minibuf): Remove unused external declaration of
26671 variable `Qread_only'.
26672
13b1a09c
PJ
26673 * keymap.c (access_keymap): Remove unused variable `charset'.
26674
5bbf4378
MB
266752001-10-28 Miles Bader <miles@gnu.org>
26676
26677 * xfaces.c (merge_face_heights): Handle TO being relative as well.
26678 Remove #ifdef'd-out code.
26679 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
26680 (syms_of_xfaces): Initialize them.
26681
1ce1e4ee
JR
266822001-10-27 Jason Rumney <jasonr@gnu.org>
26683
26684 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
26685 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
26686 position using the system caret.
26687
26688 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
26689 (w32_system_caret_height, w32_system_caret_x)
26690 (w32_system_caret_y): New variables for tracking system caret.
26691 (w32_initialize): Initialize them.
c2d53558 26692 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 26693
c2d53558
SM
26694 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
26695 New messages types.
1ce1e4ee
JR
26696
26697 * w32term.c (note_mouse_highlight): Clear old help_echo.
26698
f00691a3 266992001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 26700
bb4600a4
PJ
26701 * xterm.c: Fix typo in a comment.
26702
7db35a48
PJ
26703 * emacs.c: Fix typos in comments.
26704 Remove unnecessary spaces.
26705 Change doc-string comments to `new style' [w/`doc:' keyword].
26706 (USAGE2): Fix typos in usage string.
26707
a7248e4f
PJ
26708 * xterm.c: Fix typo in a comment.
26709
52eb0373 26710 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
26711 emacs.c.
26712
62725a92
GM
267132001-10-27 Gerd Moellmann <gerd@gnu.org>
26714
798dbe1f 26715 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 26716 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
26717 farther backward when target_y was not reached.
26718
62725a92
GM
26719 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
26720 Display errno only if non-zero.
26721 (sound_warning): New function.
26722 (vox_configure): Don't treat failing to set sample rate as error.
26723 (various places): Improve error messages.
26724
d4e34d24
EZ
267252001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
26726
944e6f60
EZ
26727 * fileio.c (Faccess_file): Run the argument filename through
26728 Fexpand_file_name, before using it.
26729
d4e34d24
EZ
26730 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
26731 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
26732
38d2af0c
GM
267332001-10-26 Gerd Moellmann <gerd@gnu.org>
26734
da80a8d5
GM
26735 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
26736
38d2af0c
GM
26737 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
26738 Fix clearing in the case of scroll bars on the right.
c2d53558 26739
45de4a6f 267402001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
26741
26742 * w32gui.h (XImage): Add a dummy typedef.
26743
fbd5ceb2
GM
267442001-10-26 Gerd Moellmann <gerd@gnu.org>
26745
c2d53558 26746 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 26747
b23236fb
EZ
267482001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
26749
26750 * frame.c (Fframe_parameter): Fix last change.
26751
5d991fc4
EZ
26752 * fileio.c: Revert last change (which removed old commented-out
26753 version of expand-file-name). Add a comment that explains why
26754 this old version should not be removed.
26755
879eadc3
GM
267562001-10-25 Gerd Moellmann <gerd@gnu.org>
26757
75700ff2
GM
26758 * frame.c (Fframe_parameter): Fix a bug whereby some
26759 ``artificial'' frame parameters, like `minibuffer' were not
26760 obtained by calling Fframe_parameters.
26761
dfe92a6a
GM
26762 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
26763 cursor differently.
26764
879eadc3
GM
26765 * xdisp.c (move_it_vertically_backward): Compute line height
26766 differently. Add heuristic to try to be more compatible to 20.x.
26767
e1010ebe
SM
267682001-10-25 Stefan Monnier <monnier@cs.yale.edu>
26769
d73a471b
SM
26770 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
26771
d6da5a06
GM
26772 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
26773 boolean.
e1010ebe 26774
f66bd220
MB
267752001-10-25 Miles Bader <miles@gnu.org>
26776
26777 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
26778 BG is a pointer to a structure, not a structure.
26779 (gif_format, png_format): Add missing commas.
26780
d436d538
RS
267812001-10-24 Richard M. Stallman <rms@gnu.org>
26782
26783 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 26784 (syms_of_xfaces): Defsubr it.
d436d538 26785
f00691a3 267862001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
26787
26788 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
26789 variable `area'.
26790
f00691a3 267912001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 26792
c2d53558 26793 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 26794
e2a57b34
MB
267952001-10-25 Miles Bader <miles@gnu.org>
26796
26797 * dispextern.h (struct image): Add `background',
26798 `background_valid', and `background_transparent' fields.
26799 (image_background, image_background_transparent): New declarations.
26800 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
26801 * xfns.c (image_background, image_background_transparent)
26802 (four_corners_best): New functions.
c2d53558 26803 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
26804 (gs_format): Add `:background' entry.
26805 (lookup_image): Set IMG's background color if specified.
26806 (pbm_load, xbm_load_image, png_load): Set IMG's background field
26807 when appropriate.
26808 (x_clear_image_1): Reset `background_valid' and
26809 `background_transparent_valid' fields.
26810 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
26811 calculating it here. Set IMG's background_transparent field.
26812 (enum xpm_keyword_index): Add XPM_BACKGROUND.
26813 (enum png_keyword_index): Add PNG_BACKGROUND.
26814 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
26815 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
26816 (enum gif_keyword_index): Add GIF_BACKGROUND.
26817 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 26818 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
26819 Pre-calculate image background color where necessary.
26820 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
26821 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
26822 color to use for image glyph reliefs.
26823
b547b6e8
GM
268242001-10-24 Gerd Moellmann <gerd@gnu.org>
26825
d9e3b8c6
GM
26826 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
26827 in full-width rows.
c2d53558 26828
b547b6e8
GM
26829 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
26830 Fix clearing of area not covered by scroll bar.
26831
f00691a3 268322001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 26833
52eb0373 26834 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 26835 and `real_start'.
c2d53558 26836 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
26837 (glyph_rect): Remove unused variable `area'.
26838
76cb5e06
GM
268392001-10-24 Gerd Moellmann <gerd@gnu.org>
26840
bdbdebff 26841 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
26842
26843 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
26844 (row_containing_pos): Take additional argument DY.
26845 Treat rows ending in middle of char differently.
62e33982
GM
26846 (display_line): Handle tabs on window systems differently.
26847
26848 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
26849 with additional argument.
26850
26851 * dispextern.h (row_containing_pos): Adjust prototype.
26852
76cb5e06
GM
26853 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
26854 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
26855 (try_window_id, try_window_reusing_current_matrix)
26856 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 26857 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 26858
f00691a3 268592001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 26860
c9e60620
PJ
26861 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
26862 gnuemacs).
26863 (HAVE_BOXES): Fix typo in comment.
26864 (push_menu_pane): Fix typo in comment.
26865
52eb0373 26866 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
26867 of `Qwhen'.
26868 (single_display_prop_string_p): Remove unused local declarations
26869 of `Qwhen' and `Qmargin'.
26870 (string_buffer_position): Remove unused variable `around'.
26871 (store_frame_title): Remove unused variable `width'.
26872
15c565ac
PJ
26873 * window.c: Don't define max.
26874 (coordinates_in_window): Remove unused variable `uy'.
26875
a8818eb9
PJ
26876 * widget.c: Don't define max.
26877
996fee11
PJ
26878 * process.c: Don't define max.
26879 (create_process): Remove unused variable `buffer'.
26880
496e1a5b
GM
268812001-10-23 Gerd Moellmann <gerd@gnu.org>
26882
c2d53558 26883 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 26884
5905ae8b
EZ
268852001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
26886
26887 * xfaces.c (Finternal_set_lisp_face_attribute)
26888 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
26889 frame is on a windowed display.
26890
24db49fb
GM
268912001-10-23 Gerd Moellmann <gerd@gnu.org>
26892
c2d53558
SM
26893 * dispnew.c (sync_window_with_frame_matrix_rows):
26894 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
26895 of marginal areas.
26896
c2d53558 26897 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 26898
f0487f05
EZ
268992001-10-23 Andreas Schwab <schwab@suse.de>
26900
26901 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
26902 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
26903
f0a48a01
GM
269042001-10-23 Gerd Moellmann <gerd@gnu.org>
26905
c2d53558 26906 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
26907 REAL_END. Notice if cursor gets overwritten.
26908 (notice_overwritten_cursor): Take X positions as parameters.
26909 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
26910 around call to x_draw_glyphs.
26911
f00691a3 269122001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 26913
fc11dff0
PJ
26914 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
26915 instead of C) and usage.
a50a10a0 26916
fc11dff0
PJ
26917 * editfns.c (char-to-string): Fix argument names (use CHAR instead
26918 of C) and usage.
a50a10a0
PJ
26919
26920 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
26921 `left', `max_width' and `max_height'.
26922
8738febd
GM
269232001-10-23 Gerd Moellmann <gerd@gnu.org>
26924
26925 * xdisp.c (display_line): For a tab continued to the next line,
26926 set row's ends_in_middle_of_char_p.
26927
653c329b
GM
269282001-10-22 Gerd Moellmann <gerd@gnu.org>
26929
26930 * xdisp.c (display_line): Fix computation of continuation lines
26931 width for TABs.
26932
f00691a3 269332001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 26934
7ba51063
PJ
26935 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
26936 `Qlaplace'.
26937
f958c5ac
PJ
26938 * fileio.c: Remove unused code.
26939
eb360291
MB
269402001-10-22 Miles Bader <miles@gnu.org>
26941
26942 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
26943 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
26944 Remove `DOC_STRINGS_IN_COMMENTS' cases.
26945
98515cf0
JR
269462001-10-21 Jason Rumney <jasonr@gnu.org>
26947
26948 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
26949
93026d88
EZ
269502001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
26951
26952 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
26953 (Finsert_string): Avoid the multi-line string literals warning.
26954
c9a95b79
MB
269552001-10-22 Miles Bader <miles@gnu.org>
26956
26957 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
26958 (Fdocumentation): Don't use it.
26959 (syms_of_doc): Don't initialize it.
26960
26961 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
26962 * print.c (Fwith_output_to_temp_buffer): Likewise.
26963 * window.c (Fsave_window_excursion): Likewise.
c2d53558 26964 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 26965 (Fsave_restriction): Likewise.
c2d53558
SM
26966 * eval.c (Frun_hooks, Frun_hook_with_args)
26967 (Frun_hook_with_args_until_failure)
26968 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
26969 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
26970 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
26971 (Funwind_protect, Fcondition_case): Likewise.
26972 * coding.c (Ffind_operation_coding_system): Likewise.
26973 * keyboard.c (Ftrack_mouse): Likewise.
26974
a3b10252
MB
269752001-10-21 Miles Bader <miles@gnu.org>
26976
c2d53558 26977 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
26978 (Fmake_hash_table): Add usage: string to doc string.
26979 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 26980 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
26981 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
26982 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
26983 (Fml_prefix_argument_loop): Likewise.
26984
f00691a3 269852001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 26986
c2d53558 26987 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 26988
c6f73eec
PJ
26989 * sysdep.c (init_sys_modes): Change doc-string comments to `new
26990 style' [w/`doc:' keyword].
26991
26992 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
26993 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
26994 comments to `new style' [w/`doc:' keyword].
26995
3cf3436e
JR
269962001-10-21 Jason Rumney <jasonr@gnu.org>
26997
26998 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
26999
c169b8f1
JR
27000 * w32term.c (remember_mouse_glyph): New function.
27001 (w32_mouse_position): Use it.
27002 (note_mouse_movement): If the mouse moved off the glyph, remember
27003 its new position.
c2d53558 27004
4fdd691b
JR
27005 * w32term.h (struct w32_output): Correct spelling of x_compatible.
27006 (w32_display_info): Add mouse_face_overlay.
27007
c169b8f1
JR
27008 * w32term.c (notice_overwritten_cursor): Renamed from
27009 note_overwritten_text_cursor. Rewritten to take glyph widths into
27010 account.
27011 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
27012 (fast_find_string_pos): New function.
27013 (fast_find_position): Return the correct vpos. Add parameter
27014 STOP. In the final row, stop before glyphs having STOP as object.
27015 Don't consider glyphs that are not from a buffer.
27016 (fast_find_position) [0]: Add a presumably more correct version
27017 for after 21.1.
27018 (expose_window_tree, expose_frame): Don't compute intersections here.
27019 (expose_window): Do it here instead.
27020 (expose_window_tree, expose_window, expose_line): Return 1 when
27021 overwriting mouse-face.
27022 (expose_window): If W is the window currently being updated, mark
27023 the frame garbaged.
27024 (expose_frame): If mouse-face was overwritten, redo it.
27025 (x_use_underline_position_properties): New variable.
27026 (syms_of_xterm): DEFVAR_BOOL it.
27027 (x_draw_glyph_string): Add comment to use it in future.
27028 (x_draw_glyph_string): Restore clipping after drawing box.
27029 Fix a computation of the underline position.
27030 (w32_get_glyph_string_clip_rect): Minor cleanup.
27031 (x_fill_stretch_glyph_string): Remove an assertion.
27032 (x_produce_glyphs): Don't convert multibyte characters
27033 to unibyte characters in unibyte buffers.
27034 (cursor_in_mouse_face_p): New function.
27035 (x_draw_stretch_glyph_string): Use it to choose a different GC
27036 when drawing a cursor within highlighted text. Don't draw
27037 background again if it has already been drawn.
27038 (x_draw_glyph_string_box): Don't draw a full-width
27039 box just because the glyph row's full_width_p flag is set.
27040 (x_draw_glyphs): Fix computation of rightmost x for
27041 full-width rows.
27042 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
27043 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 27044 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
27045 (x_update_window_end): Handle overwritten mouse face
27046 also for tool bar windows.
27047 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
27048 DRAW is DRAW_IMAGE_RAISED.
27049 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
27050 actually redrawn. Make the function static.
27051 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
27052 optimize away highlighting if we pass over that same overlay again.
27053 (note_mouse_highlight): Call mouse_face_overlay_overlaps
27054 to detect a case where we have to highlight a different region
27055 despite not having left the currently highlighted region.
27056 Set mouse_face_overlay in the x_display_info. Avoid changing the
27057 mouse pointer shape when show_mouse_face has already done it, or
27058 there is no need. Handle mouse-face and help-echo in strings.
27059 (glyph_rect): New function.
27060 (w32_mouse_position): Use it to raise the threshold for mouse
27061 movement event generation.
27062 (w32_initialize_display_info): Initialize the x_display_info's
27063 mouse_face_overlay.
27064 (w32_set_vertical_scroll_bar): Don't clear a zero height
27065 or width area.
27066 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
27067 a widget to zero height.
27068
3cf3436e 27069 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 27070 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
27071 equivalents in menu_items.
27072 (w32_menu_show): Don't overwrite an item's name with its key
27073 description in case the description is a multibyte string.
27074 (single_submenu): Some cleanup.
27075
27076 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
27077 (postprocess_image): New function.
27078 (lookup_image): Call it for all image types except PostScript.
27079 (x_kill_gs_process): Call postprocess_image.
27080 (tiff_error_handler, tiff_warning_handler): New functions.
27081 (tiff_load): Install them as handlers.
27082 (x_kill_gs_process): Recognize if someone has cleared the image
27083 cache under us.
27084 (valid_image_p): Protect better against invalid image
27085 specifications. Previous code could signal an error.
27086 (Fx_hide_tip, Fshow_tip): Doc fix.
27087 (Fv_max_tooltip_size): New variable.
27088 (syns_of_xfns): DEFVAR_LISP it.
27089 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 27090 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
27091 window_width. Use a maximum tooltip size specified by
27092 Vx_max_tooltip_size, if that has valid contents.
27093 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
27094 Make sure the tooltip is completely visible.
27095 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
27096 (Fx_create_frame): Adjust the frame's height for presence
27097 of the tool bar before calling x_figure_window_size.
27098 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
27099 when the window gets smaller.
27100 (x_set_foreground_color): Set frame's cursor_pixel.
27101 (x_set_foreground_color, x_set_background_color): Cleaned up.
27102 (x_set_font): Handle case of x_new_fontset returning the same name
27103 as before, although there was a change in fontsets.
27104
386ca361
MB
271052001-10-21 Miles Bader <miles@gnu.org>
27106
c2d53558 27107 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
27108 (Flogxor): Add usage: string to doc string.
27109 * charset.c (Fstring): Likewise.
27110 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
27111 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
27112
f00691a3 271132001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 27114
03be2694
PJ
27115 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
27116
27117 * alloc.c: Reindent DEFUNs with doc: keywords.
27118
27119 * abbrev.c (Finsert_abbrev_table_description): Reindent.
27120
14ff1ee0
PJ
27121 * frame.c: Change doc-string comments to `new style' [w/`doc:'
27122 keyword].
27123
2f147815 27124See ChangeLog.9 for earlier changes.
6922b018
KH
27125
27126;; Local Variables:
49b3bd82 27127;; coding: iso-2022-7bit
33462dfa 27128;; add-log-time-zone-rule: t
6922b018 27129;; End:
2a34a036 27130
aaef169d
TTN
27131 Copyright (C) 2001, 2002, 2003, 2004, 2005,
27132 2006 Free Software Foundation, Inc.
2a34a036
GM
27133 Copying and distribution of this file, with or without modification,
27134 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
27135
27136;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4